fix(api): delete exam auth tokens with user (#58284)

This commit is contained in:
Oliver Eyton-Williams
2025-01-24 15:20:31 +01:00
committed by GitHub
parent 3c236df7f6
commit 5deea90fa3
4 changed files with 33 additions and 16 deletions
+1 -1
View File
@@ -382,7 +382,7 @@ model ExamEnvironmentAuthorizationToken {
userId String @unique @db.ObjectId
// Relations
user user @relation(fields: [userId], references: [id])
user user @relation(fields: [userId], references: [id], onDelete: Cascade)
}
model sessions {