diff --git a/prisma/schema.prisma b/prisma/schema.prisma index c258da6..c2b5e66 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -217,8 +217,8 @@ model Todo { id String @id @default(cuid()) user User @relation(fields: [user_id], references: [id], onDelete: Cascade) user_id String - product Product? @relation(fields: [product_id], references: [id], onDelete: SetNull) - product_id String? + product Product @relation(fields: [product_id], references: [id], onDelete: Cascade) + product_id String title String done Boolean @default(false) archived Boolean @default(false)