diff --git a/src/models/tanks.js b/src/models/tanks.js index 637134a8..a948e714 100644 --- a/src/models/tanks.js +++ b/src/models/tanks.js @@ -30,8 +30,10 @@ const RoleSchema = new Schema({ name: String }); // }); + const tanksSchema = new mongoose.Schema({ hardwareId: { type: String }, + tankhardwareId: { type: String }, hardwareId_type: { type: String }, motor_id:{ type: String ,default: null}, diff --git a/src/routes/tanksRoute.js b/src/routes/tanksRoute.js index aac91347..ffdf6c7c 100644 --- a/src/routes/tanksRoute.js +++ b/src/routes/tanksRoute.js @@ -582,6 +582,7 @@ module.exports = function (fastify, opts, next) { type: 'object', required: ['motor_id', 'status'], properties: { + motor_id: { type: 'string' }, status: { type: 'string'}, current: { type: 'string' },