salix/modules/client/back/models/credit-insurance.json

56 lines
963 B
JSON
Raw Permalink Normal View History

{
"name": "CreditInsurance",
"description": "Credit insurance",
"base": "VnModel",
"options": {
"mysql": {
"table": "creditInsurance"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"credit": {
"type": "Number"
},
"created": {
"type": "date",
"mysql": {
"columnName": "creationDate"
}
},
"grade": {
"type": "Number"
}
},
"relations": {
"classification": {
"type": "belongsTo",
"model": "CreditClassification",
"foreignKey": "creditClassification"
}
2020-01-23 12:31:07 +00:00
},
"scope": {
"include": {
"relation": "classification",
"scope": {
"fields": ["client"],
"include": {
"relation": "customer",
"scope": {
"fields": ["name", "salesPersonFk"],
"include": {
"relation": "salesPersonUser",
2020-01-23 12:31:07 +00:00
"scope": {
"fields": ["id", "name"]
2020-01-23 12:31:07 +00:00
}
}
}
}
}
}
}
}