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

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

module.exports = mongoose.model('User', User);
@@ -137,13 +137,13 @@
 il: 
-    %7B
+%7B%0A%09%09%09
 type
@@ -155,17 +155,28 @@
 ing,
- 
+%0A%09%09%09
 index: 
-%7B
+true,%0A%09%09%09
 uniq
@@ -183,17 +183,19 @@
 ue: true
-%7D
+%0A%09%09
 %7D,%0A%09%09pas

update user to unique mail