Child ten laste

Hello
My partner and i are legally co-habitating.
This year we are going to have a baby together.
He will have the child on his salary tax, as he has more tax deduction than me.
What happends if we separate? Who will get the child tax benefit?
Is it a risk that the child is in my care and my former partner will get the child tax benefit?
Thank you.

New topic