55 lines
923 B
JSON
55 lines
923 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"
|
|
},
|
|
"inflation": {
|
|
"type": "Number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"geolocations": {
|
|
"type": "hasMany",
|
|
"model": "ZoneGeo",
|
|
"foreignKey": "zoneFk"
|
|
},
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk"
|
|
},
|
|
"agencyMode": {
|
|
"type": "belongsTo",
|
|
"model": "AgencyMode",
|
|
"foreignKey": "agencyModeFk"
|
|
}
|
|
}
|
|
} |