Audit Trail ERD
Last modified by Robert Schaub on 2025/12/22 14:32
Audit Trail ERD
This diagram shows how changes to all entities are tracked through the EDITS table.
The [mermaid] macro is a standalone macro and it cannot be used inline. Click on this message for details.
Audit Trail ERD - Shows how all changes are tracked. Every significant change to Claims, Evidence, Sources, or Scenarios creates an Edit record. Edits track who made the change (user_id, NULL for AKEL), what changed (before/after in JSONB), when (created_at), and why (reason). The is_automated flag distinguishes human edits from AKEL updates. This is the "hot" audit trail stored in PostgreSQL. See Data Model for two-tier edit history architecture (hot/cold storage).
See also:
- Core Data Model ERD - Primary business entities
- Data Model - Complete data model documentation