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

55 lines
1.1 KiB
JSON

{
"name": "Travel",
"base": "VnModel",
"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"
}
},
"relations": {
"agency": {
"type": "belongsTo",
"model": "Agency",
"foreignKey": "agencyFk"
},
"warehouseIn": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseInFk"
},
"warehouseOut": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseOutFk"
}
}
}