77 lines
1.7 KiB
JSON
77 lines
1.7 KiB
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"
|
|
},
|
|
"deliveryMethodFk": {
|
|
"type": "number"
|
|
},
|
|
"m3": {
|
|
"type": "number"
|
|
},
|
|
"inflation": {
|
|
"type": "number"
|
|
},
|
|
"reportMail": {
|
|
"type": "string"
|
|
},
|
|
"isActive": {
|
|
"type": "boolean"
|
|
},
|
|
"code": {
|
|
"type": "string",
|
|
"required": false
|
|
}
|
|
},
|
|
"relations": {
|
|
"agency": {
|
|
"type": "belongsTo",
|
|
"model": "Agency",
|
|
"foreignKey": "agencyFk"
|
|
},
|
|
"agencyType": {
|
|
"type": "belongsTo",
|
|
"model": "AgencyType",
|
|
"foreignKey": "agencyTypeFk"
|
|
},
|
|
"deliveryMethod": {
|
|
"type": "belongsTo",
|
|
"model": "DeliveryMethod",
|
|
"foreignKey": "deliveryMethodFk"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
],
|
|
"scopes": {
|
|
"isActive": {
|
|
"where": {
|
|
"isActive": {
|
|
"neq": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |