Merge branch 'feature/ten-08-tenant-loeschung-unter-retention-vorbehalt-gobd' into feature/qa-05-abnahme-compliance-pruefung-core

# Conflicts:
#	internal/tenant/registry.go
This commit is contained in:
sysops
2026-08-29 17:04:55 +02:00
8 changed files with 264 additions and 10 deletions
@@ -0,0 +1,2 @@
ALTER TABLE tenants DROP COLUMN retention_block_reason;
ALTER TABLE tenants DROP COLUMN retention_checked_at;
@@ -0,0 +1,6 @@
-- TEN-08: Haelt fest, warum eine faellige Tenant-Loeschung zurueckgehalten wurde
-- (GoBD-Aufbewahrungspflicht oder Legal Hold aus Archive RET-03), damit Admins
-- den Grund einsehen koennen (Akzeptanzkriterium 2), ohne dass die Registry
-- selbst modulspezifische Retention-Logik kennen muss — nur den Grund-Text.
ALTER TABLE tenants ADD COLUMN retention_block_reason TEXT;
ALTER TABLE tenants ADD COLUMN retention_checked_at TIMESTAMPTZ;