Skip to content

[JITERA] Implement ToDo Model for Task Management

chi le requested to merge feat/todo-model-1753763056 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

  • File Created: A new file ToDo.js has been created in the /models directory.
  • Mongoose Schema: The schema includes the following fields:
    • title: A required string that represents the title of the ToDo item.
    • description: An optional string that provides additional details about the ToDo item.
    • dueDate: An optional date field that indicates when the ToDo item is due.
    • completed: A boolean field that defaults to false, indicating whether the ToDo item has been completed.

This model will be used to interact with the MongoDB database for creating, reading, updating, and deleting ToDo items.

Merge request reports