2017-01-10 11:51:21 +00:00
|
|
|
{
|
2017-10-19 07:21:34 +00:00
|
|
|
"name": "AgencyMode",
|
2018-01-29 18:57:00 +00:00
|
|
|
"description": "Agency modes",
|
2017-10-11 13:36:47 +00:00
|
|
|
"base": "VnModel",
|
2018-01-29 11:37:54 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "agencyMode"
|
|
|
|
}
|
|
|
|
},
|
2017-01-10 11:51:21 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
2017-01-12 10:02:22 +00:00
|
|
|
"required": true
|
2017-05-09 12:04:44 +00:00
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"m3": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"inflation": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
2018-01-29 11:37:54 +00:00
|
|
|
"reportMail": {
|
2017-05-09 12:04:44 +00:00
|
|
|
"type": "string"
|
2018-03-27 12:28:02 +00:00
|
|
|
},
|
|
|
|
"isActive":{
|
2018-03-28 07:30:33 +00:00
|
|
|
"type": "boolean"
|
2017-01-10 11:51:21 +00:00
|
|
|
}
|
2017-03-14 12:08:55 +00:00
|
|
|
},
|
2017-05-12 09:14:55 +00:00
|
|
|
"relations": {
|
2017-05-12 11:36:12 +00:00
|
|
|
"agency": {
|
2017-05-12 09:14:55 +00:00
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Agency",
|
|
|
|
"foreignKey": "agencyFk"
|
|
|
|
},
|
2017-05-12 11:36:12 +00:00
|
|
|
"agencyType": {
|
2017-05-12 09:14:55 +00:00
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "AgencyType",
|
|
|
|
"foreignKey": "agencyTypeFk"
|
|
|
|
}
|
2018-03-15 12:47:47 +00:00
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
2018-03-28 07:30:33 +00:00
|
|
|
],
|
|
|
|
"scopes" : {
|
|
|
|
"active" : {"where": {"isActive": {"neq": false}}}
|
|
|
|
}
|
2017-01-10 11:51:21 +00:00
|
|
|
}
|