Authorization working
This commit is contained in:
16
db/1.0.0/2. createAccount.sql
Normal file
16
db/1.0.0/2. createAccount.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
CREATE TYPE raid_builder.account_status AS ENUM ( 'ACTIVE', 'LOCKED', 'INACTIVE', 'DELETED', 'UNCONFIRMED');
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS raid_builder.account(
|
||||
account_id uuid PRIMARY KEY,
|
||||
username text UNIQUE NOT NULL,
|
||||
password text NOT NULL,
|
||||
login_date timestamptz,
|
||||
email text UNIQUE NOT NULL,
|
||||
force_reset boolean NOT NULL,
|
||||
refresh_token uuid UNIQUE,
|
||||
refresh_token_expiration timestamptz,
|
||||
account_status raid_builder.account_status NOT NULL
|
||||
);
|
||||
|
||||
GRANT ALL ON TABLE raid_builder.account TO raid_builder;
|
||||
Reference in New Issue
Block a user