feat: setup goose and database module

This commit is contained in:
2026-05-13 10:29:34 +02:00
parent 8ba3926a11
commit 2167955bb2
18 changed files with 350 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
-- Note: watch_list_entry columns now in 001_init.sql
-- Add notification preferences
CREATE TABLE IF NOT EXISTS notification_preference (
id TEXT PRIMARY KEY,
user_id TEXT NOT NULL REFERENCES user(id) ON DELETE CASCADE,
notify_new_episodes BOOLEAN NOT NULL DEFAULT TRUE,
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE(user_id)
);