Browse Source

change data type of scheme_name

pull/1/head
amol 1 year ago
parent
commit
a44a719c05
3 changed files with 7 additions and 7 deletions
  1. +1
    -1
      controller/getAllInvestor.js
  2. +5
    -5
      model/investorSummary.js
  3. +1
    -1
      utils/db_config.js

+ 1
- 1
controller/getAllInvestor.js View File

@ -38,7 +38,7 @@ const getAllInvstorDataStore = async (body) => {
if (item.length) {
for (let i = 0; i < item?.length; i++) {
let data = {};
data.investor_id = item[i].investor_id,
data.investor_id = item[i].investor_id,
data.name = item[i].name,
data.entity_type = item[i].entity_type,
data.pan = item[i].pan,


model/P2P_Liquiloans_Inv_Summarys.js → model/investorSummary.js View File

@ -1,10 +1,10 @@
module.exports = function (sequelize, DataTypes) {
const getInvestorSummary = sequelize.define('P2P_Liquiloans_Inv_Summarys', {
transaction_id: { type: DataTypes.INTEGER, allowNull: true, unique: true },
investor_id: { type: DataTypes.INTEGER, allowNull: true, unique: true },
scheme_id: { type: DataTypes.INTEGER, allowNull: true, unique: true },
investment_roi: { type: DataTypes.INTEGER, allowNull: true, unique: true },
transaction_id: { type: DataTypes.INTEGER, allowNull: true},
investor_id: { type: DataTypes.INTEGER, allowNull: true },
scheme_id: { type: DataTypes.INTEGER, allowNull: true },
investment_roi: { type: DataTypes.INTEGER, allowNull: true },
return_type: { type: DataTypes.STRING, allowNull: true },
payout_type: { type: DataTypes.STRING, allowNull: true },
lockin_tenure: { type: DataTypes.INTEGER, allowNull: true },
@ -18,7 +18,7 @@ module.exports = function (sequelize, DataTypes) {
name: { type: DataTypes.STRING, allowNull: true },
transaction_date: { type: DataTypes.STRING, allowNull: true },
invested_amount: { type: DataTypes.INTEGER, allowNull: true },
scheme_name: { type: DataTypes.STRING, allowNull: true },
scheme_name: { type: DataTypes.INTEGER, allowNull: true },
lockin_type: { type: DataTypes.STRING, allowNull: true },
display_scheme: { type: DataTypes.STRING, allowNull: true },
scheme_details: { type: DataTypes.STRING, allowNull: true },

+ 1
- 1
utils/db_config.js View File

@ -38,7 +38,7 @@ db.sequelize = sequelize;
db.liquiloansInvestors = require('../model/liquiloansInvestors')(sequelize, Sequelize);
db.P2P_Liquiloans_Inv_Summarys = require('../model/P2P_Liquiloans_Inv_Summarys')(sequelize, Sequelize);
db.investorSummary = require('../model/investorSummary')(sequelize, Sequelize);
module.exports = db;


Loading…
Cancel
Save

Powered by TurnKey Linux.