mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-26 14:19:41 +00:00
notification mark as read api modified for clear all, list sorting set to updated at field, added same field
This commit is contained in:
@ -18,6 +18,7 @@ class Notification(models.Model):
|
||||
data = models.JSONField(default=dict, blank=True, null=True)
|
||||
is_read = models.BooleanField(default=False)
|
||||
created_at = models.DateTimeField(default=timezone.now)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
|
||||
def __str__(self):
|
||||
""" string representation """
|
||||
|
Reference in New Issue
Block a user