master
Bhaskara Kishore 3 years ago
parent 2a3c55810e
commit 16aacc6721

@ -10,7 +10,7 @@ const ObjectId = Schema.Types.ObjectId;
const code = Math.floor(100000 + Math.random() * 900000); const code = Math.floor(100000 + Math.random() * 900000);
const RoleSchema = new Schema({ name: String }); const RoleSchema = new Schema({ name: String });
const tanksSchema = new mongoose.Schema({ const tanksSchema = new mongoose.Schema({
hardwareId: { type: String, unique: true }, hardwareId: { type: String },
customerId: { type: String, default: null }, customerId: { type: String, default: null },
tankName: { type: String, default: null }, tankName: { type: String, default: null },
blockName: { type: String, default: null }, blockName: { type: String, default: null },

Loading…
Cancel
Save