yii2 advanced templet login

how to create login process in yii2 with different frontend user and ,backend user with login

any one can help me to differentiate frontend and backend login , and how can i insert extra field in users table. when i insert one field it’s generate error