ALTER TABLE public.count_invoices ADD CONSTRAINT count_invoices_fk FOREIGN KEY (client_id) REFERENCES public.registry_entities(id);
