-- Deploy camper:login_attempt to pg
-- requires: schema_auth

begin;

set search_path to auth, public;

create table login_attempt (
	attempt_id bigserial 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;
