Use a M6 x 50 hex bolt and nut.
Ball joint for more range of motion.
If you want a table with a pattern, print that part upside down and leave out the bottom.
Your pattern can be your infill of choice.
UPDATE!
Had to make a few changes to lengths and tolerances. Redesign of the threads. Optimization for overhangs.
STEP files available.
If you feel like it: coindrop.to/mjk_boron ;)
The author marked this model as their own original creation.