What does code say about powered semi-permanent furniture?
Do you need actual outlets? Chargers and lights can both be run off of USB, and a USB hub+extension cables doesn't even involve real wiring. It also works in both 120V and 240V countries with just a plug adapter as long as you get a 120/240V hub, which could be an issue if you just use regular outlets.

I'm not sure there's any legal concerns, because you're not putting anything in the wall, and you're not selling it. The code is for things you do to a house, and there are rules if you're going to sell it, but for assembling something for your own use, I think you just need to care about safety.

However, the rules for selling an item such as this are a good way to see if you're doing this safely. I think you want UL 962A Standard for Furniture Power Distribution Units. This is a commercial document ($500+), which you are supposed to purchase from UL, so no link.