Prepare verified laboratory 7 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:32:06 +03:00
parent 20afc2c790
commit eb1b5c7b84
677 changed files with 208256 additions and 64 deletions
@@ -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;