create table st_fakturace ( zakazkovy_list char(12) not null , kodzak numeric(6,0) not null , obj_sml tinyint not null , mat_vydejka numeric(10,0) null , poz_termin datetime null , skut_termin datetime null , podpis char(20) not null , vyhotovil_dne datetime null , typ_listu tinyint not null , c_smlouvy char(15) null , podpis_fakturace char(20) null , datum_fakturace datetime null , stav tinyint not null , datum_zalozeni datetime not null , poznamka text null , poz_list char(50) null , sleva numeric(5,2) not null , c_faktury numeric(10,0) null , kodstrediska tinyint DEFAULT 1 null ) create table hp_fakturace ( zakazkovy_list char(12) not null , kodzak numeric(6,0) not null , obj_sml tinyint not null , mat_vydejka numeric(10,0) null , poz_termin datetime null , skut_termin datetime null , podpis char(20) not null , vyhotovil_dne datetime null , typ_listu tinyint not null , c_smlouvy char(15) null , podpis_fakturace char(20) null , datum_fakturace datetime null , stav tinyint not null , datum_zalozeni datetime not null , poznamka text null , poz_list char(50) null , sleva numeric(5,2) not null , c_faktury numeric(10,0) null , kodstrediska tinyint not null )