I am developing an API with Express. I am using the Sequelize ORM with a Postgresql database.
In my app, Students and administrators will be able to authenticate via login.
Currently, students and administrators use the same Model called Users. However this does not look good, because the administrators only use 5 fields in the database, while the students use 11 fields. The Users model has too many fields. Is this approach correct?
How can I authenticate two different models? For example: A model called Student and another called Admin.