designation creation

master
Bhaskar 9 months ago
parent 7ec03eea6e
commit 318dffff18

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

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

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

Loading…
Cancel
Save