I am developing a website with user authentication. I need to implement settings for each users. I found a solution. But I need more better solution.
My solution is given below.
I have 2 tables, UserTable and SettingsTable. I created a new table UserSettings for relating the UserTable and SettingsTable as shown below
But there is several type of users Like super_admin, managers, supervisors and normal_users. They are in a top down manner.
There are privileges.
- Super_admin can give privileges to others
- Managers can give privileges to supervisors and noraml_users
- supervisors can give privileges to normal_users.
Please help me to find a better solution.