36 lines
639 B
JSON
36 lines
639 B
JSON
|
{
|
||
|
"name": "ClientCreditLimit",
|
||
|
"base": "MyModel",
|
||
|
"validateUpsert": true,
|
||
|
"properties": {
|
||
|
"id": {
|
||
|
"type": "Number",
|
||
|
"id": true,
|
||
|
"description": "Identifier"
|
||
|
},
|
||
|
"maxAmount": {
|
||
|
"type": "Number"
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"role": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Role",
|
||
|
"foreignKey": "roleFk"
|
||
|
}
|
||
|
},
|
||
|
"acls": [
|
||
|
{
|
||
|
"accessType": "*",
|
||
|
"principalType": "ROLE",
|
||
|
"principalId": "$everyone",
|
||
|
"permission": "DENY"
|
||
|
},
|
||
|
{
|
||
|
"accessType": "*",
|
||
|
"principalType": "ROLE",
|
||
|
"principalId": "root",
|
||
|
"permission": "ALLOW"
|
||
|
}
|
||
|
]
|
||
|
}
|