From b5314cb552c257e173f33849deea274e61312501 Mon Sep 17 00:00:00 2001 From: Spacelord Date: Mon, 15 May 2023 18:48:37 +0200 Subject: [PATCH] itemStatus is now optional in Prisma Schema --- prisma/schema.prisma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.