Browse Source

Merge branch 'master' of https://git.nivesh.com:443/akhilesh.chandak/P2P_Liquiloan_Script into feat/addCornJob

pull/1/head
amol 1 year ago
parent
commit
9be3e180f0
2 changed files with 24 additions and 3 deletions
  1. +22
    -0
      model/liquiloansInvestors.js
  2. +2
    -3
      utils/db_config.js

+ 22
- 0
model/liquiloansInvestors.js View File

@ -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
};

+ 2
- 3
utils/db_config.js View File

@ -37,9 +37,8 @@ db.Sequelize = Sequelize;
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; module.exports = db;


Loading…
Cancel
Save

Powered by TurnKey Linux.