Hello, Pierro. I find myself wanting to challenge the assertions that depression is learned behaviour and that your child will learn it.
Over the course of the past century and longer researchers have studied depression and proposed different models of what it is and how it works. Among those models you will find a few presenting individual depression as learned behaviour. If I understand correctly, more recent models have moved away from strict behaviourist approaches. Doc John, Doc Clyde and I know others here can talk at length about this stuff.
Obviously, your depression affects yourself and your home life in ways that will influence your children. Further, there's the possibility children will inherit a genetic predisposition to depression. None of that dooms them to becoming depressed. At worst, the influences and the genetics
might lower their threshold for developing depression in the future.
The fact you are asking this question indicates your concern, care and love - the most powerful preventatives available.
__________________
My dog

mastered the "fetch" command. He would communicate he wanted something, and I would fetch it.