What are the marriage contracts?

What are the marriage contracts? When can they be done and what are their limitations?