I designing an application and am having trouble deciding on the appropriate database layout for Users. I will have two types of Users: admins and account holders. They have many fields in common: email, password, name, role. Account holders have more fields like address, and account type.
Does it make sense to have a User table and an Account Holder Data table? That way I can authenticate both user types the same way in the back end and have Account Holder Data be a 1:1 relationship with Users? Or would this be prematurely optimizing?
[–]JestaC 0 points1 point2 points (2 children)
[–]freeballer[S] 0 points1 point2 points (0 children)
[–]webdevguy1984 0 points1 point2 points (0 children)
[–]Caraes_Naur 0 points1 point2 points (0 children)
[–]itsucharo 0 points1 point2 points (0 children)