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