diff --git a/src/models/tanks.js b/src/models/tanks.js index e03f994b..d27b4777 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 }, + hardwareId: { type: String }, customerId: { type: String, default: null }, tankName: { type: String, default: null }, blockName: { type: String, default: null },