salix/modules/client/back/models/client-risk.json

34 lines
689 B
JSON

{
"name": "ClientRisk",
"base": "VnModel",
"options": {
"mysql": {
"table": "clientRisk"
}
},
"properties": {
"clientFk": {
"type": "number",
"id": true
},
"companyFk": {
"type": "number",
"id": true
},
"amount": {
"type": "number"
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
"company": {
"type": "belongsTo",
"model": "Company",
"foreignKey": "companyFk"
}
}
}