Detailed Collection Schemas

1. User

{
  "_id": "ObjectId",
  "name": "string",
  "email": "string (unique)",
  "password": "string (hashed)",
  "phoneNumber": "string",
  "address": "string",
  "role": "string (user | instructor | admin)",
  "createdAt": "Date",
  "updatedAt": "Date"
}

2. Course

{
  "_id": "ObjectId",
  "title": "string",
  "description": "string",
  "instructorId": "ObjectId (User)",
  "category": "string",
  "price": "number",
  "createdAt": "Date",
  "updatedAt": "Date"
}

3. Lesson

4. Modules

5. Transaction

6. Certificate

7. Review

Last updated