I'm new to Prisma and relational databases in general. I'm a little bit confused about how to create many-to-many relations between tables, especially relation fields.
For example, imagine I want to convert this database model to Prisma schema.

This is the answare that I came up with:
model User {
id String @id
comments Comment[]
posts Post[]
}
model Post {
id Int @default(autoincrement()) @id
author User @relation(fields: [authorId], references: [id])
authorId String
comments Comment[]
}
model Comment {
id Int @default(autoincrement()) @id
post Post @relation(fields: [postId], references: [id])
postId Int
author User @relation(fields: [authorId], references: [id])
authorId String
text String
}
The Comment table has two foreign keys to both User and Post tables. Do I need to have the comments field in both models? And in general, Am I doing it right?