@gbl-uzh/platform 0.4.17 → 0.4.18

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.
@@ -189,7 +189,7 @@ model Player {
189
189
 
190
190
  experience Int @default(0)
191
191
  experienceToNext Int @default(100)
192
- level PlayerLevel @relation(fields: [levelIx], references: [index])
192
+ level PlayerLevel @relation(fields: [levelIx], references: [index], onDelete: Cascade)
193
193
  levelIx Int
194
194
  tutorialCompleted Boolean @default(false)
195
195
 
@@ -227,18 +227,18 @@ model PlayerAction {
227
227
  facts Json
228
228
 
229
229
  gameId Int
230
- game Game @relation(fields: [gameId], references: [id])
230
+ game Game @relation(fields: [gameId], references: [id], onDelete: Cascade)
231
231
 
232
232
  playerId String @db.Uuid
233
- player Player @relation(fields: [playerId], references: [id])
233
+ player Player @relation(fields: [playerId], references: [id], onDelete: Cascade)
234
234
 
235
235
  periodId Int
236
236
  periodIx Int
237
- period Period @relation(fields: [periodId], references: [id])
237
+ period Period @relation(fields: [periodId], references: [id], onDelete: Cascade)
238
238
 
239
239
  segmentId Int?
240
240
  segmentIx Int?
241
- segment PeriodSegment? @relation(fields: [segmentId], references: [id])
241
+ segment PeriodSegment? @relation(fields: [segmentId], references: [id], onDelete: Cascade)
242
242
 
243
243
  createdAt DateTime @default(now())
244
244
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gbl-uzh/platform",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "license": "LGPL-3.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",