Here is a DIY Folding table project that may help you. https://do-daddy.com/diy-folding-wall-desk-wood-resin-beach-art/
The brackets are easy to install and any piece of wood can be used.
Shelf Brackets are very affordable. https://amzn.to/2lmtU5R
You could get a small bistro table, you could put a folding shelf if you have a black wall space, and then the traditional folding kitchen table was very popular up to the 70s with folding leaves - here is one example with one leaf.... https://www.wayfair.com/furniture/pdp/charlton-home-castellon-dining-table-w000904924.html
Our first house had a built in table in our kitchen.....much like a Murphy bed. Table had a door on it that matched our cupboards. When the door opened, the table was hinged and you pulled the table out and the one set of folded legs came down. It had Formica on the table part. Took up about as much space as a peninsula would.
There are all kinds of wall-mounted tables that fold down against the wall when not in use. Here are some to give you some ideas.
We have a table where the sides fold down to save space. I like it because it can be out or against the wall.