Added composite key (parent_id, index)