diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 27cb755..4d3f895 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -58,14 +58,14 @@ model Place { x String y String planId String @unique - Plan Plan @relation(fields: [planId], references: [id]) + Plan Plan @relation(fields: [planId], references: [id], onDelete: Cascade) } model Invite { id String @id @default(uuid()) planId String - Plan Plan @relation(fields: [planId], references: [id]) + Plan Plan @relation(fields: [planId], references: [id], onDelete: Cascade) userId String @unique - User User @relation(fields: [userId], references: [id], onDelete: Cascade) + User User @relation(fields: [userId], references: [id]) createdAt DateTime @default(now()) }