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

43 lines
781 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": {
"customer": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "client"
},
"insurances": {
"type": "hasMany",
"model": "CreditInsurance",
"foreignKey": "creditClassification"
}
2017-10-11 13:36:47 +00:00
}
}