salix/modules/travel/back/models/travel.json

68 lines
1.4 KiB
JSON
Raw Normal View History

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": {
2020-03-24 11:20:53 +00:00
"table": "travel"
2018-11-13 06:44:03 +00:00
}
},
"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
},
2020-11-16 13:50:03 +00:00
"cargoSupplierFk": {
"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"
}
}
}