DROP INDEX IF EXISTS folders_tenant_parent_name_unique_idx;
CREATE UNIQUE INDEX folders_parent_name_unique_idx
    ON folders (
        COALESCE(parent_id, '00000000-0000-0000-0000-000000000000'::uuid),
        name
    );
