I am making a site in which we have four types of users and admin have all privileges.
1) Admin
2) Client
3) Co-Admin
4) Developer
Can u suggest how do I make database in order to decide different privillage as per user types.
I am making a site in which we have four types of users and admin have all privileges.
1) Admin
2) Client
3) Co-Admin
4) Developer
Can u suggest how do I make database in order to decide different privillage as per user types.
Have a table of roles (id, role_name) and a many-many bridge table (user_id, role_id).
Then use the standard techniques for implementing a many-to-many relationship between them.
Yeah i hope this instructions could help you ,correct me if 'm wrong
1.Maintain a table User Roles for example {1 Admin , 2 Client,3 Developer},
2.Maintain a table Accessibility for example {1 Read,2 Write}
3.Maintain a individual table Role_Access for example {User_id1,Access_id}