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

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

module.exports = mongoose.model('User', User);
@@ -156,24 +156,8 @@
 ng,%0A
-%09%09%09index: true,%0A
 %09%09%09u

update unique user