salix/modules/ticket/back/models/sale-tracking.json

38 lines
757 B
JSON

{
"name": "SaleTracking",
"base": "VnModel",
"options": {
"mysql": {
"table": "saleTracking"
}
},
"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"
}
}
}