ashok 9 months ago
commit 6e508885e2

@ -236,6 +236,7 @@ exports.getAllDepartmentsParticularFields = async (req, reply) => {
address2, address2,
pincode, pincode,
desginationName, desginationName,
location,
createdBy, createdBy,
updatedBy, updatedBy,
} = request.body; } = request.body;
@ -271,6 +272,7 @@ exports.getAllDepartmentsParticularFields = async (req, reply) => {
country, country,
pincode, pincode,
desginationName, desginationName,
location,
createdBy, createdBy,
updatedBy, updatedBy,
}); });

@ -44,6 +44,7 @@ const departmentSchema = new mongoose.Schema(
desginationName: { type: String }, desginationName: { type: String },
phone: { type: String, unique: true, trim: true }, phone: { type: String, unique: true, trim: true },
reportingManager : { type: String }, reportingManager : { type: String },
location: [{ type : String}],
firstName : { type: String }, firstName : { type: String },
lastName: { type: String }, lastName: { type: String },
email: { type: String }, email: { type: String },

@ -25,7 +25,7 @@ module.exports = function (fastify, opts, next) {
address2: { type: "string" }, address2: { type: "string" },
zone: { type: "string" }, zone: { type: "string" },
pincode: { type: "string" }, pincode: { type: "string" },
departmentName: { type: "string" }, //departmentName: { type: "string" },
}, },
}, },
security: [ security: [
@ -178,6 +178,10 @@ module.exports = function (fastify, opts, next) {
lastName: { type: "string" }, lastName: { type: "string" },
reportingManager: { type: "string" }, reportingManager: { type: "string" },
email: { type: "string" }, email: { type: "string" },
location: {
type: "array",
items: { type: "string" },
},
}, },
}, },
security: [ security: [

Loading…
Cancel
Save