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

34 lines
688 B
JSON
Raw Permalink 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": {
2022-05-12 07:47:47 +00:00
"type": "number"
2018-04-24 10:46:07 +00:00
},
"saleFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
"id": 2
},
"componentFk": {
2022-05-12 07:47:47 +00:00
"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"
}
}
}