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

69 lines
1.4 KiB
JSON

{
"name": "Travel",
"base": "Loggable",
"log": {
"model":"TravelLog",
"showField": "ref",
"grabUser": 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"
}
}
}