salix/modules/ticket/back/models/sale-component.json

34 lines
688 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": {
"type": "Number",
"id": 2
},
"componentFk": {
"type": "Number",
"id": 1
2018-04-24 10:46:07 +00:00
}
},
2018-04-24 10:46:07 +00:00
"relations": {
"sale": {
"type": "belongsTo",
"model": "Sale",
"foreignKey": "saleFk"
},
"component": {
2018-04-24 10:46:07 +00:00
"type": "belongsTo",
"model": "Component",
2018-04-24 10:46:07 +00:00
"foreignKey": "componentFk"
}
}
}