rename reminder notif type to message

This commit is contained in:
Peter Vacho 2025-01-04 12:37:02 +01:00
parent 3351499e73
commit d0f95140df
Signed by: school
GPG key ID: 8CFC3837052871B4
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ class NotificationData(BaseModel):
id: PydanticObjectId
user_id: PydanticObjectId
event_type: Literal["reminder", "invitation"]
event_type: Literal["message", "invitation"]
message: str
data: Any
read: bool

View file

@ -13,7 +13,7 @@ class Notification(Document):
"""Notification table."""
user: Annotated[BeanieLink[User], Indexed()]
event_type: Annotated[Literal["reminder", "invitation"], Indexed()]
event_type: Annotated[Literal["message", "invitation"], Indexed()]
message: str
data: str
read: bool