Solarion
Honorary Master
- Joined
- Nov 14, 2012
- Messages
- 28,059
- Reaction score
- 17,821
I have a question for you guys with more experience in what I am trying to build. The Identity tables handles all of your roles, users, logins and what not. You have the option of customizing these tables so for instance AspNetUsers you may have additional FirstName, LastName, Address etc
Say now you want to add an Employee table. I think you can already see where I'm going with this. An Employee table may already have many of those details. Is it a good idea to have an Employee table in addition to the AspnetUser table? Could I simply just use the latter table to hold any details around an Employee and ditch Employee table and perhaps rather have a UserType table?
A User may not always be an employee. He could be a guest or an external accountant. But an Employee will always have to be a User in order to gain access.
Battling to wrap my head around this design.
Say now you want to add an Employee table. I think you can already see where I'm going with this. An Employee table may already have many of those details. Is it a good idea to have an Employee table in addition to the AspnetUser table? Could I simply just use the latter table to hold any details around an Employee and ditch Employee table and perhaps rather have a UserType table?
A User may not always be an employee. He could be a guest or an external accountant. But an Employee will always have to be a User in order to gain access.
Battling to wrap my head around this design.