update tanker schema changes

master
Bhaskara Kishore 3 years ago
parent 062ddaed4a
commit 2f1b03c086

@ -98,10 +98,12 @@ module.exports = function (fastify, opts, next) {
},
body: {
type: "object",
// required: ['phone'],
properties: {
tankerName: { type: "string", default: null },
phoneNumber: { type: "string", default: null },
supplier_name: { type: "string" },
supplier_address:{ type: "string" },
tankerName: { type: "string" },
phoneNumber: { type: "string"},
alternative_phoneNumber: { type: "string"},
typeofwater: {
type: "array",
maxItems: 2500,
@ -113,16 +115,18 @@ module.exports = function (fastify, opts, next) {
},
},
capacity: {
type: "array",
price: {
type: "array",
maxItems: 2500,
items: {
type: "object",
properties: {
capacity: { type: "string", default: null },
},
},
price: { type: "string", default: null },
},
},
},
capacity: { type: "string"},
},
},

Loading…
Cancel
Save