Self-erecting boxes often incorporate locking mechanisms or tabs that keep the box securely closed once it is assembled.
https://www.dc-package.com/product/packaging-boxes/self-erecting-boxes/
Popular Foldng Bed And Single Size Solid Wooden Bed
https://www.realgroupchina.com/product/folding-bed/wood-bed/popular-foldng-bed-and-single-size-solid-wooden-bed.html