How to implement roles in my web application

1

Good I am new here I have a doubt with an authentication system that requires roles, I have a users table related to the other types of users but I do not know how to implement it if a table for each type of user (driver, passenger) as shows the image or two tables users and roles, but as I differentiate the relationship that exists between for example a passenger who makes a career request, if everything would be a single table with driver I am implementing this model in yii.

I appreciate who can guide me a little.

    
asked by pompilio Torres 10.06.2018 в 01:42
source

0 answers