@@ -0,0 +1,16 @@
|
||||
-- Migration: Add telegram_integrations table
|
||||
-- This script creates a table to store Telegram bot tokens and chat IDs
|
||||
|
||||
-- Create telegram_integrations table
|
||||
CREATE TABLE IF NOT EXISTS telegram_integrations (
|
||||
id SERIAL PRIMARY KEY,
|
||||
chat_id VARCHAR(255),
|
||||
bot_token VARCHAR(255)
|
||||
);
|
||||
|
||||
-- Add comment for documentation
|
||||
COMMENT ON TABLE telegram_integrations IS 'Stores Telegram bot tokens and chat IDs for integrations';
|
||||
COMMENT ON COLUMN telegram_integrations.id IS 'Auto-increment primary key';
|
||||
COMMENT ON COLUMN telegram_integrations.chat_id IS 'Telegram chat ID (nullable, set automatically after first message)';
|
||||
COMMENT ON COLUMN telegram_integrations.bot_token IS 'Telegram bot token (nullable, set by user)';
|
||||
|
||||
Reference in New Issue
Block a user