forked from mtusi2026/mtusi2026lab7
8 lines
244 B
SQL
8 lines
244 B
SQL
CREATE TABLE login_budget (
|
|
scope text NOT NULL,
|
|
window_start bigint NOT NULL,
|
|
attempts integer NOT NULL CHECK (attempts > 0),
|
|
PRIMARY KEY (scope, window_start)
|
|
);
|
|
CREATE INDEX login_budget_window ON login_budget(window_start);
|