Building out notification update channels
Some checks are pending
check / check (push) Waiting to run
Some checks are pending
check / check (push) Waiting to run
This commit is contained in:
2
backend-go/infra/migrations/003_add_slack_webhook.sql
Normal file
2
backend-go/infra/migrations/003_add_slack_webhook.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE user_notification_configs
|
||||
ADD COLUMN IF NOT EXISTS slack_webhook_url TEXT;
|
||||
@@ -54,8 +54,9 @@ CREATE TABLE user_notification_configs (
|
||||
user_id VARCHAR(128) PRIMARY KEY,
|
||||
discord_webhook_url TEXT, -- Discord webhook URL (nullable)
|
||||
telegram_chat_id VARCHAR(128), -- Telegram chat ID (nullable)
|
||||
telegram_bot_token VARCHAR(255), -- Telegram bot token (nullable, future use)
|
||||
telegram_bot_token VARCHAR(255), -- Telegram bot token (nullable)
|
||||
email VARCHAR(255), -- Email for notifications (nullable)
|
||||
slack_webhook_url TEXT, -- Slack incoming webhook URL (nullable)
|
||||
notification_enabled BOOLEAN DEFAULT TRUE, -- Master on/off switch
|
||||
created_at TIMESTAMP DEFAULT NOW(),
|
||||
updated_at TIMESTAMP DEFAULT NOW()
|
||||
|
||||
Reference in New Issue
Block a user