2018-06-20 10:47:43 +00:00
|
|
|
{
|
|
|
|
"name": "SaleTracking",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-12-17 10:28:39 +00:00
|
|
|
"table": "saleTracking"
|
2018-06-20 10:47:43 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-06-20 10:47:43 +00:00
|
|
|
"forceId": false
|
|
|
|
},
|
2020-11-09 13:53:26 +00:00
|
|
|
"saleFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2020-11-09 13:53:26 +00:00
|
|
|
},
|
|
|
|
"stateFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2020-11-09 13:53:26 +00:00
|
|
|
},
|
2018-06-20 10:47:43 +00:00
|
|
|
"isChecked": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "Date"
|
|
|
|
},
|
|
|
|
"originalQuantity": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2018-06-20 10:47:43 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"sale": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Sale",
|
|
|
|
"foreignKey": "saleFk"
|
|
|
|
},
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|