date of join added

master^2
Bhaskar 8 months ago
parent 957780616f
commit 33373c1657

@ -516,6 +516,7 @@ exports.addDepartment = async (request, reply) => {
desginationName, desginationName,
location, location,
picture, picture,
dateOfJoin,
createdBy, createdBy,
updatedBy, updatedBy,
} = request.body; } = request.body;
@ -559,6 +560,7 @@ exports.addDepartment = async (request, reply) => {
desginationName, desginationName,
location, location,
picture, picture,
dateOfJoin,
createdBy, createdBy,
updatedBy, updatedBy,
}); });

@ -124,6 +124,7 @@ const citySchema = new mongoose.Schema(
state: String, state: String,
country: String, country: String,
picture:{type:String}, picture:{type:String},
dateOfJoin : { type: String },
services: { password: { bcrypt: String } }, services: { password: { bcrypt: String } },
createdAt: { createdAt: {
type: Date, type: Date,

@ -205,6 +205,7 @@ module.exports = function (fastify, opts, next) {
reportingManager_mobile_number: { type: "string"}, reportingManager_mobile_number: { type: "string"},
reportingManager_email: { type: "string"}, reportingManager_email: { type: "string"},
picture: { type: "string"}, picture: { type: "string"},
dateOfJoin: { type: "string"},
location: { location: {
type: "array", type: "array",
items: { type: "string" }, items: { type: "string" },

Loading…
Cancel
Save