Simple role field
Hand-rolledAdd a "role" column (such as admin, user) to the user table, and have code check this column to decide what is allowed.
Best forSmall projects with only two or three identities, such as "admin / regular user".
Avoid whenRoles will multiply, or you need to frequently adjust who can do what.
Fast to implement, and anyone reading the code can follow it
No separate permission tables, and no matching tools to maintain
When there are very few roles, this approach is enough
A person can have only one role, so anything richer falls short
Checks are scattered, so changing a rule means searching everywhere
You cannot clearly say what a role can do, which makes auditing hard