ezidam/crates/database/migrations/20230426153143_totp_login_requests.up.sql

11 lines
280 B
SQL

create table if not exists totp_login_requests
(
-- info
token TEXT not null primary key,
user TEXT not null references users (id),
-- timings
created_at TEXT not null default CURRENT_TIMESTAMP,
expires_at TEXT not null,
used_at TEXT
);