I have a users table in my database and I want to give various users a range of different permissions.
I don’t want to have another table for each ‘function’ then a sperate table linking each privilege and each function to each user (which seems the most straightforward approach but also means having 3 tables at a minimum to allow users access).
Also, there aren’t set levels, so, for example, I can’t just range a user ‘Moderator’, ‘Supervisor’, ‘Admin’ and ‘Super Admin’ level access via a single integer in the users table.
To explain that further, let’s say I have Function A through G. User 1, might have access to functions A, B and G while user 2 has B, D and E, user 3 has A, E and G and so forth.
At some point, I may also get Function H, I and J.
Is there another way to approach this?