Flight training is fun - still scary, but thrilling too. Its also costly - who knew?

My understanding from overheard conversations is that many flight schools don't actually own all their planes, and some are leased back from owners with revenue sharing arrangement. If not a path to profitability, it might offset the cost of owning the plane, and the money can be used to keep the plane maintained, and the flight school gets an aircraft on their roster. Sounds great, but that seems too easy.
I know aircraft ownership usage isn't cheap, a pre-buy inspection is a must, and repairs and overhauls etc. cost small fortunes by middle-class standards. I've been trying to find information online and on the Transport Canada site, but its a bit thick to navigate.
Does anyone know about or have any link to resources on the economics and process of buying a small plane and leasing it to a flight school to offset the costs? Is this a common practice in Canada? How do you do it and what kind of capital expenditures & regulatory hoops do you have to plan for? Do you set up a holding corporation for the aircraft etc., what kind of terms/conditions should be in the agreement and what to avoid?
Thanks in advance for your insights and links.