mercredi 26 juin 2019

Model relationship between manager and his post

I'm building an app for nightout bookings so I need to create manager user who can create his own post of his facility and that post must have book button, when users click it, it takes them to create booking page. When they create it and submit they send it to that manager and he can accept it or decline it. How can I make relationship between manager and posts and users? Does Post model has to belong to manager, does User has many bookings and Booking belongs to Manager?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire