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,10 @@
CREATE TYPE raid_builder.account_permission_type AS ENUM ( 'ADMIN', 'USER' );
CREATE TABLE IF NOT EXISTS raid_builder.account_permission(
account_permission_id uuid PRIMARY KEY,
account_id uuid REFERENCES raid_builder.account(account_id) NOT NULL,
account_permission_type raid_builder.account_permission_type NOT NULL
);
GRANT ALL ON TABLE raid_builder.account_permission TO raid_builder;