Audit Trail ERD

Version 1.4 by Robert Schaub on 2025/12/22 14:16
Warning: For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

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: