42 lines
966 B
JSON
42 lines
966 B
JSON
{
|
|
"name": "CreditClassification",
|
|
"description": "Clasified clients",
|
|
"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": "creditClassificationFk"
|
|
}
|
|
}
|
|
} |