/**
 * Created by sghaida on 5/11/2017.
 */

var mongo   = require('mongoose'),
    Schema  = mongo.Schema;

var userSchema = new Schema({
    groupNumber: String,
    fullName: String,
    emailAddress: String,
    department: String,
    lastLoginDate: {type: Date, default: Date.now},
    listOfApps: [{
        type: Schema.Types.ObjectId,
        ref: 'App'
    }]
});

module.exports = mongo.model('User', userSchema);

@@ -354,16 +354,24 @@
 ef: 'App
+lication
 '%0A    %7D%5D

fix typo