Quantcast
Channel: MySQL relationships. User roles - Stack Overflow
Viewing all articles
Browse latest Browse all 2

MySQL relationships. User roles

$
0
0

I have 3 type of user roles: Patient, Doctor, Pharmasist

And Tables:

Users

id | name | surname | username | password | etc..


Roles

id | name


  1. Patient
  2. Doctor
  3. Pharmasist

users_roles

id | user_id | role_id


And I want to implement tables such as: doctor_info, patient_info, pharmasist_info.

For example:

doctor_info

id | experience | qualification | user_id

What relationship should I use to tie users with doctor_info, patient_info, pharmasist_info and how to implement it correctly?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images