This repository contains backend database models and schema designs created using Node.js and MongoDB (Mongoose).
The purpose of this project is to practice real-world backend architecture and schema relationships for different types of applications.
Folder: /todo
Models:
user.model.js→ Stores user information.todo.model.js→ Stores main todo tasks.subTodo.model.js→ Stores subtasks related to a todo.
Features:
- User-based todo management
- One-to-many relationship (Todo → SubTodo)
- Proper schema structure with references
Models:
user.model.jsproduct.model.jscategory.model.jsorder.model.js
Features:
- Product and category relationship
- Order linked with user
- Real-world ecommerce schema structure
- Reference-based data modeling
Models:
doctor.model.jspatient.model.jshospital.model.jsmedicalRecord.model.js
Features:
- Doctor and patient relationship
- Hospital record management
- Medical history tracking
- Structured healthcare database schema
- Node.js
- Express.js
- MongoDB
- Mongoose
This project is created for:
- Backend practice
- Understanding schema relationships
- Learning one-to-one, one-to-many references
- Building real-world scalable database structure
Muhammad Osama
MERN Stack Developer (Learning Phase)
- Add controllers and routes
- Add validation & authentication
- Implement APIs
- Connect with frontend