CREATE TABLE public.rlc_aux_relacionamento ( terminal_ip character varying(50) NOT NULL, sequencia integer NOT NULL, tipo character varying(50) NOT NULL, filial_duplicata integer NOT NULL, sequencia_duplicata integer NOT NULL, filial_orcamento integer NOT NULL, data_emissao date NOT NULL, cliente integer NOT NULL, vlr_total_liquido numeric(18, 2) NOT NULL, vlr_utilizado_troca numeric(18, 2) NOT NULL, orcamento integer NOT NULL, nota integer NOT NULL, serie character varying(10) NOT NULL, CONSTRAINT pk_rlc_aux_relacionamento PRIMARY KEY (terminal_ip, sequencia) ) TABLESPACE pg_default; ALTER TABLE IF EXISTS public.rlc_aux_relacionamento OWNER to postgres;