feat: add web push and sadhna tracker

This commit is contained in:
Krispire Admin
2026-06-08 15:47:44 +05:30
parent e352948fb1
commit f598770b32
31 changed files with 2267 additions and 2 deletions
@@ -0,0 +1,14 @@
-- Sādhana reminder support.
--
-- timezone: the user's IANA zone (e.g. "Asia/Kolkata"), reported by the
-- browser, so reminders fire at their local clock time. Defaults to UTC
-- until the client reports a real zone.
--
-- sadhna_reminders_enabled: per-user opt-out for the daily reminders.
--
-- last_{chant,quote}_reminder_on: the UTC date a reminder of that kind was
-- last sent, so each kind goes out at most once per (UTC) day.
ALTER TABLE users ADD COLUMN IF NOT EXISTS timezone TEXT NOT NULL DEFAULT 'UTC';
ALTER TABLE users ADD COLUMN IF NOT EXISTS sadhna_reminders_enabled BOOLEAN NOT NULL DEFAULT TRUE;
ALTER TABLE users ADD COLUMN IF NOT EXISTS last_chant_reminder_on DATE;
ALTER TABLE users ADD COLUMN IF NOT EXISTS last_quote_reminder_on DATE;