salix/modules/entry/back/models/buy.json

73 lines
1.5 KiB
JSON
Raw Permalink Normal View History

2020-08-26 14:33:47 +00:00
{
"name": "Buy",
"base": "Loggable",
"log": {
"model": "EntryLog",
"relation": "entry"
},
"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
}
}