CREATE TABLE public.raktar_mozgas_polc
(
  kod serial,
  rm_kod integer NOT NULL,
  polc_cim character varying(20),
  mennyiseg numeric(16,4) DEFAULT 0,
  letrejott timestamp without time zone DEFAULT now(),
  modosult timestamp without time zone DEFAULT now(),
  CONSTRAINT raktar_mozgas_polc_pkey PRIMARY KEY (kod),
  CONSTRAINT raktar_mozgas_polc_fk1 FOREIGN KEY (rm_kod)
      REFERENCES public.raktar_mozgas (kod) MATCH SIMPLE
      ON UPDATE NO ACTION ON DELETE NO ACTION,
  CONSTRAINT raktar_mozgas_polc_fk2 FOREIGN KEY (polc_cim)
      REFERENCES public.raktar_polc (polc_cim) MATCH SIMPLE
      ON UPDATE NO ACTION ON DELETE NO ACTION
)
WITHOUT OIDS;