I have these 4 tables, one is called register and has columns:
ID
Name
Location
Then, I have these 2 kind of users - Normal User and Shelter User. As both are related to the register table because both of them need that information, these 2 type of users have their respective fk to the register table.
Now, I have this table called post, and this post can be made for either a Normal User, or a Shelter User. The thing here is, that for this table to be related to both users is going to need both fk, I mean, a fk from Normal User, and a fk from Shelter User, and these fk have to be nullable yo cover the 2 cases.
So, yeah, I'd like to avoid having 2 nullable fk, and I thought that instead of having both fk, I better use a fk from register, but then how could I reach any of the 2 users from the table post.
Maybe I'm misunderstanding something about SQL, or normalizartion, but if you can help me I'd be very grateful.