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

39 lines
787 B
JSON

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