Audit Trail (v2.6.33 + Target)
Version 1.1 by Robert Schaub on 2026/01/20 21:40
Current Implementation
erDiagram
JOBS ||--o{ JOB_EVENTS : logs
JOBS {
int JobId PK
string Status
datetime CreatedAt
datetime UpdatedAt
json ResultJson
text ReportMarkdown
}
JOB_EVENTS {
int Id PK
int JobId FK
datetime TsUtc
string Level
string Message
}
Current audit capabilities:
- Job creation and completion timestamps
- Job execution events (start, progress, errors)
- No entity-level versioning
- No user attribution (no user system)
Target Architecture (Future)
erDiagram
USERS ||--o{ EDITS : makes
CLAIMS ||--o{ EDITS : tracks
EVIDENCE ||--o{ EDITS : tracks
SOURCES ||--o{ EDITS : tracks
KEY_FACTORS ||--o{ EDITS : tracks
USERS {
uuid id PK
text name
text email
}
CLAIMS {
uuid id PK
text text
}
EVIDENCE {
uuid id PK
uuid claim_id FK
}
SOURCES {
uuid id PK
text name
}
KEY_FACTORS {
uuid id PK
uuid claim_id FK
text question
}
EDITS {
uuid id PK
text entity_type
uuid entity_id
uuid user_id FK
text change_type
boolean is_automated
jsonb changes
text reason
timestamp created_at
}
Target features:
- Full entity versioning (Claims, Evidence, Sources, KeyFactors)
- User attribution for all changes
- AKEL vs human edit distinction
- Hot/cold storage tiering (PostgreSQL + S3)
See Data Model for complete target architecture.