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:
parent
e0ef15df1e
commit
e98cf26587
|
|
@ -80,7 +80,8 @@ CREATE TABLE runbooks (
|
||||||
max_risk_level SMALLINT NOT NULL DEFAULT 1,
|
max_risk_level SMALLINT NOT NULL DEFAULT 1,
|
||||||
auto_approve BOOLEAN NOT NULL DEFAULT FALSE,
|
auto_approve BOOLEAN NOT NULL DEFAULT FALSE,
|
||||||
is_active BOOLEAN NOT NULL DEFAULT TRUE,
|
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
|
-- Standing Orders
|
||||||
|
|
@ -230,6 +231,7 @@ CREATE TABLE contacts (
|
||||||
telegram_id VARCHAR(100),
|
telegram_id VARCHAR(100),
|
||||||
wechat_id VARCHAR(100),
|
wechat_id VARCHAR(100),
|
||||||
preferred_channel VARCHAR(20) NOT NULL DEFAULT 'websocket',
|
preferred_channel VARCHAR(20) NOT NULL DEFAULT 'websocket',
|
||||||
|
role VARCHAR(50),
|
||||||
is_active BOOLEAN NOT NULL DEFAULT TRUE
|
is_active BOOLEAN NOT NULL DEFAULT TRUE
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue