From 839d2d3b6c161807a193f557d1fe5e72bd2464d2 Mon Sep 17 00:00:00 2001 From: Anthony+Kaitlin Date: Sat, 23 Nov 2024 12:47:24 -0800 Subject: [PATCH] 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