Let's say I have a database in which one entity (i.e. table) inherits from another one, for example:
Table 1
, namedperson
:(name,surname)
Table 2
, namedcar_owner
In this case, car_owner
inherits from person
, i.e. a car-owner
IS
a person
.
I'm now in a point where I have to decide whether I should:
- create the table
car_owner
, even though it has no extra columns except the ones inperson
, although in the future this might change => doing this results incar_owner
= table with columns(id,person_id)
, whereperson_id
isFK
toperson
or
- leave only the
person
table for now and only do (1)when/if
extra information regarding acar-owner
will appear => note that if I do thisFK
s to acar-owner
from other tables would actually beFK
s to theperson
table
The tables I'm dealing with have different names and semantics and the choice between (1) and (2) is not clear, because the need for extra columns in car_owner
might never pop-up.
Conceptually, (1) seems to be the right choice, but I guess what I'm asking is if there are any serious issues I might run into later if I instead resort to (2)