Skip to content

Instantly share code, notes, and snippets.

@davidyang
Forked from awilson28/studentDay.js
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidyang/f207832b88d515cc6eb1 to your computer and use it in GitHub Desktop.
Save davidyang/f207832b88d515cc6eb1 to your computer and use it in GitHub Desktop.
var StudentDaySchema = new Schema({
user: {
name: {type: String}
},
date: {type: Date, default: Date.now},
attendance: {
status: {type: String},
comments: {type: String}
},
helpTickets: [{
createTime: {type: Date},
description: {type: String}
}],
checkin: {
wantsToTalk: {type: Boolean, required: true},
rating: {
motivation: {
value: {type: Number, min: 1, max: 5, required: true},
comment: String
},
wellbeing: {
value: {type: Number, min: 1, max: 5, required: true},
comment: String
},
knowledge: {
value: {type: Number, min: 1, max: 5, required: true},
comment: String
},
general: {
value: {type: Number, min: 1, max: 5, required: true},
comment: String
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment