Files
story/migrations/000065_wechat_mini_login.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
281 B
SQL

CREATE TABLE customer_wechat_identity (
app_id text NOT NULL,
open_id text NOT NULL,
phone_digest char(64) NOT NULL REFERENCES customer_phone_credential(phone_digest),
created_at timestamptz NOT NULL DEFAULT now(),
PRIMARY KEY(app_id,open_id),
UNIQUE(app_id,phone_digest)
);