49 lines
1.0 KiB
JSON
49 lines
1.0 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"
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"agency": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Agency",
|
||
|
"foreignKey": "agencyFk"
|
||
|
},
|
||
|
"warehouseIn": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Warehouse",
|
||
|
"foreignKey": "warehouseInFk"
|
||
|
},
|
||
|
"warehouseOut": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Warehouse",
|
||
|
"foreignKey": "warehouseOutFk"
|
||
|
}
|
||
|
}
|
||
|
}
|