forked from mtusi2026/mtusi2026lab7
Prepare verified laboratory 7 implementation and evidence
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE login_limits(bucket smallint PRIMARY KEY CHECK(bucket>=0 AND bucket<4096), started_at timestamptz NOT NULL DEFAULT 'epoch', attempts smallint NOT NULL DEFAULT 0 CHECK(attempts>=0 AND attempts<=10));
|
||||
INSERT INTO login_limits(bucket) SELECT generate_series(0,4095)::smallint;
|
||||
-- +goose Down
|
||||
DROP TABLE login_limits;
|
||||
Reference in New Issue
Block a user