CREATE TABLE raktar_mozgas_termekdij
(
  kod serial,
  rm_kod integer NOT NULL,
  termekdij_ft_kg numeric(12,2),
  termekdij_aktiv integer,
  termek_kod_kategoria character varying(20) DEFAULT '',
  termekdij_kod character varying(20) DEFAULT '',
  mennyiseg numeric(16,4) NOT NULL DEFAULT 0,
  dijtetel_egysege character varying(2) DEFAULT '',
  termekdij_dijtetele numeric(16,4) NOT NULL DEFAULT 0,
  termekdij_osszege numeric(16,4) NOT NULL DEFAULT 0,
  atvallalas_kod character varying(20) DEFAULT '',
  atvallalt_osszeg numeric(16,4) NOT NULL DEFAULT 0,
  CONSTRAINT raktar_mozgas_termekdij_pkey PRIMARY KEY (kod),
  CONSTRAINT raktar_mozgas_termekdij_fk1 FOREIGN KEY (rm_kod)
      REFERENCES public.raktar_mozgas (kod) MATCH SIMPLE
      ON UPDATE NO ACTION ON DELETE NO ACTION
)
WITHOUT OIDS;