add related_id_type as enum