What is the best practice to design one business model into a multiple tables using one to one relationship?
Lets say I Have the following diagram;
Both tables are representing ONE business object/entity which is the Person. For table PersonNationalId
is it a best practice is to
- Add addition column
PersonNationalId
to be the primary key - Remove the unique key and mark the
PersonId
as the Primary key? (I recommend this solution) - It's good like that with the unique key and we don't have to add any primary keys?
I'm not considering breaking the business to two/multiple tables because I update each table from a different screen in my system and I want to track the changes (through CreatedBy
and CreatedDate
columns in each table)
What is the best practice from the previous choices/solutions? if you any additional solution I will be happy to know it.
Thanks in advance