2017-09-27 15:44:51 +00:00
|
|
|
{
|
|
|
|
"name": "CreditClassification",
|
2018-01-29 18:57:00 +00:00
|
|
|
"description": "Clasified clients",
|
2017-10-11 13:36:47 +00:00
|
|
|
"base": "VnModel",
|
2018-01-29 11:37:54 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "creditClassification"
|
|
|
|
}
|
|
|
|
},
|
2017-09-27 15:44:51 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number",
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
2018-03-06 12:11:22 +00:00
|
|
|
"started": {
|
2018-03-06 07:55:54 +00:00
|
|
|
"type": "date",
|
2018-03-06 12:11:22 +00:00
|
|
|
"required": true,
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "dateStart"
|
|
|
|
}
|
2017-09-27 15:44:51 +00:00
|
|
|
},
|
2018-03-06 12:11:22 +00:00
|
|
|
"finished": {
|
|
|
|
"type": "date",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "dateEnd"
|
|
|
|
}
|
2017-09-27 15:44:51 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
2018-03-06 07:55:54 +00:00
|
|
|
"foreignKey": "client"
|
2018-03-06 12:11:22 +00:00
|
|
|
},
|
2018-03-14 10:36:57 +00:00
|
|
|
"creditInsurances": {
|
2018-03-06 12:11:22 +00:00
|
|
|
"type": "hasMany",
|
|
|
|
"model": "CreditInsurance",
|
|
|
|
"foreignKey": "creditClassification"
|
2017-09-27 15:44:51 +00:00
|
|
|
}
|
2017-10-11 13:36:47 +00:00
|
|
|
}
|
2018-03-06 12:11:22 +00:00
|
|
|
}
|