picture added in department schema

master^2
Bhaskar 8 months ago
parent 46cd536736
commit 9ecf77e259

@ -475,6 +475,7 @@ exports.addDepartment = async (request, reply) => {
pincode, pincode,
desginationName, desginationName,
location, location,
picture,
createdBy, createdBy,
updatedBy, updatedBy,
} = request.body; } = request.body;
@ -517,6 +518,7 @@ exports.addDepartment = async (request, reply) => {
pincode, pincode,
desginationName, desginationName,
location, location,
picture,
createdBy, createdBy,
updatedBy, updatedBy,
}); });

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

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

Loading…
Cancel
Save