I'm developing a system with PHP Laravel
+ MongoDB
.
The login part and password will be modeled using MySQL
and I will use MongoDB
to do a quiz .
I was thinking of putting a Schema
in% with% of this type:
var quiz = [{
user_id: 1, //Auth::id() | O id do user vai vir do Auth do php laravel
name: "Quiz 1",
question: [{
title: 'question1',
type: 'radio',
elements: ['radio1', 'radio2', 'radio3', 'radio4'],
correct: ['radio1'],
resposta: ['radio3'] //errou
},{
title: 'question 2',
type: 'checkbox',
elements: ['checkbox1', 'checkbox2', 'checkbox3', 'checkbox4'],
correct: ['checkbox1', 'checkbox2'],
resposta: ['checkbox1','checkbox2'] //acertou
}]
}];
Is it usually a hybrid deployment of two banks in projects?