Create related_type field