Sign in
Log inSign up

How to distinguish admin users from normal users?

MOHAMMAD AZIZ's photo
MOHAMMAD AZIZ
·Feb 23, 2019

Almost every platform that has been created they have the need of users with more than one "type".

  1. One which are actual users with normal privileges. The USERS.

  2. 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?