77 lines
1.3 KiB
JSON
77 lines
1.3 KiB
JSON
{
|
|
"name": "Zone",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model":"ZoneLog",
|
|
"showField": "name"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "zone"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"hour": {
|
|
"type": "date",
|
|
"required": true
|
|
},
|
|
"travelingDays": {
|
|
"type": "number"
|
|
},
|
|
"price": {
|
|
"type": "number"
|
|
},
|
|
"bonus": {
|
|
"type": "number"
|
|
},
|
|
"isVolumetric": {
|
|
"type": "boolean"
|
|
},
|
|
"inflation": {
|
|
"type": "number"
|
|
},
|
|
"itemMaxSize": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"agencyMode": {
|
|
"type": "belongsTo",
|
|
"model": "AgencyMode",
|
|
"foreignKey": "agencyModeFk"
|
|
},
|
|
"events": {
|
|
"type": "hasMany",
|
|
"model": "ZoneEvent",
|
|
"foreignKey": "zoneFk"
|
|
},
|
|
"exclusions": {
|
|
"type": "hasMany",
|
|
"model": "ZoneExclusion",
|
|
"foreignKey": "zoneFk"
|
|
},
|
|
"warehouses": {
|
|
"type": "hasMany",
|
|
"model": "ZoneWarehouse",
|
|
"foreignKey": "zoneFk"
|
|
},
|
|
"closures": {
|
|
"type": "hasMany",
|
|
"model": "ZoneClosure",
|
|
"foreignKey": "zoneFk"
|
|
},
|
|
"provinces": {
|
|
"type": "hasMany",
|
|
"model": "Province",
|
|
"foreignKey": "zoneFk"
|
|
}
|
|
}
|
|
} |