From 0e83312d14fc650209932e1a23b303a59aca02ff Mon Sep 17 00:00:00 2001 From: Cheryl Chen Date: Sat, 18 Nov 2023 22:43:23 -0800 Subject: [PATCH] added create table users statement --- server/schema/users.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 server/schema/users.sql 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