hedera-web/back/common/models/order-row.json

56 lines
1.1 KiB
JSON
Raw Normal View History

2019-06-25 08:23:12 +00:00
{
"name": "OrderRow",
"base": "PersistedModel",
"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"
}
}
}