✨ Feat: [#41] notification 앱 생성 및 알림 조회 구현
This commit is contained in:
11
notifications/models.py
Normal file
11
notifications/models.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user