|
|
@ -11,6 +11,8 @@ 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 },
|
|
|
|
hardwareId: { type: String },
|
|
|
|
|
|
|
|
hardwareId_type: { type: String },
|
|
|
|
|
|
|
|
hardwareId_company: { 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 },
|
|
|
|