π 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 theUser
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 theTemplate
model.π
files
: Relationship to theFile
model.
Last updated