generated from ctc-uci/npo-backend-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Published Schedule Routes updated to work with day id
- Loading branch information
Showing
2 changed files
with
108 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
DROP TABLE IF EXISTS published_schedule; | ||
CREATE TABLE IF NOT EXISTS published_schedule ( | ||
id serial NOT NULL, | ||
id serial NOT NULL PRIMARY KEY, | ||
event_id integer NOT NULL, | ||
day_id integer NOT NULL, | ||
confirmed boolean NOT NULL, | ||
confirmed_on date NOT NULL, | ||
start_time timestamp NOT NULL, | ||
end_time timestamp NOT NULL, | ||
cohort varchar[] NOT NULL, | ||
notes varchar(100), | ||
FOREIGN KEY (event_id) | ||
REFERENCES catalog (id) | ||
REFERENCES catalog (id), | ||
FOREIGN KEY (day_id) | ||
REFERENCES day (id) | ||
); |