From f82bf5255ba96270696235d1905f1f73e6dfaedd Mon Sep 17 00:00:00 2001 From: sriramv Date: Tue, 21 Mar 2023 14:34:36 +0530 Subject: [PATCH] model_file:GWM --- app/models/CreditExistingLoanOblogation.js | 10 +++++----- app/models/CreditKeyShareholder.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/CreditExistingLoanOblogation.js b/app/models/CreditExistingLoanOblogation.js index d516d8e..829ffe7 100644 --- a/app/models/CreditExistingLoanOblogation.js +++ b/app/models/CreditExistingLoanOblogation.js @@ -7,15 +7,15 @@ module.exports = (sequelize, DataTypes) => { CreditExistingLoanObligation.init( { pd_id: { type: DataTypes.INTEGER }, - loan_type: { type: DataTypes.INTEGER }, + loan_type: { type: DataTypes.STRING }, loan_amount: { type: DataTypes.INTEGER }, lender_name: { type: DataTypes.STRING }, loan_taken_by: { type: DataTypes.STRING }, - instalment_amount: { type: DataTypes.INTEGER }, + instalment_amount: { type: DataTypes.STRING }, instalment_frequency: { type: DataTypes.STRING }, - original_tenure_months: { type: DataTypes.INTEGER }, - current_tenure_months: { type: DataTypes.INTEGER }, - elapsed_tenure_months: { type: DataTypes.INTEGER }, + original_tenure_months: { type: DataTypes.STRING }, + current_tenure_months: { type: DataTypes.STRING }, + elapsed_tenure_months: { type: DataTypes.STRING }, common_remarks: { type: DataTypes.STRING }, createdby: { type: DataTypes.INTEGER }, updatedby: { type: DataTypes.INTEGER } diff --git a/app/models/CreditKeyShareholder.js b/app/models/CreditKeyShareholder.js index 12e4e93..825f1bf 100644 --- a/app/models/CreditKeyShareholder.js +++ b/app/models/CreditKeyShareholder.js @@ -10,7 +10,7 @@ module.exports = (sequelize, DataTypes) => { company_name: { type: DataTypes.STRING }, stakeholder_length: { type: DataTypes.STRING }, stakeholder_name: { type: DataTypes.STRING }, - share_holding: { type: DataTypes.STRING }, + share_holding: { type: DataTypes.INTEGER }, vintage_in_current_biz: { type: DataTypes.STRING }, previous_experience_details: { type: DataTypes.INTEGER }, total_work_exp: { type: DataTypes.INTEGER },