salix/services/ticket/common/models/sale-tracking.json

38 lines
757 B
JSON
Raw Normal View History

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,
"type": "Number",
"forceId": false
},
"isChecked": {
"type": "boolean"
},
"created": {
"type": "Date"
},
"originalQuantity": {
"type": "Number"
}
},
"relations": {
"sale": {
"type": "belongsTo",
"model": "Sale",
"foreignKey": "saleFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
}
}
}