Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "classes" ADD COLUMN "courseId" TEXT;
2 changes: 1 addition & 1 deletion server/prisma/migrations/migration_lock.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (e.g., Git)
provider = "postgresql"
provider = "postgresql"
11 changes: 6 additions & 5 deletions server/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ model Event {

// Event Time
// TODO: revert this change after custom event dates are added
day Int
start Int
end Int
subtype String
day Int
start Int
end Int
subtype String
// day String
// start DateTime
// end DateTime

timetable Timetable? @relation(fields: [timetableId], references: [id], onDelete: Cascade) // TODO: was there a reason this wasn't cascaded on delete?
timetableId String?
groupIds String[] // Added to link an event to a group
Expand All @@ -71,6 +71,7 @@ model Class {
term String
year String
courseCode String
courseId String?
Timetable Timetable? @relation(fields: [timetableId], references: [id], onDelete: Cascade)
timetableId String?
activity String
Expand Down