Trim the aubergines. Peel the pumpkin. Cut both into bite-sized cubes. Peel and finely chop the onion and garlic.
Heat 1 tbsp oil in a pan and fry the aubergines and pumpkin for about 5 minutes until golden brown. Transfer to a plate.
Fry the minced meat in the pan in another 1 tbsp hot oil until browned, breaking up as it cooks. Add the onion and garlic and fry until brown. Deglaze with the wine and mix in the tomatoes. Season with salt, pepper and cinnamon and simmer for about 15 minutes until thickened.
Preheat the oven to 180°C.
Mix the eggplants and pumpkin into the mince, season to taste and pour into a baking dish.
Whisk the eggs with the almond flour, cream cheese and grated cheese. Season with salt, pepper and nutmeg. Spoon over the meat mixture, spread level and bake for 45 minutes until golden brown and bubbling.