Last active
August 29, 2015 14:24
-
-
Save awilson28/ce6b1bd2fb0adc54f93f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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