49 lines
976 B
JSON
49 lines
976 B
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"
|
|
},
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk"
|
|
}
|
|
}
|
|
} |