Users: [{
- email
- senha
- quiz_criado: [id: 1], // ref: Quiz (array com id)
- quiz_respondido: [{
id: 1 , // ref: Quiz
question_respondido: [{
question_id
opcao_escolhida
}]
}]
}]
Quiz: [{
- quiz_id
- nome
- descricao
- questions: [{
- question_id
- question_text
- type // pode ser uma escolha ou multipla escolha
- correct_anwsers // a resposta correta
}]
}];
Quiz:
- You will have all the Quizzes created by users.
Users:
- You can create a Quiz or several Quizzes;
- You can answer several Quizzes of other users.
Is it better to create everything in a Schema? Is there anything that can be improved in the schematic I created?