πŸ”” 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