large mock refector hopefully done + no errors?
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 1h13m59s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 1h13m59s
This commit is contained in:
@@ -49,6 +49,7 @@ CREATE TABLE IF NOT EXISTS public.users (
|
||||
refresh_token TEXT,
|
||||
failed_login_attempts INTEGER DEFAULT 0,
|
||||
last_failed_login TIMESTAMPTZ,
|
||||
last_login_at TIMESTAMPTZ,
|
||||
last_login_ip TEXT,
|
||||
created_at TIMESTAMPTZ DEFAULT now() NOT NULL,
|
||||
updated_at TIMESTAMPTZ DEFAULT now() NOT NULL
|
||||
@@ -57,6 +58,7 @@ COMMENT ON TABLE public.users IS 'Stores user authentication information.';
|
||||
COMMENT ON COLUMN public.users.refresh_token IS 'Stores the long-lived refresh token for re-authentication.';
|
||||
COMMENT ON COLUMN public.users.failed_login_attempts IS 'Tracks the number of consecutive failed login attempts.';
|
||||
COMMENT ON COLUMN public.users.last_failed_login IS 'Timestamp of the last failed login attempt.';
|
||||
COMMENT ON COLUMN public.users.last_login_at IS 'Timestamp of the last successful login.';
|
||||
COMMENT ON COLUMN public.users.last_login_ip IS 'The IP address from which the user last successfully logged in.';
|
||||
-- Add an index on the refresh_token for faster lookups when refreshing tokens.
|
||||
CREATE INDEX IF NOT EXISTS idx_users_refresh_token ON public.users(refresh_token);
|
||||
|
||||
Reference in New Issue
Block a user