Authorization working

This commit is contained in:
2025-02-22 16:54:37 -05:00
parent 96419f0077
commit 02c615ee0c
47 changed files with 1894 additions and 0 deletions

View 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;