Skip to content

Commit

Permalink
closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-Thakur committed Sep 8, 2021
1 parent 501e77c commit 6ffe348
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/response.model.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const mongoose = require('mongoose');

var responseSchema = new mongoose.Schema({
userIP : {
type: String
},
surveyId : {
type: String
},
Expand Down
9 changes: 9 additions & 0 deletions models/survey.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,21 @@ var surveySchema = new mongoose.Schema({
createdOn : {
type: Date
},
modifiedOn : {
type: Date
},
validTill : {
type: Date
},
active : {
type: Boolean
},
surveyName : {
type : String
},
surveyDescription : {
type : String
},
question: {
type: [
{
Expand Down
3 changes: 3 additions & 0 deletions models/user.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ var userSchema = new mongoose.Schema({
},
mobileNumber : {
type: String
},
signUpType: {
type: String
}

});
Expand Down

0 comments on commit 6ffe348

Please sign in to comment.