we are creating separate audit tables for those entity tables which need auditing using triggers on PostgreSQL 8.4.
<Family> <Contact> <Family_Contact> <Address>
We have some join tables. Eg : Family_Contact is a join table.
Family has 1 or more than 1 contacts. Each contact has an Address. So, we have the following Table structure.
For auditing a Family, we need the following Tables which are duplicates of the above tables.
<Family_audit> <Contact_audit> <Family_Contact_audit> <Address_audit>
Family_Contact_audit is an AUDIT Join Table.
QUESTION : Does it make sense to make a separate AUDIT Table for the Join Tables ? Are there alternatives ? We will be using the Audit Tables for reporting purposes.
Thank you,