πprojects
The Project model represents a collaborative workspace where users can create tasks, communicate, and track progress.
π Project Model
π Attributes:
π id (
Integer
): Unique identifier for the project (Primary Key).π name (
String
): Name of the project.π description (
Text
): Detailed explanation of what the project is about.π creation_datetime (
DateTime
): Timestamp indicating when the project was created.
π Relationships:
π₯ users: One-to-many relationship with
ProjectsUser
. Links users to the project, along with their roles and labels.β tasks: One-to-many relationship with
Task
. Tasks created under this project.π·οΈ labels: Labels associated with this project (
Label
model).π notifications: Notifications related to this project.
π§Ύ activity_logs: Logs that record actions taken within this project.
π¬ personal_chats: Direct conversations linked to this project.
π€π§© ProjectsUsers Model
The ProjectsUser
model is an association table that links users to projects, allowing for role-based access and extra metadata.
π Attributes:
π id (
Integer
): Unique identifier for the project-user relationship.π project_id (
ForeignKey
): Reference to theProject
the user is linked to.π user_id (
ForeignKey
): Reference to theUser
involved in the project.π οΈ role (
enum type
): Defines the userβs role within the project ("admin" , "project_manager" , "member" , "observer").
π Relationships:
π project: The project associated with this record.
π€ user: The user associated with this record.
π§© microtasks_link: One-to-many relationship with
ProjectsUsersMicrotask
. Links this association to specific microtasks.
π§ ProjectsUsersMicrotasks Model
The ProjectsUsersMicrotask
model links a specific user-project relationship (ProjectsUser
) with individual microtasks, allowing for detailed assignment tracking.
π Attributes:
π id (
Integer
): Unique identifier for the microtask assignment.π projects_users_id (
ForeignKey
): Links to theProjectsUser
entry.π microtasks_id (
ForeignKey
): Links to the specificMicrotask
.
π Relationships:
π§ microtasks: The microtask being assigned.
π€π§© projects_users: The user-project relationship that this microtask is assigned to.
Last updated