feat: add basic subscriptions

This commit is contained in:
2024-08-02 19:31:32 +02:00
parent 7c8dcaf171
commit 24b4b1fad0
2 changed files with 11 additions and 1 deletions

View File

@@ -552,3 +552,9 @@ class BaseNotification(models.Model):
class CommentNotification(BaseNotification):
comment = models.ForeignKey(Comment, on_delete=models.CASCADE, verbose_name=_('Antwort'))
class Subscriptions(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, verbose_name=_('Nutzer*in'))
adoption_notice = models.ForeignKey(AdoptionNotice, on_delete=models.CASCADE, verbose_name=_('AdoptionNotice'))
created_at = models.DateTimeField(auto_now_add=True)