CREATE UNIQUE INDEX tenants_storage_root_unique
    ON public.tenants (storage_root)
    WHERE storage_root IS NOT NULL;

CREATE UNIQUE INDEX tenants_quickwit_index_unique
    ON public.tenants (quickwit_index)
    WHERE quickwit_index IS NOT NULL;
