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]) image Image? @relation(fields: [imageId], references: [id])
markdown String markdown String
contentTableEntries ContentTableEntry[] contentTableEntries ContentTableEntry[]
categoryId Int? categoryId Int
category Category? @relation(fields: [categoryId], references: [id]) category Category @relation(fields: [categoryId], references: [id])
dateCreated DateTime @default(now()) dateCreated DateTime @default(now())
dateUpdated DateTime @default(now()) dateUpdated DateTime @default(now())
} }