We have the design principle that all domain related data tables are person centric where for each record the person_id and a date are captured at a minimum.
We deviate from this design principle in the COST table. The COST table refers to the id in the data tables. Even though a record in a data table is uniquely identified by the id in that table an additional person_id and ideally a date would be beneficial:
- Maybe an additional person_id will make the SQL statement in database
systems faster. - More importantly, a missing person_id prevents other
lightweight non-database systems to process all transaction tables
chunk wise.
The idea is to add the person_id and ideally the date of event to the COST table.
What do you think?
Klaus