From 33373c1657cbcc32369bf132469afa697cfd91a9 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Tue, 11 Feb 2025 16:43:34 +0530 Subject: [PATCH] date of join added --- src/controllers/departmentController.js | 2 ++ src/models/Department.js | 1 + src/routes/departmentRoute.js | 1 + 3 files changed, 4 insertions(+) diff --git a/src/controllers/departmentController.js b/src/controllers/departmentController.js index e8daf6e0..b5e8244e 100644 --- a/src/controllers/departmentController.js +++ b/src/controllers/departmentController.js @@ -516,6 +516,7 @@ exports.addDepartment = async (request, reply) => { desginationName, location, picture, + dateOfJoin, createdBy, updatedBy, } = request.body; @@ -559,6 +560,7 @@ exports.addDepartment = async (request, reply) => { desginationName, location, picture, + dateOfJoin, createdBy, updatedBy, }); diff --git a/src/models/Department.js b/src/models/Department.js index 3365e206..e4c8451f 100644 --- a/src/models/Department.js +++ b/src/models/Department.js @@ -124,6 +124,7 @@ const citySchema = new mongoose.Schema( state: String, country: String, picture:{type:String}, + dateOfJoin : { type: String }, services: { password: { bcrypt: String } }, createdAt: { type: Date, diff --git a/src/routes/departmentRoute.js b/src/routes/departmentRoute.js index cf4f6bc8..d0049607 100644 --- a/src/routes/departmentRoute.js +++ b/src/routes/departmentRoute.js @@ -205,6 +205,7 @@ module.exports = function (fastify, opts, next) { reportingManager_mobile_number: { type: "string"}, reportingManager_email: { type: "string"}, picture: { type: "string"}, + dateOfJoin: { type: "string"}, location: { type: "array", items: { type: "string" },