29 lines
501 B
JSON
29 lines
501 B
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
} |