Files
mtusi2026lab7/migrations/005_auth_limits.sql
T
Xabenskie 4eca49fe3d
Grade 3 secure application acceptance / secure (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
[+] lab7
2026-11-30 09:09:57 +03:00

6 lines
211 B
SQL

CREATE TABLE auth_rate_limits (
bucket text NOT NULL, window_id bigint NOT NULL, count integer NOT NULL,
PRIMARY KEY(bucket,window_id)
);
CREATE INDEX auth_rate_limit_window_id ON auth_rate_limits(window_id);