Rechtstexte und B2C-Vertragsabläufe absichern

This commit is contained in:
2026-08-22 14:31:56 +02:00
parent d320a4fd7a
commit a31a235422
58 changed files with 2502 additions and 316 deletions
+1
View File
@@ -18,6 +18,7 @@ function app_audit_log(
?int $subjectId,
array $metadata = []
): void {
$pdo->exec('DELETE FROM audit_log WHERE created_at < DATE_SUB(NOW(), INTERVAL 180 DAY)');
$stmt = $pdo->prepare(
'INSERT INTO audit_log (tenant_id, actor_user_id, action, subject_type, subject_id, metadata_json, ip)
VALUES (?, ?, ?, ?, ?, ?, ?)'