{ "name": "user", "plural": "users", "base": "User", "properties": {}, "validations": [], "relations": { "accessTokens": { "type": "hasMany", "model": "accessToken", "foreignKey": "userId" }, "identities": { "type": "hasMany", "model": "userIdentity", "foreignKey": "userId" }, "credentials": { "type": "hasMany", "model": "userCredential", "foreignKey": "userId" }, "roles": { "type": "hasMany", "model": "Role", "foreignKey": "principalId", "through": "RoleMapping" } }, "acls": [ { "accessType": "*", "principalType": "ROLE", "principalId": "admin", "permission": "ALLOW" }, { "accessType": "READ", "principalType": "ROLE", "principalId": "$unauthenticated", "permission": "DENY" }, { "accessType": "READ", "principalType": "ROLE", "principalId": "$authenticated", "permission": "ALLOW" }, { "accessType": "*", "principalType": "ROLE", "principalId": "$owner", "permission": "ALLOW" } ], "methods": {} }