Skip to content

[JITERA] Implement ToDo Model for Task Management

chi le requested to merge feat/todo-model-1752573398 into main

Created by: chi-jitera

Overview

This pull request introduces a new Mongoose model for managing ToDo items in our application. The model defines the schema for ToDo items, which includes fields for title, description, due date, and completion status.

Changes Explained

  • ToDo Model Creation: A new file ToDo.js has been created in the /models directory.
  • Schema Definition:
    • title: A required string field that represents the title of the ToDo item.
    • description: An optional string field for additional details about the ToDo item.
    • dueDate: An optional date field to specify when the task is due.
    • completed: A boolean field that defaults to false, indicating whether the task has been completed.

This model will be used to interact with the MongoDB database for CRUD operations related to ToDo items.

Merge request reports