Design and construction of production and domestic wastewater treatment system