salix/modules/client/back/models/credit-classification.json

42 lines
966 B
JSON
Raw Permalink Normal View History

{
2022-05-12 06:06:30 +00:00
"name": "CreditClassification",
"description": "Clasified clients",
"base": "VnModel",
"options": {
"mysql": {
"table": "creditClassification"
}
},
2022-05-12 06:06:30 +00:00
"properties": {
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
2022-05-12 06:06:30 +00:00
"description": "Identifier"
},
"started": {
"type": "date",
"required": true,
"mysql": {
"columnName": "dateStart"
}
},
"finished": {
"type": "date",
"mysql": {
"columnName": "dateEnd"
}
}
},
2022-05-12 06:06:30 +00:00
"relations": {
"customer": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "client"
},
"insurances": {
"type": "hasMany",
"model": "CreditInsurance",
"foreignKey": "creditClassificationFk"
2022-05-12 06:06:30 +00:00
}
}
2022-05-12 06:06:30 +00:00
}