📌 microtasks

The Microtask model represents a smaller, more granular unit of work that is part of a larger Task. Microtasks help divide responsibilities into manageable parts.

🧩 Microtask Model

📄 Attributes:

  • 🆔 id (Integer): Unique identifier for the microtask (Primary Key).

  • 🔗 task_id (ForeignKey): Reference to the parent task this microtask belongs to.

  • 📝 name (String): The name of the microtask.

  • 📄 description (Text): Detailed explanation of the microtask.

  • 📊 percentage_complete (Float): Completion progress of the microtask (0.0 to 100.0).

  • 🕒 date_created (DateTime): Timestamp when the microtask was created.

  • 🚦 status (enum type): Current status ("undone" , "under_review" , "approved")

  • 📅 due_date (DateTime): Optional deadline for completing the microtask.

🔗 Relationships:

  • task: Belongs to a Task.

  • 👥 users_link: Linked users via ProjectsUsersMicrotask.


📎 MicrotasksFile Model

The MicrotasksFile model links files to microtasks, allowing additional resources or documentation to be attached.

📄 Attributes:

  • 🆔 id (Integer): Unique identifier for the file relation.

  • 🧩 microtasks_id (ForeignKey): The related microtask.

  • 📂 files_id (ForeignKey): The attached file.

🔗 Relationships:

  • 📂 files: The attached File.

  • 🧩 microtasks: The associated Microtask.


💬 MicrotaskComment Model

The MicrotaskComment model allows users to comment on specific microtasks to facilitate communication and feedback.

📄 Attributes:

  • 🆔 id (Integer): Unique identifier for the comment.

  • 👤 user_id (ForeignKey): ID of the user who posted the comment.

  • 🧩 microtask_id (ForeignKey): ID of the microtask being commented on.

  • 🕒 time_posted (DateTime): Timestamp of when the comment was posted.

  • ✏️ content (Text): The text of the comment.

🔗 Relationships:

  • 👤 user: The User who wrote the comment.

  • 🧩 microtask: The Microtask this comment belongs to.


📎💬 MicrotaskCommentsFile Model

The MicrotaskCommentsFile model allows files to be attached to individual comments on microtasks.

📄 Attributes:

  • 🆔 id (Integer): Unique identifier for the comment-file relation.

  • 💬 microtask_comments_id (ForeignKey): The comment associated with the file.

  • 📂 files_id (ForeignKey): The attached file.

🔗 Relationships:

  • 📂 files: The File being linked.

  • 💬 microtask_comments: The MicrotaskComment this file supports.

Last updated