Use mongodb sparse indexing for user emails
This commit is contained in:
@ -8,7 +8,12 @@
|
||||
"type": "string",
|
||||
"lowercase": true,
|
||||
"trim": true,
|
||||
"index": {
|
||||
"mongodb": {
|
||||
"unique": true,
|
||||
"sparse": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"password": "string",
|
||||
"facebook": "string",
|
||||
|
Reference in New Issue
Block a user