49 lines
1.1 KiB
JSON
49 lines
1.1 KiB
JSON
{
|
|
"name": "Account",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "account.account"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "VnUser",
|
|
"foreignKey": "id"
|
|
},
|
|
"aliases": {
|
|
"type": "hasMany",
|
|
"model": "MailAliasAccount",
|
|
"foreignKey": "account"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"property": "login",
|
|
"accessType": "EXECUTE",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
},
|
|
{
|
|
"property": "logout",
|
|
"accessType": "EXECUTE",
|
|
"principalType": "ROLE",
|
|
"principalId": "$authenticated",
|
|
"permission": "ALLOW"
|
|
},
|
|
{
|
|
"property": "changePassword",
|
|
"accessType": "EXECUTE",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
]
|
|
} |