rename reminder notif type to message
This commit is contained in:
parent
3351499e73
commit
d0f95140df
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue