π notifications
This model represents a notification that gets sent to a user, optionally in the context of a project.
π Notification
π§© Fields:
π
id
: Unique ID for the notification (primary key).π€
user_id
: Foreign key linking to the user who receives the notification.ποΈ
project_id
: Optional foreign key to the related project (e.g., if the notification is about a task update, project invite, etc.).βοΈ
message
: The content of the notification β what the user will see (required).π
time_sent
: The timestamp for when the notification was sent (required).
π Relationships:
user
: Links the notification to the receiving user (User
model).project
: Links the notification to a related project (Project
model), if applicable.
Last updated