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

29 lines
583 B
JSON
Raw Normal View History

{
"name": "SaleComponent",
"base": "VnModel",
"options": {
2018-04-24 10:46:07 +00:00
"mysql": {
"table": "saleComponent"
}
},
"properties": {
2018-04-24 10:46:07 +00:00
"value": {
"type": "Number"
},
"saleFk": {
"id": true
}
},
2018-04-24 10:46:07 +00:00
"relations": {
"sale": {
"type": "belongsTo",
"model": "Sale",
"foreignKey": "saleFk"
},
"componentRate": {
"type": "belongsTo",
"model": "ComponentRate",
"foreignKey": "componentFk"
}
}
}