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 07:55:54 +00:00
|
|
|
"dateStart": {
|
|
|
|
"type": "date",
|
|
|
|
"required": true
|
2017-09-27 15:44:51 +00:00
|
|
|
},
|
2018-03-06 07:55:54 +00:00
|
|
|
"dateEnd": {
|
2017-09-27 15:44:51 +00:00
|
|
|
"type": "date"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
2018-03-06 07:55:54 +00:00
|
|
|
"foreignKey": "client"
|
2017-09-27 15:44:51 +00:00
|
|
|
}
|
2017-10-11 13:36:47 +00:00
|
|
|
}
|
2017-09-27 15:44:51 +00:00
|
|
|
}
|