2017-09-27 15:44:51 +00:00
|
|
|
{
|
2022-05-12 06:06:30 +00:00
|
|
|
"name": "CreditClassification",
|
|
|
|
"description": "Clasified clients",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "creditClassification"
|
|
|
|
}
|
2017-09-27 15:44:51 +00:00
|
|
|
},
|
2022-05-12 06:06:30 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2022-05-12 06:06:30 +00:00
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"started": {
|
|
|
|
"type": "date",
|
|
|
|
"required": true,
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "dateStart"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"finished": {
|
|
|
|
"type": "date",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "dateEnd"
|
|
|
|
}
|
|
|
|
}
|
2018-03-06 12:11:22 +00:00
|
|
|
},
|
2022-05-12 06:06:30 +00:00
|
|
|
"relations": {
|
|
|
|
"customer": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "client"
|
|
|
|
},
|
|
|
|
"insurances": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "CreditInsurance",
|
|
|
|
"foreignKey": "creditClassification"
|
|
|
|
}
|
2017-09-27 15:44:51 +00:00
|
|
|
}
|
2022-05-12 06:06:30 +00:00
|
|
|
}
|