From e853b3a4e4440436e89be48d7fc8c7dedcfd5b83 Mon Sep 17 00:00:00 2001 From: Velizar Stoyanov <99478205+velizario@users.noreply.github.com> Date: Mon, 13 Feb 2023 17:30:22 +0200 Subject: [PATCH] Blogging platform schema example Implicit many-to-many relation should not have references argument defined in relational databases --- .../100-components/01-prisma-schema/04-data-model.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/200-concepts/100-components/01-prisma-schema/04-data-model.mdx b/content/200-concepts/100-components/01-prisma-schema/04-data-model.mdx index 09758b7170..eaef478a8f 100644 --- a/content/200-concepts/100-components/01-prisma-schema/04-data-model.mdx +++ b/content/200-concepts/100-components/01-prisma-schema/04-data-model.mdx @@ -52,13 +52,13 @@ model Post { published Boolean @default(false) author User @relation(fields: [authorId], references: [id]) authorId Int - categories Category[] @relation(references: [id]) + categories Category[] } model Category { id Int @id @default(autoincrement()) name String - posts Post[] @relation(references: [id]) + posts Post[] } enum Role {