Skip to content

Commit

Permalink
Merge pull request #15 from ctc-uci/7-create-published-schedule-table
Browse files Browse the repository at this point in the history
7 - created the published schedule table
  • Loading branch information
ThatMegamind authored Nov 22, 2023
2 parents 34eff36 + 1155340 commit 80ac134
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions server/schema/published_schedule.sql
Original file line number Diff line number Diff line change
@@ -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 year NOT NULL,
notes varchar(100),
FOREIGN KEY (event_id)
REFERENCES catalog (id)
);

0 comments on commit 80ac134

Please sign in to comment.