salix/services/ticket/common/models/saleComponent.json

29 lines
501 B
JSON
Raw Normal View History

{
"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"
}
}
}