From d18678475f544226e42371281e9292682138045e Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Sat, 22 Nov 2025 12:39:12 +0530 Subject: [PATCH] GWM : industry_code_mismatch_remarks key added in establishment --- app/controllers/establishment.controller.js | 2 ++ app/models/establishment.model.js | 1 + app/routes/routes.js | 2 ++ 3 files changed, 5 insertions(+) diff --git a/app/controllers/establishment.controller.js b/app/controllers/establishment.controller.js index 184e192..0ddfaee 100644 --- a/app/controllers/establishment.controller.js +++ b/app/controllers/establishment.controller.js @@ -38,6 +38,7 @@ exports.createEstablishment = async (req, res) => { permanent_factory_code, industry_code, industry_code_production, + industry_code_mismatch_remarks, license_number, isic_code, description, @@ -116,6 +117,7 @@ exports.createEstablishment = async (req, res) => { permanent_factory_code, industry_code, industry_code_production, + industry_code_mismatch_remarks, license_number, isic_code, description, diff --git a/app/models/establishment.model.js b/app/models/establishment.model.js index df791f9..8178f0f 100644 --- a/app/models/establishment.model.js +++ b/app/models/establishment.model.js @@ -12,6 +12,7 @@ module.exports = (sequelize, DataTypes) => { permanent_factory_code: { type: DataTypes.STRING, unique: true }, industry_code: { type: DataTypes.STRING, unique: true }, industry_code_production: { type: DataTypes.STRING, unique: true }, + industry_code_mismatch_remarks: { type: DataTypes.STRING }, license_number: { type: DataTypes.STRING, unique: true }, isic_code: { type: DataTypes.STRING, unique: true }, diff --git a/app/routes/routes.js b/app/routes/routes.js index b3e056e..371a857 100644 --- a/app/routes/routes.js +++ b/app/routes/routes.js @@ -421,6 +421,7 @@ router.get("/testEmail", establishmentController.testEmail); * permanent_factory_code: { type: string } * industry_code: { type: string } * industry_code_production: { type: string } + * industry_code_mismatch_remarks: { type: string } * license_number: { type: string } * isic_code: { type: string } * description: { type: string } @@ -589,6 +590,7 @@ router.get("/establishments/:id",[verifySignature, verifyToken], establishmentCo * permanent_factory_code: { type: string } * industry_code: { type: string } * industry_code_production: { type: string } + * industry_code_mismatch_remarks: { type: string } * license_number: { type: string } * isic_code: { type: string } * description: { type: string }