From 8b92d5915cbd7e7d7c1c94d010042f36a50df78d Mon Sep 17 00:00:00 2001 From: Alyssia Tan Date: Sat, 18 Nov 2023 16:15:26 -0800 Subject: [PATCH] AT - created the published schedule table --- server/schema/published_schedule.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 server/schema/published_schedule.sql diff --git a/server/schema/published_schedule.sql b/server/schema/published_schedule.sql new file mode 100644 index 0000000..db496d5 --- /dev/null +++ b/server/schema/published_schedule.sql @@ -0,0 +1,16 @@ +DROP TABLE [IF EXISTS] published_schedule; + +CREATE TYPE year AS ENUM ('Junior','Senior'); + +CREATE TABLE [IF NOT EXISTS] published_schedule ( + id varchar(10) NOT NULL, + event_id varchar(10) NOT NULL, + confirmed boolean NOT NULL, + confirmed_on DATETIME NOT NULL, + start_time DATETIME NOT NULL, + end_time DATETIME NOT NULL, + cohort ENUM NOT NULL, + notes varchar(100), + FOREIGN KEY (event_id) + REFERENCES catalog (id) +); \ No newline at end of file