@gbl-uzh/platform 0.4.16 → 0.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schema.prisma +9 -9
- package/package.json +1 -1
package/dist/schema.prisma
CHANGED
|
@@ -98,7 +98,7 @@ model Game {
|
|
|
98
98
|
|
|
99
99
|
activePeriodIx Int @default(-1)
|
|
100
100
|
activePeriodId Int?
|
|
101
|
-
activePeriod Period? @relation("activePeriod", fields: [activePeriodId], references: [id], onUpdate: NoAction, onDelete:
|
|
101
|
+
activePeriod Period? @relation("activePeriod", fields: [activePeriodId], references: [id], onUpdate: NoAction, onDelete: Cascade)
|
|
102
102
|
|
|
103
103
|
segments PeriodSegment[]
|
|
104
104
|
|
|
@@ -123,7 +123,7 @@ model Period {
|
|
|
123
123
|
|
|
124
124
|
activeSegmentIx Int @default(-1)
|
|
125
125
|
activeSegmentId Int?
|
|
126
|
-
activeSegment PeriodSegment? @relation("activeSegment", fields: [activeSegmentId], references: [id], onUpdate: NoAction, onDelete:
|
|
126
|
+
activeSegment PeriodSegment? @relation("activeSegment", fields: [activeSegmentId], references: [id], onUpdate: NoAction, onDelete: Cascade)
|
|
127
127
|
|
|
128
128
|
decisions PlayerDecision[]
|
|
129
129
|
results PlayerResult[]
|
|
@@ -135,7 +135,7 @@ model Period {
|
|
|
135
135
|
nextPeriod Period? @relation("periodSequence", fields: [nextPeriodId], references: [id], onUpdate: NoAction, onDelete: NoAction)
|
|
136
136
|
|
|
137
137
|
gameId Int
|
|
138
|
-
game Game @relation(fields: [gameId], references: [id])
|
|
138
|
+
game Game @relation(fields: [gameId], references: [id], onDelete: Cascade)
|
|
139
139
|
|
|
140
140
|
Game Game[] @relation("activePeriod")
|
|
141
141
|
|
|
@@ -161,14 +161,14 @@ model PeriodSegment {
|
|
|
161
161
|
learningElements LearningElement[]
|
|
162
162
|
storyElements StoryElement[]
|
|
163
163
|
|
|
164
|
-
period Period @relation(fields: [periodId], references: [id])
|
|
164
|
+
period Period @relation(fields: [periodId], references: [id], onDelete: Cascade)
|
|
165
165
|
periodId Int
|
|
166
166
|
periodIx Int
|
|
167
167
|
|
|
168
168
|
Period Period[] @relation("activeSegment")
|
|
169
169
|
|
|
170
170
|
gameId Int
|
|
171
|
-
game Game @relation(fields: [gameId], references: [id])
|
|
171
|
+
game Game @relation(fields: [gameId], references: [id], onDelete: Cascade)
|
|
172
172
|
|
|
173
173
|
previousSegment PeriodSegment[] @relation("segmentSequence")
|
|
174
174
|
nextSegmentId Int?
|
|
@@ -214,7 +214,7 @@ model Player {
|
|
|
214
214
|
visitedStoryElementIds String[]
|
|
215
215
|
|
|
216
216
|
gameId Int
|
|
217
|
-
game Game @relation(fields: [gameId], references: [id])
|
|
217
|
+
game Game @relation(fields: [gameId], references: [id], onDelete: Cascade)
|
|
218
218
|
|
|
219
219
|
createdAt DateTime @default(now())
|
|
220
220
|
updatedAt DateTime @updatedAt
|
|
@@ -258,14 +258,14 @@ model PlayerResult {
|
|
|
258
258
|
facts Json
|
|
259
259
|
|
|
260
260
|
playerId String @db.Uuid
|
|
261
|
-
player Player @relation(fields: [playerId], references: [id])
|
|
261
|
+
player Player @relation(fields: [playerId], references: [id], onDelete: Cascade)
|
|
262
262
|
|
|
263
263
|
gameId Int
|
|
264
|
-
game Game @relation(fields: [gameId], references: [id])
|
|
264
|
+
game Game @relation(fields: [gameId], references: [id], onDelete: Cascade)
|
|
265
265
|
|
|
266
266
|
periodId Int
|
|
267
267
|
periodIx Int
|
|
268
|
-
period Period @relation(fields: [periodId], references: [id])
|
|
268
|
+
period Period @relation(fields: [periodId], references: [id], onDelete: Cascade)
|
|
269
269
|
|
|
270
270
|
segmentId Int?
|
|
271
271
|
segmentIx Int?
|