34 lines
688 B
JSON
34 lines
688 B
JSON
{
|
|
"name": "SaleComponent",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "saleComponent"
|
|
}
|
|
},
|
|
"properties": {
|
|
"value": {
|
|
"type": "Number"
|
|
},
|
|
"saleFk": {
|
|
"type": "Number",
|
|
"id": 2
|
|
},
|
|
"componentFk": {
|
|
"type": "Number",
|
|
"id": 1
|
|
}
|
|
},
|
|
"relations": {
|
|
"sale": {
|
|
"type": "belongsTo",
|
|
"model": "Sale",
|
|
"foreignKey": "saleFk"
|
|
},
|
|
"component": {
|
|
"type": "belongsTo",
|
|
"model": "Component",
|
|
"foreignKey": "componentFk"
|
|
}
|
|
}
|
|
} |