camper/deploy/login_attempt.sql

17 lines
410 B
PL/PgSQL

-- Deploy camper:login_attempt to pg
-- requires: schema_auth
begin;
set search_path to auth, public;
create table login_attempt (
attempt_id bigint generated by default as identity primary key,
user_name text not null,
ip_address inet, -- nullable just in case we login from outside the web application
success boolean not null,
attempted_at timestamptz not null default current_timestamp
);
commit;