Before you start on a patio that drains properly in heavy rain
https://israelnkkd246.almoheet-travel.com/how-the-seasons-change-a-rain-garden-for-a-low-corner-of-the-yard
One decision worth settling early is which direction the patio should slope. A patio should fall slightly away from the house and toward a safe place for water to land