add notification and send notification

This commit is contained in:
behruz-dev
2025-10-28 16:03:54 +05:00
parent fd6b9ab0c2
commit 544b04a21e
14 changed files with 123 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
from django.db import models
from core.apps.shared.models import BaseModel
from core.apps.accounts.models import User
class Notification(BaseModel):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='notifications')
token = models.CharField(max_length=255, unique=True)