{ "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": "creditClassification" } } }