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