diff --git a/content/200-concepts/100-components/01-prisma-schema/06-relations/400-self-relations.mdx b/content/200-concepts/100-components/01-prisma-schema/06-relations/400-self-relations.mdx index 6ed46778f9..dd96c5f621 100644 --- a/content/200-concepts/100-components/01-prisma-schema/06-relations/400-self-relations.mdx +++ b/content/200-concepts/100-components/01-prisma-schema/06-relations/400-self-relations.mdx @@ -321,17 +321,17 @@ If you need the relation to hold other fields, you can create an [explicit](many model User { id Int @id @default(autoincrement()) name String? - followedBy Follows[] @relation("following") - following Follows[] @relation("follower") + followedBy Follows[] @relation("followedBy") + following Follows[] @relation("following") } model Follows { - follower User @relation("follower", fields: [followerId], references: [id]) - followerId Int - following User @relation("following", fields: [followingId], references: [id]) - followingId Int + followedBy User @relation("followedBy", fields: [followedById], references: [id]) + followedById Int + following User @relation("following", fields: [followingId], references: [id]) + followingId Int - @@id([followerId, followingId]) + @@id([followingId, followedById]) } ```