cms.c2sgmbh/scripts
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
..
backup feat: add automated PostgreSQL backup system with S3 offsite storage 2025-12-11 14:10:39 +00:00
check-framework-updates.sh chore: code cleanup, TypeScript fixes, and dependency updates 2025-12-15 09:02:58 +00:00
db-direct.sh feat: add Products and ProductCategories collections with CI/CD pipeline 2025-12-12 21:36:26 +00:00
deploy-staging.sh feat: add staging deployment workflow and script 2025-12-14 12:37:25 +00:00
detect-secrets.sh feat: add Products and ProductCategories collections with CI/CD pipeline 2025-12-12 21:36:26 +00:00
run-queue-worker.ts feat: implement data retention system 2025-12-15 23:17:31 +00:00
seed-content.ts test: add E2E and integration tests with documentation 2025-12-01 08:19:52 +00:00
seed-pages-only.ts test: add E2E and integration tests with documentation 2025-12-01 08:19:52 +00:00
setup-swap-proxmox.sh docs: add staging deployment guide and swap setup script 2025-12-14 15:19:59 +00:00