From 91bfbd1abeb37ced029afba966a7134d92838baa Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 21 Aug 2024 12:29:23 +0200 Subject: Add users Query must be something like '{users { id, email, password, isAdmin }}' --- schema/init.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 schema/init.sql (limited to 'schema/init.sql') diff --git a/schema/init.sql b/schema/init.sql new file mode 100644 index 0000000..38d1e80 --- /dev/null +++ b/schema/init.sql @@ -0,0 +1,7 @@ +CREATE TABLE users( + id SERIAL NOT NULL, + email text NOT NULL, + password text NOT NULL, + is_admin boolean default false, + PRIMARY KEY (id) +); -- cgit v1.2.3-18-g5258