#[ ZACATEK SOUBORU ]#

#DEF <SCHEMA>    food600
#DEF <PRIMARYKEY> idriadok
#DEF <TABLENAME> genstavqqq

#[ CREATE TABLE ZACATEK ]#
    c_stredisk integer,
    c_dokl integer,
    c_karty integer NOT NULL DEFAULT 0,
    poradi integer,
    operace character(2) COLLATE pg_catalog."default",
    c_mena smallint,
    menostlp character(10) COLLATE pg_catalog."default",
    idriadok SERIAL,
    CONSTRAINT genstavqqq_idriadok PRIMARY KEY (idriadok)
#[ CREATE TABLE KONEC ]#

#[ IF EXIST ZACATEK ]#
#[ PRIMARYKEY ]#

	TRUNCATE TABLE <SCHEMA>.<TABLENAME> ;



DROP INDEX IF EXISTS <SCHEMA>.genstavqqq_menostlp;
CREATE INDEX genstavqqq_menostlp
    ON <SCHEMA>.genstavqqq USING btree
    (menostlp COLLATE pg_catalog."default" ASC NULLS LAST)
    TABLESPACE pg_default;

 END IF;
#[ KONEC SOUBORU ]#