[JITERA] Implement ToDo Model for Task Management
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.jshas been created in the/modelsdirectory. -
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 tofalse, 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.