54 lines
922 B
JSON
54 lines
922 B
JSON
{
|
|
"name": "AgencyMode",
|
|
"description": "Agency modes",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "agencyMode"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"m3": {
|
|
"type": "Number"
|
|
},
|
|
"inflation": {
|
|
"type": "Number"
|
|
},
|
|
"reportMail": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"relations": {
|
|
"agency": {
|
|
"type": "belongsTo",
|
|
"model": "Agency",
|
|
"foreignKey": "agencyFk"
|
|
},
|
|
"agencyType": {
|
|
"type": "belongsTo",
|
|
"model": "AgencyType",
|
|
"foreignKey": "agencyTypeFk"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
]
|
|
}
|