CREATE TABLE public.tetel_raktar_polc_csomag
(
  kod serial,
  tetel_kod integer NOT NULL,
  raktar_kod integer NOT NULL,
  mennyiseg numeric(14,2) DEFAULT 0,
  polc_cim character varying(20),
  letrejott timestamp without time zone DEFAULT now(),
  modosult timestamp without time zone DEFAULT now(),
  lejarat timestamp without time zone,
  CONSTRAINT tetel_raktar_polc_csomag_pkey PRIMARY KEY (kod),
  CONSTRAINT tetel_raktar_polc_csomag_fk1 FOREIGN KEY (polc_cim)
      REFERENCES public.raktar_polc (polc_cim) MATCH SIMPLE
      ON UPDATE NO ACTION ON DELETE NO ACTION,
  CONSTRAINT tetel_raktar_polc_csomag_ch1 CHECK (mennyiseg >= 0)
)
WITHOUT OIDS;