I'm trying to understand when "relation scalar fie...
# orm-help
m
I'm trying to understand when "relation scalar fields" are needed (as used in the first example here: https://www.prisma.io/docs/concepts/components/prisma-schema/relations) . I've seen examples with and without it. Any insight here? Thank you
I found the answer in the docs
In case of 1-1 and 1-n relations, an additional _relation scalar field_ is required which gets linked by one of the two relation fields in the @relation attribute. This relation scalar is the direct representation of the _foreign key_ in the underlying database.
💯 1