Files
probably-rendering-one-more…/apps/waterfall-wiki/db/007_dynamic_code_auth.sql
T
codex-bot ad398db781
waterfall-wiki CI and deployment / verify-and-deploy (push) Has been cancelled
studio CI and deployment / verify-and-deploy (push) Successful in 9m15s
Restore PROMPT branding, rename waterfall-wiki, and add system tag workflows
2026-10-27 00:35:59 +08:00

10 lines
320 B
PL/PgSQL

BEGIN;
CREATE TABLE IF NOT EXISTS auth_login_state (
id text PRIMARY KEY,
attempts integer NOT NULL DEFAULT 0,
window_start timestamptz NOT NULL DEFAULT clock_timestamp(),
last_step bigint NOT NULL DEFAULT -1
);
INSERT INTO schema_migrations(version) VALUES ('007_dynamic_code_auth') ON CONFLICT DO NOTHING;
COMMIT;