Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Projects/VisitorLog/services/schemas/user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// require mongoose or db that we use

module.exports = {
studentId : { type: ObjectId, index: true, required: true },
userFirst : { type: String, index: false, required: false },
userLast : { type: String, index: false, required: false },
arrivalTime : { type: Date, index: true, required: true },
//possible exit time?
activity: [{
servicesUsed: String,
// ie: 3d printer,
// -- could be array or sercivesOffered or object representation of service
lastVisit: Date,
numberOfVisits: Number
}],
classes: [{
// would need collection of classes offered at all institutions
// another possible project to crawl the class schedule and parse it?

}]
};