From 839d2d3b6c161807a193f557d1fe5e72bd2464d2 Mon Sep 17 00:00:00 2001 From: Anthony+Kaitlin Date: Sat, 23 Nov 2024 12:47:24 -0800 Subject: [PATCH 1/3] Implemented client database --- server/db/schema/clients.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 server/db/schema/clients.sql diff --git a/server/db/schema/clients.sql b/server/db/schema/clients.sql new file mode 100644 index 0000000..ebf242c --- /dev/null +++ b/server/db/schema/clients.sql @@ -0,0 +1,9 @@ +CREATE TYPE client_role AS ENUM ('payee', 'instructor'); + +CREATE TABLE clients ( + id INT PRIMARY KEY UNIQUE NOT NULL DEFAULT nextval('client_id_seq'), + event_id INT REFERENCES events(id) NOT NULL, + role client_role NOT NULL, + name VARCHAR(256) NOT NULL, + email VARCHAR(256) NOT NULL +); \ No newline at end of file From 7a00138722051e7159c1a02e0b700e2862e91304 Mon Sep 17 00:00:00 2001 From: Anthony+Kaitlin Date: Sat, 23 Nov 2024 12:50:29 -0800 Subject: [PATCH 2/3] Revert "Implemented client database" This reverts commit 839d2d3b6c161807a193f557d1fe5e72bd2464d2. --- server/db/schema/clients.sql | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 server/db/schema/clients.sql diff --git a/server/db/schema/clients.sql b/server/db/schema/clients.sql deleted file mode 100644 index ebf242c..0000000 --- a/server/db/schema/clients.sql +++ /dev/null @@ -1,9 +0,0 @@ -CREATE TYPE client_role AS ENUM ('payee', 'instructor'); - -CREATE TABLE clients ( - id INT PRIMARY KEY UNIQUE NOT NULL DEFAULT nextval('client_id_seq'), - event_id INT REFERENCES events(id) NOT NULL, - role client_role NOT NULL, - name VARCHAR(256) NOT NULL, - email VARCHAR(256) NOT NULL -); \ No newline at end of file From 12ba80f8df360588592ed80974ad7c1e70c85160 Mon Sep 17 00:00:00 2001 From: Anthony+Kaitlin Date: Sat, 23 Nov 2024 12:51:58 -0800 Subject: [PATCH 3/3] Implemented client database --- server/db/schema/clients.sql | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 server/db/schema/clients.sql diff --git a/server/db/schema/clients.sql b/server/db/schema/clients.sql new file mode 100644 index 0000000..e69de29