fix: add missing columns to tenant schema template (runbook.updated_at, contact.role)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-22 00:18:46 -08:00
parent e0ef15df1e
commit e98cf26587
1 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,8 @@ CREATE TABLE runbooks (
max_risk_level SMALLINT NOT NULL DEFAULT 1,
auto_approve BOOLEAN NOT NULL DEFAULT FALSE,
is_active BOOLEAN NOT NULL DEFAULT TRUE,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
-- Standing Orders
@ -230,6 +231,7 @@ CREATE TABLE contacts (
telegram_id VARCHAR(100),
wechat_id VARCHAR(100),
preferred_channel VARCHAR(20) NOT NULL DEFAULT 'websocket',
role VARCHAR(50),
is_active BOOLEAN NOT NULL DEFAULT TRUE
);