Skip to content

Commit

Permalink
added create table users statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheryl Chen authored and Cheryl Chen committed Nov 19, 2023
1 parent db6533e commit 0e83312
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server/schema/users.sql
Original file line number Diff line number Diff line change
@@ -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
);

0 comments on commit 0e83312

Please sign in to comment.