Set up model relationships.