From 0b033ef63348838ba1ed38387b53b8355ca06319 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 21 Jan 2021 00:43:07 +0530 Subject: [PATCH] response model updated --- models/response.model.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/models/response.model.js b/models/response.model.js index 7fed2c1..a66ba5b 100644 --- a/models/response.model.js +++ b/models/response.model.js @@ -10,20 +10,17 @@ var responseSchema = new mongoose.Schema({ answer: { type: [ { - questionContent : { + questionId : { + type: String + }, + questionType : { type: String }, userResponse : { type: String }, optionList : { - type: [ - { - value : { - type: String - } - } - ] + type: [String] } } ]