πŸ“œ templates

The Template model represents a reusable structure created by a user, which can be used to quickly set up tasks or microtasks.

🎨 Template

🧩 Fields:

  • πŸ†” id (Integer): Unique identifier for the template (primary key).

  • πŸ‘€ user_id (ForeignKey): ID of the user who created the template.

  • πŸ“ title (String): The title or name of the template.

  • πŸ“„ description (Text): A detailed explanation of what the template includes.

  • βš™οΈ is_microtask (Boolean): Specifies whether this is a microtask template (True) or a regular task template (False).

πŸ”— Relationships:

  • πŸ‘€ user: Relationship with the User model (the creator of the template).


πŸ“Ž TemplatesFile Model

The TemplatesFile model links files to templates, allowing you to attach relevant documents to your templates so they can be passed down into new tasks/microtasks

🧩 Fields:

  • πŸ†” id (Integer): Unique identifier for the record.

  • 🎨 templates_id (ForeignKey): ID of the associated template.

  • πŸ“‚ files_id (ForeignKey): ID of the attached file.

πŸ”— Relationships:

  • 🎨 templates: Relationship to the Template model.

  • πŸ“‚ files: Relationship to the File model.

Last updated