Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
Case deletion relations should be casscade
Browse files Browse the repository at this point in the history
  • Loading branch information
RadiatedExodus committed Feb 7, 2024
1 parent 793625c commit e3d5c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ model Tag {
model ActiveTempBans {
ActiveTempBanId Int @id @default(autoincrement())
GlobalCaseId Int
Case ModerationCase @relation(fields: [GlobalCaseId], references: [GlobalCaseId])
Case ModerationCase @relation(fields: [GlobalCaseId], references: [GlobalCaseId], onDelete: Cascade)
}

model ModerationCaseHistory {
ModerationCaseHistoryId Int @id @default(autoincrement())
ModerationCase ModerationCase @relation(fields: [GlobalCaseId], references: [GlobalCaseId])
ModerationCase ModerationCase @relation(fields: [GlobalCaseId], references: [GlobalCaseId], onDelete: Cascade)
GlobalCaseId Int
EditedAt DateTime @default(now())
Editor String
Expand Down

0 comments on commit e3d5c0e

Please sign in to comment.