UPDATE tetel_rendeles SET rendelt = 0 WHERE rendelt < 0;

ALTER TABLE public.tetel_rendeles
  ADD CONSTRAINT tetel_rendeles_ch1 CHECK (rendelt >= 0); 