salix/services/client/common/models/credit-classification.json

43 lines
785 B
JSON
Raw Normal View History

{
"name": "CreditClassification",
"description": "Clasified clients",
2017-10-11 13:36:47 +00:00
"base": "VnModel",
"options": {
"mysql": {
"table": "creditClassification"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"started": {
"type": "date",
"required": true,
"mysql": {
"columnName": "dateStart"
}
},
"finished": {
"type": "date",
"mysql": {
"columnName": "dateEnd"
}
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "client"
},
"creditInsurances": {
"type": "hasMany",
"model": "CreditInsurance",
"foreignKey": "creditClassification"
}
2017-10-11 13:36:47 +00:00
}
}