This seems like a very common requirement but wondering on the best way of implementing it. I have a number of entities in my system e.g. employer / supplier / buyer / seller e.t.c. and each entity needs a common history table with things like
DocumentId ( links to the entity )
DocumentType
HistoryText
HistoryDateTime
Should I use a single table to refer to all entities or create one per entity? If I have one per entity I can enforce referential integrity well however it seems quite wasteful to have many tables just for history when this is so common across each table
How would I model this table in LLBLGEN, presumably a history collection property would not be automatically created because no foreign keys can exist, should you create a property manually and pass in the appropriate document type and identifier when building the collection to return?
Thoughts please