Skip to content

Commit

Permalink
Merge pull request #18 from ctc-uci/10-create-scheduled-classes-table
Browse files Browse the repository at this point in the history
Created scheduled classes table
  • Loading branch information
aagrawal05 authored Nov 24, 2024
2 parents 3cacda7 + bc868b8 commit b154966
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/db/schema/scheduled_classes.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS scheduled_classes CASCADE;

CREATE TABLE scheduled_classes (
class_id INTEGER NOT NULL,
date DATE NOT NULL,
start_time TIME NOT NULL,
end_time TIME NOT NULL,
PRIMARY KEY (class_id, date),
FOREIGN KEY (class_id) REFERENCES classes(id)
);

0 comments on commit b154966

Please sign in to comment.