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

56 lines
1.1 KiB
JSON

{
"name": "OrderRow",
"base": "VnModel",
"options": {
"mysql": {
"table": "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"
}
}
}