Files
story/migrations/000071_login_captcha_policy.up.sql
T
Codex Local bf1233d5df
ci / verify (push) Canceled after 0s
feat: expand companion platform, device controls, and memoir workflows
Add customer and operator login, BLE provisioning, device fleet controls, call memory, memoir generation, and refreshed family and maintenance portals. Include API contracts, migrations, firmware sources, tests, assets, and deployment documentation.
2026-10-08 10:06:44 +08:00

9 lines
434 B
SQL

CREATE TABLE login_captcha_policy (
singleton boolean PRIMARY KEY DEFAULT true CHECK (singleton),
saas_mode text NOT NULL DEFAULT 'image' CHECK (saas_mode IN ('image','tencent')),
mini_mode text NOT NULL DEFAULT 'image' CHECK (mini_mode IN ('image','tencent')),
version bigint NOT NULL DEFAULT 1 CHECK (version > 0),
updated_at timestamptz NOT NULL DEFAULT now()
);
INSERT INTO login_captcha_policy(singleton) VALUES(true);