In the Middle Ages, toilets were usually just a wooden seat over a pit. However castles might have a garderobe, which was a stone seat attached to a shaft that emptied outside, maybe in the moat. Hey, they wanted the moat to deter attacks. http://www.thistleharvest.com/2020/03/stenciling-my-bathroom-floor.html