Add type to relationship