ashok 2 months ago
commit 83400f941a

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

@ -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,

@ -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" },
},
},

Loading…
Cancel
Save