diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 86e0172..09109a1 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -42,8 +42,8 @@ model Item { manufacturer String - category itemCategory @relation(fields: [categoryId], references: [id]) - categoryId Int + category itemCategory? @relation(fields: [categoryId], references: [id]) + categoryId Int? items Item[] @relation("items") /// Item beinhaltet.. baseItem Item[] @relation("items") /// Item zugehörig zu.