Feat: [#41] notification 앱 생성 및 알림 조회 구현

This commit is contained in:
sm4640
2025-05-02 22:07:09 +09:00
parent dd67f7a18b
commit 9f046073c5
9 changed files with 122 additions and 0 deletions

11
notifications/models.py Normal file
View 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)