smc_cet_creditpd_backend/app/models/CreditGeneralBusinessInformation.js
suseendhiran17 e1bd17df26 susee
2022-05-26 14:23:20 +05:30

33 lines
1.0 KiB
JavaScript

'use strict'
const { Model } = require('sequelize')
module.exports = (sequelize, DataTypes) => {
class CreditGeneralBusinessInformation extends Model {
}
CreditGeneralBusinessInformation.init(
{
pd_id: { type: DataTypes.INTEGER },
company_name: { type: DataTypes.STRING },
business_entity_type: { type: DataTypes.STRING },
select_business_activity_type: { type: DataTypes.STRING },
area_of_sale: { type: DataTypes.STRING },
seasonality: { type: DataTypes.STRING },
low_sale_month_reason: { type: DataTypes.STRING },
low_sale_month: { type: DataTypes.STRING },
common_remarks: { type: DataTypes.STRING },
createdby: { type: DataTypes.INTEGER },
updatedby: { type: DataTypes.INTEGER },
name_of_the_company: { type: DataTypes.STRING }, // new
},
{
sequelize,
tableName: 'credit_general_business_information',
modelName: 'CreditGeneralBusinessInformation',
}
)
return CreditGeneralBusinessInformation
}