How do you deal with polymorphism in a database?

后端 未结 13 1171
小蘑菇
小蘑菇 2020-11-28 02:11

Example

I have Person, SpecialPerson, and User. Person and SpecialPerson are just people - they don\

13条回答
  •  情深已故
    2020-11-28 02:47

    yes, I would also consider a TypeID along with a PersonType table if it is possible there will be more types. However, if there is only 3 that shouldn't be nec.

提交回复
热议问题