|
|
@ -652,8 +652,28 @@ const salesSchema = new mongoose.Schema({
|
|
|
|
updatedBy: ObjectId,
|
|
|
|
updatedBy: ObjectId,
|
|
|
|
}, { versionKey: false });
|
|
|
|
}, { versionKey: false });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const masterSlaveDataSchema = new mongoose.Schema({
|
|
|
|
|
|
|
|
installationId: {type: String},
|
|
|
|
|
|
|
|
type: { type: String},
|
|
|
|
|
|
|
|
hardwareId: { type: String },
|
|
|
|
|
|
|
|
batchno: { type: String, default: null },
|
|
|
|
|
|
|
|
masterId: { type: String },
|
|
|
|
|
|
|
|
tankName: { type: String },
|
|
|
|
|
|
|
|
tankLocation: { type: String },
|
|
|
|
|
|
|
|
materialRecived: { type: String },
|
|
|
|
|
|
|
|
electicityWork: { type: String },
|
|
|
|
|
|
|
|
plumbingWork: { type: String },
|
|
|
|
|
|
|
|
loraCheck: { type: String },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
timestamps: true,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const Iotprice = mongoose.model('Iotprice', iotpriceSchema);
|
|
|
|
const Iotprice = mongoose.model('Iotprice', iotpriceSchema);
|
|
|
|
const Insensors = mongoose.model('Insensors', insensorsSchema);
|
|
|
|
const Insensors = mongoose.model('Insensors', insensorsSchema);
|
|
|
|
|
|
|
|
const MasterSlaveData = mongoose.model('MasterSlaveData', masterSlaveDataSchema);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Order = mongoose.model('Order', orderSchema);
|
|
|
|
const Order = mongoose.model('Order', orderSchema);
|
|
|
|
const EstimationOrder = mongoose.model('EstimationOrder', estimationorderSchema);
|
|
|
|
const EstimationOrder = mongoose.model('EstimationOrder', estimationorderSchema);
|
|
|
@ -675,4 +695,4 @@ const Iotprice = mongoose.model('Iotprice', iotpriceSchema);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = {SensorStock,Order,EstimationOrder,Iotprice,Sales, Install,Survey, ProfilePictureInstall, SensorQuotation,generateinstallationId,Store,ProfilePictureStore,WaterLeverSensor,MotorSwitchSensor,Insensors,generatequatationId, HardwareCart, ServiceCart};
|
|
|
|
module.exports = {MasterSlaveData,SensorStock,Order,EstimationOrder,Iotprice,Sales, Install,Survey, ProfilePictureInstall, SensorQuotation,generateinstallationId,Store,ProfilePictureStore,WaterLeverSensor,MotorSwitchSensor,Insensors,generatequatationId, HardwareCart, ServiceCart};
|
|
|
|