From 1607a340d223aded470b7b9ebe3e45df9a28ec8b Mon Sep 17 00:00:00 2001 From: Bernat Date: Thu, 11 Oct 2018 10:56:28 +0200 Subject: [PATCH] new model defaulter --- services/client/common/models/defaulter.json | 32 ++++++++++++++++++++ services/client/server/model-config.json | 3 ++ 2 files changed, 35 insertions(+) create mode 100644 services/client/common/models/defaulter.json 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" } }