You can also layer in magda squash, along with summer squash and zucchini, in this recipe!
Preheat oven to 400F. Heat olive oil in a pan over medium heat. Add in diced onion and minced garlic and saute until onion is soft and translucent, stirring often to avoid burning the garlic. Set aside.
Uniformly slice the squash, zucchini, potato, and tomatoes to 1/4in thickness or less.
Grease the bottom and sides of an 8x8 baking dish. Spread the onion and garlic mixture evenly on the bottom of the pan. Layer in the zucchini, squash, tomato, and potato slices vertically (so the last layer is leaning up against the side of the dish, not in stacks. Sprinkle with salt, pepper, and thyme.
Tightly cover the baking dish with foil or a lid and bake in the oven for 30 minutes. Remove the lid, top with cheese, and bake for another 15minutes until cheese is goldenbrow.