DROP TABLE flx_aux_relatorio_faturamento_nota_fiscal; CREATE TABLE IF NOT EXISTS public.flx_aux_relatorio_faturamento_nota_fiscal ( terminal_ip character varying(50) COLLATE pg_catalog."default" NOT NULL, sequencia integer NOT NULL, filial_orc integer NOT NULL, orcamento integer NOT NULL, data_passou_cx date NOT NULL, cliente integer NOT NULL, vlr_tot_liquido numeric(18, 6) NOT NULL, qtd_tot_liquido numeric(18, 6) NOT NULL, filial_nota integer NOT NULL, nota integer NOT NULL, serie character varying(6) NOT NULL, data_emissao date NOT NULL, vlr_total_nota numeric(18, 6) NOT NULL, quantidade numeric(18, 6) NOT NULL, CONSTRAINT pk_flx_aux_relatorio_faturamento_nota_fiscal PRIMARY KEY (terminal_ip, sequencia) ) TABLESPACE pg_default; ALTER TABLE IF EXISTS public.flx_aux_relatorio_faturamento_nota_fiscal OWNER to postgres; COMMENT ON TABLE public.flx_aux_relatorio_faturamento_nota_fiscal IS 'Tabela auxiliar relatorio faturamento Nota Fiscal';