diff --git a/services/client/common/models/defaulter.json b/services/client/common/models/defaulter.json new file mode 100644 index 000000000..d6d510df7 --- /dev/null +++ b/services/client/common/models/defaulter.json @@ -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" + } + } +} \ No newline at end of file diff --git a/services/client/server/model-config.json b/services/client/server/model-config.json index a61abc531..1c8d68889 100644 --- a/services/client/server/model-config.json +++ b/services/client/server/model-config.json @@ -52,5 +52,8 @@ }, "TpvResponse": { "dataSource": "hedera" + }, + "Defaulter": { + "dataSource": "vn" } }