#[ ZACATEK SOUBORU ]#

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

#[ CREATE TABLE ZACATEK ]#
    c_karty integer NOT NULL DEFAULT 0,
    c_poloz integer NOT NULL DEFAULT (0)::integer,
    hruba numeric DEFAULT 0.0000,
    cista numeric DEFAULT 0.0000,
    pocet numeric DEFAULT 1.0000,
    procento numeric DEFAULT (0)::numeric,
    id_man character(2) COLLATE pg_catalog."default" DEFAULT '""'::bpchar,
    id_hlav int4 DEFAULT (0)::int4,
    poznamka character(10) COLLATE pg_catalog."default" DEFAULT '""'::bpchar,
    c_data smallint NOT NULL DEFAULT 1,
    idriadok SERIAL,
    CONSTRAINT cas_pol_idriadok PRIMARY KEY (idriadok)
#[ CREATE TABLE KONEC ]#

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

DROP INDEX IF EXISTS <SCHEMA>.c_karty;
CREATE INDEX c_karty
    ON <SCHEMA>.cas_pol USING btree
    (c_karty ASC NULLS LAST)
    TABLESPACE pg_default;

END IF;

#[ KONEC SOUBORU ]#