SQL_018_HISTORY_EXCLUSIONS_ARE_EXPLICIT: History-Ausnahmen sind explizit begruendet
Severity: must. Bereich: sql-db-migrations.
Regel
Tabellen ohne Row-History MUESSEN klassifiziert sein: append-only, audit/log, abgeleitet/regenerierbar, temporaer/TTL, Secret/Token, externe Quelle ist authoritative oder rechtlich nicht dauerhaft speicherbar. Ohne Begruendung gilt die Tabelle als history-pflichtig.
Reflection-Check
check:
reflect:
fields:
- history_required
- history_exclusion_reason
- table_kind
object: mutable_tableEvidence
- LOCAL_SECURITY
- LOCAL_PHP_SPECS, Lokale PHP YAML Library