From 48d7029d9a4b4cdc1ca3e2b59ed92248b11b0d87 Mon Sep 17 00:00:00 2001 From: Robert McLeod Date: Fri, 16 Sep 2016 11:18:45 +1200 Subject: [PATCH] added indexes to acl and user to stop crashing with redis connector --- common/models/acl.json | 7 ++++++- common/models/user.json | 6 ++++-- 2 files changed, 10 insertions(+), 3 deletions(-) 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" diff --git a/common/models/user.json b/common/models/user.json index a3f3973f..b79cabb5 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", @@ -21,7 +22,8 @@ }, "email": { "type": "string", - "required": true + "required": true, + "index": true }, "emailVerified": "boolean", "verificationToken": "string",