it is a business.
You need to consult a local real estate attorney.
Thank about: (not a full list)
1. how to handle title, joint, property in common or something else?
2. It will be a owner ocupy (for owner use) or investment.
3. who maneger, who pay utility.
4. how to split income or loss.
5. Who has right to sell. Approve tenant.
6. If you manger, how much another person pay the management fee.
7. If one side make mistake, what is responsibility.
8. ... ...
after you answer all such questions, you may know how to do it.