36 lines
1.2 KiB
JavaScript
36 lines
1.2 KiB
JavaScript
'use strict'
|
|
const { Model } = require('sequelize')
|
|
module.exports = (sequelize, DataTypes) => {
|
|
class CreditBorrowerAndGuarantorDetails extends Model {
|
|
|
|
}
|
|
CreditBorrowerAndGuarantorDetails.init(
|
|
{
|
|
pd_id: { type: DataTypes.INTEGER },
|
|
borrower_type: { type: DataTypes.STRING },
|
|
numbers_of_years_business_running: { type: DataTypes.STRING },
|
|
borrower_name: { type: DataTypes.STRING },
|
|
mobile_no: { type: DataTypes.STRING },
|
|
entity_type: { type: DataTypes.STRING },
|
|
borrower_age: { type: DataTypes.STRING },
|
|
borrower_met: { type: DataTypes.STRING },
|
|
designation: { type: DataTypes.STRING },
|
|
relationship_to: { type: DataTypes.STRING },
|
|
relationship: { type: DataTypes.STRING },
|
|
common_remarks: { type: DataTypes.STRING },
|
|
person_met: { type: DataTypes.STRING },
|
|
display_order: { type: DataTypes.INTEGER },
|
|
createdby: { type: DataTypes.INTEGER },
|
|
updatedby: { type: DataTypes.INTEGER }
|
|
|
|
},
|
|
{
|
|
sequelize,
|
|
tableName: 'credit_borrower_and_guarantor_details',
|
|
modelName: 'CreditBorrowerAndGuarantorDetails',
|
|
}
|
|
)
|
|
|
|
|
|
return CreditBorrowerAndGuarantorDetails
|
|
} |