SQL_023_HISTORY_TABLES_APPEND_ONLY: History-Tabellen sind append-only
Severity: must. Bereich: sql-db-migrations.
Regel
History-Tabellen DUERFEN durch normale Anwendungsflows nicht aktualisiert oder geloescht werden. Korrekturen muessen als neue Revision, technische Redaction oder dokumentierter Datenschutzvorgang nachvollziehbar bleiben.
Reflection-Check
check:
reflect:
fields:
- retention_policy
- pii_strategy
object: history_tableEvidence
- POSTGRES_CONSTRAINTS, PostgreSQL Documentation: Constraints
- LOCAL_SECURITY