stuff
This commit is contained in:
parent
14fd359ea8
commit
a4ef2b4a20
26 changed files with 331 additions and 78 deletions
|
@ -59,5 +59,16 @@ CREATE SCHEMA authn;
|
|||
|
||||
CREATE TABLE authn.user_identity
|
||||
(
|
||||
|
||||
);
|
||||
id uuid PRIMARY KEY,
|
||||
username text NOT NULL UNIQUE,
|
||||
|
||||
password_hash bytea,
|
||||
password_salt bytea
|
||||
);
|
||||
|
||||
CREATE TABLE authn.user_session
|
||||
(
|
||||
id varchar(256) PRIMARY KEY,
|
||||
user_id uuid NOT NULL REFERENCES authn.user_identity (id) ON DELETE CASCADE,
|
||||
expires timestamptz NOT NULL
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue