suseendhiran
This commit is contained in:
parent
e51eed2ba3
commit
44c40afa53
@ -1,4 +1,4 @@
|
||||
const { sequelize,Test , AdjustableTang , PolicyParameterMaster } = require('../models')
|
||||
const { sequelize,Test , AdjustableTang , PolicyParameterMaster , DoubleWhammy} = require('../models')
|
||||
const { logMsg } = require('../services/logger.js');
|
||||
|
||||
|
||||
|
||||
@ -2,16 +2,6 @@
|
||||
const { Model } = require('sequelize')
|
||||
module.exports = (sequelize, DataTypes) => {
|
||||
class DoubleWhammy 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' })
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
DoubleWhammy.init(
|
||||
@ -20,11 +10,11 @@ module.exports = (sequelize, DataTypes) => {
|
||||
check_type_id : { type: DataTypes.INTEGER },
|
||||
property_type_id : { type: DataTypes.INTEGER },
|
||||
property_usage : { type: DataTypes.STRING },
|
||||
eligibility_factor_1 : { type: DataTypes.INTEGER },
|
||||
eligibility_factor_2 : { type: DataTypes.INTEGER },
|
||||
eligibility_factor_3 : { type: DataTypes.INTEGER },
|
||||
eligibility_factor_4 : { type: DataTypes.INTEGER },
|
||||
eligibility_factor_5 : { type: DataTypes.INTEGER },
|
||||
eligibility_factor_1 : { type: DataTypes.STRING },
|
||||
eligibility_factor_2 : { type: DataTypes.STRING },
|
||||
eligibility_factor_3 : { type: DataTypes.STRING },
|
||||
eligibility_factor_4 : { type: DataTypes.STRING },
|
||||
eligibility_factor_5 : { type: DataTypes.STRING },
|
||||
result : { type: DataTypes.STRING },
|
||||
is_active : { type: DataTypes.INTEGER },
|
||||
createdby : { type: DataTypes.INTEGER },
|
||||
|
||||
@ -28,3 +28,4 @@ module.exports = (sequelize, DataTypes) => {
|
||||
)
|
||||
return PolicyParameterMaster
|
||||
}
|
||||
|
||||
|
||||
@ -7,9 +7,6 @@ module.exports = app => {
|
||||
var router = require("express").Router();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /api/demo:
|
||||
@ -22,8 +19,10 @@ module.exports = app => {
|
||||
*/
|
||||
router.get("/demo", Mycontroller.Welcome);
|
||||
|
||||
router.post("/update", Mycontroller.update);
|
||||
|
||||
// Parameter Maste rData select api
|
||||
|
||||
// Parameter MasterData select api
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
|
||||
2723
package-lock.json
generated
2723
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -17,6 +17,7 @@
|
||||
"json-rules-engine": "^6.1.2",
|
||||
"log4js": "^6.3.0",
|
||||
"mssql": "^7.2.0",
|
||||
"pm2": "^5.2.0",
|
||||
"request": "^2.88.2",
|
||||
"sequelize": "^6.6.5",
|
||||
"swagger-jsdoc": "^6.1.0",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user