CREATE TABLE kockazat_minta
(
  "kockazat_minta_kod" serial NOT NULL,
  "nev" varchar(100),
  "tipus" varchar(50) NOT NULL,
  "masol" bool DEFAULT false,
   "c_userid" varchar(20),
   "c_date" date,
   "c_time" varchar(10),
   "m_userid" varchar(20),
   "m_date" date,
   "m_time" varchar(10),  
  CONSTRAINT "kockazat_minta_pk1" PRIMARY KEY ("kockazat_minta_kod")
) WITHOUT OIDS;

ALTER TABLE kockazat_minta OWNER TO mbt;

CREATE INDEX kockazat_minta_id1 ON kockazat_minta (nev);