44 lines
759 B
JSON
44 lines
759 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": "country"
|
|
},
|
|
"payMethod": {
|
|
"type": "belongsTo",
|
|
"model": "PayMethod",
|
|
"foreignKey": "payMethod"
|
|
}
|
|
}
|
|
} |