2017-10-11 10:47:02 +00:00
|
|
|
{
|
2018-09-19 13:05:07 +00:00
|
|
|
"name": "Zone",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "zone"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"hour": {
|
2018-09-24 08:43:54 +00:00
|
|
|
"type": "date",
|
2018-09-19 13:05:07 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"travelingDays": {
|
2019-05-06 05:41:28 +00:00
|
|
|
"type": "Number"
|
2018-09-19 13:05:07 +00:00
|
|
|
},
|
|
|
|
"price": {
|
2019-05-06 05:41:28 +00:00
|
|
|
"type": "Number"
|
2018-09-19 13:05:07 +00:00
|
|
|
},
|
|
|
|
"bonus": {
|
2019-05-06 05:41:28 +00:00
|
|
|
"type": "Number"
|
2019-03-13 10:27:45 +00:00
|
|
|
},
|
|
|
|
"isVolumetric": {
|
2019-05-06 05:41:28 +00:00
|
|
|
"type": "Boolean"
|
2019-09-02 09:25:31 +00:00
|
|
|
},
|
|
|
|
"inflation": {
|
|
|
|
"type": "Number"
|
2018-09-19 13:05:07 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
2019-03-14 14:07:24 +00:00
|
|
|
"geolocations": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ZoneGeo",
|
|
|
|
"foreignKey": "zoneFk"
|
|
|
|
},
|
2018-09-19 13:05:07 +00:00
|
|
|
"agencyMode": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "AgencyMode",
|
|
|
|
"foreignKey": "agencyModeFk"
|
2019-09-26 12:51:45 +00:00
|
|
|
},
|
|
|
|
"warehouse": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseFk"
|
2019-09-25 18:06:42 +00:00
|
|
|
},
|
|
|
|
"events": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ZoneEvent",
|
|
|
|
"foreignKey": "zoneFk"
|
|
|
|
},
|
|
|
|
"exclusions": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ZoneExclusion",
|
|
|
|
"foreignKey": "zoneFk"
|
|
|
|
},
|
|
|
|
"warehouses": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ZoneWarehouse",
|
|
|
|
"foreignKey": "zoneFk"
|
2018-09-19 13:05:07 +00:00
|
|
|
}
|
2017-10-11 13:36:47 +00:00
|
|
|
}
|
2018-09-19 13:05:07 +00:00
|
|
|
}
|