What happens if your builder goes bankrupt in Australia?

What happens if your builder goes bankrupt in Australia, how to tell if your builder is a sole trader or a company, and what each insolvency path means for you.