The thing about depression is isolation.
Raising children really does take a village and decreases the stress. For me I found a parents anonymous group that was a godsend. Like most national groups they are not all equal. The one I went to was fantastic. They have child care while you go to a group and talk about parenting. Some groups get a lot of referrals from courts. But the one I joined was mostly parents like me, struggling with other issues and fearful of being the same as our parents and wanting better for our kids. We talked a lot about to deal with kids while depressed. You can google parents anonymous or go though 211 to find other types of support. I can only remember one parent there who was in child protective services, but I had been told by other members that some groups had a lot of court appointed parents and the focus was more on how to make proper meals. So if your community has more than one you might check out a couple groups to find the right fit.
. My daughter has told me she has a lot of good memories from childhood. It is possible to break the cycle even when you are dealing with childhood.