lots of changes leave me alone its better now
This commit is contained in:
@@ -14,12 +14,23 @@ CREATE TABLE IF NOT EXISTS notifications (
|
||||
discord_enabled BOOLEAN DEFAULT FALSE,
|
||||
ntfy_topic VARCHAR(255),
|
||||
ntfy_enabled BOOLEAN DEFAULT FALSE,
|
||||
web_push_enabled BOOLEAN DEFAULT FALSE,
|
||||
last_message_sent TIMESTAMP,
|
||||
current_notification_status VARCHAR(50) DEFAULT 'inactive',
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
-- Push subscriptions for web push notifications
|
||||
CREATE TABLE IF NOT EXISTS push_subscriptions (
|
||||
id UUID PRIMARY KEY,
|
||||
user_uuid UUID REFERENCES users(id) ON DELETE CASCADE,
|
||||
endpoint TEXT NOT NULL,
|
||||
p256dh TEXT NOT NULL,
|
||||
auth TEXT NOT NULL,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
-- ── Routines ────────────────────────────────────────────────
|
||||
|
||||
CREATE TABLE IF NOT EXISTS routines (
|
||||
|
||||
Reference in New Issue
Block a user