From 26dee5bd80d4b1902a4ebf7901edb0da4e59387f Mon Sep 17 00:00:00 2001 From: Robert McLeod Date: Tue, 24 May 2016 10:38:17 +1200 Subject: [PATCH 1/2] explicitly set indexes on ACL model This allows the loopback-connector-redis to work with the default auth models. --- common/models/acl.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/models/acl.json b/common/models/acl.json index ef531136..b64b4ad5 100644 --- a/common/models/acl.json +++ b/common/models/acl.json @@ -3,13 +3,18 @@ "properties": { "model": { "type": "string", + "index": true, "description": "The name of the model" }, "property": { "type": "string", + "index": true, "description": "The name of the property, method, scope, or relation" }, - "accessType": "string", + "accessType": { + "type": "string", + "index": true + }, "permission": "string", "principalType": "string", "principalId": "string" From 106b4dcba18cec40092c01ab88910376759e4d92 Mon Sep 17 00:00:00 2001 From: Robert McLeod Date: Tue, 24 May 2016 10:39:30 +1200 Subject: [PATCH 2/2] 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"