Skip to content

How to implement overlapping joined table inheritance? #8320

Discussion options

You must be logged in to vote

Hi.

I may be wrong here, but I don't think you can do this without a 3rd model StudentEmployee here.
How you are trying to model things does not seem correct to me, since by definition a person is either a student or an employee.

Personally in this case I think I would model the data differently to have a Person table and separate Student and Employment tables that hold information of about a person

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@benlau6
Comment options

@zzzeek
Comment options

@benlau6
Comment options

@zzzeek
Comment options

@benlau6
Comment options

Answer selected by benlau6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants