salix/modules/order/back/models/order-row.json

61 lines
1.3 KiB
JSON

{
"name": "OrderRow",
"base": "VnModel",
"options": {
"mysql": {
"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": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
},
"order": {
"type": "belongsTo",
"model": "Order",
"foreignKey": "orderFk"
},
"warehouse": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseFk"
}
}
}