Let's say I have:
and
For each question there will be many answers (is this OneToMany?) and answers will be chosen via single selection (multiple choice). I want to know how many times each answer has been selected for a given question, for example. A user can only answer these questions once.
I have found a few solutions (like this one What mysql database tables and relationships would support a Q&A survey with conditional questions?) but they seem overly complicated. This is a very simple survey. No subquestions, no differernt types of answers, no multiple selections.
What I'm thinking of using is an intermediary table called question_answer_user, however I am unsure of the relationships between this and the other tables (and is it a compound primary key?). I need them so I can model them on an ORM.
Sorry if this seems overly simple, but my brain is completely fried at the moment