Change parentId to enum