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

29 lines
583 B
JSON

{
"name": "SaleComponent",
"base": "VnModel",
"options": {
"mysql": {
"table": "saleComponent"
}
},
"properties": {
"value": {
"type": "Number"
},
"saleFk": {
"id": true
}
},
"relations": {
"sale": {
"type": "belongsTo",
"model": "Sale",
"foreignKey": "saleFk"
},
"componentRate": {
"type": "belongsTo",
"model": "ComponentRate",
"foreignKey": "componentFk"
}
}
}