In my app I have a driver users and a customer users(rider), I am trying to create a profile for each one of them. and in my driver model I have the following:
and in the customer model:
If I want to create a separate profile model for each role (customer/driver), I would include in each model what I want to save foreach user. But I don't know how would I create an action for that modelto generate all the information.?
Further, I want to have at some point the available rides to the driver so he can see which customer has requested him/her. Also, what rides the customer has requested in the customer profile.
I have a rides table in my database that has a relationship to the users/drivers table.it includes: