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