32 lines
543 B
JSON
32 lines
543 B
JSON
{
|
|
"name": "Defaulter",
|
|
"description": "defaulters client",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "defaulter"
|
|
}
|
|
},
|
|
"properties": {
|
|
"created": {
|
|
"type": "Date"
|
|
},
|
|
"amount": {
|
|
"type": "Number"
|
|
},
|
|
"defaulterSinced": {
|
|
"type": "Number"
|
|
},
|
|
"hasChanged": {
|
|
"type": "Number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"client": {
|
|
"type": "belongsTo",
|
|
"model": "Client",
|
|
"foreignKey": "clientFk"
|
|
}
|
|
},
|
|
"scope" : {"where": {"amount": {"gt": 0}}}
|
|
} |