cms.c2sgmbh/src/app
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
..
(frontend) fix: resolve all TypeScript errors in production code 2025-12-15 09:08:16 +00:00
(payload) feat: implement data retention system 2025-12-15 23:17:31 +00:00
my-route chore: code cleanup, TypeScript fixes, and dependency updates 2025-12-15 09:02:58 +00:00
robots.ts feat: add i18n, SEO, and frontend infrastructure 2025-12-01 08:19:35 +00:00
sitemap.ts feat: add i18n, SEO, and frontend infrastructure 2025-12-01 08:19:35 +00:00