Actually, it’s your choice.
You can establish a contract to protect you. That’s equivalent with describing the problems which will come up. Problems from which you need to protect yourself. The contract describes all the ways the relationship can end.
You can establish a contract to describe the work you are going to do together. The contract describes the context in which you’ve planned to develop the relationship. It also describes from where the relationship starts to reach a described objective.