TheNullest / planning-and-scheduling-app

اپلیکیشنی برای برنامه ریزی و ثبت زمان و مقدار پیشرفت : کارها، وظایف و رویدادها
0 stars 0 forks source link

Implementation : DomainLayer.MainTaskEntity #10

Closed TheNullest closed 1 month ago

TheNullest commented 1 month ago

Description: The MainTaskEntity represents the core data structure for a task within the application. It defines the properties and attributes that a task will have, serving as the blueprint for task data stored in the database. This entity is crucial for ensuring that task data is consistently structured across the application.

Inherited Attributes from BaseEntity:

  1. id: A unique identifier for the task.
  2. createdAt: The timestamp when the task was created.
  3. createdBy: The identifier of the user who created the task.
  4. description: A detailed description of the task.

Specific to MainTaskEntity:

  1. title: A brief description of the task.
  2. priority: The importance or urgency of the task (e.g., critical, high, medium, low, optional).
  3. status: The current state of the task (e.g., not started = 1, in progress = 2, completed = 3).
  4. dueDate: The deadline for completing the task.
  5. updatedAt: The time when the task was last modified.
  6. taskCategoriesId: The identifier of the category to which the task belongs.
  7. colorCode: A color code associated with the task for visual representation.
  8. iconCode: An icon code representing the task's type or nature.
  9. fixedTagsId: Identifiers of fixed tags associated with the task.
  10. tagsId: Identifiers of user-defined tags associated with the task.
  11. superMainTaskId: The identifier of the parent task, if applicable.
  12. dueTime: The specific time when the task is due.
  13. repetitionInterval: The frequency of task repetition (e.g., daily, weekly, monthly).
  14. repititionOnWeekDays: The days of the week on which the task repeats.
  15. totalSpentTime: The total amount of time spent on the task.

Key behaviors:

Hive Compatibility:

To ensure compatibility with Hive, the MainTaskEntity class should adhere to Hive's requirements: