Role based authentication


#1

I have 3 types of users:

  • Admins
  • Manager
  • Employees

Each user type will have a different user interface and access different types of data. Their only similarity is they are using one mobile(hybrid) application but they access totally different things. I am using ionic 2 framework to build the application.

The database design is

users:

  1. uid_0 name: “salman” type: “Admin”
  2. uid_1 name: “Raja” type: “Manager”
  3. uid_2 name: “Dyson” type: “Employee”

can anyone help me with this.

thanks in advance