model Post{
//...
place Place[] @relation(fields: [placeId], references: [id])
placeId Int
}
model Place{
//...
post Post @relation(fields: [postId], references: [id])
postId Int
}
when I do this,
I got this error
error: Error parsing attribute "@relation": The relation field place on Model Post must not specify the fields or references argument in the @relation attribute. You must only specif
y it on the opposite field post on model Place.
how to fix this??
and I don`t understand difference between
just simple post Post (without @relation)
and
post Post @relation(...)