smc_cet_obligation_backend/app/models/ObligationBurearBankStatement.js
2022-03-23 11:37:46 +05:30

47 lines
2.0 KiB
JavaScript

'use strict'
const { Model } = require('sequelize')
module.exports = (sequelize, DataTypes) => {
class OblicationBurearBankStatement extends Model {
}
OblicationBurearBankStatement.init(
{
los_id: { type: DataTypes.STRING },
lender: { type: DataTypes.STRING },
loan_type: { type: DataTypes.STRING },
loan_availed_sanctioned_amount: { type: DataTypes.INTEGER },
name_of_bank: { type: DataTypes.STRING },
loan_in_name_of_ac_type: { type: DataTypes.STRING },
loan_ownership_status: { type: DataTypes.STRING },
roi: { type: DataTypes.STRING },
avg_peak_util_of_the_OD_or_CC: { type: DataTypes.STRING },
nature_of_loan: { type: DataTypes.STRING },
loan_identification_source: { type: DataTypes.STRING },
sanction_date: { type: DataTypes.DATE },
principal_outstanding: { type: DataTypes.INTEGER },
monthly_oblig: { type: DataTypes.INTEGER },
total_loan_tenure_months: { type: DataTypes.INTEGER },
no_of_instalments_paid: { type: DataTypes.INTEGER },
balance_tenor_months: { type: DataTypes.INTEGER },
loan_status_or_remarks: { type: DataTypes.STRING },
consider_in_oblig: { type: DataTypes.STRING },
reason_for_not_considering_in_oblig: { type: DataTypes.STRING },
charge_filed_with_roc: { type: DataTypes.STRING },
emi_tracking_month_1: { type: DataTypes.INTEGER },
emi_tracking_month_2: { type: DataTypes.INTEGER },
emi_tracking_month_3: { type: DataTypes.INTEGER },
emi_tracking_month_4: { type: DataTypes.INTEGER },
emi_tracking_month_5: { type: DataTypes.INTEGER },
emi_tracking_month_6: { type: DataTypes.INTEGER },
is_active: { type: DataTypes.INTEGER }
},
{
sequelize,
tableName: 'obligation_burear_bank_statement',
modelName: 'OblicationBurearBankStatement',
}
)
return OblicationBurearBankStatement
}