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:
parent
26dee5bd80
commit
106b4dcba1
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue