var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var passportLocalMongoose = require('passport-local-mongoose');

var User = new Schema({
		firstname: String,
		lastname: String,
		mail: {
			type: String,
			unique: true
		},
		password: String
});

User.plugin(passportLocalMongoose);
module.exports = mongoose.model('User', User);
@@ -148,16 +148,36 @@
 chema(%7B%0A
+%09%09username: String,%0A
 %09%09firstn

update user with username