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