Skip to content

Instantly share code, notes, and snippets.

@awilson28
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save awilson28/ce6b1bd2fb0adc54f93f to your computer and use it in GitHub Desktop.
Save awilson28/ce6b1bd2fb0adc54f93f to your computer and use it in GitHub Desktop.
var StudentDaySchema = new Schema({
date: {type: Date, default: Date.now},
user: {
name: {type: String},
userId: { type: Schema.Types.ObjectId, ref: "User" }
},
attendance: {
attendanceId: { type: Schema.Types.ObjectId, ref: "Attendance" },
status: {type: String},
comments: {type: String}
},
helpTickets: [{
helpTicketId: { type: Schema.Types.ObjectId, ref: "HelpTicket" },
description: {type: String},
//only the name of the responder is provided when hovering over the helpTicket cell
//page 38 of the dashboard spec
responder: {
name: {type: String},
userId: { type: Schema.Types.ObjectId, ref: "User" }
}
}],
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