43 lines
1.4 KiB
JavaScript
43 lines
1.4 KiB
JavaScript
'use strict'
|
|
const { Model } = require('sequelize')
|
|
module.exports = (sequelize, DataTypes) => {
|
|
class ResidenceAddressDetails extends Model {
|
|
/**
|
|
* Helper method for defining associations.
|
|
* This method is not a part of Sequelize lifecycle.
|
|
* The `models/index` file will call this method automatically.
|
|
*/
|
|
// define association here
|
|
// static associate({ Financials }) {
|
|
// this.hasMany(Financials, { foreignKey: 'entity_id', as: 'financialsData' })
|
|
// }
|
|
|
|
|
|
}
|
|
ResidenceAddressDetails.init(
|
|
{
|
|
loan_no_id: { type: DataTypes.INTEGER },
|
|
losid: { type: DataTypes.STRING },
|
|
applicant_id: { type: DataTypes.INTEGER },
|
|
name_of_the_individual: { type: DataTypes.STRING },
|
|
residence_address: { type: DataTypes.STRING },
|
|
residence_geo_limit_compliance: { type: DataTypes.STRING },
|
|
residence_location_area: { type: DataTypes.STRING },
|
|
ownership_status: { type: DataTypes.STRING },
|
|
residence_stay_period_in_years: { type: DataTypes.INTEGER },
|
|
residence_stay_period_in_bracket: { type: DataTypes.STRING },
|
|
is_active : { type: DataTypes.INTEGER },
|
|
remarks: { type: DataTypes.STRING },
|
|
createdby: { type: DataTypes.INTEGER },
|
|
updatedby: { type: DataTypes.INTEGER },
|
|
|
|
},
|
|
{
|
|
sequelize,
|
|
tableName: 'residence_address_details',
|
|
modelName: 'ResidenceAddressDetails',
|
|
}
|
|
)
|
|
return ResidenceAddressDetails
|
|
}
|