ashok 10 months ago
commit 90d9967538

@ -110,6 +110,7 @@ exports.addTanks = async (req, reply) => {
customerId: customerId,
hardwareId: hardwareId,
tankhardwareId: tankhardwareId,
shape: req.body.shape,
tankName: req.body.tankName,
blockName: req.body.blockName,
capacity: req.body.capacity,

@ -40,6 +40,7 @@ const tanksSchema = new mongoose.Schema({
customerId: { type: String, default: null },
tankName: { type: String, default: null },
blockName: { type: String, default: null },
shape: { type: String, default: null },
capacity: { type: String, default: "0" },
height: { type: String, default: "0" },
length: { type: String, default: "0" },

@ -33,6 +33,7 @@ module.exports = function (fastify, opts, next) {
typeOfWater: { type: "string" },
waterCapacityPerCm:{ type: "string" },
tankLocation: { type: "string" },
shape:{ type: "string" },
height:{ type: "string" },
width:{ type: "string" },
length:{ type: "string" },
@ -83,6 +84,7 @@ module.exports = function (fastify, opts, next) {
tankName: { type: "string" },
blockName: { type: "string"},
capacity: { type: "string" },
shape: { type: "string" },
// customerId: { type: "string" },
typeOfWater: { type: "string" },
waterCapacityPerCm:{ type: "string" },

Loading…
Cancel
Save