fix: migration
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
-- chant_reminder, …); the Settings UI groups kinds into coarser categories
|
||||
-- but storage stays kind-level so backfilled opt-outs map exactly.
|
||||
CREATE TABLE IF NOT EXISTS notification_prefs (
|
||||
user_id BIGINT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||||
kind TEXT NOT NULL,
|
||||
user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||||
kind TEXT NOT NULL,
|
||||
channel TEXT NOT NULL CHECK (channel IN ('in_app', 'email', 'push')),
|
||||
enabled BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
|
||||
Reference in New Issue
Block a user