11 lines
393 B
Python
11 lines
393 B
Python
from django.db import models
|
|
|
|
from users.models import *
|
|
|
|
from common.models.baseModels import *
|
|
|
|
class Notification(BaseModel):
|
|
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='notifications')
|
|
content = models.TextField(blank=True)
|
|
is_read = models.BooleanField(default=False)
|
|
note_type = models.CharField(max_length=10, choices=NotificationType.choices) |