Home > Mobile >  Should i use 2 database tables or 1 table is enough?
Should i use 2 database tables or 1 table is enough?

Time:08-18

Im building a job application that will have 2 different user logins, it could be a company owner or a person who searches for a job, i built a sign up as a company owner interface and an employee sign up interface. The only difference between them is that the company owner will have a company name in the database, so should i build 2 tables for each type of user or stock both types on the same table, cause i wanna make only one log in interface for both of them

CodePudding user response:

use two collection one for users and other for userRoll. and while you login you have to provide in backend the role of user that is compny owner or person its a solution you need.

  • Related