2020-08-26 14:33:47 +00:00
|
|
|
{
|
|
|
|
"name": "Buy",
|
|
|
|
"base": "Loggable",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "buy"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"quantity": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"buyingValue": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"freightValue": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"packing": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"grouping": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2020-09-09 09:39:18 +00:00
|
|
|
"stickers": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2020-08-26 14:33:47 +00:00
|
|
|
"groupingMode": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"comissionValue": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"packageValue": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"price2": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"price3": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"weight": {
|
|
|
|
"type": "number"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"entry": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Entry",
|
2021-04-28 08:32:24 +00:00
|
|
|
"foreignKey": "entryFk"
|
2020-09-09 09:39:18 +00:00
|
|
|
},
|
|
|
|
"item": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Item",
|
2021-04-28 08:32:24 +00:00
|
|
|
"foreignKey": "itemFk"
|
2020-11-13 08:30:40 +00:00
|
|
|
},
|
|
|
|
"package": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Packaging",
|
|
|
|
"foreignKey": "packageFk"
|
|
|
|
}
|
2020-08-26 14:33:47 +00:00
|
|
|
}
|
2023-03-22 10:03:13 +00:00
|
|
|
}
|