cms.c2sgmbh/docs/anleitungen
Martin Porwoll 58b48555d7 feat: implement data retention system
- Add automatic cleanup for email-logs (90 days default)
- Add automatic cleanup for audit-logs (90 days default)
- Add consent-logs archival based on expiresAt (3 years GDPR)
- Add media orphan cleanup for unreferenced files (30 days min age)
- Add BullMQ-based retention worker with daily scheduler
- Add /api/retention endpoint for manual triggers (super-admin only)
- Update queue worker to include retention worker
- Add comprehensive documentation to CLAUDE.md and TODO.md

New files:
- src/lib/retention/retention-config.ts
- src/lib/retention/cleanup-service.ts
- src/lib/retention/index.ts
- src/lib/queue/jobs/retention-job.ts
- src/lib/queue/workers/retention-worker.ts
- src/app/(payload)/api/retention/route.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 23:17:31 +00:00
..
ANALYTICS_IMPLEMENTATION_GUIDE.md feat: add super admin role and update documentation 2025-12-05 14:26:08 +00:00
API_ANLEITUNG.md feat: add super admin role and update documentation 2025-12-05 14:26:08 +00:00
BILDOPTIMIERUNG.md test: add E2E and integration tests with documentation 2025-12-01 08:19:52 +00:00
framework-monitoring.md chore: code cleanup, TypeScript fixes, and dependency updates 2025-12-15 09:02:58 +00:00
FRONTEND.md docs: separate frontend tasks and add documentation summary 2025-12-11 15:02:04 +00:00
SECURITY.md docs: consolidate and update documentation 2025-12-09 09:25:00 +00:00
SEO_ERWEITERUNG.md test: add E2E and integration tests with documentation 2025-12-01 08:19:52 +00:00
TODO.md feat: implement data retention system 2025-12-15 23:17:31 +00:00
UNIVERSAL_FEATURES.md test: add E2E and integration tests with documentation 2025-12-01 08:19:52 +00:00