diff --git a/server/schema/users.sql b/server/schema/users.sql new file mode 100644 index 0000000..2aa8112 --- /dev/null +++ b/server/schema/users.sql @@ -0,0 +1,8 @@ +CREATE TYPE account_type as ENUM ('superadmin', 'admin'); + +CREATE TABLE IF NOT EXISTS users ( + id VARCHAR ( 256 ) PRIMARY KEY, + email VARCHAR ( 50 ) NOT NULL, + type account_type NOT NULL, + approved BOOLEAN NOT NULL +); \ No newline at end of file