Prisma One To One Relationship - 2.6k views 5 years ago #benawad. In prisma schema, relations between records are defined with the @relation attribute. Web if you want to have a one to one relationship you have to make orderid unique by adding the @unique directive. Web there are three different types (or cardinalities) of relations in prisma orm:
Web there are three different types (or cardinalities) of relations in prisma orm: 2.6k views 5 years ago #benawad. In prisma schema, relations between records are defined with the @relation attribute. Web if you want to have a one to one relationship you have to make orderid unique by adding the @unique directive.