category not optional anymore

This commit is contained in:
Janis
2023-01-12 06:55:15 +01:00
parent fbb82b03e8
commit 8a991830fc

View File

@@ -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())
}