From 8721a2c25a7d57ca79c21dacba989673f61f0b2b Mon Sep 17 00:00:00 2001 From: Akhilesh Chandak Date: Tue, 12 Dec 2023 12:57:00 +0530 Subject: [PATCH] add liqloan investor tbl --- model/liquiloansInvestors.js | 22 ++++++++++++++++++++++ utils/db_config.js | 5 ++--- 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 model/liquiloansInvestors.js diff --git a/model/liquiloansInvestors.js b/model/liquiloansInvestors.js new file mode 100644 index 0000000..659ea00 --- /dev/null +++ b/model/liquiloansInvestors.js @@ -0,0 +1,22 @@ +module.exports = function (sequelize, DataTypes) { + const LiquiloansInvestorsTbl = sequelize.define('P2P_Liquiloans_Investor', { + + investor_id: { type: DataTypes.INTEGER, allowNull: false, unique: true }, + name: { type: DataTypes.STRING, allowNull: true }, + entity_type: { type: DataTypes.STRING, allowNull: true }, + pan: { type: DataTypes.STRING, allowNull: true }, + email: { type: DataTypes.STRING, allowNull: true }, + contact_number: { type: DataTypes.STRING, allowNull: true }, + ifa_id: { type: DataTypes.STRING, allowNull: true }, + created_at: { type: DataTypes.STRING, allowNull: true }, + rm_name: { type: DataTypes.STRING, allowNull: true }, + }, { + //freezeTableName: true, // Model tableName will be the same as the model name + timestamps: false, + //underscored: true + } + ); + + + return LiquiloansInvestorsTbl +}; \ No newline at end of file diff --git a/utils/db_config.js b/utils/db_config.js index 2646c6b..568f010 100644 --- a/utils/db_config.js +++ b/utils/db_config.js @@ -37,9 +37,8 @@ db.Sequelize = Sequelize; db.sequelize = sequelize; -//db.exotelCalls = require('../model/exotelcalls')(sequelize, Sequelize); -//db.cRMLeadRemarks = require('../model/crmLeadRemarks')(sequelize, Sequelize); -//db.appRating.associations(db); +db.liquiloansInvestors = require('../model/liquiloansInvestors')(sequelize, Sequelize); + module.exports = db;