made changes in tanker

master
varun 3 years ago
parent 94a979fc53
commit 7ec394bc98

@ -15,8 +15,8 @@ const tankersSchema = new mongoose.Schema({
tankerName: { type: String, default: null },
phoneNumber: { type: String, default: null },
alternative_phoneNumber: { type: String, default: null },
typeofwater: [{ typeofwater: String}],
capacity: [{ capacity: String}],
typeofwater: { typeofwater: String},
capacity: { capacity: String},
supplier_address: { type: String, default: null },
supplier_name : { type: String, default: null },

@ -31,29 +31,8 @@ module.exports = function (fastify, opts, next) {
tankerName: { type: "string" },
phoneNumber: { type: "string"},
alternative_phoneNumber: { type: "string"},
typeofwater: {
type: "array",
maxItems: 2500,
items: {
type: "object",
properties: {
typeofwater: { type: "string", default: null },
},
},
},
capacity: {
type: "array",
maxItems: 2500,
items: {
type: "object",
properties: {
capacity: { type: "string", default: null },
},
},
},
typeofwater: { type: "string"},
capacity: { type: "string"},
},
},

Loading…
Cancel
Save