authorization_codes: crate, database, insert one
This commit is contained in:
parent
0b4aeb89cb
commit
471e2fc740
11 changed files with 159 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
drop table if exists authorization_codes;
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
create table if not exists authorization_codes
|
||||
(
|
||||
-- info
|
||||
code TEXT not null primary key,
|
||||
app TEXT not null references apps (id),
|
||||
user TEXT not null references users (id),
|
||||
|
||||
-- timings
|
||||
created_at TEXT not null default CURRENT_TIMESTAMP,
|
||||
expires_at TEXT not null,
|
||||
used_at TEXT
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue