54 lines
1.1 KiB
JSON
54 lines
1.1 KiB
JSON
{
|
|
"name": "Inbound",
|
|
"base": "PersistedModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "stock.inbound"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"tableId": {
|
|
"type": "String"
|
|
},
|
|
"warehouseFk": {
|
|
"type": "Number"
|
|
},
|
|
"itemFk": {
|
|
"type": "Number"
|
|
},
|
|
"dated": {
|
|
"type": "Date"
|
|
},
|
|
"expired": {
|
|
"type": "Date"
|
|
},
|
|
"quantity": {
|
|
"type": "Number"
|
|
},
|
|
"available": {
|
|
"type": "Number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"item": {
|
|
"type": "belongsTo",
|
|
"model": "Item",
|
|
"foreignKey": "itemFk"
|
|
},
|
|
"buy": {
|
|
"type": "belongsTo",
|
|
"model": "Buy",
|
|
"foreignKey": "tableId"
|
|
},
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk"
|
|
}
|
|
}
|
|
} |