How to distinguish admin users from normal users?
Almost every platform that has been created they have the need of users with more than one "type".
One which are actual users with normal privileges. The USERS.
And the ones who have special privileges. The ADMINS.
Admin users have special privileges that only they should have and not anyone else. Otherwise, if one user can manipulate data of another without there consent then the platform is a mess.
I found it always challenging to design a single database with solves the need of both users.
- Should I have a
type
of the user stored in my database? - Should the first user who has registered on the platform would be the "admin user"?
I want to come to a collaborative conclusion about what is a better approach and why?