added city schema in googleLocation and gst added

master^2
Bhaskar 2 months ago
parent 6efaa1de19
commit a33e1dafa0

@ -77,7 +77,9 @@ const generateDepartmentId = async (city, departmentName) => {
pincode, pincode,
createdBy, createdBy,
updatedBy, updatedBy,
email email,
gstNo,
googleLocation
} = request.body; } = request.body;
// Generate unique cityId // Generate unique cityId
@ -114,6 +116,8 @@ const generateDepartmentId = async (city, departmentName) => {
country, country,
pincode, pincode,
email, email,
gstNo,
googleLocation,
createdBy, createdBy,
updatedBy, updatedBy,
}); });

@ -15,6 +15,8 @@ const citySchema = new mongoose.Schema(
address2: String, address2: String,
pincode: { type: String }, pincode: { type: String },
zone: { type: String }, zone: { type: String },
googleLocation: { type: String },
gstNo: { type: String },
city: { type: String }, city: { type: String },
location: [{ type : String}], location: [{ type : String}],
state: String, state: String,

@ -26,6 +26,9 @@ module.exports = function (fastify, opts, next) {
address2: { type: "string" }, address2: { type: "string" },
zone: { type: "string" }, zone: { type: "string" },
pincode: { type: "string" }, pincode: { type: "string" },
googleLocation: { type: "string" },
gstNo: { type: "string" },
//departmentName: { type: "string" }, //departmentName: { type: "string" },
}, },
}, },

Loading…
Cancel
Save