2018-06-20 06:30:16 +00:00
|
|
|
{
|
|
|
|
"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": {
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|