sql - How can I make selection in inheritance case? -


i have database table "person", person employee or admin. have person table, information id, password, , name. person log in admin or employee, each has own interface, both inherit information person. how can represent in database design, , how can know if selected person admin or employee?

you have new column on person table called usertype example. 1 admin , 2 employee.

you have totally seperate table called users. table have userid, personid , usertype.

finally use asp.net authentication\authorisation. user role management built in. asp.net identity


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -