diff --git a/src/models/tankers.js b/src/models/tankers.js index b06aa25d..74260275 100644 --- a/src/models/tankers.js +++ b/src/models/tankers.js @@ -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); diff --git a/src/routes/tankersRoute.js b/src/routes/tankersRoute.js index e7789e91..eb1460c1 100644 --- a/src/routes/tankersRoute.js +++ b/src/routes/tankersRoute.js @@ -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" }, }, },