How to login at frontend and backend in different db tables?

In yii2 advanced template there is already user registration with mysql. When I register it inserts in users table new record. Wherever I am in /frontend or /backend, I can login via users.

I want to create new table admins for only admins. But how to tell yii2 to check admins instead users in /backend? Or how to move Users login controller from /common folder (or some others) to /frontend and /backend folders to separate it?

I’ll update users’ table adding an “is_admin” flag to support also admin user, instead creating a separated table.

that’s solution. By the way, what is the aim of ‘status’ raw in ‘users’ table? Default is 10

status is to set active/disabled user