new model defaulter

This commit is contained in:
Bernat 2018-10-11 10:56:28 +02:00
parent ba7a703ee7
commit 1607a340d2
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{
"name": "Defaulter",
"description": "defaulters client",
"base": "VnModel",
"options": {
"mysql": {
"table": "defaulter",
"database": "vn"
}
},
"properties": {
"created": {
"type": "Date"
},
"amount": {
"type": "Number"
},
"defaulterSinced": {
"type": "Number"
},
"hasChanged": {
"type": "Number"
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
}
}
}

View File

@ -52,5 +52,8 @@
}, },
"TpvResponse": { "TpvResponse": {
"dataSource": "hedera" "dataSource": "hedera"
},
"Defaulter": {
"dataSource": "vn"
} }
} }