2018-10-16 06:36:25 +00:00
|
|
|
{
|
|
|
|
"name": "ClientRisk",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
2022-05-12 06:06:30 +00:00
|
|
|
"mysql": {
|
|
|
|
"table": "clientRisk"
|
|
|
|
}
|
2018-10-16 06:36:25 +00:00
|
|
|
},
|
|
|
|
"properties": {
|
2022-05-12 06:06:30 +00:00
|
|
|
"clientFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true
|
|
|
|
},
|
|
|
|
"companyFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true
|
|
|
|
},
|
|
|
|
"amount": {
|
|
|
|
"type": "Number"
|
|
|
|
}
|
2018-10-16 06:36:25 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"company": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Company",
|
|
|
|
"foreignKey": "companyFk"
|
|
|
|
}
|
|
|
|
}
|
2022-05-12 06:06:30 +00:00
|
|
|
}
|