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