fix(api): delete user's exam attempts with account (#57079)

This commit is contained in:
Oliver Eyton-Williams
2024-11-11 17:04:10 +01:00
committed by GitHub
parent 85fc9c3ac9
commit 88e2ff6eab
4 changed files with 40 additions and 4 deletions
+1 -1
View File
@@ -277,7 +277,7 @@ model EnvExamAttempt {
needsRetake Boolean
// Relations
user user @relation(fields: [userId], references: [id])
user user @relation(fields: [userId], references: [id], onDelete: Cascade)
exam EnvExam @relation(fields: [examId], references: [id])
generatedExam EnvGeneratedExam @relation(fields: [generatedExamId], references: [id])
}