movahedan / whoiscoming

The purpose of this application is to help individuals plan their work schedule by allowing them to enter their desired hours to be in the office every workday.
2 stars 1 forks source link

Design and develop the database schema #2

Open danjelahoxha opened 1 year ago

danjelahoxha commented 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')