2023-01-31 13:57:24 +00:00
|
|
|
{
|
|
|
|
"name": "Account",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "account.account"
|
|
|
|
}
|
|
|
|
},
|
2023-11-13 08:54:12 +00:00
|
|
|
"properties": {
|
2023-01-31 13:57:24 +00:00
|
|
|
"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"
|
2023-06-27 13:30:54 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"property": "changePassword",
|
|
|
|
"accessType": "EXECUTE",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
2023-06-19 13:06:06 +00:00
|
|
|
}
|
2023-01-31 13:57:24 +00:00
|
|
|
]
|
|
|
|
}
|