salix/services/agency/common/models/zone.json

47 lines
769 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",
"required": true
},
"price": {
"type": "Number",
"required": true
},
"bonus": {
"type": "Number",
"required": true
}
},
"relations": {
"warehouse": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseFk"
},
"agencyMode": {
"type": "belongsTo",
"model": "AgencyMode",
"foreignKey": "agencyModeFk"
}
}
}