45 lines
762 B
JSON
45 lines
762 B
JSON
{
|
|
"name": "Defaulter",
|
|
"description": "defaulters client",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "defaulter"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"amount": {
|
|
"type": "number"
|
|
},
|
|
"defaulterSinced": {
|
|
"type": "number"
|
|
},
|
|
"hasChanged": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"client": {
|
|
"type": "belongsTo",
|
|
"model": "Client",
|
|
"foreignKey": "clientFk"
|
|
},
|
|
"country": {
|
|
"type": "belongsTo",
|
|
"model": "Country",
|
|
"foreignKey": "countryFk"
|
|
},
|
|
"payMethod": {
|
|
"type": "belongsTo",
|
|
"model": "PayMethod",
|
|
"foreignKey": "payMethod"
|
|
}
|
|
}
|
|
}
|