mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
feat: add weekly summary notifications
Adds Sunday weekly recap push notifications summarizing couple match activity. Includes edge function, migration, notification preference toggle, and mobile notification handling. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e380c0a31c
commit
25db338861
5 files changed
+244
-2
No files matched your search
@@ -0,0 +1,16 @@
|
||||
-- Add weekly_summary_enabled to notification_preferences
|
||||
ALTER TABLE notification_preferences
|
||||
ADD COLUMN IF NOT EXISTS weekly_summary_enabled BOOLEAN DEFAULT true;
|
||||
|
||||
-- Schedule weekly summary notification: Sunday 10:00 UTC
|
||||
SELECT cron.schedule(
|
||||
'send-weekly-summary',
|
||||
'0 10 * * 0',
|
||||
$$
|
||||
SELECT net.http_post(
|
||||
url := 'https://ckjcrkjpmhqhiucifukx.supabase.co/functions/v1/send-weekly-summary',
|
||||
headers := jsonb_build_object('Content-Type', 'application/json'),
|
||||
body := '{}'::jsonb
|
||||
)
|
||||
$$
|
||||
);
|
||||
Reference in new issue
Block a user