I want to create multiple roles login

Hey Great Community Members,

I’m looking to create multiple login roles using kotlin, and the Scenario is:

There will be two type of users Admin and the employess, there will be different dashboard or we can say layout for Employee and for Admin different,

How i can do it using which article of kotlin i can approach it ?


Database tables:

  • roles
  • accounts

If role == admin … else …