ylaifa / reliev

1 stars 1 forks source link

Create Reservation model #39

Open OnyJ opened 4 years ago

OnyJ commented 4 years ago

WARNING : This table can be named as "JoinTableMasseurCompany" in other issues. If you find it this way, replace the name by "Reservation".

Why ? A company will be able to interact with a masseur, asking him one or several reservations among the multiple proposed slots.

How Create the model

Migration editing :

Model editing :

Testing the model in console (we need the other following models to be created before these tests : Company, CompanyProfile, Masseur, MasseurProfile). Testing link to CompanyProfile and MasseurProfile models :

Must Have A working reservation model able to save the two correspondents, a specific slot and set a value to accepted or denied.

Reading List