master
Bhaskara Kishore 3 years ago
parent 63273d6dca
commit e49f1260e4

@ -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 },

Loading…
Cancel
Save