Open danjelahoxha opened 1 year ago
Proposed schema design:
User
id (unique identifier, auto-generated by MongoDB) name (string) email (string, unique) favoritePeople (array of strings, optional)
Schedule
id (unique identifier, auto-generated by MongoDB) userId (reference to User) workday (reference to Workday)
Workday
id (unique identifier, auto-generated by MongoDB) date (Date) hours (string, e.g., '9:00 AM - 5:00 PM')
Proposed schema design:
User
id (unique identifier, auto-generated by MongoDB) name (string) email (string, unique) favoritePeople (array of strings, optional)
Schedule
id (unique identifier, auto-generated by MongoDB) userId (reference to User) workday (reference to Workday)
Workday
id (unique identifier, auto-generated by MongoDB) date (Date) hours (string, e.g., '9:00 AM - 5:00 PM')