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 id: PydanticObjectId
user_id: PydanticObjectId user_id: PydanticObjectId
event_type: Literal["reminder", "invitation"] event_type: Literal["message", "invitation"]
message: str message: str
data: Any data: Any
read: bool read: bool

View file

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