salix/services/order/common/models/order-row.json

61 lines
1.3 KiB
JSON
Raw Normal View History

{
"name": "OrderRow",
"base": "VnModel",
"options": {
"mysql": {
2018-12-17 10:28:39 +00:00
"table": "hedera.orderRow"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"warehouseFk": {
"type": "Number"
},
"shipped": {
"type": "date",
"mysql": {
"columnName": "shipment"
}
},
"quantity": {
"type": "Number",
"mysql": {
"columnName": "amount"
}
},
"price": {
"type": "Number"
},
"rate": {
"type": "Number"
},
"created": {
"type": "date"
},
"saleFk": {
"type": "Number"
}
},
"relations": {
2018-06-20 10:47:43 +00:00
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
},
2018-06-20 10:47:43 +00:00
"order": {
"type": "belongsTo",
"model": "Order",
"foreignKey": "orderFk"
2018-08-07 13:48:55 +00:00
},
"warehouse": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseFk"
}
}
}