With the versioning concept of having a extra history/revision table for each table, where you want to keep track of the changes, I am wondering how to handle the relationships (foreign keys)?
Example:
Table: T_Shelf
ID, Name
Table: T_Inventory
ID, Item, FK_T_Shelf_ID
Table: T_Shelf_Rev
ID, ID_T_Shelf, Name, Date_Modified
Table: T_Inventory_Rev
ID, ID_T_Inventory, Item, (FK_T_Shelf_ID or FK_T_Shelf_Rev_ID), Date_Modified
Do I link the foreign key to the corresponding history table? Or does the approach does not work at all with relation databases?