diff --git a/src/controllers/departmentController.js b/src/controllers/departmentController.js index 4038e34c..854df14f 100644 --- a/src/controllers/departmentController.js +++ b/src/controllers/departmentController.js @@ -77,7 +77,9 @@ const generateDepartmentId = async (city, departmentName) => { pincode, createdBy, updatedBy, - email + email, + gstNo, + googleLocation } = request.body; // Generate unique cityId @@ -114,6 +116,8 @@ const generateDepartmentId = async (city, departmentName) => { country, pincode, email, + gstNo, + googleLocation, createdBy, updatedBy, }); diff --git a/src/models/Department.js b/src/models/Department.js index 56c02945..3d03196e 100644 --- a/src/models/Department.js +++ b/src/models/Department.js @@ -15,6 +15,8 @@ const citySchema = new mongoose.Schema( address2: String, pincode: { type: String }, zone: { type: String }, + googleLocation: { type: String }, + gstNo: { type: String }, city: { type: String }, location: [{ type : String}], state: String, diff --git a/src/routes/departmentRoute.js b/src/routes/departmentRoute.js index bcfca484..2c5017b6 100644 --- a/src/routes/departmentRoute.js +++ b/src/routes/departmentRoute.js @@ -26,6 +26,9 @@ module.exports = function (fastify, opts, next) { address2: { type: "string" }, zone: { type: "string" }, pincode: { type: "string" }, + googleLocation: { type: "string" }, + gstNo: { type: "string" }, + //departmentName: { type: "string" }, }, },