Files
RustBox/migrations/sqlite/V009__notification_preferences.sql
T
Mateusz Gruszczyński 425ea7449b
RustBox CI / rustbox (push) Canceled after 0s
v0.1.0
2026-10-30 17:22:17 +01:00

10 lines
355 B
SQL

CREATE TABLE IF NOT EXISTS notification_preferences (
id INTEGER PRIMARY KEY DEFAULT 1 CHECK (id = 1),
enabled INTEGER NOT NULL DEFAULT 1,
sound INTEGER NOT NULL DEFAULT 0,
folders TEXT NOT NULL DEFAULT '["INBOX"]',
updated_at TEXT NOT NULL DEFAULT (datetime('now'))
);
INSERT OR IGNORE INTO notification_preferences (id) VALUES (1);