9 lines
304 B
Python
9 lines
304 B
Python
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)
|
|
|