#[ ZACATEK SOUBORU ]#

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

#[ CREATE TABLE ZACATEK ]#
    idriadok SERIAL,
    nazev character(50) COLLATE pg_catalog."default" NOT NULL DEFAULT ''::bpchar,
    hmotnost numeric(10,3) NOT NULL DEFAULT 0,
    obrazok bytea,
    c_karty integer NOT NULL DEFAULT 0,
    c_data smallint NOT NULL DEFAULT 1,
    idriadok_master integer NOT NULL DEFAULT 0,
    id_sync integer NOT NULL DEFAULT 0,
    CONSTRAINT <TABLENAME>_<PRIMARYKEY> PRIMARY KEY (<PRIMARYKEY>)
#[ CREATE TABLE KONEC ]#

#[ IF EXIST ZACATEK ]#
#[ PRIMARYKEY ]#
END IF;
#[ KONEC SOUBORU ]#