22parent
22parent
PPrisma
Created by 22parent on 6/6/2024 in #help-and-questions
Multiple relations between the same Tables
I am trying to create the following relationship in my Prisma schema. I have two tables, Questions Answers I am trying to create the following relationship
model Question {
answers Answers[]
correctAnswer Answer
}

model Answer{
}
model Question {
answers Answers[]
correctAnswer Answer
}

model Answer{
}
How should i go about setting up the relations?
3 replies