Hi. There is a hundred way to do this but the project currently lack specifications.
The table will have 5 legs in total?
What is the table material?
What about the easyness of reaching that middle leg
What about the clearance you want to get around it when vertical and when folded.