2023-01-31 13:57:24 +00:00
|
|
|
{
|
2023-11-13 08:56:16 +00:00
|
|
|
"name": "Account",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "account.account"
|
|
|
|
}
|
|
|
|
},
|
2023-11-13 08:54:12 +00:00
|
|
|
"properties": {
|
2023-11-13 08:56:16 +00:00
|
|
|
"id": {
|
|
|
|
"id": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "VnUser",
|
|
|
|
"foreignKey": "id"
|
2023-01-31 13:57:24 +00:00
|
|
|
},
|
2023-11-13 08:56:16 +00:00
|
|
|
"aliases": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "MailAliasAccount",
|
|
|
|
"foreignKey": "account"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"property": "login",
|
|
|
|
"accessType": "EXECUTE",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
},
|
|
|
|
{
|
2023-01-31 13:57:24 +00:00
|
|
|
"property": "logout",
|
2023-11-13 08:56:16 +00:00
|
|
|
"accessType": "EXECUTE",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$authenticated",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
},
|
|
|
|
{
|
2023-06-27 13:30:54 +00:00
|
|
|
"property": "changePassword",
|
2023-11-13 08:56:16 +00:00
|
|
|
"accessType": "EXECUTE",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
]
|
2023-01-31 13:57:24 +00:00
|
|
|
}
|