From e49f1260e49e42549fd9a139c363636c2f004a12 Mon Sep 17 00:00:00 2001 From: Bhaskara Kishore Date: Mon, 17 Apr 2023 12:08:54 +0530 Subject: [PATCH] changes --- src/models/tanks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/tanks.js b/src/models/tanks.js index 8fa2745f..e03f994b 100644 --- a/src/models/tanks.js +++ b/src/models/tanks.js @@ -10,7 +10,7 @@ const ObjectId = Schema.Types.ObjectId; const code = Math.floor(100000 + Math.random() * 900000); const RoleSchema = new Schema({ name: String }); const tanksSchema = new mongoose.Schema({ - hardwareId: { type: String, unique: true, required: true }, + hardwareId: { type: String, unique: true }, customerId: { type: String, default: null }, tankName: { type: String, default: null }, blockName: { type: String, default: null }, @@ -44,7 +44,7 @@ const motordataSchema = new mongoose.Schema({ const IOttankSchema = new mongoose.Schema({ - hardwareId: { type: String, required: true }, + hardwareId: { type: String}, tankHeight: { type: String, required: true }, maxLevel: { type: String, required: true }, minLevel: { type: String, required: true },