{ "name": "MailAliasAccount", "base": "VnModel", "options": { "mysql": { "table": "account.mailAliasAccount" } }, "properties": { "id": { "type": "number", "id": true } }, "relations": { "alias": { "type": "belongsTo", "model": "MailAlias", "foreignKey": "mailAlias" }, "user": { "type": "belongsTo", "model": "VnUser", "foreignKey": "account" } }, "acls": [ { "property": "create", "accessType": "WRITE", "principalType": "ROLE", "principalId": "$authenticated", "permission": "ALLOW" }, { "property": "deleteById", "accessType": "WRITE", "principalType": "ROLE", "principalId": "$authenticated", "permission": "ALLOW" } ] }