mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(api): delete user's exam attempts with account (#57079)
This commit is contained in:
committed by
GitHub
parent
85fc9c3ac9
commit
88e2ff6eab
@@ -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])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user