44 lines
878 B
JSON
44 lines
878 B
JSON
{
|
|
"name": "SaleTracking",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "saleTracking"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "Number",
|
|
"forceId": false
|
|
},
|
|
"saleFk": {
|
|
"type": "Number"
|
|
},
|
|
"stateFk": {
|
|
"type": "Number"
|
|
},
|
|
"isChecked": {
|
|
"type": "boolean"
|
|
},
|
|
"created": {
|
|
"type": "Date"
|
|
},
|
|
"originalQuantity": {
|
|
"type": "Number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"sale": {
|
|
"type": "belongsTo",
|
|
"model": "Sale",
|
|
"foreignKey": "saleFk"
|
|
},
|
|
"worker": {
|
|
"type": "belongsTo",
|
|
"model": "Worker",
|
|
"foreignKey": "workerFk"
|
|
}
|
|
}
|
|
}
|
|
|