cms.c2sgmbh/src/migrations
Martin Porwoll cb035d209d feat(dashboard): Phase 3 - Scheduled Reports & Real-time Updates
Phase 3.0a - Scheduled Reports:
- ReportSchedules Collection: Zeitplan-Verwaltung für automatische Reports
  - Frequenz: täglich, wöchentlich, monatlich
  - Formate: PDF, Excel (CSV), HTML E-Mail
  - Report-Typen: Übersicht, Sentiment, Response-Metriken, Content-Performance
  - Multiple Empfänger per E-Mail
  - Zeitzone-Support

- ReportGeneratorService: Report-Generierung
  - Datensammlung aus community-interactions
  - HTML-Template für PDF und E-Mail
  - CSV-Export für Excel-kompatible Daten

- Cron-Endpoint: /api/cron/send-reports (stündlich)
  - Prüft fällige Reports
  - Automatischer Versand per E-Mail
  - Status-Tracking und Fehlerbehandlung

Phase 3.0b - Real-time Updates:
- SSE Stream Endpoint: /api/community/stream
  - Server-Sent Events für Live-Updates
  - 5-Sekunden Polling-Intervall
  - Heartbeat für Verbindungserhalt
  - Automatische Reconnection

- useRealtimeUpdates Hook:
  - React Hook für SSE-Konsum
  - Verbindungsstatus-Management
  - Update-Counter für Badges
  - Channel-Filterung

Vercel Cron aktualisiert:
- send-reports: stündlich (0 * * * *)

Migrationen:
- 20260116_120000_add_report_schedules

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 22:10:30 +00:00
..
20251130_213501_initial_with_localization.json chore: update migrations for localization schema 2025-12-01 08:20:06 +00:00
20251130_213501_initial_with_localization.ts chore: update migrations for localization schema 2025-12-01 08:20:06 +00:00
20251202_081830_add_is_super_admin_to_users.json feat: add super admin role and update documentation 2025-12-05 14:26:08 +00:00
20251202_081830_add_is_super_admin_to_users.ts feat: add super admin role and update documentation 2025-12-05 14:26:08 +00:00
20251206_071552_portfolio_collections.json feat: add Portfolio and PortfolioCategories collections 2025-12-06 07:19:19 +00:00
20251206_071552_portfolio_collections.ts feat: add Portfolio and PortfolioCategories collections 2025-12-06 07:19:19 +00:00
20251206_134750_tenant_email_config.json feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
20251206_134750_tenant_email_config.ts feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
20251206_141403_email_logs_collection.json feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
20251206_141403_email_logs_collection.ts feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
20251207_205727_audit_logs_collection.json feat: implement monitoring & alerting system 2025-12-07 20:58:20 +00:00
20251207_205727_audit_logs_collection.ts feat: implement monitoring & alerting system 2025-12-07 20:58:20 +00:00
20251210_052757_add_faqs_collection.json feat: add FAQ collection and block 2025-12-10 05:34:41 +00:00
20251210_052757_add_faqs_collection.ts feat: add FAQ collection and block 2025-12-10 05:34:41 +00:00
20251210_071506_add_team_collection.json feat: add Team collection and block 2025-12-10 07:15:59 +00:00
20251210_071506_add_team_collection.ts feat: add Team collection and block 2025-12-10 07:15:59 +00:00
20251210_073811_add_services_collections.json feat: add Services collection and block 2025-12-10 07:39:03 +00:00
20251210_073811_add_services_collections.ts feat: add Services collection and block 2025-12-10 07:39:03 +00:00
20251210_090000_enhance_form_submissions.ts feat: enhance FormSubmissions with workflow and tracking 2025-12-10 09:13:06 +00:00
20251212_211506_add_products_collections.json feat: add Products and ProductCategories collections with CI/CD pipeline 2025-12-12 21:36:26 +00:00
20251212_211506_add_products_collections.ts feat: add Products and ProductCategories collections with CI/CD pipeline 2025-12-12 21:36:26 +00:00
20251213_100753_add_timelines_collection.json feat: add Timeline Collection for complex chronological events 2025-12-13 10:22:56 +00:00
20251213_100753_add_timelines_collection.ts feat: add Timeline Collection for complex chronological events 2025-12-13 10:22:56 +00:00
20251213_104523_add_workflows_and_timeline_process_fields.json feat: add Workflows Collection for complex process management 2025-12-13 10:47:56 +00:00
20251213_104523_add_workflows_and_timeline_process_fields.ts feat: add Workflows Collection for complex process management 2025-12-13 10:47:56 +00:00
20251213_145438_hero_slider_block.json feat: add HeroSliderBlock for multi-slide hero sections 2025-12-13 14:57:13 +00:00
20251213_145438_hero_slider_block.ts feat: add HeroSliderBlock for multi-slide hero sections 2025-12-13 14:57:13 +00:00
20251213_160000_testimonials_slider_v2.ts feat: enhance TestimonialsBlock with advanced slider options 2025-12-13 20:37:35 +00:00
20251213_210000_image_slider_block.ts feat: add ImageSliderBlock for image galleries and sliders 2025-12-13 20:58:32 +00:00
20251213_220000_blogging_collections.ts feat: add comprehensive blogging and team features 2025-12-13 21:49:13 +00:00
20251213_230000_team_extensions.ts feat: add comprehensive blogging and team features 2025-12-13 21:49:13 +00:00
20251214_000000_add_priority_collections.ts feat: add priority collections and advanced content blocks 2025-12-14 00:58:30 +00:00
20251214_010000_tenant_specific_collections.ts feat: add tenant-specific collections and BeforeAfterBlock 2025-12-14 01:40:17 +00:00
20251216_073000_add_video_collections.ts feat: add comprehensive video feature with collections, hooks, and tests 2025-12-16 10:48:33 +00:00
20251216_080000_posts_featured_video_processed_fields.ts feat: add comprehensive video feature with collections, hooks, and tests 2025-12-16 10:48:33 +00:00
20260108_160000_add_blogwoman_collections.ts fix(db): add migration for Favorites and Series collections 2026-01-08 15:47:40 +00:00
20260108_170000_site_settings_address_geo.ts fix(BlogWoman): resolve RSC error by adding system table columns 2026-01-09 01:21:45 +00:00
20260108_230500_add_pages_blocks_missing.ts fix(BlogWoman): resolve RSC error by adding system table columns 2026-01-09 01:21:45 +00:00
20260108_231200_add_video_embed_block_tables.ts fix(BlogWoman): resolve RSC error by adding system table columns 2026-01-09 01:21:45 +00:00
20260108_231400_add_pages_rels_missing_columns.ts fix(BlogWoman): resolve RSC error by adding system table columns 2026-01-09 01:21:45 +00:00
20260109_020000_add_blogwoman_collections.ts fix(BlogWoman): resolve RSC error by adding system table columns 2026-01-09 01:21:45 +00:00
20260109_023000_add_locations_hours_structured.ts fix(Locations): add missing locations_hours_structured table 2026-01-09 01:33:57 +00:00
20260109_030000_add_blogwoman_block_tables.ts feat(BlogWoman): add tenant seed scripts and block migrations 2026-01-09 11:13:32 +00:00
20260112_150000_add_youtube_operations_hub.ts feat(YouTube): add YouTube Operations Hub with YtSeries collection 2026-01-13 14:54:40 +00:00
20260112_220000_add_youtube_ops_v2.ts feat(YouTube): add YouTube Operations Hub with YtSeries collection 2026-01-13 14:54:40 +00:00
20260113_090000_add_tenant_to_blogwoman.ts feat(Community): add Community Inbox View, Rules Engine, and YouTube OAuth 2026-01-15 16:26:08 +00:00
20260113_140000_create_yt_series.ts feat(YouTube): add YouTube Operations Hub with YtSeries collection 2026-01-13 14:54:40 +00:00
20260113_180000_add_community_phase1.ts feat(Community): add Community Management Phase 1 2026-01-14 16:13:03 +00:00
20260114_200000_fix_community_role_enum.ts feat(Community): add Community Management Phase 1 2026-01-14 16:13:03 +00:00
20260116_100000_add_token_notification_fields.ts feat(community): Phase 2.5 - Token Refresh Service 2026-01-16 21:50:08 +00:00
20260116_120000_add_report_schedules.ts feat(dashboard): Phase 3 - Scheduled Reports & Real-time Updates 2026-01-16 22:10:30 +00:00
index.ts feat(dashboard): Phase 3 - Scheduled Reports & Real-time Updates 2026-01-16 22:10:30 +00:00