2

I build booking appointments barbershop app in react native with node js mongoose. in short, each user can make an appointment to barber. each barber has some types of hair cuts types.

user - Appointment (many to many) -> should I need to add appointment array in user?

Appointment - users (many to many) -> ref: user_id.

Barber- Appointment (many to many)-> should I need to add appointment array in user?

Appointment - Barber(many to many) ref: barber_id

Barber- HairCut Types(many to many): ref: types array

that's my demo design enter image description here

I would like to know if the db design looks right? do I need to save appointments array in user and barber also?

Manspof
  • 598
  • 26
  • 81
  • 173

0 Answers0