Relation
A link between two models or tables.
A link between two models or tables.
Relations connect records across models. They can be one-to-one, one-to-many, many-to-one, or many-to-many depending on where the foreign key lives.
author User @relation(fields: [authorId], references: [id])