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",