Hello Y’all, if my data structure looks like this ...
# orm-help
c
Hello Y’all, if my data structure looks like this (please see below), how can I model it so that I establish the “question’s id as a composite key of the data #id using Prisma?
Copy code
const data = [
 {
   id: 1,
   title: 'Top 5 Questions',
   questions: [
     {
       // id -> is a composite key between the title id and question id

       id: 10,
       question:
         'This is a question to be answered?',
       checked: false,
       input_type: 'radio',
       answers: [
         'Heard of it - never tried it before',
         'Tried it once before',
         'Buy it regularly',
         'Curious to learn more',
       ],
     },
]