We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd32acb commit 5b5e48aCopy full SHA for 5b5e48a
server/models/Survey.js
@@ -5,7 +5,9 @@ const surveySchema = new Schema({
5
title: String,
6
body: String,
7
subject: String,
8
- recipients: [String]
+ recipients: [String],
9
+ yes: { type: Number, default: 0 },
10
+ no: { type: Number, default: 0 }
11
});
12
13
mongoose.model('surveys', surveySchema);
0 commit comments