patch curriculum..
This commit is contained in:
@@ -162,7 +162,6 @@ model Course {
|
||||
instructorCurriculumSettings InstructorCurriculumSetting[]
|
||||
instructorCurriculumWeekOverrides InstructorCurriculumWeekOverride[]
|
||||
environmentProfiles CourseEnvironmentProfile[]
|
||||
visualizationSelections CourseWeekVisualizationPlatform[]
|
||||
maps CourseMap[]
|
||||
weekMaps CourseWeekMap[]
|
||||
savedMaps StudentSavedMap[]
|
||||
@@ -195,39 +194,6 @@ model CourseEnvironmentProfile {
|
||||
@@map("course_environment_profiles")
|
||||
}
|
||||
|
||||
model VisualizationPlatform {
|
||||
key String @id @map("platform_key")
|
||||
type String @unique
|
||||
displayName String @map("display_name")
|
||||
description String?
|
||||
defaultConfig Json @map("default_config")
|
||||
sortOrder Int @default(0) @map("sort_order")
|
||||
enabled Boolean @default(true)
|
||||
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3)
|
||||
updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamptz(3)
|
||||
courseWeekSelections CourseWeekVisualizationPlatform[]
|
||||
|
||||
@@index([enabled, sortOrder])
|
||||
@@map("visualization_platforms")
|
||||
}
|
||||
|
||||
model CourseWeekVisualizationPlatform {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
courseId String @map("course_id") @db.Uuid
|
||||
week Int
|
||||
platformKey String @map("platform_key")
|
||||
enabled Boolean @default(true)
|
||||
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3)
|
||||
updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamptz(3)
|
||||
course Course @relation(fields: [courseId], references: [id], onDelete: Cascade)
|
||||
platform VisualizationPlatform @relation(fields: [platformKey], references: [key], onDelete: Cascade)
|
||||
|
||||
@@unique([courseId, week, platformKey])
|
||||
@@index([courseId, week])
|
||||
@@index([platformKey])
|
||||
@@map("course_week_visualization_platforms")
|
||||
}
|
||||
|
||||
model CourseMap {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
courseId String @map("course_id") @db.Uuid
|
||||
|
||||
Reference in New Issue
Block a user