52 lines
881 B
JSON
52 lines
881 B
JSON
{
|
|
"name": "Zone",
|
|
"base": "VnModel",
|
|
"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"
|
|
}
|
|
},
|
|
"relations": {
|
|
"geolocations": {
|
|
"type": "hasMany",
|
|
"model": "ZoneGeo",
|
|
"foreignKey": "zoneFk"
|
|
},
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk"
|
|
},
|
|
"agencyMode": {
|
|
"type": "belongsTo",
|
|
"model": "AgencyMode",
|
|
"foreignKey": "agencyModeFk"
|
|
}
|
|
}
|
|
} |