cms.c2sgmbh/src
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
..
app feat: implement data retention system 2025-12-15 23:17:31 +00:00
blocks feat: add tenant-specific collections and BeforeAfterBlock 2025-12-14 01:40:17 +00:00
collections chore: code cleanup, TypeScript fixes, and dependency updates 2025-12-15 09:02:58 +00:00
components/admin feat: BullMQ queue system for email and PDF processing 2025-12-09 22:59:17 +00:00
globals feat: add content blocks and global settings 2025-12-01 08:19:15 +00:00
hooks chore: code cleanup, TypeScript fixes, and dependency updates 2025-12-15 09:02:58 +00:00
jobs chore: add jobs, backups, and migration history 2025-12-01 08:24:26 +00:00
lib feat: implement data retention system 2025-12-15 23:17:31 +00:00
migrations feat: add tenant-specific collections and BeforeAfterBlock 2025-12-14 01:40:17 +00:00
migrations_backup chore: add jobs, backups, and migration history 2025-12-01 08:24:26 +00:00
instrumentation.ts feat: add i18n, SEO, and frontend infrastructure 2025-12-01 08:19:35 +00:00
middleware.ts feat: add Products and ProductCategories collections with CI/CD pipeline 2025-12-12 21:36:26 +00:00
payload-generated-schema.ts feat: add priority collections and advanced content blocks 2025-12-14 00:58:30 +00:00
payload-types.ts chore: code cleanup, TypeScript fixes, and dependency updates 2025-12-15 09:02:58 +00:00
payload.config.ts fix: resolve all TypeScript errors in production code 2025-12-15 09:08:16 +00:00