From 324a6f6c309f15dabee998f8195f31f5696d168a Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 22 Apr 2022 00:17:01 +0100 Subject: [PATCH] missed one --- prisma/schema.prisma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 2fb0035..930099e 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -137,7 +137,7 @@ model Ticket { openingMessage String @db.VarChar(19) pinnedMessages Json @default("[]") referencedBy Ticket[] @relation("TicketsReferencedByTicket") - references Ticket? @relation(name: "TicketsReferencedByTicket", fields: [referencesId], references: [id]) + references Ticket? @relation(name: "TicketsReferencedByTicket", fields: [referencesId], references: [id], onDelete: SetNull) referencesId String? @db.VarChar(19) topic String?