diff --git a/src/models/tankers.js b/src/models/tankers.js index 46bf80a3..81e8e02b 100644 --- a/src/models/tankers.js +++ b/src/models/tankers.js @@ -20,8 +20,12 @@ const tankersSchema = new mongoose.Schema({ capacity: { type: String}, supplier_address: { type: String, default: null }, supplier_name : { type: String, default: null }, - - status: { type: String} + + price: { + type: [String], + default: [] + }, + status: { type: String}, }); diff --git a/src/routes/tankersRoute.js b/src/routes/tankersRoute.js index 599cbc02..aea3b9f2 100644 --- a/src/routes/tankersRoute.js +++ b/src/routes/tankersRoute.js @@ -53,6 +53,9 @@ module.exports = function (fastify, opts, next) { }, }, capacity: { type: "string"}, + price: {type : "string"}, + // status: {type: "string"} + },