2017-10-11 10:47:02 +00:00
|
|
|
{
|
2018-09-19 13:05:07 +00:00
|
|
|
"name": "Zone",
|
2020-12-02 11:05:47 +00:00
|
|
|
"base": "Loggable",
|
2018-09-19 13:05:07 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "zone"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
2022-02-23 15:12:29 +00:00
|
|
|
"type": "number"
|
2018-09-19 13:05:07 +00:00
|
|
|
},
|
|
|
|
"name": {
|
2022-02-23 15:12:29 +00:00
|
|
|
"type": "string",
|
2018-09-19 13:05:07 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"hour": {
|
2018-09-24 08:43:54 +00:00
|
|
|
"type": "date",
|
2018-09-19 13:05:07 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"travelingDays": {
|
2022-02-23 15:12:29 +00:00
|
|
|
"type": "number"
|
2018-09-19 13:05:07 +00:00
|
|
|
},
|
|
|
|
"price": {
|
2022-02-23 15:12:29 +00:00
|
|
|
"type": "number"
|
2018-09-19 13:05:07 +00:00
|
|
|
},
|
|
|
|
"bonus": {
|
2022-02-23 15:12:29 +00:00
|
|
|
"type": "number"
|
2019-03-13 10:27:45 +00:00
|
|
|
},
|
|
|
|
"isVolumetric": {
|
2022-02-23 15:12:29 +00:00
|
|
|
"type": "boolean"
|
2019-09-02 09:25:31 +00:00
|
|
|
},
|
|
|
|
"inflation": {
|
2022-02-23 15:12:29 +00:00
|
|
|
"type": "number"
|
2020-01-27 08:45:13 +00:00
|
|
|
},
|
2023-03-08 12:12:21 +00:00
|
|
|
"m3Max": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2021-10-21 09:37:09 +00:00
|
|
|
"itemMaxSize": {
|
2022-02-23 15:12:29 +00:00
|
|
|
"type": "number"
|
2018-09-19 13:05:07 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"agencyMode": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "AgencyMode",
|
|
|
|
"foreignKey": "agencyModeFk"
|
2022-04-05 13:21:20 +00:00
|
|
|
},
|
2019-09-25 18:06:42 +00:00
|
|
|
"events": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ZoneEvent",
|
|
|
|
"foreignKey": "zoneFk"
|
|
|
|
},
|
|
|
|
"exclusions": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ZoneExclusion",
|
2023-04-12 10:33:14 +00:00
|
|
|
"foreignKey": "zoneFk"
|
2019-11-06 12:44:58 +00:00
|
|
|
},
|
2019-11-12 07:51:50 +00:00
|
|
|
"warehouses": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ZoneWarehouse",
|
|
|
|
"foreignKey": "zoneFk"
|
2021-08-30 12:14:21 +00:00
|
|
|
},
|
|
|
|
"closures": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ZoneClosure",
|
|
|
|
"foreignKey": "zoneFk"
|
2022-04-06 10:38:49 +00:00
|
|
|
}
|
2017-10-11 13:36:47 +00:00
|
|
|
}
|
2023-04-12 10:33:14 +00:00
|
|
|
}
|