67 lines
1.4 KiB
JSON
67 lines
1.4 KiB
JSON
{
|
|
"name": "Travel",
|
|
"base": "VnModel",
|
|
"mixins": {
|
|
"Loggable": true
|
|
},
|
|
"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"
|
|
},
|
|
"totalEntries": {
|
|
"type": "number"
|
|
},
|
|
"m3": {
|
|
"type": "number"
|
|
},
|
|
"kg": {
|
|
"type": "number"
|
|
},
|
|
"cargoSupplierFk": {
|
|
"type": "number"
|
|
},
|
|
"agencyModeFk": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"agency": {
|
|
"type": "belongsTo",
|
|
"model": "AgencyMode",
|
|
"foreignKey": "agencyModeFk"
|
|
},
|
|
"warehouseIn": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseInFk"
|
|
},
|
|
"warehouseOut": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseOutFk"
|
|
}
|
|
}
|
|
}
|