Sustainable and foldable prefabricated units