added field amount

master
varun 3 years ago
parent e9b8092a4d
commit def1bf0629

@ -25,6 +25,8 @@ const tankersbookingSchema = new mongoose.Schema({
capacity: { type: String, default: null },
address: { type: String, default: null },
dateTime: { type: String, default: null },
amount : { type: String, default: "due" },
});
module.exports = mongoose.model("Tanker", tankersSchema);

@ -114,8 +114,8 @@ module.exports = function (fastify, opts, next) {
url: "/api/bookingData",
schema: {
tags: ["Tanker"],
description: "This is for store booking data of a Tanker",
summary: "This is for store booking data of a Tanker",
description: "This is for storing booking data of a Tanker",
summary: "This is for storing booking data of a Tanker",
body: {
type: "object",
properties: {
@ -124,6 +124,7 @@ module.exports = function (fastify, opts, next) {
capacity: { type: "string" },
address: { type: "string" },
dateTime: { type: "string"},
amount : { type: "string" },
},
},

Loading…
Cancel
Save