My workshop is our guest bedroom. We took a recycled slab door and attached folding legs on it, then cut PVC pipe into segments to shove onto the legs to raise the table high enough that it goes over the foot of the king sized bed. We also added end caps to the leg extensions. It works perfectly, and you could also just use an 8 ft. Folding table with PVC leg extensions instead of making your own table. Whenever we have overnight guests, we fold up the table and slide it out of the way.
Lots of quilters use PVC pipe to raise tables up to a more comfortable level. You can do a web search to see pictures of how it looks.