Dual battery factory wiring

Does anyone know how the dual batteries are wired from the factory. I assumed there was a voltage sensing relay. When we were out this weekend on the lake I had a drained battery I had to combine to start after I combined the two batteries I had no more issues. I guess what I'm asking is the alternator put voltage to both or only the selected battery?