CREATE TABLE hulladek_ht_fel
(
   hulladek_ht_fel_kod serial not null,
   hulladek_ht_fel_htkod int4 not null,
   kezeles varchar(10),
   kujktj varchar(30),
   vegzo varchar(60),
   tipus varchar(40),
   mennyiseg varchar(15),
   "c_userid" varchar(20),
   "c_date" date,
   "c_time" varchar(10),
   "m_userid" varchar(20),
   "m_date" date,
   "m_time" varchar(10),
   CONSTRAINT "hulladek_ht_fel_pk1" PRIMARY KEY ("hulladek_ht_fel_kod"),
   CONSTRAINT hulladek_ht_fel_fk1 FOREIGN KEY (hulladek_ht_fel_htkod) REFERENCES hulladek_ht (hulladek_ht_kod) ON UPDATE NO ACTION ON DELETE NO ACTION
) WITHOUT OIDS;

ALTER TABLE hulladek_ht_fel OWNER TO mbt;

CREATE INDEX hulladek_ht_fel_id1 ON hulladek_ht_fel (hulladek_ht_fel_kod);   
