From 106b4dcba18cec40092c01ab88910376759e4d92 Mon Sep 17 00:00:00 2001 From: Robert McLeod Date: Tue, 24 May 2016 10:39:30 +1200 Subject: [PATCH] explicitly set indexes on default User model This allows the loopback-connector-redis to work with the default auth models. --- common/models/user.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/models/user.json b/common/models/user.json index 582a09cb..5fa3c706 100644 --- a/common/models/user.json +++ b/common/models/user.json @@ -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"