34 lines
1.1 KiB
JavaScript
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
|
|
} |