explicitly set indexes on default User model

This allows the loopback-connector-redis to work with the default auth models.
This commit is contained in:
Robert McLeod 2016-05-24 10:39:30 +12:00
parent 26dee5bd80
commit 106b4dcba1
1 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@
"type": "string"
},
"username": {
"type": "string"
"type": "string",
"index": true
},
"password": {
"type": "string",
@ -13,7 +14,8 @@
},
"email": {
"type": "string",
"required": true
"required": true,
"index": true
},
"emailVerified": "boolean",
"verificationToken": "string"