33 lines
607 B
JSON
33 lines
607 B
JSON
{
|
|
"name": "SaleBuy",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "saleBuy"
|
|
}
|
|
},
|
|
"properties": {
|
|
"saleFk": {
|
|
"id": true,
|
|
"type": "number",
|
|
"forceId": false
|
|
},
|
|
"buyFk": {
|
|
"type": "number"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"isChecked": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"sale": {
|
|
"type": "belongsTo",
|
|
"model": "Sale",
|
|
"foreignKey": "saleFk"
|
|
}
|
|
}
|
|
}
|
|
|