2017-01-10 11:51:21 +00:00
|
|
|
{
|
2020-02-06 12:07:01 +00:00
|
|
|
"name": "AgencyMode",
|
|
|
|
"description": "Agency modes",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "agencyMode"
|
|
|
|
}
|
2017-05-09 12:04:44 +00:00
|
|
|
},
|
2020-02-06 12:07:01 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2020-02-06 12:07:01 +00:00
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deliveryMethodFk": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"m3": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2020-02-06 12:07:01 +00:00
|
|
|
},
|
|
|
|
"inflation": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2020-02-06 12:07:01 +00:00
|
|
|
},
|
|
|
|
"reportMail": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isActive": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"code": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string",
|
2020-02-06 12:07:01 +00:00
|
|
|
"required": false
|
|
|
|
}
|
2018-03-27 12:28:02 +00:00
|
|
|
},
|
2020-02-06 12:07:01 +00:00
|
|
|
"relations": {
|
|
|
|
"agency": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Agency",
|
|
|
|
"foreignKey": "agencyFk"
|
|
|
|
},
|
|
|
|
"agencyType": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "AgencyType",
|
|
|
|
"foreignKey": "agencyTypeFk"
|
|
|
|
},
|
|
|
|
"deliveryMethod": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "DeliveryMethod",
|
|
|
|
"foreignKey": "deliveryMethodFk"
|
|
|
|
}
|
2018-09-24 10:57:21 +00:00
|
|
|
},
|
2020-02-06 12:07:01 +00:00
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"scopes": {
|
|
|
|
"isActive": {
|
|
|
|
"where": {
|
|
|
|
"isActive": {
|
|
|
|
"neq": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-01-07 15:28:18 +00:00
|
|
|
}
|
|
|
|
}
|