smc_cet_creditpd_backend/app/models/CreditExistingLoanOblogation.js
suseendhiran17 b2df77b3df susee
2023-07-26 17:53:30 +05:30

34 lines
1.1 KiB
JavaScript

'use strict'
const { Model } = require('sequelize')
module.exports = (sequelize, DataTypes) => {
class CreditExistingLoanObligation extends Model {
}
CreditExistingLoanObligation.init(
{
pd_id: { type: DataTypes.INTEGER },
loan_type: { type: DataTypes.STRING },
loan_amount: { type: DataTypes.STRING },
lender_name: { type: DataTypes.STRING },
loan_taken_by: { type: DataTypes.STRING },
instalment_amount: { type: DataTypes.STRING },
instalment_frequency: { type: DataTypes.STRING },
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 },
display_order: { type: DataTypes.INTEGER }
},
{
sequelize,
tableName: 'credit_existing_loan_obligations',
modelName: 'CreditExistingLoanObligation',
}
)
return CreditExistingLoanObligation
}