This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE login_rate_limits (
|
||||
username_key bytea PRIMARY KEY,
|
||||
window_started_at timestamptz NOT NULL,
|
||||
attempts integer NOT NULL CHECK (attempts > 0)
|
||||
);
|
||||
|
||||
CREATE INDEX login_rate_limits_window_idx ON login_rate_limits (window_started_at);
|
||||
Reference in New Issue
Block a user