I want to create web site with tests. Test contains different questions. It could be textbox, checkbox or radiobutton. I want to store in db questions, answers and users.
Here is my thought about tables structure.
Users
{
Id
Name
}
Questions
{
Id
Description
Type // textbox, checkbox, etc
}
Answers
{
Id
UserId
QuestionId
AnswerValue
}
But how i can store information about DIFFERENT answers? I can write in AnswerValue something like "Carrot" (textbox),"1011" (checkbox),"3" (radiobutton) etc Unfortunally it's not good solution i think. What is best way to design DB structure in my case?