From 8a991830fcdb1e845dd6d4411e46da3665abf82b Mon Sep 17 00:00:00 2001 From: Janis Date: Thu, 12 Jan 2023 06:55:15 +0100 Subject: [PATCH] category not optional anymore --- prisma/schema.prisma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 74b78aa..b1b7e5f 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -16,8 +16,8 @@ model Article { image Image? @relation(fields: [imageId], references: [id]) markdown String contentTableEntries ContentTableEntry[] - categoryId Int? - category Category? @relation(fields: [categoryId], references: [id]) + categoryId Int + category Category @relation(fields: [categoryId], references: [id]) dateCreated DateTime @default(now()) dateUpdated DateTime @default(now()) }