chore: move SQL schema to migrations/ directory
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1547da3279
commit
bc78dcdca9
1 changed files with 0 additions and 0 deletions
|
|
@ -1,17 +0,0 @@
|
|||
-- Telegram users table for Gateway
|
||||
-- Run this manually before starting the Gateway with Telegram enabled.
|
||||
|
||||
DROP TABLE IF EXISTS telegram_users;
|
||||
|
||||
CREATE TABLE telegram_users (
|
||||
telegram_user_id VARCHAR(64) PRIMARY KEY,
|
||||
hub_id VARCHAR(64) NOT NULL,
|
||||
agent_id VARCHAR(64) NOT NULL,
|
||||
device_id VARCHAR(64) NOT NULL UNIQUE,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
telegram_username VARCHAR(255),
|
||||
telegram_first_name VARCHAR(255),
|
||||
telegram_last_name VARCHAR(255),
|
||||
INDEX idx_device_id (device_id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
Loading…
Add table
Add a link
Reference in a new issue