CREATE TABLE nyomtat_tuz
(
   nyomtat_tuz_kod serial NOT NULL, 
   nyomtat_tuz_pkod integer, 
   nyomtat_tuz_tkod integer, 
   jelzes character varying, 
   ertesitendok character varying, 
   datum_kelt date, 
   kelthely character varying(60), 
   elhagyas text, 
   "c_userid" varchar(20),
   "c_date" date,
   "c_time" varchar(10),
   "m_userid" varchar(20),
   "m_date" date,
   "m_time" varchar(10),
   CONSTRAINT nyomtat_tuz_pk1 PRIMARY KEY (nyomtat_tuz_kod), 
   CONSTRAINT nyomtat_tuz_fk1 FOREIGN KEY (nyomtat_tuz_pkod, nyomtat_tuz_tkod) REFERENCES telephely (telephely_pkod, telephely_kod) ON UPDATE NO ACTION ON DELETE NO ACTION
) WITHOUT OIDS;
ALTER TABLE nyomtat_tuz OWNER TO mbt;