veza/veza-backend-api/migrations/134_weekly_digest_prefs.sql
senke 7cd01e4216
Some checks failed
Backend API CI / test-unit (push) Failing after 0s
Backend API CI / test-integration (push) Failing after 0s
Frontend CI / test (push) Failing after 0s
Storybook Audit / Build & audit Storybook (push) Failing after 0s
feat(v0.10.5): Notifications complètes — F551-F555
F555: Backend pagination/filter GetNotifications (type, page, limit) + frontend pagination
F551: WebSocket real-time — backend inject chat hub, send on CreateNotification; frontend useChat invalidates
F553: Quiet hours — migration 132, CreateNotification skips push/WS, UI in PushPreferencesSection
F554: Notification grouping — migration 133, group_key/actor_count for like/comment, UI format
F552: Weekly digest — migration 134, NotificationDigestWorker, email template, prefs UI

Acceptance: no gamification notif; defaults unchanged; individual toggles for marketing
2026-03-10 10:02:21 +01:00

7 lines
368 B
SQL

-- Migration 134: Weekly digest opt-in (v0.10.5 F552)
-- Users can receive a weekly email digest of unread notifications
ALTER TABLE notification_preferences
ADD COLUMN IF NOT EXISTS weekly_digest_enabled BOOLEAN NOT NULL DEFAULT false;
COMMENT ON COLUMN notification_preferences.weekly_digest_enabled IS 'If true, send weekly email digest of unread notifications';