2018-11-13 06:44:03 +00:00
|
|
|
{
|
|
|
|
"name": "Travel",
|
2019-10-25 11:26:38 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
2020-01-21 08:00:42 +00:00
|
|
|
"model":"TravelLog",
|
|
|
|
"showField": "ref"
|
2019-10-25 11:26:38 +00:00
|
|
|
},
|
2018-11-13 06:44:03 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "travel"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"shipped": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"landed": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"isDelivered": {
|
|
|
|
"type": "Boolean"
|
|
|
|
},
|
|
|
|
"isReceived": {
|
|
|
|
"type": "Boolean"
|
|
|
|
},
|
|
|
|
"ref": {
|
|
|
|
"type": "String"
|
2019-01-21 10:45:53 +00:00
|
|
|
},
|
|
|
|
"totalEntries": {
|
|
|
|
"type": "Number"
|
2019-10-24 10:49:18 +00:00
|
|
|
},
|
|
|
|
"m3": {
|
|
|
|
"type": "Number"
|
2019-10-25 11:26:38 +00:00
|
|
|
},
|
|
|
|
"agencyModeFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "agencyFk"
|
|
|
|
}
|
2018-11-13 06:44:03 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"agency": {
|
|
|
|
"type": "belongsTo",
|
2019-10-25 11:26:38 +00:00
|
|
|
"model": "AgencyMode",
|
2018-11-13 06:44:03 +00:00
|
|
|
"foreignKey": "agencyFk"
|
|
|
|
},
|
|
|
|
"warehouseIn": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseInFk"
|
|
|
|
},
|
|
|
|
"warehouseOut": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseOutFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|