How is the parent-child relationship established when parents are not married?

When children are born to married parents, the parent-child relationship is automatically established. When a child is born to parents that are not married, parentage must be established in other ways. It can be established through parents signing a voluntary Declaration of Paternity or by a court order.