56 lines
1.1 KiB
JSON
56 lines
1.1 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|