--
-- NOTE:
--
-- File paths need to be edited. Search for $$PATH$$ and
-- replace it with the path to the directory containing
-- the extracted data files.
--
--
-- PostgreSQL database dump
--

-- Dumped from database version 17.6
-- Dumped by pg_dump version 17.6

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET transaction_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

DROP DATABASE "SATIVAZIO";
--
-- Name: SATIVAZIO; Type: DATABASE; Schema: -; Owner: postgres
--

CREATE DATABASE "SATIVAZIO" WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE = 'pt_BR.UTF-8';


ALTER DATABASE "SATIVAZIO" OWNER TO postgres;

\unrestrict (null)
\connect "SATIVAZIO"
\restrict (null)

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET transaction_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

--
-- Name: public; Type: SCHEMA; Schema: -; Owner: postgres
--

-- *not* creating schema, since initdb creates it


ALTER SCHEMA public OWNER TO postgres;

--
-- Name: dom_agencia; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_agencia AS character varying(5);


ALTER DOMAIN public.dom_agencia OWNER TO postgres;

--
-- Name: dom_ano; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_ano AS integer;


ALTER DOMAIN public.dom_ano OWNER TO postgres;

--
-- Name: dom_ano2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_ano2 AS integer;


ALTER DOMAIN public.dom_ano2 OWNER TO postgres;

--
-- Name: dom_bairro; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_bairro AS character varying(30);


ALTER DOMAIN public.dom_bairro OWNER TO postgres;

--
-- Name: dom_banco; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_banco AS character varying(5);


ALTER DOMAIN public.dom_banco OWNER TO postgres;

--
-- Name: dom_cep; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_cep AS character varying(8);


ALTER DOMAIN public.dom_cep OWNER TO postgres;

--
-- Name: dom_cgc; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_cgc AS character varying(14);


ALTER DOMAIN public.dom_cgc OWNER TO postgres;

--
-- Name: dom_cgc2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_cgc2 AS character varying(18);


ALTER DOMAIN public.dom_cgc2 OWNER TO postgres;

--
-- Name: dom_codint; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_codint AS integer;


ALTER DOMAIN public.dom_codint OWNER TO postgres;

--
-- Name: dom_codint2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_codint2 AS integer;


ALTER DOMAIN public.dom_codint2 OWNER TO postgres;

--
-- Name: dom_codintnn; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_codintnn AS integer NOT NULL;


ALTER DOMAIN public.dom_codintnn OWNER TO postgres;

--
-- Name: dom_codstr; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_codstr AS character(5);


ALTER DOMAIN public.dom_codstr OWNER TO postgres;

--
-- Name: dom_codstr2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_codstr2 AS character(5);


ALTER DOMAIN public.dom_codstr2 OWNER TO postgres;

--
-- Name: dom_complender; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_complender AS character varying(40);


ALTER DOMAIN public.dom_complender OWNER TO postgres;

--
-- Name: dom_condpag; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_condpag AS character(1);


ALTER DOMAIN public.dom_condpag OWNER TO postgres;

--
-- Name: dom_contacorrente; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_contacorrente AS character varying(10);


ALTER DOMAIN public.dom_contacorrente OWNER TO postgres;

--
-- Name: dom_cpf; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_cpf AS character varying(11);


ALTER DOMAIN public.dom_cpf OWNER TO postgres;

--
-- Name: dom_cpf2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_cpf2 AS character varying(14);


ALTER DOMAIN public.dom_cpf2 OWNER TO postgres;

--
-- Name: dom_dinheiro; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_dinheiro AS numeric(20,2);


ALTER DOMAIN public.dom_dinheiro OWNER TO postgres;

--
-- Name: dom_dinheiro2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_dinheiro2 AS numeric(20,2);


ALTER DOMAIN public.dom_dinheiro2 OWNER TO postgres;

--
-- Name: dom_dinheiro3; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_dinheiro3 AS numeric(20,2);


ALTER DOMAIN public.dom_dinheiro3 OWNER TO postgres;

--
-- Name: dom_email; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_email AS character varying(50);


ALTER DOMAIN public.dom_email OWNER TO postgres;

--
-- Name: dom_email2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_email2 AS character varying(200);


ALTER DOMAIN public.dom_email2 OWNER TO postgres;

--
-- Name: dom_endereco; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_endereco AS character varying(50);


ALTER DOMAIN public.dom_endereco OWNER TO postgres;

--
-- Name: dom_endereco2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_endereco2 AS character varying(50);


ALTER DOMAIN public.dom_endereco2 OWNER TO postgres;

--
-- Name: dom_endereco255; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_endereco255 AS character varying(255);


ALTER DOMAIN public.dom_endereco255 OWNER TO postgres;

--
-- Name: dom_fone; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_fone AS character varying(20);


ALTER DOMAIN public.dom_fone OWNER TO postgres;

--
-- Name: dom_fone2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_fone2 AS character varying(20);


ALTER DOMAIN public.dom_fone2 OWNER TO postgres;

--
-- Name: dom_ie; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_ie AS character varying(20);


ALTER DOMAIN public.dom_ie OWNER TO postgres;

--
-- Name: dom_im; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_im AS character varying(20);


ALTER DOMAIN public.dom_im OWNER TO postgres;

--
-- Name: dom_mes; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_mes AS integer;


ALTER DOMAIN public.dom_mes OWNER TO postgres;

--
-- Name: dom_natoper; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_natoper AS character(1);


ALTER DOMAIN public.dom_natoper OWNER TO postgres;

--
-- Name: dom_nomepessoa; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_nomepessoa AS character varying(70);


ALTER DOMAIN public.dom_nomepessoa OWNER TO postgres;

--
-- Name: dom_nomepessoa2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_nomepessoa2 AS character varying(70);


ALTER DOMAIN public.dom_nomepessoa2 OWNER TO postgres;

--
-- Name: dom_nomereduz; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_nomereduz AS character varying(20);


ALTER DOMAIN public.dom_nomereduz OWNER TO postgres;

--
-- Name: dom_numdoc; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_numdoc AS character varying(10);


ALTER DOMAIN public.dom_numdoc OWNER TO postgres;

--
-- Name: dom_numnf; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_numnf AS character varying(10);


ALTER DOMAIN public.dom_numnf OWNER TO postgres;

--
-- Name: dom_obs; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_obs AS character varying(200);


ALTER DOMAIN public.dom_obs OWNER TO postgres;

--
-- Name: dom_obs2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_obs2 AS character varying(400);


ALTER DOMAIN public.dom_obs2 OWNER TO postgres;

--
-- Name: dom_obs3; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_obs3 AS character varying(800);


ALTER DOMAIN public.dom_obs3 OWNER TO postgres;

--
-- Name: dom_porcentagem; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_porcentagem AS numeric(20,6);


ALTER DOMAIN public.dom_porcentagem OWNER TO postgres;

--
-- Name: dom_porcentagem2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_porcentagem2 AS numeric(20,6);


ALTER DOMAIN public.dom_porcentagem2 OWNER TO postgres;

--
-- Name: dom_quant; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_quant AS integer;


ALTER DOMAIN public.dom_quant OWNER TO postgres;

--
-- Name: dom_quantreal; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_quantreal AS numeric(20,6);


ALTER DOMAIN public.dom_quantreal OWNER TO postgres;

--
-- Name: dom_quantreal2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_quantreal2 AS numeric(18,10);


ALTER DOMAIN public.dom_quantreal2 OWNER TO postgres;

--
-- Name: dom_ramoativ; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_ramoativ AS character(1);


ALTER DOMAIN public.dom_ramoativ OWNER TO postgres;

--
-- Name: dom_renavam; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_renavam AS character varying(30);


ALTER DOMAIN public.dom_renavam OWNER TO postgres;

--
-- Name: dom_resp; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_resp AS character(1);


ALTER DOMAIN public.dom_resp OWNER TO postgres;

--
-- Name: dom_situacao; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_situacao AS character(1);


ALTER DOMAIN public.dom_situacao OWNER TO postgres;

--
-- Name: dom_situacaoacordo; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_situacaoacordo AS character(1);


ALTER DOMAIN public.dom_situacaoacordo OWNER TO postgres;

--
-- Name: dom_situacaoocorrencia; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_situacaoocorrencia AS character(1);


ALTER DOMAIN public.dom_situacaoocorrencia OWNER TO postgres;

--
-- Name: dom_situacaotitulo; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_situacaotitulo AS character(1);


ALTER DOMAIN public.dom_situacaotitulo OWNER TO postgres;

--
-- Name: dom_temp; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_temp AS numeric(18,10);


ALTER DOMAIN public.dom_temp OWNER TO postgres;

--
-- Name: dom_text; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_text AS text;


ALTER DOMAIN public.dom_text OWNER TO postgres;

--
-- Name: dom_tiponf; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_tiponf AS character(1);


ALTER DOMAIN public.dom_tiponf OWNER TO postgres;

--
-- Name: dom_tipopessoa; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_tipopessoa AS character(1);


ALTER DOMAIN public.dom_tipopessoa OWNER TO postgres;

--
-- Name: dom_tipoportador; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_tipoportador AS character(1);


ALTER DOMAIN public.dom_tipoportador OWNER TO postgres;

--
-- Name: dom_tipoprod; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_tipoprod AS character(1);


ALTER DOMAIN public.dom_tipoprod OWNER TO postgres;

--
-- Name: dom_uf; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_uf AS character(2);


ALTER DOMAIN public.dom_uf OWNER TO postgres;

--
-- Name: dom_uf2; Type: DOMAIN; Schema: public; Owner: postgres
--

CREATE DOMAIN public.dom_uf2 AS character(2);


ALTER DOMAIN public.dom_uf2 OWNER TO postgres;

--
-- Name: arrumarcodconta(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.arrumarcodconta() RETURNS void
    LANGUAGE plpgsql
    AS $$
	DECLARE
		listNumeroConta Conta%ROWTYPE;
		novoCodConta INTEGER;
BEGIN
		novoCodConta := (SELECT NEXTVAL('CODCONTA_GEN'));
    FOR listNumeroConta IN SELECT NumeroConta FROM Conta WHERE CodConta IS NULL LOOP
      UPDATE Conta SET CodConta = novoCodConta WHERE NumeroConta = listNumeroConta.NumeroConta;
      novoCodConta := novoCodConta + 1;
    END LOOP;
END;
$$;


ALTER FUNCTION public.arrumarcodconta() OWNER TO postgres;

--
-- Name: arrumarcores(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.arrumarcores() RETURNS void
    LANGUAGE plpgsql
    AS $$
  DECLARE 
    Codigo INTEGER;
    Ct INTEGER;
    Cores VARCHAR(30);
BEGIN
  FOR Cores IN SELECT DISTINCT Cor FROM Veiculo WHERE (Cor IS NOT NULL) AND (CodCor IS NULL) LOOP
    Ct := (SELECT COUNT(CodCor) FROM Cor WHERE Descricao = Cores); 
    IF (Ct = 0) THEN
      Codigo := (SELECT NEXTVAL('CodCor_Gen'));
      INSERT INTO Cor (CodCor,Descricao,UsuarioINS,DataDigitacao)
        VALUES(Codigo,Cores,'S',current_timestamp);
    END IF;
  END LOOP;
END;
$$;


ALTER FUNCTION public.arrumarcores() OWNER TO postgres;

--
-- Name: arrumarcorescarretas(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.arrumarcorescarretas() RETURNS void
    LANGUAGE plpgsql
    AS $$
  DECLARE 
    Codigo INTEGER;
    Ct INTEGER;
    CoresCarretas VARCHAR(30);
BEGIN
  FOR CoresCarretas IN SELECT DISTINCT CorCarreta FROM Veiculo WHERE (CorCarreta IS NOT NULL) AND (CodCorCarreta IS NULL) LOOP
    Ct := (SELECT COUNT(CodCor) FROM Cor WHERE Descricao = CoresCarretas); 
    IF (Ct = 0) THEN
      Codigo := (SELECT NEXTVAL('CodCor_Gen'));
      INSERT INTO Cor (CodCor,Descricao,UsuarioINS,DataDigitacao)
        VALUES(Codigo,CoresCarretas,'S',current_timestamp);
    END IF;
  END LOOP;
END;
$$;


ALTER FUNCTION public.arrumarcorescarretas() OWNER TO postgres;

--
-- Name: arrumardatabaixacheque(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.arrumardatabaixacheque() RETURNS void
    LANGUAGE plpgsql
    AS $$
  DECLARE 
    listDP DuplicataPagar%ROWTYPE;
    DataBaixaTransacao TIMESTAMP;
BEGIN
  FOR listDP IN SELECT * FROM DuplicataPagar WHERE CodTransacao IS NOT NULL AND CodInterno IS NOT NULL LOOP
    DataBaixaTransacao := (SELECT DataBaixa FROM Transacao WHERE CodTransacao = listDP.CodTransacao); 
    UPDATE Cheque SET DataBaixa = DataBaixaTransacao WHERE CodInterno = listDP.CodInterno;
  END LOOP;
END;
$$;


ALTER FUNCTION public.arrumardatabaixacheque() OWNER TO postgres;

--
-- Name: arrumarmarcas(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.arrumarmarcas() RETURNS void
    LANGUAGE plpgsql
    AS $$
  DECLARE 
    Codigo INTEGER;
    Ct INTEGER;
    Marcas VARCHAR(30);
BEGIN
  FOR Marcas IN SELECT DISTINCT Marca FROM Veiculo WHERE (Marca IS NOT NULL) AND (CodModelo IS NULL) LOOP
    Ct := (SELECT COUNT(CodMarca) FROM Marca WHERE Descricao = Marcas); 
    IF (Ct = 0) THEN
      Codigo := (SELECT NEXTVAL('CodMarca_Gen'));
      INSERT INTO Marca (CodMarca,Descricao,UsuarioINS,DataDigitacao)
        VALUES(Codigo,Marcas,'S',current_timestamp);
    END IF;
  END LOOP;
END;
$$;


ALTER FUNCTION public.arrumarmarcas() OWNER TO postgres;

--
-- Name: arrumarmarcascarretas(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.arrumarmarcascarretas() RETURNS void
    LANGUAGE plpgsql
    AS $$
  DECLARE 
    Codigo INTEGER;
    Ct INTEGER;
    MarcasCarretas VARCHAR(30);
BEGIN
  FOR MarcasCarretas IN SELECT DISTINCT MarcaCarreta FROM Veiculo WHERE (MarcaCarreta IS NOT NULL) AND (CodModeloCarreta IS NULL) LOOP
    Ct := (SELECT COUNT(CodMarca) FROM Marca WHERE Descricao = MarcasCarretas); 
    IF (Ct = 0) THEN
      Codigo := (SELECT NEXTVAL('CodMarca_Gen'));
      INSERT INTO Marca (CodMarca,Descricao,UsuarioINS,DataDigitacao)
        VALUES(Codigo,MarcasCarretas,'S',current_timestamp);
    END IF;
  END LOOP;
END;
$$;


ALTER FUNCTION public.arrumarmarcascarretas() OWNER TO postgres;

--
-- Name: arrumarmodelos(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.arrumarmodelos() RETURNS void
    LANGUAGE plpgsql
    AS $$
  DECLARE 
    Codigo INTEGER;
    Ct INTEGER;
    Modelos VARCHAR(30);
BEGIN
  FOR Modelos IN SELECT DISTINCT Modelo FROM Veiculo WHERE (Modelo IS NOT NULL) AND (CodModelo IS NULL) LOOP
    Ct := (SELECT COUNT(CodModelo) FROM ModeloVeic WHERE Descricao = Modelos); 
    IF (Ct = 0) THEN
      Codigo := (SELECT NEXTVAL('CodModeloVeic_Gen'));
      INSERT INTO ModeloVeic (CodModelo,Descricao,UsuarioINS,DataDigitacao)
        VALUES(Codigo,Modelos,'S',current_timestamp);
    END IF;
  END LOOP;
END;
$$;


ALTER FUNCTION public.arrumarmodelos() OWNER TO postgres;

--
-- Name: arrumarmodeloscarretas(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.arrumarmodeloscarretas() RETURNS void
    LANGUAGE plpgsql
    AS $$
  DECLARE 
    Codigo INTEGER;
    Ct INTEGER;
    ModelosCarretas VARCHAR(30);
BEGIN
  FOR ModelosCarretas IN SELECT DISTINCT ModeloCarreta FROM Veiculo WHERE (ModeloCarreta IS NOT NULL) AND (CodModeloCarreta IS NULL) LOOP
    Ct := (SELECT COUNT(CodModelo) FROM ModeloVeic WHERE Descricao = ModelosCarretas); 
    IF (Ct = 0) THEN
      Codigo := (SELECT NEXTVAL('CodModeloVeic_Gen'));
      INSERT INTO ModeloVeic (CodModelo,Descricao,UsuarioINS,DataDigitacao)
        VALUES(Codigo,ModelosCarretas,'S',current_timestamp);
    END IF;
  END LOOP;
END;
$$;


ALTER FUNCTION public.arrumarmodeloscarretas() OWNER TO postgres;

--
-- Name: checkbaixadpconhecfatpag(integer, character varying, integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.checkbaixadpconhecfatpag(numero integer, tipofatpag character varying, codfatpagold integer, codfatpagnew integer, codfornecedorold integer) RETURNS integer
    LANGUAGE plpgsql
    AS $$
  DECLARE CodDuplicataPagarBaixa INTEGER;
BEGIN
  IF ((CodFatPagNew IS NULL OR CodFatPagNew = 0) AND (CodFatPagOld IS NOT NULL AND CodFatPagOld > 0)) THEN
    CodDuplicataPagarBaixa := (SELECT CodDuplicataPagar FROM DuplicataPagar 
      WHERE NumeroNota = CodFatPagOld AND Serie = 'FPV' AND CodFornecedor = CodFornecedorOld
      AND (CodTransacao IS NOT NULL OR CodBaixa = '3'));
    IF (CodDuplicataPagarBaixa IS NOT NULL AND CodDuplicataPagarBaixa > 0) THEN
      RAISE EXCEPTION 'Tentativa de desvincular Conhecimento % de Fatura de Pagamento de % % com Duplicata Paga. Favor cancelar operacao.', Numero, TipoFatPag, CodFatPagOld;
      RETURN 0;
    END IF;
  END IF;
  RETURN 1;
END
$$;


ALTER FUNCTION public.checkbaixadpconhecfatpag(numero integer, tipofatpag character varying, codfatpagold integer, codfatpagnew integer, codfornecedorold integer) OWNER TO postgres;

--
-- Name: checkbaixadpconhecfatrec(integer, character varying, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.checkbaixadpconhecfatrec(numero integer, tipofatrec character varying, codfatrecold integer, codfatrecnew integer) RETURNS integer
    LANGUAGE plpgsql
    AS $$
  DECLARE CodDuplicataReceberBaixa INTEGER;
BEGIN
  IF ((CodFatRecNew IS NULL OR CodFatRecNew = 0) AND (CodFatRecOld IS NOT NULL AND CodFatRecOld > 0)) THEN
    CodDuplicataReceberBaixa := (SELECT CodDuplicataReceber FROM DuplicataReceber 
      WHERE CodFatura = CodFatRecOld
      AND (CodTransacao IS NOT NULL OR CodBaixa = '3'));
    IF (CodDuplicataReceberBaixa IS NOT NULL AND CodDuplicataReceberBaixa > 0) THEN
      RAISE EXCEPTION 'Tentativa de desvincular Conhecimento % de Fatura de Recebimento de % % com Duplicata Recebida. Favor cancelar operacao.', Numero, TipoFatRec, CodFatRecOld;
      RETURN 0;
    END IF;
  END IF;
  RETURN 1;
END
$$;


ALTER FUNCTION public.checkbaixadpconhecfatrec(numero integer, tipofatrec character varying, codfatrecold integer, codfatrecnew integer) OWNER TO postgres;

--
-- Name: checkcodigovazioconhec(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.checkcodigovazioconhec(newcodigo integer, oldcodigo integer) RETURNS integer
    LANGUAGE plpgsql
    AS $$
BEGIN
  IF ((NewCodigo IS NULL OR NewCodigo = 0) AND OldCodigo IS NOT NULL AND OldCodigo > 0) THEN
    RETURN 0;
  END IF;
  RETURN 1;
END
$$;


ALTER FUNCTION public.checkcodigovazioconhec(newcodigo integer, oldcodigo integer) OWNER TO postgres;

--
-- Name: checkvalordifconhec(numeric, numeric); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.checkvalordifconhec(newvalor numeric, oldvalor numeric) RETURNS integer
    LANGUAGE plpgsql
    AS $$
BEGIN
  IF ((NewValor <> OldValor) OR
    ((OldValor IS NULL OR OldValor = 0) AND NewValor IS NOT NULL AND NewValor <> 0) OR
    (OldValor IS NOT NULL AND OldValor <> 0 AND (NewValor IS NULL Or NewValor = 0))) THEN
    RETURN 0;
  END IF;
  RETURN 1;
END
$$;


ALTER FUNCTION public.checkvalordifconhec(newvalor numeric, oldvalor numeric) OWNER TO postgres;

--
-- Name: checkvincdpconhec(integer, character varying, character varying, integer); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.checkvincdpconhec(numeroviagem integer, serieviagem character varying, tipofatpag character varying, codfatpagnew integer) RETURNS integer
    LANGUAGE plpgsql
    AS $$
  DECLARE CodDuplicataPagarVinc INTEGER;
BEGIN
IF (CodFatPagNew IS NOT NULL AND CodFatPagNew >0) THEN
   CodDuplicataPagarVinc := (SELECT CodDuplicataPagar FROM DuplicataPagar
       WHERE NumeroNota = NumeroViagem AND TRIM(Serie) = SerieViagem and (CodFatura <> CodFatPagNew));
   IF (CodDuplicataPagarVinc IS NOT NULL AND CodDuplicataPagarVinc >0) THEN
       RAISE EXCEPTION 'Tentativa de vincular viagem % a Fatura de Pagamento de % % onde o mesmo conhecimento ja esta vinculado diretamente com uma Duplicata a Pagar gerada pelo Pagamento de Viagens. Favor cancelar operacao.', NumeroViagem, TipoFatPag, CodFatPagNew;
       RETURN 0;
   END IF;
END IF;
RETURN 1;
END
$$;


ALTER FUNCTION public.checkvincdpconhec(numeroviagem integer, serieviagem character varying, tipofatpag character varying, codfatpagnew integer) OWNER TO postgres;

--
-- Name: confspend(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.confspend() RETURNS TABLE(numero public.dom_codint2, data timestamp without time zone, codcliente public.dom_codint2, numeroconhecimento public.dom_codint2, nomefil public.dom_nomepessoa, cidadefil public.dom_complender, uf public.dom_uf, chegou public.dom_resp, nomeforn public.dom_nomepessoa, codfornecedor public.dom_codint, tipo public.dom_banco, datavenc timestamp without time zone)
    LANGUAGE plpgsql
    AS $$
BEGIN
    RETURN QUERY 
	(Select * from ConfsPendAdiant 
	Union
	 Select * from ConfsPendIcms
	Union
	 Select * from ConfsPendClas 
	Union
	 Select * from ConfsPendSaldo);
END;
$$;


ALTER FUNCTION public.confspend() OWNER TO postgres;

--
-- Name: fluxocaixa(timestamp without time zone, timestamp without time zone); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.fluxocaixa(pdata1 timestamp without time zone, pdata2 timestamp without time zone) RETURNS TABLE(nome public.dom_nomepessoa, numnf public.dom_bairro, numparc public.dom_codint2, datavenc timestamp without time zone, valorvenc public.dom_dinheiro2, tipo character)
    LANGUAGE plpgsql
    AS $$
Begin        
    RETURN QUERY (
        Select T3.Nome, cast(T1.CodFatura as public.dom_bairro), T1.Parcela, T1.DataVencimento, T1.ValorVencimento,cast('C' as char(1)) as Tipo
                From DuplicataReceber T1 join Fatura T2 on (t2.codfatura=t1.codfatura) join Cliente T3 on (t3.codcliente=t2.codcliente)
                Where T1.DataVencimento Between PData1 And PData2
                And T1.CodTransacao is null
        Union
        Select T2.Nome, cast(T1.NumeroNota as public.dom_bairro), T1.Parcela, T1.DataVencimento, T1.ValorVencimento,cast('D' as char(1)) as Tipo
                From DuplicataPagar T1 join Fornecedor T2 on (T2.CodFornecedor = T1.CodFornecedor)
                Where T1.DataVencimento Between PData1 And PData2
                And T1.CodTransacao is null
	);
End;
$$;


ALTER FUNCTION public.fluxocaixa(pdata1 timestamp without time zone, pdata2 timestamp without time zone) OWNER TO postgres;

--
-- Name: getconhecdocant(public.dom_codint2); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.getconhecdocant(pnumero public.dom_codint2) RETURNS TABLE(numero integer, numerodocant integer, chavedocant character varying, datadocant timestamp without time zone)
    LANGUAGE plpgsql
    AS $$
begin
  return query
    select cast(cda.numero as integer) as numero,cast(cda.numerodoc as integer) as numerodocant,cda.chave as chavedocant,cda.datadoc as datadocant
    from conhecimentodocant cda where cda.numero=pnumero
    order by cda.numero,cda.numerodoc limit 1;
end
$$;


ALTER FUNCTION public.getconhecdocant(pnumero public.dom_codint2) OWNER TO postgres;

--
-- Name: getconhecdocant2(public.dom_codint2); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.getconhecdocant2(pnumero public.dom_codint2) RETURNS TABLE(numero integer, numerodocant integer, chavedocant character varying, datadocant timestamp without time zone)
    LANGUAGE plpgsql
    AS $$
begin
  return query
    select cast(c.numero as integer) as numero,cast(cda.numerodoc as integer) as numerodocant,cda.chave as chavedocant,cda.datadoc as datadocant
    from conhecimento c left outer join conhecimentodocant cda on (c.numero=cda.numero) where c.numero=pnumero
    order by c.numero,cda.numerodoc limit 1;
end
$$;


ALTER FUNCTION public.getconhecdocant2(pnumero public.dom_codint2) OWNER TO postgres;

--
-- Name: getconhecmanif(public.dom_codint2); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.getconhecmanif(pnumero public.dom_codint2) RETURNS TABLE(codmanif integer)
    LANGUAGE plpgsql
    AS $$
begin
  return query
    select cast(mc.codmanif as integer) as codmanif
    from manifconhecimento mc where mc.numero=pnumero
    order by codmanif desc
    limit 1;
end
$$;


ALTER FUNCTION public.getconhecmanif(pnumero public.dom_codint2) OWNER TO postgres;

--
-- Name: getconhecnota(public.dom_codint2, character varying); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.getconhecnota(pnumero public.dom_codint2, pnumeronotafiscal character varying) RETURNS TABLE(numero integer, nf character varying)
    LANGUAGE plpgsql
    AS $$
begin
  if ((pnumeronotafiscal is null) or (pnumeronotafiscal='')) then
    return query
      select cast(cdn.numero as integer) as numero,cast(cdn.numeronota as varchar(150)) as nf
      from conhecimentonota cdn where cdn.numero=pnumero
      order by cdn.numero,cdn.numeronota limit 1;
  else
    return query
      select cast(c.numero as integer) as numero,cast(c.numeronotafiscal as varchar(150)) as nf
      from conhecimento c where c.numero=pnumero
      order by c.numero;
  end if;
end
$$;


ALTER FUNCTION public.getconhecnota(pnumero public.dom_codint2, pnumeronotafiscal character varying) OWNER TO postgres;

--
-- Name: getconhecnota2(public.dom_codint2, character varying); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.getconhecnota2(pnumero public.dom_codint2, pnumeronotafiscal character varying) RETURNS TABLE(numero integer, nf integer)
    LANGUAGE plpgsql
    AS $$
begin
  if ((pnumeronotafiscal is null) or (pnumeronotafiscal='')) then
    return query
      select cast(cdn.numero as integer) as numero,cast(cdn.numeronota as integer) as nf
      from conhecimentonota cdn where cdn.numero=pnumero
      order by cdn.numero,cdn.numeronota limit 1;
  else
    return query
      select cast(c.numero as integer) as numero,cast(c.numeronotafiscal as integer) as nf
      from conhecimento c where c.numero=pnumero
      order by c.numero;
  end if;
end
$$;


ALTER FUNCTION public.getconhecnota2(pnumero public.dom_codint2, pnumeronotafiscal character varying) OWNER TO postgres;

--
-- Name: getconhecnotachave(public.dom_codint2, character varying); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.getconhecnotachave(pnumero public.dom_codint2, pnumeronotafiscal character varying) RETURNS TABLE(numero integer, nf character varying, chavenf character varying)
    LANGUAGE plpgsql
    AS $$
begin
  if ((pnumeronotafiscal is null) or (pnumeronotafiscal='')) then
    return query
      select cast(cdn.numero as integer) as numero,cast(cdn.numeronota as varchar(150)) as nf,cast(cdn.chavenfe as varchar(150)) as chavenf
      from conhecimentonota cdn where cdn.numero=pnumero
      order by cdn.numero,cdn.numeronota limit 1;
  else
    return query
      select cast(c.numero as integer) as numero,cast(c.numeronotafiscal as varchar(150)),cast('' as varchar(150)) as chavenf
      from conhecimento c where c.numero=pnumero
      order by c.numero;
   end if;
end
$$;


ALTER FUNCTION public.getconhecnotachave(pnumero public.dom_codint2, pnumeronotafiscal character varying) OWNER TO postgres;

--
-- Name: getnextnumcte(bigint, bigint, character varying); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.getnextnumcte(pcodpk bigint, pcodfilial bigint, pserie character varying, OUT proxnum bigint) RETURNS bigint
    LANGUAGE plpgsql
    AS $$
Begin
    select max (numeroconhecimento) from conhecimento where serie=pserie and codfilial=pcodfilial into proxnum;
    if (proxnum is null) then
        proxnum = 1;
    else
        proxnum = proxnum + 1;
    end if;
    --raise notice 'proxnum = %', proxnum;
    update conhecimento set numeroconhecimento=proxnum where numero=pcodpk and (numeroconhecimento=0 or numeroconhecimento is null);
    select numeroconhecimento from conhecimento where numero=pcodpk into proxnum;
End;
$$;


ALTER FUNCTION public.getnextnumcte(pcodpk bigint, pcodfilial bigint, pserie character varying, OUT proxnum bigint) OWNER TO postgres;

--
-- Name: getnextnummdfe(bigint, bigint, bigint); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.getnextnummdfe(pcodpk bigint, pcodfilial bigint, pserie bigint, OUT proxnum bigint) RETURNS bigint
    LANGUAGE plpgsql
    AS $$
Begin
    select max (numeromdfe) from manif where seriemdfe=pserie and codfilial=pcodfilial into proxnum;
    if (proxnum is null) then
        proxnum = 1;
    else
        proxnum = proxnum + 1;
    end if;
    --raise notice 'proxnum = %', proxnum;
    update manif set numeromdfe=proxnum where codmanif=pcodpk and (numeromdfe=0 or numeromdfe is null);
    select numeromdfe from manif where codmanif=pcodpk into proxnum;
End;
$$;


ALTER FUNCTION public.getnextnummdfe(pcodpk bigint, pcodfilial bigint, pserie bigint, OUT proxnum bigint) OWNER TO postgres;

--
-- Name: getnextnumnfe(bigint, bigint, bigint); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.getnextnumnfe(pcodpk bigint, pcodfilial bigint, pserie bigint, OUT proxnum bigint) RETURNS bigint
    LANGUAGE plpgsql
    AS $$
Begin
    select max (numeronf) from nota where serienf=pserie and codfilial=pcodfilial into proxnum;
    if (proxnum is null) then
        proxnum = 1;
    else
        proxnum = proxnum + 1;
    end if;
    --raise notice 'proxnum = %', proxnum;
    update nota set numeronf=proxnum where codnota=pcodpk and (numeronf=0 or numeronf is null);
    select numeronf from nota where codnota=pcodpk into proxnum;
End;
$$;


ALTER FUNCTION public.getnextnumnfe(pcodpk bigint, pcodfilial bigint, pserie bigint, OUT proxnum bigint) OWNER TO postgres;

--
-- Name: logcamponull2vazio(text, text, text); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.logcamponull2vazio(nomecampo text, campoold text, camponew text) RETURNS text
    LANGUAGE plpgsql
    AS $$
BEGIN
  --RAISE NOTICE '%: % => %', NomeCampo, CampoOld, CampoNew;
  IF ((CampoOld <> CampoNew) OR 
    (CampoOld IS NULL AND CampoNew IS NOT NULL) OR
    (CampoOld IS NOT NULL AND CampoNew IS NULL)) 
  THEN
		IF (CampoOld IS NULL) THEN
			CampoOld = '';
		END IF;
		IF (CampoNew IS NULL) THEN
			CampoNew = '';
		END IF;
    RETURN NomeCampo || ': ' || CampoOld || ' => ' || CampoNew || ', ';
  ELSE
		RETURN '';
  END IF;
END
$$;


ALTER FUNCTION public.logcamponull2vazio(nomecampo text, campoold text, camponew text) OWNER TO postgres;

--
-- Name: novo_codcarretamov(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codcarretamov() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codcarretamov is null) then
        new.codcarretamov = nextval('codcarretamov_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codcarretamov() OWNER TO postgres;

--
-- Name: novo_codconhecimentostatus(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codconhecimentostatus() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codconhecimentostatus is null) then
        new.codconhecimentostatus = nextval('codconhecimentostatus_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codconhecimentostatus() OWNER TO postgres;

--
-- Name: novo_codduplicatapagar(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codduplicatapagar() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codduplicatapagar is null) then
        new.codduplicatapagar = nextval('codduplicatapagar_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codduplicatapagar() OWNER TO postgres;

--
-- Name: novo_coditemfilial(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_coditemfilial() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.coditemfilial is null) then
        new.coditemfilial = nextval('coditemfilial_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_coditemfilial() OWNER TO postgres;

--
-- Name: novo_coditemordemcompra(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_coditemordemcompra() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    new.coditemordemcompra = new.codinterno;
    return new;
end $$;


ALTER FUNCTION public.novo_coditemordemcompra() OWNER TO postgres;

--
-- Name: novo_codlog(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codlog() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codlog is null) then
        new.codlog = nextval('codlog_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codlog() OWNER TO postgres;

--
-- Name: novo_codlogcampo(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codlogcampo() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codlogcampo is null) then
        new.codlogcampo = nextval('codlogcampo_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codlogcampo() OWNER TO postgres;

--
-- Name: novo_codmensagem(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codmensagem() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codmensagem is null) then
        new.codmensagem = nextval('codmensagem_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codmensagem() OWNER TO postgres;

--
-- Name: novo_codpneumov(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codpneumov() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codpneumov is null) then
        new.codpneumov = nextval('codpneumov_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codpneumov() OWNER TO postgres;

--
-- Name: novo_codusuariocliente(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codusuariocliente() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codusuariocliente is null) then
        new.codusuariocliente = nextval('codusuariocliente_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codusuariocliente() OWNER TO postgres;

--
-- Name: novo_codusuarioconta(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codusuarioconta() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codusuarioconta is null) then
        new.codusuarioconta = nextval('codusuarioconta_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codusuarioconta() OWNER TO postgres;

--
-- Name: novo_codusuariofav(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codusuariofav() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codusuariofav is null) then
        new.codusuariofav = nextval('codusuariofav_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codusuariofav() OWNER TO postgres;

--
-- Name: novo_codusuariofilial(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codusuariofilial() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codusuariofilial is null) then
        new.codusuariofilial = nextval('codusuariofilial_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codusuariofilial() OWNER TO postgres;

--
-- Name: novo_codusuariogrupo(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codusuariogrupo() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codusuariogrupo is null) then
        new.codusuariogrupo = nextval('codusuariogrupo_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codusuariogrupo() OWNER TO postgres;

--
-- Name: novo_codusuarioitemreceita(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.novo_codusuarioitemreceita() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
begin
    if (new.codusuarioitemreceita is null) then
        new.codusuarioitemreceita = nextval('codusuarioitemreceita_gen');
    end if;
    return new;
end $$;


ALTER FUNCTION public.novo_codusuarioitemreceita() OWNER TO postgres;

--
-- Name: pneuconjunto2(integer, integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.pneuconjunto2(pcodcavalo integer, pcodcarreta integer, pcodcarreta2 integer, pcodcarreta3 integer) RETURNS TABLE(descricao public.dom_nomepessoa2, codpneu public.dom_codint, codmodelo public.dom_codint2, descmodelo public.dom_bairro, codlocal public.dom_codint2, desclocal public.dom_bairro, ordem public.dom_codint2, eixo public.dom_codint2, codveiculo public.dom_codint2, placa public.dom_email, codstatuspneu public.dom_codint2, descstatuspneu public.dom_bairro, codtipoveiculo public.dom_codint, desctipoveiculo public.dom_fone, modeloveic public.dom_email, cavalo public.dom_resp)
    LANGUAGE plpgsql
    AS $$
BEGIN
    RETURN QUERY
    SELECT * 
    FROM pneuveiculo p
    WHERE p.codveiculo IN (pcodcavalo, pcodcarreta, pcodcarreta2, pcodcarreta3)
      AND p.codveiculo <> 0;
END;
$$;


ALTER FUNCTION public.pneuconjunto2(pcodcavalo integer, pcodcarreta integer, pcodcarreta2 integer, pcodcarreta3 integer) OWNER TO postgres;

--
-- Name: refactorusuariopk(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.refactorusuariopk() RETURNS void
    LANGUAGE plpgsql
    AS $$
	declare
		ct integer;
begin
	ct := (SELECT count(con.conname)
				 FROM pg_catalog.pg_constraint con
				      INNER JOIN pg_catalog.pg_class rel
				                 ON rel.oid = con.conrelid
				      INNER JOIN pg_catalog.pg_namespace nsp
				                 ON nsp.oid = connamespace
				 WHERE nsp.nspname = 'public'
				       AND rel.relname = 'usuario'
				       AND con.conname = 'integ_66');
	if ((ct is not null) and (ct = 1)) then
		alter table usuario drop constraint integ_66;
		alter table usuario add constraint pk_usuario primary key(codusuario);
	end if;
end
$$;


ALTER FUNCTION public.refactorusuariopk() OWNER TO postgres;

--
-- Name: relacionarmarcamodeloveic(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.relacionarmarcamodeloveic() RETURNS void
    LANGUAGE plpgsql
    AS $$
  DECLARE 
    Codigo INTEGER;
    CodModeloAtual INTEGER;
    CodMarcaAtual INTEGER;
    DescMarcaAtual VARCHAR(100);
BEGIN
  FOR CodModeloAtual IN SELECT DISTINCT CodModelo FROM ModeloVeic WHERE CodMarca IS NULL LOOP
    CodMarcaAtual := (SELECT CodMarca FROM Marca WHERE Descricao IN (SELECT Marca FROM Veiculo WHERE CodModelo = CodModeloAtual LIMIT 1) LIMIT 1);
    IF (CodMarcaAtual > 0) THEN
      UPDATE ModeloVeic SET CodMarca = CodMarcaAtual WHERE CodModelo = CodModeloAtual;
    ELSE
      Codigo := (SELECT NEXTVAL('CodMarca_Gen'));
      DescMarcaAtual := (SELECT Descricao FROM Marca WHERE CodMarca = CodMarcaAtual);
      INSERT INTO Marca (CodMarca,Descricao,UsuarioINS,DataDigitacao)
        VALUES(Codigo,DescMarcaAtual,'S',current_timestamp);
      UPDATE ModeloVeic SET CodMarca = CodMarcaAtual WHERE CodModelo = CodModeloAtual;
    END IF;
  END LOOP;
END;
$$;


ALTER FUNCTION public.relacionarmarcamodeloveic() OWNER TO postgres;

--
-- Name: resetissup(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.resetissup() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
BEGIN
    if (new.nome = 'ISSUP') then
        new.nome = 'S';
    end if;
	RETURN NEW;
END
$$;


ALTER FUNCTION public.resetissup() OWNER TO postgres;

--
-- Name: setdataacertoprop(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.setdataacertoprop() RETURNS void
    LANGUAGE plpgsql
    AS $$
  declare
    listItemNota itemnota%rowtype;
    dataControle timestamp;
begin
  for listItemNota in select * from itemnota where dataacertoprop is null loop
    dataControle := (select data from nota where codnota = listItemNota.codnota);
    update itemnota set dataacertoprop = dataControle where codinterno = listItemNota.codinterno;
  end loop;
end;
$$;


ALTER FUNCTION public.setdataacertoprop() OWNER TO postgres;

--
-- Name: trigger_remconhecimentonota_checkcte(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.trigger_remconhecimentonota_checkcte() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE CteProtAutor VARCHAR(15);
BEGIN
  CteProtAutor := (SELECT CteProt FROM Conhecimento WHERE Numero = OLD.Numero AND CteStatus IN ('2','4'));
  IF (CteProtAutor IS NOT NULL AND CteProtAutor <> '') THEN
    RAISE EXCEPTION 'Não é permitido remover uma Nota do Conhecimento % (Autorizado ou Cancelado).', OLD.Numero;
  END IF;
  RETURN OLD;
END
$$;


ALTER FUNCTION public.trigger_remconhecimentonota_checkcte() OWNER TO postgres;

--
-- Name: triggerbiprocconhecimento(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggerbiprocconhecimento() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE codbiprocatual public.dom_codint;
BEGIN
	codbiprocatual := (SELECT codbiproc FROM biproc WHERE nometabela = 'CONHECIMENTO' AND chavetabela = COALESCE(NEW.numero, OLD.numero) AND status != 'P' LIMIT 1);
	if codbiprocatual is null then
		insert into biproc
		(codbiproc, nometabela, chavetabela, obs, status)
		values
		(nextval('CODBIPROC_GEN'), 'CONHECIMENTO', COALESCE(NEW.numero, OLD.numero), TG_OP||' de Conhecimento', 'N');
	end if;
	RETURN NEW;
END
$$;


ALTER FUNCTION public.triggerbiprocconhecimento() OWNER TO postgres;

--
-- Name: triggerbiprocconhecimentodesp(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggerbiprocconhecimentodesp() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE codbiprocatual public.dom_codint;
BEGIN
	codbiprocatual := (SELECT codbiproc FROM biproc WHERE nometabela = 'CONHECIMENTO' AND chavetabela = COALESCE(NEW.numero, OLD.numero) AND status != 'P' LIMIT 1);
	if codbiprocatual is null then
		insert into biproc
		(codbiproc, nometabela, chavetabela, obs, status)
		values
		(nextval('CODBIPROC_GEN'), 'CONHECIMENTO', COALESCE(NEW.numero, OLD.numero), TG_OP||' de Desp./Rec. de Conhecimento', 'N');
	end if;
	RETURN NEW;
END
$$;


ALTER FUNCTION public.triggerbiprocconhecimentodesp() OWNER TO postgres;

--
-- Name: triggerbiprocduplicatapagar(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggerbiprocduplicatapagar() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE codbiprocatual public.dom_codint;
declare numnota public.dom_codint2;
declare loopnumero public.dom_codint;
BEGIN
	if (COALESCE(NEW.codtransacao, 0) != COALESCE(OLD.codtransacao, 0) OR COALESCE(NEW.codbaixa, '0') != COALESCE(OLD.codbaixa, '0')) THEN
		numnota := COALESCE(NEW.numeronota, OLD.numeronota);
		if TRIM(COALESCE(NEW.serie, OLD.serie)) IN ('AD', 'AD2', 'SD', 'CL', 'PED', 'BAL', 'ICM', 'ICA', 'EST') then
			codbiprocatual := (SELECT codbiproc FROM biproc WHERE nometabela = 'CONHECIMENTO' AND chavetabela = numnota AND status != 'P' LIMIT 1);
			if codbiprocatual is null then
				insert into biproc
				(codbiproc, nometabela, chavetabela, obs, status)
				values
				(nextval('CODBIPROC_GEN'), 'CONHECIMENTO', COALESCE(NEW.numeronota, OLD.numeronota), TG_OP||' de Parcela de Conhecimento', 'N');
			end if;
		end if;
		
		if COALESCE(NEW.serie, OLD.serie) = 'FPV' THEN
			for loopnumero in (
				SELECT numero from conhecimento
				where codFatPagSaldo = numnota
				or codFatPagBalsa = numnota
				or codFatPagAdiant = numnota
				or codFatPagAdto2 = numnota
				or codFatPagPedagio = numnota
				or codFatPagICMS = numnota
				or codFatPagICMSAntec = numnota
				or codFatPagEstadia = numnota
				or codFatPagClassif = numnota
				or codFatPagQuebra = numnota
				or codFatPagSestSenat = numnota
				or codFatPagINSS = numnota
				or codFatPagIRRF = numnota
				or codFatPagINSSEmp = numnota
				or codFatPagISS = numnota
			) loop
				codbiprocatual := (SELECT codbiproc FROM biproc WHERE nometabela = 'CONHECIMENTO' AND chavetabela = loopnumero AND status != 'P' LIMIT 1);
				if codbiprocatual is null then
					insert into biproc
					(codbiproc, nometabela, chavetabela, obs, status)
					values
					(nextval('CODBIPROC_GEN'), 'CONHECIMENTO', loopnumero, TG_OP||' de Parcela de FaturaCompra', 'N');
				end if;
			end loop;
		end if;
	end if;
	RETURN NEW;
END
$$;


ALTER FUNCTION public.triggerbiprocduplicatapagar() OWNER TO postgres;

--
-- Name: triggerbiprocduplicatareceber(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggerbiprocduplicatareceber() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE codbiprocatual public.dom_codint;
declare codfat public.dom_codint2;
declare loopnumero public.dom_codint;
BEGIN
	if (COALESCE(NEW.codtransacao, 0) != COALESCE(OLD.codtransacao, 0) OR COALESCE(NEW.codbaixa, '0') != COALESCE(OLD.codbaixa, '0')) THEN
		codfat := COALESCE(NEW.codfatura, OLD.codfatura);
		for loopnumero in (
			SELECT numero from conhecimento
			where codFaturaSaldo = codfat
			or codFaturaEstadia = codfat
			or codFaturaAdiantamento = codfat
			or codFaturaClassificacao = codfat
			or codFaturaICMS = codfat
			or codFaturaPedagio = codfat
			or codFaturaEntrega = codfat
			or codFaturaEntAdto = codfat
			or codFaturaEntSaldo = codfat
			or codFaturaAdiantEmp2 = codfat
			or codFaturaSaldoComp = codfat
			or codFaturaQuebraSeg = codfat
		) loop
			codbiprocatual := (SELECT codbiproc FROM biproc WHERE nometabela = 'CONHECIMENTO' AND chavetabela = loopnumero AND status != 'P' LIMIT 1);
			if codbiprocatual is null then
				insert into biproc
				(codbiproc, nometabela, chavetabela, obs, status)
				values
				(nextval('CODBIPROC_GEN'), 'CONHECIMENTO', loopnumero, TG_OP||' de Parcela de Fatura a Receber', 'N');
			end if;
		end loop;
	end if;
	RETURN NEW;
END
$$;


ALTER FUNCTION public.triggerbiprocduplicatareceber() OWNER TO postgres;

--
-- Name: triggerbloqap(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggerbloqap() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE CodFaturaOld INTEGER;
DECLARE CodFaturaCompraOld INTEGER;
DECLARE CodTransacaoCredOld INTEGER;
DECLARE CodTransacaoDebOld INTEGER;
DECLARE CodFaturaNew INTEGER;
DECLARE CodFaturaCompraNew INTEGER;
DECLARE CodTransacaoCredNew INTEGER;
DECLARE CodTransacaoDebNew INTEGER;
DECLARE CodClienteProp INTEGER;
DECLARE CodClienteFatura INTEGER;
DECLARE StatusFat public.dom_RESP;
DECLARE UsuarioCancFatCompra VARCHAR(15);
DECLARE UsuarioCancTransDeb VARCHAR(15);
DECLARE UsuarioCancTransCred VARCHAR(15);
BEGIN
  IF (NEW.UsuarioCanc IS NOT NULL) AND (NEW.UsuarioCanc != '') THEN
    RETURN NEW;
  END IF;
  CodFaturaOld := OLD.CodFatura;
  CodFaturaCompraOld := OLD.CodFaturaCompra;
  CodTransacaoCredOld := OLD.CodTransacaoCred;
  CodTransacaoDebOld := OLD.CodTransacaoDeb;
  CodFaturaNew := NEW.CodFatura;
  CodFaturaCompraNew := NEW.CodFaturaCompra;
  CodTransacaoCredNew := NEW.CodTransacaoCred;
  CodTransacaoDebNew := NEW.CodTransacaoDeb;
  /**/
  IF (CodFaturaOld IS NOT NULL) AND (CodFaturaNew IS NULL) then
    StatusFat := (SELECT Status FROM Fatura WHERE CodFatura = CodFaturaOld);
    IF (StatusFat IS NULL) OR (StatusFat = 'N') THEN
      RAISE EXCEPTION 'Tentativa de limpar a Fatura % vinculada com o Acerto de Proprietario %. Operacao cancelada.', CodFaturaOld, NEW.CodAcertoProprietario;
    END IF;
  END IF;
  /**/
  IF (CodFaturaCompraOld IS NOT NULL) AND (CodFaturaCompraNew IS NULL) THEN
    UsuarioCancFatCompra := (SELECT UsuarioCanc FROM FaturaCompra WHERE CodFatura = CodFaturaCompraOld);
    IF (UsuarioCancFatCompra IS NULL OR UsuarioCancFatCompra = '') THEN
      RAISE EXCEPTION 'Tentativa de limpar a Fatura de Compra % vinculada com o Acerto de Proprietario %. Operacao cancelada.', CodFaturaCompraOld, NEW.CodAcertoProprietario;
    END IF;
  END IF;
  /**/
  IF (CodTransacaoCredOld IS NOT NULL) AND (CodTransacaoCredNew IS NULL) then
    UsuarioCancTransCred := (SELECT UsuarioCanc FROM Transacao WHERE CodTransacao = CodTransacaoCredOld);
    IF (UsuarioCancTransCred IS NULL OR UsuarioCancTransCred = '') THEN
      RAISE EXCEPTION 'Tentativa de limpar a Transacao de Credito % vinculada com o Acerto de Proprietario %. Operacao cancelada.', CodTransacaoCredOld, NEW.CodAcertoProprietario;
    END IF;
  END IF;
  /**/
  IF (CodTransacaoDebOld IS NOT NULL) AND (CodTransacaoDebNew IS NULL) then
    UsuarioCancTransDeb := (SELECT UsuarioCanc FROM Transacao WHERE CodTransacao = CodTransacaoDebOld);
    IF (UsuarioCancTransDeb IS NULL OR UsuarioCancTransDeb = '') THEN
      RAISE EXCEPTION 'Tentativa de limpar a Transacao de Debito % vinculada com o Acerto de Proprietario %. Operacao cancelada.', CodTransacaoDebOld, NEW.CodAcertoProprietario;
    END IF;
  END IF;
/* NA VDD QUANDO A PARCELA A RECEBER COM ABATIMENTO NO AP FOR DE OUTRO ACERTO PARCIAL, NAO TERA CODFATURA NESTE AP MAS TERA CODTRANSACAOCRED
  IF (CodFaturaNew IS NULL) AND (CodTransacaoCredNew IS NOT NULL) THEN
    RAISE EXCEPTION 'Tentativa de deixar sem Fatura vinculada com a Transacao de Credito % e o Acerto de Proprietario %. Operacao cancelada.', CodTransacaoCredNew, NEW.CodAcertoProprietario;
  END IF;
*/
  IF (CodFaturaNew IS NOT NULL) THEN
    CodClienteProp := (SELECT CodCliente FROM Proprietario WHERE CodProprietario = NEW.CodProprietario);
    CodClienteFatura := (SELECT CodCliente FROM Fatura WHERE CodFatura = CodFaturaNew);
    IF (CodClienteProp != CodClienteFatura) THEN
      RAISE EXCEPTION 'Tentativa de gravar Fatura % do Cliente % com o Acerto de Proprietario % do Cliente %. Operacao cancelada.', CodFaturaNew, CodClienteFatura, NEW.CodAcertoProprietario, CodClienteProp;
    END IF;
  END IF;
  IF (CodFaturaCompraNew IS NULL) AND (CodTransacaoDebNew IS NOT NULL) THEN
    RAISE EXCEPTION 'Tentativa de deixar sem Fatura de Compra vinculada com a Transacao de Debito % e o Acerto de Proprietario %. Operacao cancelada.', CodTransacaoDebNew, NEW.CodAcertoProprietario;
  END IF;
  /**/
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggerbloqap() OWNER TO postgres;

--
-- Name: triggerbloqtransacao(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggerbloqtransacao() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE Codigo INTEGER;
BEGIN
  Codigo := (SELECT CodDuplicataPagar FROM DuplicataPagar WHERE CodTransacao = OLD.CodTransacao);
  IF (Codigo IS NOT NULL) THEN
    RAISE EXCEPTION 'Tentativa de remoção de Transação % vinculada com a Duplicata a Pagar %. Operação cancelada.', OLD.CodTransacao, Codigo;
  END IF;
  Codigo := (SELECT CodDuplicataReceber FROM DuplicataReceber WHERE CodTransacao = OLD.CodTransacao);
  IF (Codigo IS NOT NULL) THEN
    RAISE EXCEPTION 'Tentativa de remoção de Transação % vinculada com a Duplicata a Receber %. Operação cancelada.', OLD.CodTransacao, Codigo;
  END IF;
  Codigo := (SELECT CodAcertoProprietario FROM AcertoProprietario WHERE CodTransacaoCred = OLD.CodTransacao);
  IF (Codigo IS NOT NULL) THEN
    RAISE EXCEPTION 'Tentativa de remoção de Transação % vinculada com o Acerto de Proprietário %. Operação cancelada.', OLD.CodTransacao, Codigo;
  END IF;
  Codigo := (SELECT CodAcertoProprietario FROM AcertoProprietario WHERE CodTransacaoDeb = OLD.CodTransacao);
  IF (Codigo IS NOT NULL) THEN
    RAISE EXCEPTION 'Tentativa de remoção de Transação % vinculada com o Acerto de Proprietário %. Operação cancelada.', OLD.CodTransacao, Codigo;
  END IF;
  RETURN OLD;
END
$$;


ALTER FUNCTION public.triggerbloqtransacao() OWNER TO postgres;

--
-- Name: triggercheckbaixadpconhec(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckbaixadpconhec() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
BEGIN
  ----------------------------------------------------------------------------------------------------------------------
  -- Checagem de DP(s) diretamente vinculadas a Conhecimentos e nao podem vincular com FaturaCompra(s) tambem  
  IF (CHECKVINCDPCONHEC(NEW.Numero, 'AD', 'Adiantamento', NEW.CodFatPagAdiant) = 0) THEN RETURN NULL; END IF;
  IF (CHECKVINCDPCONHEC(NEW.Numero, 'AD2', 'Adiantamento 2', NEW.CodFatPagAdto2) = 0) THEN RETURN NULL; END IF;
  IF (CHECKVINCDPCONHEC(NEW.Numero, 'SD', 'Saldo', NEW.CodFatPagSaldo) = 0) THEN RETURN NULL; END IF;
  IF (CHECKVINCDPCONHEC(NEW.Numero, 'PED', 'Pedagio', NEW.CodFatPagPedagio) = 0) THEN RETURN NULL; END IF;
  IF (CHECKVINCDPCONHEC(NEW.Numero, 'EST', 'Estadia', NEW.CodFatPagEstadia) = 0) THEN RETURN NULL; END IF;
  IF (CHECKVINCDPCONHEC(NEW.Numero, 'BAL', 'Balsa', NEW.CodFatPagBalsa) = 0) THEN RETURN NULL; END IF;
  IF (CHECKVINCDPCONHEC(NEW.Numero, 'CL', 'Classificacao', NEW.CodFatPagClassif) = 0) THEN RETURN NULL; END IF;
  IF (CHECKVINCDPCONHEC(NEW.Numero, 'ICM', 'ICMS', NEW.CodFatPagICMS) = 0) THEN RETURN NULL; END IF;
  IF (CHECKVINCDPCONHEC(NEW.Numero, 'ICA', 'ICMS Antec.', NEW.CodFatPagICMSAntec) = 0) THEN RETURN NULL; END IF;
  ----------------------------------------------------------------------------------------------------------------------
  -- Checagem de baixas de DP(s) de FaturaCompra(s) vinculadas a Conhecimentos
  IF (CHECKBAIXADPCONHECFATPAG(NEW.Numero, 'Adiantamento', OLD.CodFatPagAdiant, NEW.CodFatPagAdiant, OLD.CodFornecedorAdiant) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATPAG(NEW.Numero, 'Adiantamento 2', OLD.CodFatPagAdto2, NEW.CodFatPagAdto2, OLD.CodFornecedorAdto2) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATPAG(NEW.Numero, 'Saldo', OLD.CodFatPagSaldo, NEW.CodFatPagSaldo, OLD.CodFornecedorSaldo) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATPAG(NEW.Numero, 'Pedagio', OLD.CodFatPagPedagio, NEW.CodFatPagPedagio, OLD.CodFornecedorPedagio) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATPAG(NEW.Numero, 'Estadia', OLD.CodFatPagEstadia, NEW.CodFatPagEstadia, OLD.CodFornecedorEstadia) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATPAG(NEW.Numero, 'Balsa', OLD.CodFatPagBalsa, NEW.CodFatPagBalsa, OLD.CodFornecedorBalsa) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATPAG(NEW.Numero, 'Classificacao', OLD.CodFatPagClassif, NEW.CodFatPagClassif, OLD.CodFornecedorClassificacao) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATPAG(NEW.Numero, 'ICMS', OLD.CodFatPagICMS, NEW.CodFatPagICMS, OLD.CodFornecedorICMS) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATPAG(NEW.Numero, 'ICMS Antec.', OLD.CodFatPagICMSAntec, NEW.CodFatPagICMSAntec, OLD.CodFornICMSAntec) = 0) THEN RETURN NULL; END IF;
  -- codFatPagQuebra, codFatSestSenat, codFatPagIRRF, codFatPagINSS, codFatPagINSSEmp, codFatPagISS => NAO TEM CodFornXXX
  ----------------------------------------------------------------------------------------------------------------------
  -- Checagem de baixas de DR(s) de Fatura(s) vinculadas a Conhecimentos
  IF (CHECKBAIXADPCONHECFATREC(NEW.Numero, 'Adiantamento', OLD.CodFaturaAdiantamento, NEW.CodFaturaAdiantamento) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATREC(NEW.Numero, 'Adiantamento 2', OLD.CodFaturaAdiantEmp2, NEW.CodFaturaAdiantEmp2) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATREC(NEW.Numero, 'Saldo', OLD.CodFaturaSaldo, NEW.CodFaturaSaldo) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATREC(NEW.Numero, 'Saldo Comp.', OLD.CodFaturaSaldoComp, NEW.CodFaturaSaldoComp) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATREC(NEW.Numero, 'Pedagio', OLD.CodFaturaPedagio, NEW.CodFaturaPedagio) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATREC(NEW.Numero, 'Estadia', OLD.CodFaturaEstadia, NEW.CodFaturaEstadia) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATREC(NEW.Numero, 'Classificacao', OLD.CodFaturaClassificacao, NEW.CodFaturaClassificacao) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATREC(NEW.Numero, 'Quebra Seg.', OLD.CodFaturaQuebraSeg, NEW.CodFaturaQuebraSeg) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATREC(NEW.Numero, 'ICMS', OLD.CodFaturaICMS, NEW.CodFaturaICMS) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATREC(NEW.Numero, 'Entrega', OLD.CodFaturaEntrega, NEW.CodFaturaEntrega) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATREC(NEW.Numero, 'Ent. Adiant.', OLD.CodFaturaEntAdto, NEW.CodFaturaEntAdto) = 0) THEN RETURN NULL; END IF;
  IF (CHECKBAIXADPCONHECFATREC(NEW.Numero, 'Ent. Saldo', OLD.CodFaturaEntSaldo, NEW.CodFaturaEntSaldo) = 0) THEN RETURN NULL; END IF;
  ----------------------------------------------------------------------------------------------------------------------
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggercheckbaixadpconhec() OWNER TO postgres;

--
-- Name: triggercheckcamposcte(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckcamposcte() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE FieldName TEXT;
DECLARE LogNome VARCHAR(10);
DECLARE LogData TIMESTAMP;
DECLARE LogCt INTEGER;
BEGIN
  FieldName = '';
  --
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CODFILIAL', CAST(OLD.CODFILIAL AS VARCHAR(10)), CAST(NEW.CODFILIAL AS VARCHAR(10)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CODUNIDADEEMBARQUE', CAST(OLD.CODUNIDADEEMBARQUE AS VARCHAR(10)), CAST(NEW.CODUNIDADEEMBARQUE AS VARCHAR(10)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('NUMEROCONHECIMENTO', CAST(OLD.NUMEROCONHECIMENTO AS VARCHAR(20)), CAST(NEW.NUMEROCONHECIMENTO AS VARCHAR(20)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('SERIE', OLD.SERIE, NEW.SERIE);
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CODEMONITOR', CAST(OLD.CODEMONITOR AS VARCHAR(20)), CAST(NEW.CODEMONITOR AS VARCHAR(20)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('EMONITORSTATUS', CAST(OLD.EMONITORSTATUS AS VARCHAR(10)), CAST(NEW.EMONITORSTATUS AS VARCHAR(10)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CTEDATALOTEENV', CAST(OLD.CTEDATALOTEENV AS VARCHAR(19)), CAST(NEW.CTEDATALOTEENV AS VARCHAR(19)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CTEDATARECIBOENV', CAST(OLD.CTEDATARECIBOENV AS VARCHAR(19)), CAST(NEW.CTEDATARECIBOENV AS VARCHAR(19)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CTESTATUS', OLD.CTESTATUS, NEW.CTESTATUS);
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CTECHAVE', OLD.CTECHAVE, NEW.CTECHAVE);
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CTERECIBOENV', OLD.CTERECIBOENV, NEW.CTERECIBOENV);
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CTEPROT', OLD.CTEPROT, NEW.CTEPROT);
  --
  IF (FieldName <> '') THEN
		FieldName = 'CAMPOS DO CTE ALTERADOS: ' || FieldName;
		IF (NEW.USUARIOALT IS NOT NULL) THEN
			LogNome = NEW.USUARIOALT;
		ELSE 
			LogNome = 'SCRIPT';
		END IF;
		--
    LogData = current_timestamp;
    SELECT COUNT(*) FROM LOG WHERE Data = LogData AND Nome = LogNome AND Arquivo = 'CONHECIMENTO' AND Tipo = 'T' INTO LogCt;
    IF (LogCt = 0) THEN
      INSERT INTO LOG(NOME,DATA,ARQUIVO,TABELA,CAMPOCHAVE,VALORCHAVE,TIPO,OBS) VALUES(LogNome,LogData,'CONHECIMENTO','CONHECIMENTO','NUMERO',NEW.NUMERO,'T',FieldName);
    END IF;
  END IF;
  --
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggercheckcamposcte() OWNER TO postgres;

--
-- Name: triggercheckcamposmdfe(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckcamposmdfe() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE FieldName TEXT;
DECLARE LogNome VARCHAR(10);
DECLARE LogData TIMESTAMP;
DECLARE LogCt INTEGER;
BEGIN
  FieldName = '';
  --
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CODFILIAL', CAST(OLD.CODFILIAL AS VARCHAR(10)), CAST(NEW.CODFILIAL AS VARCHAR(10)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CODUNIDADEEMBARQUE', CAST(OLD.CODUNIDADEEMBARQUE AS VARCHAR(10)), CAST(NEW.CODUNIDADEEMBARQUE AS VARCHAR(10)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('NUMEROMDFE', CAST(OLD.NUMEROMDFE AS VARCHAR(20)), CAST(NEW.NUMEROMDFE AS VARCHAR(20)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('SERIEMDFE', CAST(OLD.SERIEMDFE AS VARCHAR(10)), CAST(NEW.SERIEMDFE AS VARCHAR(10)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CODEMONITOR', CAST(OLD.CODEMONITOR AS VARCHAR(20)), CAST(NEW.CODEMONITOR AS VARCHAR(20)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('EMONITORSTATUS', CAST(OLD.EMONITORSTATUS AS VARCHAR(10)), CAST(NEW.EMONITORSTATUS AS VARCHAR(10)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('MDFEDATALOTEENV', CAST(OLD.MDFEDATALOTEENV AS VARCHAR(19)), CAST(NEW.MDFEDATALOTEENV AS VARCHAR(19)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('MDFEDATARECIBOENV', CAST(OLD.MDFEDATARECIBOENV AS VARCHAR(19)), CAST(NEW.MDFEDATARECIBOENV AS VARCHAR(19)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('MDFESTATUS', OLD.MDFESTATUS, NEW.MDFESTATUS);
  FieldName = FieldName || LOGCAMPONULL2VAZIO('MDFECHAVE', OLD.MDFECHAVE, NEW.MDFECHAVE);
  FieldName = FieldName || LOGCAMPONULL2VAZIO('MDFERECIBOENV', OLD.MDFERECIBOENV, NEW.MDFERECIBOENV);
  FieldName = FieldName || LOGCAMPONULL2VAZIO('MDFEPROT', OLD.MDFEPROT, NEW.MDFEPROT);
  --
  IF (FieldName <> '') THEN
		FieldName = 'CAMPOS DO MDFE ALTERADOS: ' || FieldName;
		IF (NEW.USUARIOALT IS NOT NULL) THEN
			LogNome = NEW.USUARIOALT;
		ELSE 
			LogNome = 'SCRIPT';
		END IF;
		--
    LogData = current_timestamp;
    SELECT COUNT(*) FROM LOG WHERE Data = LogData AND Nome = LogNome AND Arquivo = 'MANIF' AND Tipo = 'T' INTO LogCt;
    IF (LogCt = 0) THEN
      INSERT INTO LOG(NOME,DATA,ARQUIVO,TABELA,CAMPOCHAVE,VALORCHAVE,TIPO,OBS) VALUES(LogNome,LogData,'MANIF','MANIF','CODMANIF',NEW.CODMANIF,'T',FieldName);
    END IF;
  END IF;
  --
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggercheckcamposmdfe() OWNER TO postgres;

--
-- Name: triggercheckcamposnfe(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckcamposnfe() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE FieldName TEXT;
DECLARE OldCteChave VARCHAR(10);
DECLARE NewCteChave VARCHAR(10);
DECLARE LogNome VARCHAR(10);
BEGIN
  FieldName = '';
  --
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CODFILIAL', CAST(OLD.CODFILIAL AS VARCHAR(10)), CAST(NEW.CODFILIAL AS VARCHAR(10)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CODUNIDADEEMBARQUE', CAST(OLD.CODUNIDADEEMBARQUE AS VARCHAR(10)), CAST(NEW.CODUNIDADEEMBARQUE AS VARCHAR(10)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('NUMERONOTA', CAST(OLD.NUMERONOTA AS VARCHAR(20)), CAST(NEW.NUMERONOTA AS VARCHAR(20)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('SERIE', OLD.SERIE, NEW.SERIE);
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CODEMONITOR', CAST(OLD.CODEMONITOR AS VARCHAR(20)), CAST(NEW.CODEMONITOR AS VARCHAR(20)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('EMONITORSTATUS', CAST(OLD.EMONITORSTATUS AS VARCHAR(10)), CAST(NEW.EMONITORSTATUS AS VARCHAR(10)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('NFEDATAHORAENVIOLOTE', CAST(OLD.NFEDATAHORAENVIOLOTE AS VARCHAR(19)), CAST(NEW.NFEDATAHORAENVIOLOTE AS VARCHAR(19)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('NFEDATAHORARECLOTE', CAST(OLD.NFEDATAHORARECLOTE AS VARCHAR(19)), CAST(NEW.NFEDATAHORARECLOTE AS VARCHAR(19)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('NFESTATUS', CAST(OLD.NFESTATUS AS VARCHAR(10)), CAST(NEW.NFESTATUS AS VARCHAR(10)));
  FieldName = FieldName || LOGCAMPONULL2VAZIO('CHAVENFE', OLD.CHAVENFE, NEW.CHAVENFE);
  FieldName = FieldName || LOGCAMPONULL2VAZIO('NFENRECLOTE', OLD.NFENRECLOTE, NEW.NFENRECLOTE);
  FieldName = FieldName || LOGCAMPONULL2VAZIO('NFENPROT', OLD.NFENPROT, NEW.NFENPROT);
  --
  IF (FieldName <> '') THEN
		FieldName = 'CAMPOS DA NFE ALTERADOS: ' || FieldName;
		IF (NEW.USUARIOALT IS NOT NULL) THEN
			LogNome = NEW.USUARIOALT;
		ELSE 
			LogNome = 'SCRIPT';
		END IF;
		--
    INSERT INTO LOG(NOME,DATA,ARQUIVO,TABELA,CAMPOCHAVE,VALORCHAVE,TIPO,OBS) VALUES(LogNome,current_timestamp,'NOTA','NOTA','CODNOTA',NEW.CODNOTA,'T',FieldName);
  END IF;
  --
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggercheckcamposnfe() OWNER TO postgres;

--
-- Name: triggercheckcodacertopropconhecimento(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckcodacertopropconhecimento() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE CodAcertoCancelado Integer;
BEGIN
	CodAcertoCancelado = 0;
	IF (NEW.CODACERTOPROPRIETARIO IS NOT NULL AND NEW.CODACERTOPROPRIETARIO > 0) THEN
		CodAcertoCancelado = 
			(SELECT t.CodAcertoProprietario FROM AcertoProprietario t
			 WHERE t.CodAcertoProprietario = NEW.CODACERTOPROPRIETARIO
			 AND t.UsuarioCanc IS NOT NULL AND t.UsuarioCanc <> ''
			);
		IF (CodAcertoCancelado IS NOT NULL AND CodAcertoCancelado > 0) THEN
			NEW.CodAcertoProprietario = NULL;
		END IF;
	END IF;
	RETURN NEW;
END
$$;


ALTER FUNCTION public.triggercheckcodacertopropconhecimento() OWNER TO postgres;

--
-- Name: triggercheckcodacertopropduplicatapagar(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckcodacertopropduplicatapagar() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE CodAcertoCancelado Integer;
BEGIN
	CodAcertoCancelado = 0;
	IF (NEW.CODACERTOPROPRIETARIO IS NOT NULL AND NEW.CODACERTOPROPRIETARIO > 0) THEN
		CodAcertoCancelado = 
			(SELECT t.CodAcertoProprietario FROM AcertoProprietario t
			 WHERE t.CodAcertoProprietario = NEW.CODACERTOPROPRIETARIO
			 AND t.UsuarioCanc IS NOT NULL AND t.UsuarioCanc <> ''
			);
		IF (CodAcertoCancelado IS NOT NULL AND CodAcertoCancelado > 0) THEN
			NEW.CodAcertoProprietario = NULL;
		END IF;
	END IF;
	RETURN NEW;
END
$$;


ALTER FUNCTION public.triggercheckcodacertopropduplicatapagar() OWNER TO postgres;

--
-- Name: triggercheckcodacertopropduplicatareceber(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckcodacertopropduplicatareceber() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE CodAcertoCancelado Integer;
BEGIN
	CodAcertoCancelado = 0;
	IF (NEW.CODACERTOPROPRIETARIO IS NOT NULL AND NEW.CODACERTOPROPRIETARIO > 0) THEN
		CodAcertoCancelado = 
			(SELECT t.CodAcertoProprietario FROM AcertoProprietario t
			 WHERE t.CodAcertoProprietario = NEW.CODACERTOPROPRIETARIO
			 AND t.UsuarioCanc IS NOT NULL AND t.UsuarioCanc <> ''
			);
		IF (CodAcertoCancelado IS NOT NULL AND CodAcertoCancelado > 0) THEN
			NEW.CodAcertoProprietario = NULL;
		END IF;
	END IF;
	RETURN NEW;
END
$$;


ALTER FUNCTION public.triggercheckcodacertopropduplicatareceber() OWNER TO postgres;

--
-- Name: triggercheckcodacertopropitemnota(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckcodacertopropitemnota() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE CodAcertoCancelado Integer;
BEGIN
	CodAcertoCancelado = 0;
	IF (NEW.CODACERTOPROPRIETARIO IS NOT NULL AND NEW.CODACERTOPROPRIETARIO > 0) THEN
		CodAcertoCancelado = 
			(SELECT t.CodAcertoProprietario FROM AcertoProprietario t
			 WHERE t.CodAcertoProprietario = NEW.CODACERTOPROPRIETARIO
			 AND t.UsuarioCanc IS NOT NULL AND t.UsuarioCanc <> ''
			);
		IF (CodAcertoCancelado IS NOT NULL AND CodAcertoCancelado > 0) THEN
			NEW.CodAcertoProprietario = NULL;
		END IF;
	END IF;
	RETURN NEW;
END
$$;


ALTER FUNCTION public.triggercheckcodacertopropitemnota() OWNER TO postgres;

--
-- Name: triggercheckcodinstalacaozero(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckcodinstalacaozero() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE NomeEmpresa VARCHAR(100);
BEGIN
  IF (COALESCE(NEW.CodInstalacao, 0) = 0 AND OLD.CodInstalacao != 277) THEN
 NomeEmpresa := (SELECT nome FROM empresa LIMIT 1);
 RAISE EXCEPTION 'Tentativa de zerar o código de instalação de um cliente já configurado. É necessário primeiro resetar o cliente % para a instalação da InterSite (277) antes de zerar a instalação.', NomeEmpresa;
  END IF;
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggercheckcodinstalacaozero() OWNER TO postgres;

--
-- Name: triggercheckdpconhecimento(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckdpconhecimento() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
declare
	codDP integer;
	numIntConhec integer;
	codFornConhec integer;
	codFatPagConhec integer;
begin
	-- adiantamento
	codFatPagConhec := new.codfatpagadiant;
	if (codFatPagConhec is not null and codFatPagConhec > 0 and old.codfatpagadiant <> codFatPagConhec) then
			codFornConhec := new.codfornecedoradiant;
			codDP := (select codduplicatapagar from duplicatapagar where numeronota = new.numero and codfornecedor = codFornConhec and (serie = 'AD' or serie = 'AD ') and datadigitacao < (now() - interval '60 seconds') limit 1);
			if (codDP is not null and codDP > 0) then
					raise exception 'Conhecimento % / CTe % vinculado a duplicata a pagar % e não pode vincular com uma fatura de compra de adiantamento.', new.numero, COALESCE(new.numeroconhecimento, 0), codDP;
			end if;
	end if;
	-- saldo
	codFatPagConhec := new.codfatpagsaldo;
	if (codFatPagConhec is not null and codFatPagConhec > 0 and old.codfatpagsaldo <> codFatPagConhec) then
			codFornConhec := new.codfornecedorsaldo;
			codDP := (select codduplicatapagar from duplicatapagar where numeronota = new.numero and codfornecedor = codFornConhec and (serie = 'SD' or serie = 'SD ') and datadigitacao < (now() - interval '60 seconds') limit 1);
			if (codDP is not null and codDP > 0) then
					raise exception 'Conhecimento % / CTe % vinculado a duplicata a pagar % e não pode vincular com uma fatura de compra de saldo.', new.numero, COALESCE(new.numeroconhecimento, 0), codDP;
			end if;
	end if;
	-- classificacao
	codFatPagConhec := new.codfatpagclassif;
	if (codFatPagConhec is not null and codFatPagConhec > 0 and old.codfatpagclassif <> codFatPagConhec) then
			codFornConhec := new.codfornecedorclassificacao;
			codDP := (select codduplicatapagar from duplicatapagar where numeronota = new.numero and codfornecedor = codFornConhec and (serie = 'CL' or serie = 'CL ') and datadigitacao < (now() - interval '60 seconds') limit 1);
			if (codDP is not null and codDP > 0) then
					raise exception 'Conhecimento % / CTe % vinculado a duplicata a pagar % e não pode vincular com uma fatura de compra de classificação.', new.numero, COALESCE(new.numeroconhecimento, 0), codDP;
			end if;
	end if;
	-- balsa
	codFatPagConhec := new.codfatpagbalsa;
	if (codFatPagConhec is not null and codFatPagConhec > 0 and old.codfatpagbalsa <> codFatPagConhec) then
			codFornConhec := new.codfornecedorbalsa;
			codDP := (select codduplicatapagar from duplicatapagar where numeronota = new.numero and codfornecedor = codFornConhec and (serie = 'BAL') and datadigitacao < (now() - interval '60 seconds') limit 1);
			if (codDP is not null and codDP > 0) then
					raise exception 'Conhecimento % / CTe % vinculado a duplicata a pagar % e não pode vincular com uma fatura de compra de balsa.', new.numero, COALESCE(new.numeroconhecimento, 0), codDP;
			end if;
	end if;
	-- estadia
	codFatPagConhec := new.codfatpagestadia;
	if (codFatPagConhec is not null and codFatPagConhec > 0 and old.codfatpagestadia <> codFatPagConhec) then
			codFornConhec := new.codfornecedorestadia;
			codDP := (select codduplicatapagar from duplicatapagar where numeronota = new.numero and codfornecedor = codFornConhec and (serie = 'EST') and datadigitacao < (now() - interval '60 seconds') limit 1);
			if (codDP is not null and codDP > 0) then
					raise exception 'Conhecimento % / CTe % vinculado a duplicata a pagar % e não pode vincular com uma fatura de compra de estadia.', new.numero, COALESCE(new.numeroconhecimento, 0), codDP;
			end if;
	end if;
	-- pedagio
	codFatPagConhec := new.codfatpagpedagio;
	if (codFatPagConhec is not null and codFatPagConhec > 0 and old.codfatpagpedagio <> codFatPagConhec) then
			codFornConhec := new.codfornecedorpedagio;
			codDP := (select codduplicatapagar from duplicatapagar where numeronota = new.numero and codfornecedor = codFornConhec and (serie = 'PED') and datadigitacao < (now() - interval '60 seconds') limit 1);
			if (codDP is not null and codDP > 0) then
					raise exception 'Conhecimento % / CTe % vinculado a duplicata a pagar % e não pode vincular com uma fatura de compra de pedágio.', new.numero, COALESCE(new.numeroconhecimento, 0), codDP;
			end if;
	end if;
	-- icms
	codFatPagConhec := new.codfatpagicms;
	if (codFatPagConhec is not null and codFatPagConhec > 0 and old.codfatpagicms <> codFatPagConhec) then
			codFornConhec := new.codfornecedoricms;
			codDP := (select codduplicatapagar from duplicatapagar where numeronota = new.numero and codfornecedor = codFornConhec and (serie = 'ICM') and datadigitacao < (now() - interval '60 seconds') limit 1);
			if (codDP is not null and codDP > 0) then
					raise exception 'Conhecimento % / CTe % vinculado a duplicata a pagar % e não pode vincular com uma fatura de compra de ICMS.', new.numero, COALESCE(new.numeroconhecimento, 0), codDP;
			end if;
	end if;
	-- icms antecipado
	codFatPagConhec := new.codfatpagicmsantec;
	if (codFatPagConhec is not null and codFatPagConhec > 0 and old.codfatpagicmsantec <> codFatPagConhec) then
			codFornConhec := new.codfornicmsantec;
			codDP := (select codduplicatapagar from duplicatapagar where numeronota = new.numero and codfornecedor = codFornConhec and (serie = 'ICA') and datadigitacao < (now() - interval '60 seconds') limit 1);
			if (codDP is not null and codDP > 0) then
					raise exception 'Conhecimento % / CTe % vinculado a duplicata a pagar % e não pode vincular com uma fatura de compra de ICMS Antecipado.', new.numero, COALESCE(new.numeroconhecimento, 0), codDP;
			end if;
	end if;
	-- adiantamento 2
	codFatPagConhec := new.codfatpagadto2;
	if (codFatPagConhec is not null and codFatPagConhec > 0 and old.codfatpagadto2 <> codFatPagConhec) then
			codFornConhec := new.codfornecedoradto2;
			codDP := (select codduplicatapagar from duplicatapagar where numeronota = new.numero and codfornecedor = codFornConhec and (serie = 'AD2') and datadigitacao < (now() - interval '60 seconds') limit 1);
			if (codDP is not null and codDP > 0) then
					raise exception 'Conhecimento % / CTe % vinculado a duplicata a pagar % e não pode vincular com uma fatura de compra de adiantamento 2.', new.numero, COALESCE(new.numeroconhecimento, 0), codDP;
			end if;
	end if;
	--
	return new;
end
$$;


ALTER FUNCTION public.triggercheckdpconhecimento() OWNER TO postgres;

--
-- Name: triggercheckdpconhecimentoadic(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckdpconhecimentoadic() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
	declare
		codDP integer;
		numIntConhec integer;
		codFornConhec integer;
		codFatPagConhec integer;
begin        
		-- abastecimento
		codFatPagConhec := new.codFatPagAbast;
		if (codFatPagConhec is not null and codFatPagConhec > 0 and old.codFatPagAbast <> codFatPagConhec) then
				codFornConhec := new.codfornecedorabast;
				codDP := (select codduplicatapagar from duplicatapagar where numeronota = new.numero and codfornecedor = codFornConhec and (serie = 'AB' or serie = 'AB ') and datadigitacao < (now() - interval '60 seconds') limit 1);
				if (codDP is not null and codDP > 0) then
						raise exception 'Conhecimento vinculado a duplicata a pagar % e não pode vincular com uma fatura de compra de abastecimento.', codDP;
				end if;
		end if;
		
		--
	return new;
end
$$;


ALTER FUNCTION public.triggercheckdpconhecimentoadic() OWNER TO postgres;

--
-- Name: triggercheckdpfatc(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckdpfatc() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
BEGIN
	IF ((NEW.CODFATURA = 0) OR (NEW.CODFATURA is NULL) and
		((NEW.SERIE = 'FNC') or (NEW.SERIE = 'FPV') or (NEW.SERIE = 'PDV')) ) then
				NEW.CODFATURA = new.numeronota;         
END IF;
RETURN NEW;
END
$$;


ALTER FUNCTION public.triggercheckdpfatc() OWNER TO postgres;

--
-- Name: triggerchecknumconhecdupl(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggerchecknumconhecdupl() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE NumConhec INTEGER;
DECLARE NumConhecChave INTEGER;
DECLARE NumeroChave INTEGER;
DECLARE ValidaNumAut CHAR(1);
DECLARE ValidaNumInt CHAR(1);
BEGIN
  IF UPPER(NEW.Serie) LIKE ('NFS%') THEN
    RETURN NEW;
  END IF;
  IF (UPPER(NEW.Serie) != 'T' AND NEW.NumeroConhecimento IS NOT NULL) THEN
    IF (TG_OP = 'INSERT') THEN /* INSERCAO */
      NumConhec := (SELECT NumeroConhecimento FROM Conhecimento WHERE CodFilial = NEW.CodFilial AND Serie = NEW.Serie AND NumeroConhecimento = NEW.NumeroConhecimento);
    ELSE /* ALTERACAO */
      NumConhec := (SELECT NumeroConhecimento FROM Conhecimento WHERE CodFilial = NEW.CodFilial AND Serie = NEW.Serie AND NumeroConhecimento = NEW.NumeroConhecimento AND Numero != NEW.Numero);
    END IF;
    IF (NumConhec IS NOT NULL) THEN
      RAISE EXCEPTION 'Tentativa de duplicacao de Filial = %, Serie = %, No.CTe %. Favor reabrir esta viagem.', NEW.CodFilial, UPPER(NEW.Serie), NumConhec;
    END IF;
  END IF;
  /* Incluidas outras checagens e aproveitando o mesmo trigger */
  IF (NEW.CteChave IS NOT NULL AND NEW.CteChave != '') THEN
    NumConhecChave := CAST(SUBSTRING(NEW.CteChave,26,9) AS INTEGER);
    IF (NumConhecChave <= 0) THEN
      RAISE EXCEPTION 'CTe % informado na Chave invalido. Favor reabrir esta viagem.', NumConhecChave;
    END IF;
    NumeroChave := CAST(SUBSTRING(NEW.CteChave,36,8) AS INTEGER);
    IF (NumeroChave <= 0) THEN
      RAISE EXCEPTION 'No. interno da viagem % informado na Chave invalido. Favor reabrir esta viagem.', NumeroChave;
    END IF;
  END IF;
  IF (NEW.CteStatus = '2') THEN
    IF (NEW.NumeroConhecimento IS NULL OR NEW.NumeroConhecimento = 0) THEN
      RAISE EXCEPTION 'Nao e permitido definir Status do CTe = Autorizado sem No.CTe. Favor reabrir esta viagem.';
    END IF;
    IF (NEW.CteChave IS NULL OR NEW.CteChave = '') THEN
      RAISE EXCEPTION 'Nao e permitido definir Status do CTe = Autorizado sem Chave. Favor reabrir esta viagem.';
    END IF;
    IF (NEW.CteProt IS NULL OR NEW.CteProt = '') THEN
      RAISE EXCEPTION 'Nao e permitido definir Status do CTe = Autorizado sem Protocolo. Favor reabrir esta viagem.';
    END IF;
    IF (NEW.CteChave IS NOT NULL AND NEW.CteChave != '') THEN
      ValidaNumAut := (SELECT TRIM(Valor) FROM ParametroEmpresa WHERE Descricao = 'ValidaNumAutChaveCTe');
      IF (ValidaNumAut IS NULL OR ValidaNumAut = 'S') THEN
        NumConhecChave := CAST(SUBSTRING(NEW.CteChave,26,9) AS INTEGER);
        IF (NumConhecChave != NEW.NumeroConhecimento) THEN
          RAISE EXCEPTION 'CTe % informado na Chave diferente do CTe % deste cadastro. Favor reabrir esta viagem.', NumConhecChave, NEW.NumeroConhecimento;
        END IF;
      END IF;
      ValidaNumInt := (SELECT TRIM(Valor) FROM ParametroEmpresa WHERE Descricao = 'ValidaNumIntChaveCTe');
      IF (ValidaNumInt IS NULL OR ValidaNumInt = 'S') THEN
        NumeroChave := CAST(SUBSTRING(NEW.CteChave,36,8) AS INTEGER);
        IF (NumeroChave != NEW.Numero AND NEW.CodEMonitor IS NOT NULL AND NEW.CodEMonitor > 0) THEN
          RAISE EXCEPTION 'No. interno da viagem % informado na Chave diferente do No. interno % deste cadastro. Favor reabrir esta viagem.', NumeroChave, NEW.Numero;
        END IF;
      END IF;
    END IF;
  END IF;
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggerchecknumconhecdupl() OWNER TO postgres;

--
-- Name: triggerchecknumeromdfedupl(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggerchecknumeromdfedupl() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE NumMdfe INTEGER;
DECLARE NumMdfeChave INTEGER;
DECLARE CodManifChave INTEGER;
DECLARE ValidaNumAut CHAR(1);
DECLARE ValidaNumInt CHAR(1);
BEGIN
  IF (NEW.NumeroMdfe IS NOT NULL) THEN
    IF (TG_OP = 'INSERT') THEN /* INSERCAO */
      NumMdfe := (SELECT NumeroMdfe FROM Manif WHERE CodFilial = NEW.CodFilial AND SerieMdfe = NEW.SerieMdfe AND NumeroMdfe = NEW.NumeroMdfe);
    ELSE /* ALTERACAO */
      NumMdfe := (SELECT NumeroMdfe FROM Manif WHERE CodFilial = NEW.CodFilial AND SerieMdfe = NEW.SerieMdfe AND NumeroMdfe = NEW.NumeroMdfe AND CodManif != NEW.CodManif);
    END IF;
    IF (NumMdfe IS NOT NULL) THEN
      RAISE EXCEPTION 'Tentativa de duplicacao de Filial = %, Serie = %, No.MDFe %. Favor reabrir este manifesto.', NEW.CodFilial, NEW.SerieMdfe, NumMdfe;
    END IF;
  END IF;
  /* Incluidas outras checagens e aproveitando o mesmo trigger */
  IF (NEW.MdfeChave IS NOT NULL AND NEW.MdfeChave != '') THEN
    NumMdfeChave := CAST(SUBSTRING(NEW.MdfeChave,26,9) AS INTEGER);
    IF (NumMdfeChave <= 0) THEN
      RAISE EXCEPTION 'MDFe % informado na Chave invalido. Favor reabrir este manifesto.', NumMdfeChave;
    END IF;
    CodManifChave := CAST(SUBSTRING(NEW.MdfeChave,36,8) AS INTEGER);
    IF (CodManifChave <= 0) THEN
      RAISE EXCEPTION 'No. interno do manifesto % informado na Chave invalido. Favor reabrir este manifesto.', NumeroChave;
    END IF;
  END IF;
  IF (NEW.MdfeStatus = '2') THEN
    IF (NEW.NumeroMdfe IS NULL OR NEW.NumeroMdfe = 0) THEN
      RAISE EXCEPTION 'Nao e permitido definir Status do MDFe = Autorizado sem No.MDFe. Favor reabrir este manifesto.';
    END IF;
    IF (NEW.MdfeChave IS NULL OR NEW.MdfeChave = '') THEN
      RAISE EXCEPTION 'Nao e permitido definir Status do MDFe = Autorizado sem Chave. Favor reabrir este manifesto.';
    END IF;
    IF (NEW.MdfeProt IS NULL OR NEW.MdfeProt = '') THEN
      RAISE EXCEPTION 'Nao e permitido definir Status do MDFe = Autorizado sem Protocolo. Favor reabrir este manifesto.';
    END IF;
    IF (NEW.MdfeChave IS NOT NULL AND NEW.MdfeChave != '') THEN
      ValidaNumAut := (SELECT TRIM(Valor) FROM ParametroEmpresa WHERE Descricao = 'ValidaNumAutChaveMDFe');
      IF (ValidaNumAut IS NULL OR ValidaNumAut = 'S') THEN
        NumMdfeChave := CAST(SUBSTRING(NEW.MdfeChave,26,9) AS INTEGER);
        IF (NumMdfeChave != NEW.NumeroMdfe) THEN
          RAISE EXCEPTION 'MDFe % informado na Chave diferente do MDFe % deste cadastro. Favor reabrir este manifesto.', NumMdfeChave, NEW.NumeroMdfe;
        END IF;
      END IF;
      ValidaNumInt := (SELECT TRIM(Valor) FROM ParametroEmpresa WHERE Descricao = 'ValidaNumIntChaveMDFe');
      IF (ValidaNumInt IS NULL OR ValidaNumInt = 'S') THEN
        CodManifChave := CAST(SUBSTRING(NEW.MdfeChave,36,8) AS INTEGER);
        IF (CodManifChave != NEW.CodManif AND NEW.CodEMonitor IS NOT NULL AND NEW.CodEMonitor > 0) THEN
          RAISE EXCEPTION 'No. interno do manifesto % informado na Chave diferente do No. interno % deste cadastro. Favor reabrir este manifesto.', CodManifChave, NEW.CodManif;
        END IF;
      END IF;
    END IF;
  END IF;
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggerchecknumeromdfedupl() OWNER TO postgres;

--
-- Name: triggerchecknumeronfdupl(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggerchecknumeronfdupl() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE NumNf INTEGER;
DECLARE NumChaveNfe INTEGER;
DECLARE CodNotaChave INTEGER;
DECLARE ValidaNumAut CHAR(1);
DECLARE ValidaNumInt CHAR(1);
BEGIN
  IF (NEW.NumeroNf IS NOT NULL) THEN
    IF (TG_OP = 'INSERT') THEN /* INSERCAO */
      NumNf := (SELECT NumeroNf FROM Nota WHERE CodFilial = NEW.CodFilial AND SerieNf = NEW.SerieNf AND NumeroNf = NEW.NumeroNf AND UsuarioCanc IS NULL);
    ELSE /* ALTERACAO */
      NumNf := (SELECT NumeroNf FROM Nota WHERE CodFilial = NEW.CodFilial AND SerieNf = NEW.SerieNf AND NumeroNf = NEW.NumeroNf AND UsuarioCanc IS NULL AND CodNota != NEW.CodNota);
    END IF;
    IF (NumNf IS NOT NULL) THEN
      RAISE EXCEPTION 'Tentativa de duplicacao de Filial = %, Serie = %, No.NFe %. Favor reabrir esta nota.', NEW.CodFilial, NEW.SerieNf, NumNf;
    END IF;
  END IF;
  /* Incluidas outras checagens e aproveitando o mesmo trigger */
  IF (NEW.ChaveNfe IS NOT NULL AND NEW.ChaveNfe != '') THEN
    NumChaveNfe := CAST(SUBSTRING(NEW.ChaveNfe,26,9) AS INTEGER);
    IF (NumChaveNfe <= 0) THEN
      RAISE EXCEPTION 'NFe % informada na Chave invalida. Favor reabrir esta nota.', NumChaveNfe;
    END IF;
    CodNotaChave := CAST(SUBSTRING(NEW.ChaveNfe,36,8) AS INTEGER);
    IF (CodNotaChave <= 0) THEN
      RAISE EXCEPTION 'No. interno da nota % informado na Chave invalido. Favor reabrir esta nota.', CodNotaChave;
    END IF;
  END IF;
  IF (NEW.NfeStatus = '2') THEN
    IF (NEW.NumeroNf IS NULL OR NEW.NumeroNf = 0) THEN
      RAISE EXCEPTION 'Nao e permitido definir Status da NFe = Autorizado sem No.NFe. Favor reabrir esta nota.';
    END IF;
    IF (NEW.ChaveNfe IS NULL OR NEW.ChaveNfe = '') THEN
      RAISE EXCEPTION 'Nao e permitido definir Status da NFe = Autorizado sem Chave. Favor reabrir esta nota.';
    END IF;
    IF (NEW.NfeNProt IS NULL OR NEW.NfeNProt = '') THEN
      RAISE EXCEPTION 'Nao e permitido definir Status da NFe = Autorizado sem Protocolo. Favor reabrir esta nota.';
    END IF;
    IF (NEW.ChaveNfe IS NOT NULL AND NEW.ChaveNfe != '') THEN
      ValidaNumAut := (SELECT TRIM(Valor) FROM ParametroEmpresa WHERE Descricao = 'ValidaNumAutChaveNFe');
      IF (ValidaNumAut IS NULL OR ValidaNumAut = 'S') THEN
        NumChaveNfe := CAST(SUBSTRING(NEW.ChaveNfe,26,9) AS INTEGER);
        IF (NumChaveNfe != NEW.NumeroNf) THEN
          RAISE EXCEPTION 'NFe % informada na Chave diferente da NFe % deste cadastro. Favor reabrir esta nota.', NumChaveNfe, NEW.NumeroNf;
        END IF;
      END IF;
      ValidaNumInt := (SELECT TRIM(Valor) FROM ParametroEmpresa WHERE Descricao = 'ValidaNumIntChaveNFe');
      IF (ValidaNumInt IS NULL OR ValidaNumInt = 'S') THEN
        CodNotaChave := CAST(SUBSTRING(NEW.ChaveNfe,36,8) AS INTEGER);
        IF (CodNotaChave != NEW.CodNota AND NEW.CodEMonitor IS NOT NULL AND NEW.CodEMonitor > 0) THEN
          RAISE EXCEPTION 'No. interno da nota % informado na Chave diferente do No. interno % deste cadastro. Favor reabrir esta nota.', CodNotaChave, NEW.CodNota;
        END IF;
      END IF;
    END IF;
  END IF;
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggerchecknumeronfdupl() OWNER TO postgres;

--
-- Name: triggercheckrequestedfieldsconhec(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckrequestedfieldsconhec() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE
  FieldName VARCHAR(250);
BEGIN
  FieldName = '';
  IF (CHECKCODIGOVAZIOCONHEC(NEW.CODFILIAL,OLD.CODFILIAL) = 0) THEN
    FieldName = FieldName || 'Filial, ';
  END IF;
  IF (CHECKCODIGOVAZIOCONHEC(NEW.CODUNIDADEEMBARQUE,OLD.CODUNIDADEEMBARQUE) = 0) THEN
    FieldName = FieldName || 'Unid. Embarque, ';
  END IF;
  IF (CHECKCODIGOVAZIOCONHEC(NEW.CODCLIENTE,OLD.CODCLIENTE) = 0) THEN
    FieldName = FieldName || 'Cliente,';
  END IF;
  IF (CHECKCODIGOVAZIOCONHEC(NEW.CODREMETENTE,OLD.CODREMETENTE) = 0) THEN
    FieldName = FieldName || 'Remetente, ';
  END IF;
  IF (CHECKCODIGOVAZIOCONHEC(NEW.CODDESTINATARIO,OLD.CODDESTINATARIO) = 0) THEN
    FieldName = FieldName || 'Destinatário, ';
  END IF;
  IF (CHECKCODIGOVAZIOCONHEC(NEW.CODCIDADEORIGEM,OLD.CODCIDADEORIGEM) = 0) THEN
    FieldName = FieldName || 'Cid. Origem, ';
  END IF;
  IF (CHECKCODIGOVAZIOCONHEC(NEW.CODCIDADEDESTINO,OLD.CODCIDADEDESTINO) = 0) THEN
    FieldName = FieldName || 'Cid. Destino, ';
  END IF;
  IF (CHECKCODIGOVAZIOCONHEC(NEW.CODVEICULO,OLD.CODVEICULO) = 0) THEN
    FieldName = FieldName || 'Veículo, ';
  END IF;
  IF (CHECKCODIGOVAZIOCONHEC(NEW.CODMOTORISTA,OLD.CODMOTORISTA) = 0) THEN
    FieldName = FieldName || 'Motorista, ';
  END IF;
  IF (CHECKCODIGOVAZIOCONHEC(NEW.CODMERCADORIA,OLD.CODMERCADORIA) = 0) THEN
    FieldName = FieldName || 'Mercadoria, ';
  END IF;
  IF (CHECKCODIGOVAZIOCONHEC(NEW.CODEMBARCADOR,OLD.CODEMBARCADOR) = 0) THEN
    FieldName = FieldName || 'Embarcador, ';
  END IF;
  --
  IF (OLD.CTESTATUS = '2' AND NEW.CTESTATUS = '2' AND
    NEW.CANCELADO <> 'C' AND NEW.CANCELADO <> 'L') THEN
    IF (CHECKVALORDIFCONHEC(NEW.PESOSAIDA,OLD.PESOSAIDA) = 0) THEN
      RAISE NOTICE 'PESOSAIDA: % => %', OLD.PESOSAIDA, NEW.PESOSAIDA;
      FieldName = FieldName || 'Peso de Saída, ';
    END IF;
    IF (CHECKVALORDIFCONHEC(NEW.VALORMERCADORIA,OLD.VALORMERCADORIA) = 0) THEN
      RAISE NOTICE 'VALORMERCADORIA: % => %', OLD.VALORMERCADORIA, NEW.VALORMERCADORIA;
      FieldName = FieldName || 'Valor Mercadoria, ';
    END IF;
    -- ANALISAR PROBLEMA DE IMPORTACAO DE CTES DE OUTROS SISTEMAS
    -- IF (CHECKVALORDIFCONHEC(NEW.PRECOTONFISCAL,OLD.PRECOTONFISCAL) = 0) THEN
    --  RAISE NOTICE 'PRECOTONFISCAL: % => %', OLD.PRECOTONFISCAL, NEW.PRECOTONFISCAL;
    --  FieldName = FieldName || 'PPT/PPM3 Fiscal, ';
    -- END IF;
    -- IF (CHECKVALORDIFCONHEC(NEW.VALORFRETEFISCAL,OLD.VALORFRETEFISCAL) = 0) THEN
    --  RAISE NOTICE 'VALORFRETEFISCAL: % => %', OLD.VALORFRETEFISCAL, NEW.VALORFRETEFISCAL;
    --  FieldName = FieldName || 'Valor Frete Fiscal, ';
    -- END IF;
    -- IF (CHECKVALORDIFCONHEC(NEW.BASEICMS,OLD.BASEICMS) = 0) THEN
    --  RAISE NOTICE 'BASEICMS: % => %', OLD.BASEICMS, NEW.BASEICMS;
    --  FieldName = FieldName || 'Base ICMS, ';
    -- END IF;
    -- IF (CHECKVALORDIFCONHEC(NEW.VALORICMS,OLD.VALORICMS) = 0) THEN
    --  RAISE NOTICE 'VALORICMS: % => %', OLD.VALORICMS, NEW.VALORICMS;
    --  FieldName = FieldName || 'Valor ICMS, ';
    -- END IF;
  END IF;
  --
  IF (FieldName <> '') THEN
    RAISE EXCEPTION 'Ação que tentava limpar/alterar o(s) campo(s) ''%'' da viagem de No. interno % bloqueada, pois ja foi autorizada na SEFAZ, e estes campos constam no CTe. Favor reabrir esta viagem.', FieldName, OLD.Numero;
  END IF;
  --
  RETURN NEW;
end
$$;


ALTER FUNCTION public.triggercheckrequestedfieldsconhec() OWNER TO postgres;

--
-- Name: triggercheckrequestedfieldsmanif(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckrequestedfieldsmanif() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE FieldName VARCHAR(15);
BEGIN
	FieldName = '';
	IF (NEW.CODFILIAL IS NULL AND OLD.CODFILIAL IS NOT NULL) THEN
	  FieldName = FieldName || 'Filial, ';
	END IF;
	IF (NEW.CODUNIDADEEMBARQUE IS NULL AND OLD.CODUNIDADEEMBARQUE IS NOT NULL) THEN
	  FieldName = FieldName || 'Unid. Embarque, ';
	END IF;
	IF (NEW.CODCIDADEORIGEM IS NULL AND OLD.CODCIDADEORIGEM IS NOT NULL) THEN
	  FieldName = FieldName || 'Cid. Origem, ';
	END IF;
	IF (NEW.CODCIDADEDESTINO IS NULL AND OLD.CODCIDADEDESTINO IS NOT NULL) THEN
	  FieldName = FieldName || 'Cid. Destino, ';
	END IF;
	IF (NEW.CODVEICULO IS NULL AND OLD.CODVEICULO IS NOT NULL) THEN
	  FieldName = FieldName || 'Veículo, ';
	END IF;
	IF (NEW.CODMOTORISTA IS NULL AND OLD.CODMOTORISTA IS NOT NULL) THEN
	  FieldName = FieldName || 'Motorista, ';
	END IF;
  --
	IF (FieldName <> '') THEN
    RAISE EXCEPTION 'Ação que tentava limpar/alterar o(s) campo(s) ''%'' do manifesto de código % bloqueado. Favor reabrir este manifesto.', FieldName, OLD.CodManif;
	END IF;
  --
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggercheckrequestedfieldsmanif() OWNER TO postgres;

--
-- Name: triggercheckrequestedfieldsnota(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckrequestedfieldsnota() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE FieldName VARCHAR(15);
BEGIN
	FieldName = '';
	IF (NEW.CODFILIAL IS NULL AND OLD.CODFILIAL IS NOT NULL) THEN
	  FieldName = FieldName || 'Filial, ';
	END IF;
	IF (NEW.CODFORNECEDOR IS NULL AND OLD.CODFORNECEDOR IS NOT NULL) THEN
	  FieldName = FieldName || 'Fornecedor, ';
	END IF;
	IF (NEW.CODCONDICAO IS NULL AND OLD.CODCONDICAO IS NOT NULL) THEN
	  FieldName = FieldName || 'Cond. Pagto., ';
	END IF;
  --
	IF (FieldName <> '') THEN
    RAISE EXCEPTION 'Ação que tentava limpar/alterar o(s) campo(s) ''%'' da nota de código % bloqueada. Favor reabrir esta nota.', FieldName, OLD.CodNota;
	END IF;
  --
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggercheckrequestedfieldsnota() OWNER TO postgres;

--
-- Name: triggercheckvinculosduplicatapagar(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggercheckvinculosduplicatapagar() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  declare
    numNotaDP integer;
    serieDP varchar(5);
    codFornDP integer;
    numIntConhec integer;
    codFornConhec integer;
    numIntFC integer;
    codFornFC integer;
    numIntAdiant integer;
    codFornAdiant integer;
    codNotaDP integer;
begin
  serieDP := trim(new.serie);
  -- raise notice 'Serie DP = %', serieDP;
  -- vinculacao com Conhecimento
  if (serieDP = 'AD' or serieDP = 'SD' or serieDP = 'CL' or serieDP = 'BAL' or serieDP = 'EST' or
    serieDP = 'PED' or serieDP = 'ICM' or serieDP = 'ICA' or serieDP = 'AD2') then
    numIntConhec := (select numero from conhecimento where numero = new.numeronota);
    if (numIntConhec is null) then
      raise exception 'Conhecimento % vinculado a esta duplicata a pagar não existe.', new.numeronota;
    else
      codFornDP := new.codfornecedor;
      case serieDP
        when 'AD' then codFornConhec := (select codfornecedoradiant from conhecimento where numero = new.numeronota);
        when 'SD' then codFornConhec := (select codfornecedorsaldo from conhecimento where numero = new.numeronota);
        when 'CL' then codFornConhec := (select codfornecedorclassificacao from conhecimento where numero = new.numeronota);
        when 'BAL' then codFornConhec := (select codfornecedorbalsa from conhecimento where numero = new.numeronota);
        when 'EST' then codFornConhec := (select codfornecedorestadia from conhecimento where numero = new.numeronota);
        when 'PED' then codFornConhec := (select codfornecedorpedagio from conhecimento where numero = new.numeronota);
        when 'ICM' then codFornConhec := (select codfornecedoricms from conhecimento where numero = new.numeronota);
        when 'ICA' then codFornConhec := (select codfornicmsantec from conhecimento where numero = new.numeronota);
        when 'AD2' then codFornConhec := (select codfornecedoradto2 from conhecimento where numero = new.numeronota);
      end case;
      if (codFornDP is null and codFornConhec is not null) then
        raise exception 'Conhecimento % vinculado a esta duplicata a pagar possui o fornecedor % mas a duplicata a pagar está sem fornecedor.', new.numeronota, codFornConhec;
      else
        if (codFornDP is not null and codFornConhec is null) then
          raise exception 'Conhecimento % vinculado a esta duplicata a pagar não possui fornecedor mas a duplicata a pagar está com fornecedor %.', new.numeronota, codFornDP;
        else 
          if (codFornDP is not null and codFornConhec is not null and codFornDP != codFornConhec) then
            raise exception 'Conhecimento % vinculado a esta duplicata a pagar possui o fornecedor % diferente da duplicata a pagar com fornecedor %.', new.numeronota, codFornConhec, codFornDP;
          end if;
        end if;
      end if;
    end if;
  else
		-- vinculacao com Fatura de Compra
		if (serieDP = 'FNC' or serieDP = 'FPV' or serieDP = 'PDV') then
			numIntFC := (select codfatura from faturacompra where codfatura = new.codfatura or codfatura = new.numeronota);
			if (numIntFC is null) then
        raise exception 'Fatura de Compra % ou % vinculada a esta duplicata a pagar não existe.', new.codfatura, new.numeronota;
			else
				codFornDP := new.codfornecedor;
				codFornFC := (select codfornecedor from faturacompra where codfatura = new.codfatura or codfatura = new.numeronota);
				if (codFornDP is null and codFornFC is not null) then
					raise exception 'Fatura de Compra % ou % vinculada a esta duplicata a pagar possui o fornecedor % mas a duplicata a pagar está sem fornecedor.', new.codfatura, new.numeronota, codFornFC;
				else
					if (codFornDP is not null and codFornFC is null) then
						raise exception 'Fatura de Compra % ou % vinculada a esta duplicata a pagar não possui fornecedor mas a duplicata a pagar está com fornecedor %.', new.codfatura, new.numeronota, codFornDP;
					else 
						if (codFornDP is not null and codFornFC is not null and codFornDP != codFornFC) then
							raise exception 'Fatura de Compra % ou % vinculada a esta duplicata a pagar possui o fornecedor % diferente da duplicata a pagar com fornecedor %.', new.codfatura, new.numeronota, codFornFC, codFornDP;
						end if;
					end if;
				end if;
			end if;
		else
			-- vinculacao com Adiantamento
			if (serieDP = 'ADT') then
				numIntAdiant := (select codadiantamento from adiantamento where codadiantamento = new.numeronota);
				if (numIntAdiant is null) then
					raise exception 'CC Emp./Func. % vinculada a esta duplicata a pagar não existe.', new.numeronota;
				else
					codFornDP := new.codfornecedor;
					codFornAdiant := (select codfornecedor from adiantamento where codadiantamento = new.numeronota);
					if (codFornDP is null and codFornAdiant is not null) then
						raise exception 'CC Emp./Func. % vinculada a esta duplicata a pagar possui o fornecedor % mas a duplicata a pagar está sem fornecedor.', new.numeronota, codFornAdiant;
					else
						if (codFornDP is not null and codFornAdiant is null) then
							raise exception 'CC Emp./Func. % vinculada a esta duplicata a pagar não possui fornecedor mas a duplicata a pagar está com fornecedor %.', new.numeronota, codFornDP;
						else 
							if (codFornDP is not null and codFornAdiant is not null and codFornDP != codFornAdiant) then
								raise exception 'CC Emp./Func. % vinculada a esta duplicata a pagar possui o fornecedor % diferente da duplicata a pagar com fornecedor %.', new.numeronota, codFornAdiant, codFornDP;
							end if;
						end if;
					end if;
				end if;
			else
				-- vinculacao com Nota
				numNotaDP := new.numeronota;
				codFornDP := new.codfornecedor;
				codNotaDP := (select codnota from nota where numeronota = numNotaDP and serie = serieDP and codfornecedor = codFornDP limit 1);
				if (codNotaDP is null) then
					raise exception 'Nota %/S-%/F-% vinculada a esta duplicata a pagar não existe.', numNotaDP, serieDP, codFornDP;
				end if;
			end if;
		end if;
  end if;
  return new;
end
$$;


ALTER FUNCTION public.triggercheckvinculosduplicatapagar() OWNER TO postgres;

--
-- Name: triggerfaturasetcodnegocio(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggerfaturasetcodnegocio() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE VeiculoProprioFrota CHAR(1);
DECLARE CodNegocioFrota INTEGER;
BEGIN
  IF (NEW.CodNegocio IS NULL) THEN
    NEW.CodNegocio := (SELECT CodNegocio FROM Item WHERE CodItem = NEW.CodItemReceita);
  END IF;
  IF (NEW.CodVeiculo IS NOT NULL) THEN
    VeiculoProprioFrota := (SELECT VeiculoProprio FROM Veiculo WHERE CodVeiculo = NEW.CodVeiculo);
    IF (VeiculoProprioFrota = 'S' OR VeiculoProprioFrota = 'F') THEN
      CodNegocioFrota := (SELECT Valor FROM ParametroEmpresa WHERE Descricao = 'CodNegocioFrota');
      IF (NEW.CodNegocio != CodNegocioFrota) THEN
        NEW.CodNegocio := CodNegocioFrota;
        /*RAISE EXCEPTION 'Veículo informado é Próprio ou Apoio Frota e Negócio % vinculado diferente de Frota. Favor usar o Negócio Frota dos Parâmetros da Empresa.', NEW.CodNegocio;*/
      END IF;
    END IF;
  END IF;
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggerfaturasetcodnegocio() OWNER TO postgres;

--
-- Name: triggeritemnotabd(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggeritemnotabd() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE CodItemOld INTEGER;
BEGIN
  CodItemOld := (SELECT CodItemBaixar FROM Item WHERE CodItem = OLD.CodItem);
  IF (CodItemOld = 0 OR CodItemOld IS NULL OR OLD.Serie <> 'RQ') THEN
    CodItemOld := OLD.CodItem;
  END IF;
  IF (OLD.Serie <> 'RQ') THEN
    IF (OLD.VED = 'E') THEN
      UPDATE Item SET Saldo = Saldo - OLD.Quantidade WHERE CodItem = CodItemOld;
      UPDATE ItemFilial SET Saldo = Saldo - OLD.Quantidade WHERE CodItem = CodItemOld
        AND CodFilial = (SELECT DISTINCT n.CodFilial FROM Nota n WHERE n.CodNota = OLD.CodNota);
    END IF;
  ELSE
    IF (OLD.VED <> 'D') THEN
      UPDATE Item SET Saldo = Saldo + OLD.Quantidade WHERE CodItem = CodItemOld;
      UPDATE ItemFilial SET Saldo = Saldo + OLD.Quantidade WHERE CodItem = CodItemOld
        AND CodFilial = (SELECT DISTINCT n.CodFilial FROM Nota n WHERE n.CodNota = OLD.CodNota);
    END IF;
  END IF;
  RETURN OLD;
END
$$;


ALTER FUNCTION public.triggeritemnotabd() OWNER TO postgres;

--
-- Name: triggeritemnotabi(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggeritemnotabi() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE CodItemNew INTEGER;
DECLARE CodFilialAtual INTEGER;
DECLARE CodFilialNota INTEGER;
BEGIN
  CodItemNew := (SELECT CodItemBaixar FROM Item WHERE CodItem = NEW.CodItem);
  IF (CodItemNew = 0 OR CodItemNew IS NULL OR NEW.Serie <> 'RQ') THEN
    CodItemNew := NEW.CodItem;
  END IF;
  IF (NEW.Serie <> 'RQ') THEN
    IF (NEW.VED = 'E') THEN
      UPDATE Item SET Saldo = Saldo + NEW.Quantidade WHERE CodItem = CodItemNew;
      CodFilialNota := (SELECT DISTINCT n.CodFilial FROM Nota n WHERE n.CodNota = NEW.CodNota);
      CodFilialAtual := (SELECT DISTINCT i.CodFilial FROM ItemFilial i WHERE i.CodItem = CodItemNew AND i.CodFilial = CodFilialNota);
      IF (CodFilialAtual IS NOT NULL AND CodFilialAtual > 0) THEN
        UPDATE ItemFilial SET Saldo = Saldo + NEW.Quantidade WHERE CodItem = CodItemNew AND CodFilial = CodFilialNota;
      ELSE 
        IF (CodFilialNota IS NOT NULL AND CodFilialNota > 0) THEN
          INSERT INTO ItemFilial(CodItem,CodFilial,Saldo) VALUES(CodItemNew,CodFilialNota,NEW.Quantidade);
        END IF;
      END IF;
    END IF;
  ELSE
    IF (NEW.VED <> 'D') THEN
      UPDATE Item SET Saldo = Saldo - NEW.Quantidade WHERE CodItem = CodItemNew;
      UPDATE ItemFilial SET Saldo = Saldo - NEW.Quantidade WHERE CodItem = CodItemNew
        AND CodFilial = (SELECT n.CodFilial FROM Nota n WHERE n.CodNota = NEW.CodNota);
    END IF;
  END IF;
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggeritemnotabi() OWNER TO postgres;

--
-- Name: triggeritemnotabu(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggeritemnotabu() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE CodItemOld INTEGER;
DECLARE CodItemNew INTEGER;
DECLARE CodFilialAtual INTEGER;
DECLARE CodFilialNota INTEGER;
BEGIN
  CodItemOld := (SELECT CodItemBaixar FROM Item WHERE CodItem = OLD.CodItem);
  IF (CodItemOld = 0 OR CodItemOld IS NULL OR OLD.Serie <> 'RQ') THEN
    CodItemOld := OLD.CodItem;
  END IF;
  CodItemNew := (SELECT CodItemBaixar FROM Item WHERE CodItem = NEW.CodItem);
  IF (CodItemNew = 0 OR CodItemNew IS NULL OR NEW.Serie <> 'RQ') THEN
    CodItemNew := NEW.CodItem;
  END IF;
  IF (NEW.Serie <> 'RQ') THEN
    IF (OLD.VED = 'E') THEN
      UPDATE Item SET Saldo = Saldo - OLD.Quantidade WHERE CodItem = CodItemOld;
      UPDATE ItemFilial SET Saldo = Saldo - OLD.Quantidade WHERE CodItem = CodItemOld
        AND CodFilial = (SELECT n.CodFilial FROM Nota n WHERE n.CodNota = OLD.CodNota);
    END IF;
    IF (NEW.VED = 'E') THEN
      UPDATE Item SET Saldo = Saldo + NEW.Quantidade WHERE CodItem = CodItemNew;
      CodFilialNota := (SELECT DISTINCT n.CodFilial FROM Nota n WHERE n.CodNota = NEW.CodNota);
      CodFilialAtual := (SELECT DISTINCT i.CodFilial FROM ItemFilial i WHERE i.CodItem = CodItemNew AND i.CodFilial = CodFilialNota);
      IF (CodFilialAtual IS NOT NULL AND CodFilialAtual > 0) THEN
        UPDATE ItemFilial SET Saldo = Saldo + NEW.Quantidade WHERE CodItem = CodItemNew AND CodFilial = CodFilialNota;
      ELSE
        IF (CodFilialNota IS NOT NULL AND CodFilialNota > 0) THEN
          INSERT INTO ItemFilial(CodItem,CodFilial,Saldo) VALUES(CodItemNew,CodFilialNota,NEW.Quantidade);
        END IF;
      END IF;
    END IF;
  ELSE
    IF (OLD.VED <> 'D') THEN
      UPDATE Item SET Saldo = Saldo + OLD.Quantidade WHERE CodItem = CodItemOld;
      UPDATE ItemFilial SET Saldo = Saldo + OLD.Quantidade WHERE CodItem = CodItemOld
        AND CodFilial = (SELECT n.CodFilial FROM Nota n WHERE n.CodNota = OLD.CodNota);
    END IF;
    IF (NEW.VED <> 'D') THEN
      UPDATE Item SET Saldo = Saldo - NEW.Quantidade WHERE CodItem = CodItemNew;
      UPDATE ItemFilial SET Saldo = Saldo - NEW.Quantidade WHERE CodItem = CodItemNew
        AND CodFilial = (SELECT n.CodFilial FROM Nota n WHERE n.CodNota = NEW.CodNota);
    END IF;
  END IF;
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggeritemnotabu() OWNER TO postgres;

--
-- Name: triggeritemnotasetcodnegocio(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggeritemnotasetcodnegocio() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE VeiculoProprioFrota CHAR(1);
DECLARE CodNegocioFrota INTEGER;
BEGIN
  IF (NEW.CodNegocio IS NULL) THEN
    NEW.CodNegocio := (SELECT CodNegocio FROM Item WHERE CodItem = NEW.CodItem);
  END IF;
  IF (NEW.CodVeiculo IS NOT NULL AND NEW.CodVeiculo > 0) THEN
    VeiculoProprioFrota := (SELECT VeiculoProprio FROM Veiculo WHERE CodVeiculo = NEW.CodVeiculo);
    IF (VeiculoProprioFrota = 'S' OR VeiculoProprioFrota = 'F') THEN
      CodNegocioFrota := (SELECT Valor FROM ParametroEmpresa WHERE Descricao = 'CodNegocioFrota');
      IF (NEW.CodNegocio != CodNegocioFrota) THEN
        NEW.CodNegocio := CodNegocioFrota;
        /*RAISE EXCEPTION 'Veículo informado é Próprio ou Apoio Frota e Negócio % vinculado diferente de Frota. Favor usar o Negócio Frota dos Parâmetros da Empresa.', NEW.CodNegocio;*/
      END IF;
    END IF;
  END IF;
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggeritemnotasetcodnegocio() OWNER TO postgres;

--
-- Name: triggeritemordemcomprasetcodnegocio(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggeritemordemcomprasetcodnegocio() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
  DECLARE ValidaVeiculoFrotaSetNegocio CHAR(1);
  DECLARE VeiculoProprioFrota CHAR(1);
  DECLARE CodNegocioFrota INTEGER;
BEGIN
  IF (NEW.CodNegocio IS NULL) THEN
    NEW.CodNegocio := (SELECT CodNegocio FROM Item WHERE CodItem = NEW.CodItem);
  END IF;
  ValidaVeiculoFrotaSetNegocio := (SELECT TRIM(Valor) FROM ParametroEmpresa WHERE Descricao = 'ValidaVeiculoFrotaSetNegocio');
  IF (ValidaVeiculoFrotaSetNegocio IS NULL OR ValidaVeiculoFrotaSetNegocio = 'S') THEN
    IF (NEW.CodVeiculo IS NOT NULL AND NEW.CodVeiculo > 0) THEN
      VeiculoProprioFrota := (SELECT VeiculoProprio FROM Veiculo WHERE CodVeiculo = NEW.CodVeiculo);
      IF (VeiculoProprioFrota = 'S' OR VeiculoProprioFrota = 'F') THEN
        CodNegocioFrota := (SELECT Valor FROM ParametroEmpresa WHERE Descricao = 'CodNegocioFrota');
        IF (NEW.CodNegocio != CodNegocioFrota) THEN
          NEW.CodNegocio := CodNegocioFrota;
          /*RAISE EXCEPTION Veículo informado é Próprio ou Apoio Frota e Negócio % vinculado diferente de Frota. Favor usar o Negócio Frota dos Parâmetros da Empresa., NEW.CodNegocio;*/
        END IF;
      END IF;
    END IF;
  END IF;
  RETURN NEW;
END
$$;


ALTER FUNCTION public.triggeritemordemcomprasetcodnegocio() OWNER TO postgres;

--
-- Name: triggernovoveiculolog(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggernovoveiculolog() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE UltData TIMESTAMP;
BEGIN
  IF (NEW.Tipo = 1) THEN
    UltData := (SELECT Data FROM VeiculoLog
      WHERE CodVeiculo = NEW.CodVeiculo
      AND Data > CURRENT_DATE - integer '40'
      AND Tipo = 1
      ORDER BY Data DESC LIMIT 1);
    IF (UltData IS NOT NULL) THEN
      UPDATE Veiculo SET VLogUltPos = UltData WHERE CodVeiculo = NEW.CodVeiculo;
    END IF;
  ELSE
    UltData := (SELECT Data FROM VeiculoLog
      WHERE CodVeiculo = NEW.CodVeiculo
      AND Data > CURRENT_DATE - integer '60'
      AND Tipo IS NULL
      AND (NumeroPedido > 0 OR CodOrdemCar > 0)
      ORDER BY Data DESC LIMIT 1);
    IF (UltData IS NOT NULL) THEN
      UPDATE Veiculo SET VLogUltPed = UltData WHERE CodVeiculo = NEW.CodVeiculo;
    END IF;
    UltData := (SELECT Data FROM VeiculoLog
      WHERE CodVeiculo = NEW.CodVeiculo
      AND Data > CURRENT_DATE - integer '60'
      AND Tipo IS NULL
      AND (CodOrdemCar IS NULL OR CodOrdemCar = 0)
      ORDER BY Data DESC LIMIT 1);
    IF (UltData IS NOT NULL) THEN
      UPDATE Veiculo SET VLogUltStatus = UltData WHERE CodVeiculo = NEW.CodVeiculo;
    END IF;
  END IF;
  RETURN NULL;
END
$$;


ALTER FUNCTION public.triggernovoveiculolog() OWNER TO postgres;

--
-- Name: triggerremusuario(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.triggerremusuario() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
BEGIN
  DELETE FROM Recurso WHERE CodUsuario = OLD.CodUsuario;
  DELETE FROM Recursos WHERE Nome = OLD.Nome;
  DELETE FROM UsuarioCliente WHERE Nome = OLD.Nome;
  DELETE FROM UsuarioItemReceita WHERE Nome = OLD.Nome;
  DELETE FROM UsuarioLog WHERE Nome = OLD.Nome;
  DELETE FROM UsuarioOpCartao WHERE Usuario = OLD.Nome;
  DELETE FROM UsuarioProprietario WHERE Nome = OLD.Nome;
  RETURN OLD;
END
$$;


ALTER FUNCTION public.triggerremusuario() OWNER TO postgres;

SET default_tablespace = '';

SET default_table_access_method = heap;

--
-- Name: abast; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.abast (
    codabast public.dom_codint NOT NULL,
    codbomba integer,
    litros public.dom_quantreal,
    data timestamp without time zone,
    registro integer,
    tempo integer,
    codmotorista public.dom_codint2,
    codveiculo public.dom_codint2,
    bico character varying(5),
    encerrantei public.dom_quantreal,
    encerrantef public.dom_quantreal,
    coditem public.dom_codint2,
    codfilial public.dom_codint2,
    codmotfrentista public.dom_codint2,
    tag1 character varying(100),
    tag2 character varying(100),
    codnota public.dom_codint2,
    km public.dom_quantreal,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    obs character varying(250)
);


ALTER TABLE public.abast OWNER TO postgres;

--
-- Name: acaoaud; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.acaoaud (
    codacaoaud public.dom_codint2 NOT NULL,
    codauditoria public.dom_codint2,
    codtipoacaoaud public.dom_codint2,
    data timestamp without time zone,
    resp character varying(100),
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    status integer,
    codmotoristaaplicador public.dom_codint2
);


ALTER TABLE public.acaoaud OWNER TO postgres;

--
-- Name: acertomotorista; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.acertomotorista (
    codacertomotorista public.dom_codint2 NOT NULL,
    codmotorista public.dom_codint2,
    data timestamp without time zone,
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    codadiantamento public.dom_codint2,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    obs character varying(200),
    obs1 character varying(200),
    obs2 character varying(200),
    usuarioins character varying(10),
    obs3 character varying(200),
    obs4 character varying(200),
    obs5 character varying(200),
    usuarioaut character varying(15),
    dataaut timestamp without time zone,
    usuarioconf character varying(15),
    dataconf timestamp without time zone,
    valorvaleviagem public.dom_dinheiro2,
    codadiantamentodeb public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    codcidadedestino public.dom_codint2,
    codcliente public.dom_codint2,
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    usuarioaudit character varying(15),
    dataaudit timestamp without time zone,
    datadebito timestamp without time zone,
    codnota public.dom_codint2,
    obsmedia character varying(200),
    codnotadiaria public.dom_codint2,
    codnotatempo public.dom_codint2,
    obscompleta public.dom_text,
    codmotivocanc public.dom_codint2,
    datacanc timestamp without time zone,
    usuariocanc character varying(10),
    detcanc public.dom_text,
    finalizado public.dom_resp
);


ALTER TABLE public.acertomotorista OWNER TO postgres;

--
-- Name: acertopropdet; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.acertopropdet (
    codacertopropdet public.dom_codint NOT NULL,
    codacertoproprietario public.dom_codint2,
    tipo character varying(1),
    chavetabela public.dom_codint2,
    obs public.dom_text,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.acertopropdet OWNER TO postgres;

--
-- Name: acertoproprietario; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.acertoproprietario (
    codacertoproprietario public.dom_codint NOT NULL,
    codproprietario public.dom_codint2,
    data character varying(15),
    obs character varying(200),
    obs1 character varying(200),
    obs2 character varying(200),
    obs3 character varying(200),
    obs4 character varying(200),
    obs5 character varying(200),
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codfatura public.dom_codint2,
    codfaturacompra public.dom_codint2,
    codtransacaocred public.dom_codint2,
    codtransacaodeb public.dom_codint2,
    vlparccp public.dom_dinheiro2,
    vlparccr public.dom_dinheiro2,
    dataacertoprop timestamp without time zone,
    obscompleta public.dom_text,
    codmotivocanc public.dom_codint2,
    datacanc timestamp without time zone,
    usuariocanc character varying(10),
    detcanc public.dom_text,
    listaparc public.dom_text
);


ALTER TABLE public.acertoproprietario OWNER TO postgres;

--
-- Name: adecliente; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.adecliente (
    codadecliente public.dom_codint NOT NULL,
    codcliente public.dom_codint2 NOT NULL,
    cnpjraiz character varying(20),
    datainiade timestamp without time zone,
    datafimade timestamp without time zone,
    obsini public.dom_text,
    obsfim public.dom_text,
    obsmercadoria public.dom_text,
    numeroade character varying(100),
    liberado public.dom_resp DEFAULT 'S'::bpchar,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone
);


ALTER TABLE public.adecliente OWNER TO postgres;

--
-- Name: adiantamento; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.adiantamento (
    codadiantamento public.dom_codint NOT NULL,
    codmotorista public.dom_codint,
    codfilial public.dom_codint,
    codfornecedor public.dom_codint2,
    data timestamp without time zone,
    creditodebito character varying(1),
    valor public.dom_dinheiro2,
    descricao character varying(100),
    datavencimento timestamp without time zone,
    datadigitacao timestamp without time zone,
    diarias public.dom_quant,
    numero double precision,
    dataexportacao timestamp without time zone,
    dataatual timestamp without time zone,
    especial public.dom_resp,
    codacertomotorista public.dom_codint2,
    dataemissao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codtransacao public.dom_codint2,
    obs character varying(200),
    codmoeda public.dom_codint2,
    codtipoccempfunc public.dom_codint2,
    codveiculo public.dom_codint2,
    usuarioaut character varying(15),
    dataaut timestamp without time zone,
    codtipopagto public.dom_codint2,
    codfatura public.dom_codint2,
    codmotivocanc public.dom_codint2,
    datacanc timestamp without time zone,
    usuariocanc character varying(10),
    valorantescanc public.dom_dinheiro2,
    obscanc public.dom_text,
    afaturar public.dom_resp
);


ALTER TABLE public.adiantamento OWNER TO postgres;

--
-- Name: adiantamentodiaria; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.adiantamentodiaria (
    codadiantamento public.dom_codint NOT NULL,
    data timestamp without time zone NOT NULL,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codadiantamentodiaria public.dom_codint2 NOT NULL
);


ALTER TABLE public.adiantamentodiaria OWNER TO postgres;

--
-- Name: adiantamentostatus; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.adiantamentostatus (
    numero integer NOT NULL,
    codmotorista public.dom_codint2,
    status character(1),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.adiantamentostatus OWNER TO postgres;

--
-- Name: agenda; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.agenda (
    codagenda public.dom_codint NOT NULL,
    usuario character varying(15),
    data timestamp without time zone,
    status public.dom_resp,
    descricao character varying(100),
    obs text,
    periodicidade public.dom_resp,
    menuitem character varying(30),
    menuitempar character varying(100),
    descrmenuitem character varying(100),
    tipo public.dom_resp,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codagendaagrup public.dom_codint2,
    datalim timestamp without time zone,
    datafim timestamp without time zone,
    listausuariosolic public.dom_text,
    conclusao public.dom_text,
    listausuarioresp public.dom_text
);


ALTER TABLE public.agenda OWNER TO postgres;

--
-- Name: agendatarefa; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.agendatarefa (
    codagendatarefa public.dom_codint NOT NULL,
    processo integer,
    periodicidade integer,
    valorperiodicidade character varying(10),
    descricao character varying(30),
    obs public.dom_text,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    emaildest public.dom_email2,
    liberado public.dom_resp,
    filtros public.dom_text,
    codtipodocaud public.dom_codint2,
    datalim timestamp without time zone,
    datafim timestamp without time zone,
    listausuariosolic public.dom_text,
    conclusao public.dom_text,
    codusuario public.dom_codint2,
    dataultexecucao timestamp without time zone
);


ALTER TABLE public.agendatarefa OWNER TO postgres;

--
-- Name: agendatarefalog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.agendatarefalog (
    codagendatarefalog public.dom_codint NOT NULL,
    codagendatarefa public.dom_codint2,
    processo integer NOT NULL,
    datalog timestamp without time zone,
    descricao character varying(30),
    emaildest public.dom_email2,
    periodicidade integer,
    valorperiodicidade character varying(10),
    filtros public.dom_text,
    obsusuario public.dom_text,
    obsdesenv public.dom_text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.agendatarefalog OWNER TO postgres;

--
-- Name: TABLE agendatarefalog; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON TABLE public.agendatarefalog IS 'Log de execução de tarefas agendadas do sistema';


--
-- Name: COLUMN agendatarefalog.codagendatarefa; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agendatarefalog.codagendatarefa IS 'Código da tarefa agendada (FK) - preenchido quando executado via Job agendado';


--
-- Name: COLUMN agendatarefalog.processo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agendatarefalog.processo IS 'Identificador do processo (timercaramuru, timerviagem, jobsmanuprev, etc.)';


--
-- Name: COLUMN agendatarefalog.datalog; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agendatarefalog.datalog IS 'Data/hora de execução do log';


--
-- Name: COLUMN agendatarefalog.obsusuario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agendatarefalog.obsusuario IS 'Observações do usuário';


--
-- Name: COLUMN agendatarefalog.obsdesenv; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agendatarefalog.obsdesenv IS 'Observações de desenvolvimento';


--
-- Name: apagado; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.apagado (
    codapagado public.dom_codint2 NOT NULL,
    nometabela character varying(30),
    dataatual timestamp without time zone,
    nomecampo character varying(150),
    valorcampo character varying(150),
    usuarioins character varying(15)
);


ALTER TABLE public.apagado OWNER TO postgres;

--
-- Name: atendimento_temp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.atendimento_temp (
    seq_atend_temp integer NOT NULL,
    cod_bomba smallint,
    cod_bico_bomba smallint,
    hora character(5),
    qtde_litros numeric(20,4),
    valor_total numeric(20,2),
    hora_atend character(5),
    encerrante numeric(20,3),
    dia smallint,
    mes smallint,
    codmotorista integer,
    codveiculo integer,
    placa character varying(7),
    processado character(1),
    km integer,
    km_ant integer,
    data_abast timestamp without time zone,
    importada public.dom_resp,
    cod_frentista integer,
    cod_filial integer
);


ALTER TABLE public.atendimento_temp OWNER TO postgres;

--
-- Name: auditoria; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.auditoria (
    codauditoria public.dom_codint2 NOT NULL,
    tipo character(1),
    naoconformidade character(1),
    rnc character varying(10),
    reclamacaocli character(1),
    rrc character varying(10),
    acaocorretiva character(1),
    rac character varying(10),
    acaopreventiva character(1),
    rap character varying(10),
    coordenacaosgq character(1),
    codtipodocaud public.dom_codint2,
    numerodoc character varying(20),
    codcliente public.dom_codint2,
    codproprietario public.dom_codint2,
    codmotorista public.dom_codint2,
    codfornecedor public.dom_codint2,
    coddepartamento public.dom_codint2,
    data timestamp without time zone,
    descricaonc text,
    causa text,
    obs text,
    custoest numeric(20,4),
    resultexec character(1),
    respexec character varying(100),
    dataexec timestamp without time zone,
    novoprazoexec timestamp without time zone,
    resultnovoprazo character(1),
    respnovoprazo character varying(100),
    datanovoprazo timestamp without time zone,
    racnovoprazo character varying(10),
    rapnovoprazo character varying(10),
    resulteficacia character(1),
    respeficacia character varying(100),
    dataeficacia timestamp without time zone,
    raceficacia character varying(10),
    rapeficacia character varying(10),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    status integer,
    codtabela integer,
    chavetabela character varying(20),
    usuarioresp character varying(15),
    codmotoristaresp public.dom_codint2,
    usuariofin character varying(15),
    datafin timestamp without time zone,
    codveiculo public.dom_codint2,
    codunidadeembarque public.dom_codint2
);


ALTER TABLE public.auditoria OWNER TO postgres;

--
-- Name: auditoriadet; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.auditoriadet (
    codauditoriadet public.dom_codint NOT NULL,
    codauditoria public.dom_codint2,
    label character varying(50),
    conteudo character varying(200),
    alinhamento character(1),
    formatacao character varying(30),
    ordem integer,
    tamanho integer,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.auditoriadet OWNER TO postgres;

--
-- Name: auditorialog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.auditorialog (
    codauditorialog public.dom_codint2 NOT NULL,
    codauditoria public.dom_codint2,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.auditorialog OWNER TO postgres;

--
-- Name: auditoriaus; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.auditoriaus (
    codauditoriaus public.dom_codint NOT NULL,
    codauditoria public.dom_codint2,
    usuario character varying(15),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.auditoriaus OWNER TO postgres;

--
-- Name: auxabc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.auxabc (
    codigo public.dom_codint2 NOT NULL,
    valor public.dom_dinheiro2,
    percentual public.dom_quantreal,
    valoraux1 public.dom_quantreal,
    valoraux2 public.dom_quantreal,
    valoraux3 public.dom_quantreal,
    valoraux4 public.dom_quantreal,
    valoraux5 public.dom_quantreal,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.auxabc OWNER TO postgres;

--
-- Name: banco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.banco (
    codbanco public.dom_codint2 NOT NULL,
    descricao character varying(70),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    ltotal public.dom_codint2,
    lvalor public.dom_codint2,
    cvalor public.dom_codint2,
    lext1 public.dom_codint2,
    cext1 public.dom_codint2,
    lext2 public.dom_codint2,
    cext2 public.dom_codint2,
    lnominal public.dom_codint2,
    cnominal public.dom_codint2,
    lcidade public.dom_codint2,
    ccidade public.dom_codint2,
    ldia public.dom_codint2,
    cdia public.dom_codint2,
    lmes public.dom_codint2,
    cmes integer,
    lano public.dom_codint2,
    cano public.dom_codint2,
    ldata2 public.dom_codint2,
    cdata2 public.dom_codint2,
    tdata2 public.dom_codint2,
    lnominal2 public.dom_codint2,
    cnominal2 public.dom_codint2,
    tnominal2 public.dom_codint2,
    lnominal3 public.dom_codint2,
    cnominal3 public.dom_codint2,
    tnominal3 public.dom_codint2,
    lvalor2 public.dom_codint2,
    cvalor2 public.dom_codint2,
    tvalor2 public.dom_codint2,
    bandacheque public.dom_codint2,
    lagencia public.dom_codint2,
    cagencia public.dom_codint2,
    ltitular public.dom_codint2,
    ctitular public.dom_codint2,
    g_altura public.dom_codint2,
    g_lvalor public.dom_codint2,
    g_cvalor public.dom_codint2,
    g_lext1 public.dom_codint2,
    g_cext1 public.dom_codint2,
    g_lext2 public.dom_codint2,
    g_cext2 public.dom_codint2,
    g_lnominal public.dom_codint2,
    g_cnominal public.dom_codint2,
    g_lcidade public.dom_codint2,
    g_ccidade public.dom_codint2,
    g_ldia public.dom_codint2,
    g_cdia public.dom_codint2,
    g_lmes public.dom_codint2,
    g_cmes integer,
    g_lano public.dom_codint2,
    g_cano public.dom_codint2,
    g_ldataprev public.dom_codint2,
    g_cdataprev public.dom_codint2,
    g_lnomfor public.dom_codint2,
    g_cnomfor public.dom_codint2,
    g_lagenciafor public.dom_codint2,
    g_cagenciafor public.dom_codint2,
    g_lcontafor public.dom_codint2,
    g_ccontafor public.dom_codint2,
    gc_ldata public.dom_codint2,
    gc_cdata public.dom_codint2,
    gc_lnominal public.dom_codint2,
    gc_cnominal public.dom_codint2,
    gc_lvalor public.dom_codint2,
    gc_cvalor public.dom_codint2,
    tamextenso1 integer,
    tamextenso2 integer,
    tamnominal integer,
    c_lcte integer,
    c_ccte integer,
    gc_lcte integer,
    gc_ccte integer,
    c_lcf integer,
    c_ccf integer,
    gc_lcf integer,
    gc_ccf integer,
    lbancofor public.dom_codint2,
    cbancofor public.dom_codint2,
    g_lbancofor public.dom_codint2,
    g_cbancofor public.dom_codint2,
    lcodverif public.dom_codint2,
    ccodverif public.dom_codint2,
    tcodverif public.dom_codint2,
    g_lcodverif public.dom_codint2,
    g_ccodverif public.dom_codint2,
    g_tcodverif public.dom_codint2,
    g_linhaassinatura integer,
    g_colunaassinatura integer,
    g_alturaassinatura integer,
    g_largurassinatura integer,
    g_linhaimgadic integer,
    g_colunaimgadic integer,
    g_alturaimgadic integer,
    g_largurimgadic integer,
    lvalidach integer,
    cvalidach integer,
    g_lvalidach integer,
    g_cvalidach integer
);


ALTER TABLE public.banco OWNER TO postgres;

--
-- Name: bancooco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.bancooco (
    codbancooco public.dom_codint NOT NULL,
    codbanco public.dom_codint2,
    codoco public.dom_codint2,
    descricao character varying(100),
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codocopag character varying(20)
);


ALTER TABLE public.bancooco OWNER TO postgres;

--
-- Name: bancotipopagto; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.bancotipopagto (
    codbancotipopagto public.dom_codint2 NOT NULL,
    codbanco public.dom_codint2,
    codtipopagto public.dom_codint2,
    codtipobanco character varying(20),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone
);


ALTER TABLE public.bancotipopagto OWNER TO postgres;

--
-- Name: bidados; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.bidados (
    codbidados public.dom_codint NOT NULL,
    codlayout integer,
    id character varying(50),
    campod1 timestamp without time zone,
    campod2 timestamp without time zone,
    campod3 timestamp without time zone,
    campod4 timestamp without time zone,
    campod5 timestamp without time zone,
    campod6 timestamp without time zone,
    campod7 timestamp without time zone,
    campod8 timestamp without time zone,
    campod9 timestamp without time zone,
    campod10 timestamp without time zone,
    campos1 character varying(250),
    campos2 character varying(250),
    campos3 character varying(250),
    campos4 character varying(250),
    campos5 character varying(250),
    campos6 character varying(250),
    campos7 character varying(250),
    campos8 character varying(250),
    campos9 character varying(250),
    campos10 character varying(250),
    campos11 character varying(250),
    campos12 character varying(250),
    campos13 character varying(250),
    campos14 character varying(250),
    campos15 character varying(250),
    campos16 character varying(250),
    campos17 character varying(250),
    campos18 character varying(250),
    campos19 character varying(250),
    campos20 character varying(250),
    campos21 character varying(250),
    campos22 character varying(250),
    campos23 character varying(250),
    campos24 character varying(250),
    campos25 character varying(250),
    campos26 character varying(250),
    campos27 character varying(250),
    campos28 character varying(250),
    campos29 character varying(250),
    campos30 character varying(250),
    campos31 character varying(250),
    campos32 character varying(250),
    campos33 character varying(250),
    campos34 character varying(250),
    campos35 character varying(250),
    campos36 character varying(250),
    campos37 character varying(250),
    campos38 character varying(250),
    campos39 character varying(250),
    campos40 character varying(250),
    campos41 character varying(250),
    campos42 character varying(250),
    campos43 character varying(250),
    campos44 character varying(250),
    campos45 character varying(250),
    campos46 character varying(250),
    campos47 character varying(250),
    campos48 character varying(250),
    campos49 character varying(250),
    campos50 character varying(250),
    campoi1 integer,
    campoi2 integer,
    campoi3 integer,
    campoi4 integer,
    campoi5 integer,
    campoi6 integer,
    campoi7 integer,
    campoi8 integer,
    campoi9 integer,
    campoi10 integer,
    campoi11 integer,
    campoi12 integer,
    campoi13 integer,
    campoi14 integer,
    campoi15 integer,
    campoi16 integer,
    campoi17 integer,
    campoi18 integer,
    campoi19 integer,
    campoi20 integer,
    campoi21 integer,
    campoi22 integer,
    campoi23 integer,
    campoi24 integer,
    campoi25 integer,
    campoi26 integer,
    campoi27 integer,
    campoi28 integer,
    campoi29 integer,
    campoi30 integer,
    campoi31 integer,
    campoi32 integer,
    campoi33 integer,
    campoi34 integer,
    campoi35 integer,
    campoi36 integer,
    campoi37 integer,
    campoi38 integer,
    campoi39 integer,
    campoi40 integer,
    campoi41 integer,
    campoi42 integer,
    campoi43 integer,
    campoi44 integer,
    campoi45 integer,
    campoi46 integer,
    campoi47 integer,
    campoi48 integer,
    campoi49 integer,
    campoi50 integer,
    campon1 public.dom_quantreal,
    campon2 public.dom_quantreal,
    campon3 public.dom_quantreal,
    campon4 public.dom_quantreal,
    campon5 public.dom_quantreal,
    campon6 public.dom_quantreal,
    campon7 public.dom_quantreal,
    campon8 public.dom_quantreal,
    campon9 public.dom_quantreal,
    campon10 public.dom_quantreal,
    campon11 public.dom_quantreal,
    campon12 public.dom_quantreal,
    campon13 public.dom_quantreal,
    campon14 public.dom_quantreal,
    campon15 public.dom_quantreal,
    campon16 public.dom_quantreal,
    campon17 public.dom_quantreal,
    campon18 public.dom_quantreal,
    campon19 public.dom_quantreal,
    campon20 public.dom_quantreal,
    campon21 public.dom_quantreal,
    campon22 public.dom_quantreal,
    campon23 public.dom_quantreal,
    campon24 public.dom_quantreal,
    campon25 public.dom_quantreal,
    campon26 public.dom_quantreal,
    campon27 public.dom_quantreal,
    campon28 public.dom_quantreal,
    campon29 public.dom_quantreal,
    campon30 public.dom_quantreal,
    campon31 public.dom_quantreal,
    campon32 public.dom_quantreal,
    campon33 public.dom_quantreal,
    campon34 public.dom_quantreal,
    campon35 public.dom_quantreal,
    campon36 public.dom_quantreal,
    campon37 public.dom_quantreal,
    campon38 public.dom_quantreal,
    campon39 public.dom_quantreal,
    campon40 public.dom_quantreal,
    campon41 public.dom_quantreal,
    campon42 public.dom_quantreal,
    campon43 public.dom_quantreal,
    campon44 public.dom_quantreal,
    campon45 public.dom_quantreal,
    campon46 public.dom_quantreal,
    campon47 public.dom_quantreal,
    campon48 public.dom_quantreal,
    campon49 public.dom_quantreal,
    campon50 public.dom_quantreal,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.bidados OWNER TO postgres;

--
-- Name: bidadosr; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.bidadosr (
    codbidadosr public.dom_codint NOT NULL,
    codbilayoutr integer,
    data timestamp without time zone,
    valorchaveint integer,
    valorchavestr character varying(250),
    valornum1 public.dom_quantreal,
    valornum2 public.dom_quantreal,
    valornum3 public.dom_quantreal,
    valornum4 public.dom_quantreal,
    valornum5 public.dom_quantreal,
    valornum6 public.dom_quantreal,
    valornum7 public.dom_quantreal,
    valornum8 public.dom_quantreal,
    valornum9 public.dom_quantreal,
    valornum10 public.dom_quantreal,
    valorstr1 character varying(250),
    valorstr2 character varying(250),
    valorstr3 character varying(250),
    valorstr4 character varying(250),
    valorstr5 character varying(250),
    valorstr6 character varying(250),
    valorstr7 character varying(250),
    valorstr8 character varying(250),
    valorstr9 character varying(250),
    valorstr10 character varying(250),
    valorint1 public.dom_codint2,
    valorint2 public.dom_codint2,
    valorint3 public.dom_codint2,
    valorint4 public.dom_codint2,
    valorint5 public.dom_codint2,
    valorint6 public.dom_codint2,
    valorint7 public.dom_codint2,
    valorint8 public.dom_codint2,
    valorint9 public.dom_codint2,
    valorint10 public.dom_codint2
);


ALTER TABLE public.bidadosr OWNER TO postgres;

--
-- Name: bilayout; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.bilayout (
    codbilayout public.dom_codint NOT NULL,
    codlayout integer,
    nomed1 character varying(100),
    nomed2 character varying(100),
    nomed3 character varying(100),
    nomed4 character varying(100),
    nomed5 character varying(100),
    nomed6 character varying(100),
    nomed7 character varying(100),
    nomed8 character varying(100),
    nomed9 character varying(100),
    nomed10 character varying(100),
    nomes1 character varying(100),
    nomes2 character varying(100),
    nomes3 character varying(100),
    nomes4 character varying(100),
    nomes5 character varying(100),
    nomes6 character varying(100),
    nomes7 character varying(100),
    nomes8 character varying(100),
    nomes9 character varying(100),
    nomes10 character varying(100),
    nomes11 character varying(100),
    nomes12 character varying(100),
    nomes13 character varying(100),
    nomes14 character varying(100),
    nomes15 character varying(100),
    nomes16 character varying(100),
    nomes17 character varying(100),
    nomes18 character varying(100),
    nomes19 character varying(100),
    nomes20 character varying(100),
    nomes21 character varying(100),
    nomes22 character varying(100),
    nomes23 character varying(100),
    nomes24 character varying(100),
    nomes25 character varying(100),
    nomes26 character varying(100),
    nomes27 character varying(100),
    nomes28 character varying(100),
    nomes29 character varying(100),
    nomes30 character varying(100),
    nomes31 character varying(100),
    nomes32 character varying(100),
    nomes33 character varying(100),
    nomes34 character varying(100),
    nomes35 character varying(100),
    nomes36 character varying(100),
    nomes37 character varying(100),
    nomes38 character varying(100),
    nomes39 character varying(100),
    nomes40 character varying(100),
    nomes41 character varying(100),
    nomes42 character varying(100),
    nomes43 character varying(100),
    nomes44 character varying(100),
    nomes45 character varying(100),
    nomes46 character varying(100),
    nomes47 character varying(100),
    nomes48 character varying(100),
    nomes49 character varying(100),
    nomes50 character varying(100),
    nomei1 character varying(100),
    nomei2 character varying(100),
    nomei3 character varying(100),
    nomei4 character varying(100),
    nomei5 character varying(100),
    nomei6 character varying(100),
    nomei7 character varying(100),
    nomei8 character varying(100),
    nomei9 character varying(100),
    nomei10 character varying(100),
    nomei11 character varying(100),
    nomei12 character varying(100),
    nomei13 character varying(100),
    nomei14 character varying(100),
    nomei15 character varying(100),
    nomei16 character varying(100),
    nomei17 character varying(100),
    nomei18 character varying(100),
    nomei19 character varying(100),
    nomei20 character varying(100),
    nomei21 character varying(100),
    nomei22 character varying(100),
    nomei23 character varying(100),
    nomei24 character varying(100),
    nomei25 character varying(100),
    nomei26 character varying(100),
    nomei27 character varying(100),
    nomei28 character varying(100),
    nomei29 character varying(100),
    nomei30 character varying(100),
    nomei31 character varying(100),
    nomei32 character varying(100),
    nomei33 character varying(100),
    nomei34 character varying(100),
    nomei35 character varying(100),
    nomei36 character varying(100),
    nomei37 character varying(100),
    nomei38 character varying(100),
    nomei39 character varying(100),
    nomei40 character varying(100),
    nomei41 character varying(100),
    nomei42 character varying(100),
    nomei43 character varying(100),
    nomei44 character varying(100),
    nomei45 character varying(100),
    nomei46 character varying(100),
    nomei47 character varying(100),
    nomei48 character varying(100),
    nomei49 character varying(100),
    nomei50 character varying(100),
    nomen1 character varying(100),
    nomen2 character varying(100),
    nomen3 character varying(100),
    nomen4 character varying(100),
    nomen5 character varying(100),
    nomen6 character varying(100),
    nomen7 character varying(100),
    nomen8 character varying(100),
    nomen9 character varying(100),
    nomen10 character varying(100),
    nomen11 character varying(100),
    nomen12 character varying(100),
    nomen13 character varying(100),
    nomen14 character varying(100),
    nomen15 character varying(100),
    nomen16 character varying(100),
    nomen17 character varying(100),
    nomen18 character varying(100),
    nomen19 character varying(100),
    nomen20 character varying(100),
    nomen21 character varying(100),
    nomen22 character varying(100),
    nomen23 character varying(100),
    nomen24 character varying(100),
    nomen25 character varying(100),
    nomen26 character varying(100),
    nomen27 character varying(100),
    nomen28 character varying(100),
    nomen29 character varying(100),
    nomen30 character varying(100),
    nomen31 character varying(100),
    nomen32 character varying(100),
    nomen33 character varying(100),
    nomen34 character varying(100),
    nomen35 character varying(100),
    nomen36 character varying(100),
    nomen37 character varying(100),
    nomen38 character varying(100),
    nomen39 character varying(100),
    nomen40 character varying(100),
    nomen41 character varying(100),
    nomen42 character varying(100),
    nomen43 character varying(100),
    nomen44 character varying(100),
    nomen45 character varying(100),
    nomen46 character varying(100),
    nomen47 character varying(100),
    nomen48 character varying(100),
    nomen49 character varying(100),
    nomen50 character varying(100),
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.bilayout OWNER TO postgres;

--
-- Name: bilayoutr; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.bilayoutr (
    codbilayoutr public.dom_codint NOT NULL,
    descricao character varying(250),
    campodata character varying(100),
    campochaveint character varying(250),
    campochavestr character varying(250),
    camponum1 character varying(100),
    camponum2 character varying(100),
    camponum3 character varying(100),
    camponum4 character varying(100),
    camponum5 character varying(100),
    camponum6 character varying(100),
    camponum7 character varying(100),
    camponum8 character varying(100),
    camponum9 character varying(100),
    camponum10 character varying(100),
    campostr1 character varying(100),
    campostr2 character varying(100),
    campostr3 character varying(100),
    campostr4 character varying(100),
    campostr5 character varying(100),
    campostr6 character varying(100),
    campostr7 character varying(100),
    campostr8 character varying(100),
    campostr9 character varying(100),
    campostr10 character varying(100),
    campoint1 character varying(100),
    campoint2 character varying(100),
    campoint3 character varying(100),
    campoint4 character varying(100),
    campoint5 character varying(100),
    campoint6 character varying(100),
    campoint7 character varying(100),
    campoint8 character varying(100),
    campoint9 character varying(100),
    campoint10 character varying(100)
);


ALTER TABLE public.bilayoutr OWNER TO postgres;

--
-- Name: biproc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.biproc (
    codbiproc public.dom_codint NOT NULL,
    nometabela character varying(30),
    chavetabela integer,
    obs character varying(250),
    status character varying(1)
);


ALTER TABLE public.biproc OWNER TO postgres;

--
-- Name: bombacomb; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.bombacomb (
    codbombacomb public.dom_codint NOT NULL,
    codbomba integer,
    codfilial public.dom_codint2,
    bico character varying(5),
    canal integer,
    coditem public.dom_codint
);


ALTER TABLE public.bombacomb OWNER TO postgres;

--
-- Name: bombas; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.bombas (
    cod_bomba smallint NOT NULL,
    cod_bico_bomba smallint NOT NULL,
    fator_qtd integer,
    qtd_div_mult character(1),
    fator_valor integer,
    valor_div_mult character(1),
    endereco_logico character(2),
    preco_venda numeric(20,4),
    status character(1),
    canal double precision,
    cod_filial integer
);


ALTER TABLE public.bombas OWNER TO postgres;

--
-- Name: caixa; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.caixa (
    codcaixa public.dom_codint NOT NULL,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    obs text,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    usuarioconf character varying(15),
    dataconf timestamp without time zone,
    usuariofim character varying(15)
);


ALTER TABLE public.caixa OWNER TO postgres;

--
-- Name: campo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.campo (
    codcampo public.dom_codint2 NOT NULL,
    tela character varying(30),
    campo character varying(50),
    tipo character(1),
    acao public.dom_codint2,
    valor character varying(100),
    obs character varying(200),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    scriptbd text
);


ALTER TABLE public.campo OWNER TO postgres;

--
-- Name: cargo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cargo (
    codcargo public.dom_codint2 NOT NULL,
    descricao public.dom_nomepessoa2,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    diretoria public.dom_nomepessoa2,
    coddepartamento public.dom_codint2,
    educacao text,
    treinamento text,
    habilidades text,
    expcomprovada text,
    descatividades text,
    liberado public.dom_resp,
    competcomport text,
    insttrabalho text,
    faixasalben text,
    cbo character varying(20)
);


ALTER TABLE public.cargo OWNER TO postgres;

--
-- Name: cargoexametreinamento; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cargoexametreinamento (
    codcargoexametreinamento public.dom_codint2 NOT NULL,
    codcargo public.dom_codint2,
    codexametreinamento public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    obrigatorio public.dom_resp
);


ALTER TABLE public.cargoexametreinamento OWNER TO postgres;

--
-- Name: carretamov; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.carretamov (
    codveiculo public.dom_codint NOT NULL,
    codcavalo public.dom_codint NOT NULL,
    dataini timestamp without time zone NOT NULL,
    datafim timestamp without time zone,
    kminicavalo public.dom_quantreal,
    kmfimcavalo public.dom_quantreal,
    kminicarreta public.dom_quantreal,
    kmfimcarreta public.dom_quantreal,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    codcarretamov public.dom_codint2 NOT NULL,
    codmotorista public.dom_codint2,
    codmotivo public.dom_codint2
);


ALTER TABLE public.carretamov OWNER TO postgres;

--
-- Name: cfop; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cfop (
    codcfop character varying(7) NOT NULL,
    descricao character varying(150),
    liberado public.dom_resp,
    dataatual timestamp without time zone,
    tipo character(1),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    exportaentrada public.dom_resp,
    exportasaida public.dom_resp,
    expspedcomosaida character varying(1)
);


ALTER TABLE public.cfop OWNER TO postgres;

--
-- Name: cfopnotaviagem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cfopnotaviagem (
    codcfopnotaviagem public.dom_codint NOT NULL,
    nometabela character varying(30) NOT NULL,
    chavetabela public.dom_codint NOT NULL,
    cfopnota character varying(10),
    cfopviagem character varying(10),
    cfopuforigdestigual character varying(10),
    cfopuforigdestdif character varying(10),
    cfopfiliaisdifufigual character varying(10),
    cfopfiliaisdifufdif character varying(10),
    usuarioins character varying(10),
    datains timestamp without time zone,
    usuarioalt character varying(10),
    dataalt timestamp without time zone
);


ALTER TABLE public.cfopnotaviagem OWNER TO postgres;

--
-- Name: cheque; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cheque (
    codinterno public.dom_codint NOT NULL,
    numeroconta character varying(10),
    numerocheque character varying(10),
    valor public.dom_dinheiro2,
    nominal public.dom_nomepessoa2,
    dataemissao timestamp without time zone,
    descricao public.dom_nomepessoa2,
    databaixa timestamp without time zone,
    codtransacao public.dom_codint2,
    emitido character varying(1),
    dataprevista timestamp without time zone,
    dataenviobanco timestamp without time zone,
    selecionado character(1),
    codmoeda public.dom_codint2,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataimpressao timestamp without time zone,
    codcidadeemissao public.dom_codint2
);


ALTER TABLE public.cheque OWNER TO postgres;

--
-- Name: chequerec; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.chequerec (
    codchequerec public.dom_codint2 NOT NULL,
    codfaturareparc public.dom_codint2,
    codcliente public.dom_codint2,
    codtransacao public.dom_codint2,
    codclientecc public.dom_codint2,
    codcontachequerec public.dom_codint2,
    data timestamp without time zone,
    valor public.dom_dinheiro2,
    valortroco public.dom_dinheiro2,
    numerocheque public.dom_codint2,
    status character varying(2),
    datadep1 timestamp without time zone,
    codtransacaodep1 public.dom_codint2,
    codtransacaodep1cx public.dom_codint2,
    datadev1 timestamp without time zone,
    codtransacaodev1 public.dom_codint2,
    codtransacaodev1cx public.dom_codint2,
    datadep2 timestamp without time zone,
    codtransacaodep2 public.dom_codint2,
    codtransacaodep2cx public.dom_codint2,
    datadev2 timestamp without time zone,
    codtransacaodev2 public.dom_codint2,
    codtransacaodev2cx public.dom_codint2,
    datasustado timestamp without time zone,
    codtransacaosustado public.dom_codint2,
    codtransacaosustadocx public.dom_codint2,
    automatico character varying(2),
    codbar character varying(100),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    codfilial public.dom_codint2,
    dataemissao timestamp without time zone,
    codtransacaoorigem public.dom_codint2,
    codtransacaodestino public.dom_codint2,
    obs text,
    datadep3 timestamp without time zone,
    codtransacaodep3 public.dom_codint2,
    codtransacaodep3cx public.dom_codint2,
    datadev3 timestamp without time zone,
    codtransacaodev3 public.dom_codint2,
    codtransacaodev3cx public.dom_codint2
);


ALTER TABLE public.chequerec OWNER TO postgres;

--
-- Name: chequestatus; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.chequestatus (
    numeroconta character varying(10) NOT NULL,
    numerocheque character varying(10) NOT NULL,
    status character(1),
    dataatual timestamp without time zone,
    codunidadeembarque public.dom_codint2,
    obs text,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codchequestatus public.dom_codint2 NOT NULL,
    usuarioresp character varying(15),
    codmotivocanc public.dom_codint2
);


ALTER TABLE public.chequestatus OWNER TO postgres;

--
-- Name: chequestatuslog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.chequestatuslog (
    codchequestatuslog public.dom_codint NOT NULL,
    codchequestatus public.dom_codint2,
    statusantigo character(1),
    statusnovo character(1),
    obs public.dom_text,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.chequestatuslog OWNER TO postgres;

--
-- Name: cidade; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cidade (
    codcidade public.dom_codint NOT NULL,
    nome character varying(40),
    uf character(2) DEFAULT 'MS'::bpchar,
    dataatual timestamp without time zone,
    codexterno character varying(10),
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    pais character varying(30),
    codunidadeembarque public.dom_codint2,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codibge character varying(10),
    obs character varying(200),
    lat double precision,
    lon double precision,
    raio double precision,
    codsiafi character varying(15),
    taxaiss public.dom_porcentagem2,
    checklist character varying(250),
    checklistnfse character varying(250)
);


ALTER TABLE public.cidade OWNER TO postgres;

--
-- Name: cidadedist; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cidadedist (
    codcidade public.dom_codint NOT NULL,
    codcidadedest public.dom_codint2 NOT NULL,
    km public.dom_quantreal,
    tempo integer,
    taxaseguro public.dom_quantreal,
    pedagio public.dom_quantreal,
    indicepauta public.dom_quantreal,
    aliquotaicms public.dom_porcentagem2,
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    obs public.dom_obs,
    kmtabela public.dom_quantreal,
    codcidadedist public.dom_codint2 NOT NULL,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    tempomalote public.dom_quantreal,
    precotonfiscalmin public.dom_quantreal
);


ALTER TABLE public.cidadedist OWNER TO postgres;

--
-- Name: cliente; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cliente (
    codcliente public.dom_codint NOT NULL,
    nome public.dom_nomepessoa,
    endereco public.dom_endereco255,
    complemento public.dom_complender,
    cep public.dom_cep,
    codcidade public.dom_codint,
    contato public.dom_nomepessoa2,
    precotonelada public.dom_quantreal,
    cgccpf public.dom_cgc2,
    inscricaoestadual public.dom_ie,
    fone public.dom_fone2,
    fax public.dom_fone2,
    precotonmotorista public.dom_quantreal,
    observacao text,
    precotonagregado public.dom_quantreal,
    nomereduzido character varying(15),
    inscmunicipal character varying(20),
    dataatual timestamp without time zone,
    enderecocob public.dom_endereco2,
    complementocob public.dom_complender,
    codcidadecob public.dom_codint2,
    cepcob public.dom_cep,
    tipotolerancia character(1),
    tipodesconto character(1),
    taxaquebra public.dom_quantreal,
    quantidadequebra public.dom_quantreal,
    email character varying(200),
    email1 character varying(200),
    numeroconta character varying(10),
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    descquebrasaldoemp public.dom_resp,
    descontainsssaldo public.dom_resp,
    calculainss public.dom_resp,
    faturaicmsfinal public.dom_resp,
    descontaicmssaldoempresa public.dom_resp,
    codclienteprincipal public.dom_codint2,
    taxamulta numeric(20,4),
    taxajuros numeric(20,4),
    natureza character varying(10),
    celular character varying(20),
    estadiapesochegada public.dom_resp,
    senha character varying(10),
    prazofaturamento public.dom_codint2,
    contacontabil character varying(25),
    datainclusao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    usuariolib character varying(15),
    toleranciapesocheg public.dom_resp,
    limitecredito public.dom_dinheiro2,
    ramoatividade public.dom_nomepessoa2,
    fundacao public.dom_nomepessoa2,
    imovelproprio public.dom_resp,
    valorimovel public.dom_dinheiro2,
    avaliacao public.dom_codint2,
    codvendedor public.dom_codint2,
    descontaisssaldoemp public.dom_resp,
    dataultavalcadastral timestamp without time zone,
    auxiliocarga public.dom_resp,
    auxiliodescarga public.dom_resp,
    segurorcfdc public.dom_resp,
    segurorctrc public.dom_resp,
    pagaicms public.dom_resp,
    icmsembutido public.dom_resp,
    tipofechamento public.dom_codint2,
    prazoadicional public.dom_codint2,
    codtipocliente public.dom_codint2,
    bairro public.dom_bairro,
    numero character varying(10),
    bairrocob public.dom_bairro,
    numerocob character varying(10),
    site character varying(100),
    fretepago public.dom_resp,
    codfornecedor public.dom_codint2,
    tributaimpostos public.dom_resp,
    codembarcador public.dom_codint2,
    codmotivobloqueio public.dom_codint2,
    obsbloqueio character varying(100),
    databloqueio timestamp without time zone,
    usuariobloqueio character varying(15),
    suframa character varying(10),
    saldoantecipado public.dom_dinheiro2,
    numerocontafatura character varying(10),
    cnae character varying(20),
    obsfaturamento text,
    limiteutilizado public.dom_dinheiro2,
    datavencseguro timestamp without time zone,
    transportadora character(1),
    codmercadoria public.dom_codint2,
    codexterno character varying(20),
    emailcte character varying(200),
    toleranciaestadia public.dom_quantreal,
    valorhoraestadia public.dom_quantreal,
    codtiporecto public.dom_codint2,
    serasa text,
    dataultsenha timestamp without time zone,
    datalib timestamp without time zone,
    percdesccompart public.dom_quantreal,
    percdescseguro public.dom_quantreal,
    cobrasegurocliente public.dom_resp,
    prazodescarga public.dom_codint2,
    cnd character varying(100),
    contribuinte public.dom_resp,
    rg character varying(25),
    valorhoraestadiamot public.dom_dinheiro2,
    permitevariasnfctrc public.dom_resp,
    retroagirestadia public.dom_quantreal,
    clienteprincipal public.dom_resp,
    tipoenvioxml public.dom_codint2,
    exigeticket public.dom_resp,
    codobsfiscal public.dom_codint2,
    lat double precision,
    lon double precision,
    datavenclimite timestamp without time zone,
    pagaiss character(1),
    precokgmercquebra public.dom_quantreal,
    raio double precision,
    protestoaut public.dom_resp,
    protquantdias public.dom_codint2,
    listadiasfat character varying(200),
    pagasegunda character(1),
    pagaterca character(1),
    pagaquarta character(1),
    pagaquinta character(1),
    pagasexta character(1),
    pagasabado character(1),
    exigepedidocliente2 public.dom_resp,
    baseicmsdireta public.dom_resp,
    tipodata public.dom_resp,
    codcfop character varying(11),
    tagpesonfe character(1),
    taxaiss public.dom_quantreal,
    faturaautomatica public.dom_resp,
    coditemreceita public.dom_codint2,
    enviaris public.dom_resp,
    descsegurosaldo public.dom_resp,
    listacompprest character varying(250),
    fvalorareceber character varying(250),
    ftotalprest character varying(250),
    fbaseicms character varying(250),
    fsaldoemp character varying(250),
    nomefantasia public.dom_nomepessoa2,
    datainicio timestamp without time zone,
    taxaseguro public.dom_quantreal,
    expseguro public.dom_resp,
    codcontacontabil2 public.dom_codint2,
    checklistnfe character varying(250),
    assuntoemailcte character varying(100),
    ssurl character varying(200),
    ssusuario character varying(50),
    sssenha character varying(20),
    tipoenviovencfat integer,
    checklist character varying(250),
    tipoctelib character varying(100),
    autxmlcte character varying(250),
    autxmlnfe character varying(250),
    autxmlmdfe character varying(250),
    obsmercexp character varying(250),
    dataobsmercexp timestamp without time zone,
    filiallib character varying(250),
    taxaseguro2 public.dom_quantreal,
    dataultfechamento timestamp without time zone,
    checklistpedido character varying(250),
    chavepix character varying(250),
    qrcodepix public.dom_text,
    limitecreditomax public.dom_dinheiro2,
    pesomaxpedido public.dom_quantreal,
    diastrocasenha integer,
    tipoenviolink integer,
    indicepesoliq public.dom_quantreal,
    tipochavepix integer,
    codmotfaturista public.dom_codint2,
    fchecklistcte character varying(250),
    taxaseguroproprio public.dom_quantreal,
    taxaseguroagregado public.dom_quantreal,
    taxaseguroagregmisto public.dom_quantreal,
    margemmaxfrota public.dom_quantreal,
    margemminfrota public.dom_quantreal,
    margemminfrete public.dom_quantreal,
    margemminpf public.dom_quantreal,
    margemminpj public.dom_quantreal,
    margemminagregado public.dom_quantreal,
    margemminagregadomisto public.dom_quantreal,
    tipotributacao character varying(1),
    percacrescimo public.dom_porcentagem,
    codfornecedorfomento public.dom_codint2,
    senhainteg character varying(20),
    statuscad character varying(2),
    resppedagio character varying(1),
    tipopedagio character varying(1),
    codfornecedorpedagio public.dom_codint2,
    porcadicprecokgmerc public.dom_quantreal,
    checklistop character varying(250),
    checklistmod character varying(250),
    margfracmaxfrota public.dom_quantreal,
    margfracminfrota public.dom_quantreal,
    margfracminfrete public.dom_quantreal,
    margfracminpf public.dom_quantreal,
    margfracminpj public.dom_quantreal,
    margfracminagregado public.dom_quantreal,
    margfracminagregadomisto public.dom_quantreal,
    taxairpj public.dom_porcentagem2,
    emailcobranca public.dom_email2,
    perccustofinanceiro public.dom_quantreal,
    prazomediocustofinanceiro integer,
    obs1 public.dom_obs,
    obs2 public.dom_obs,
    obs3 public.dom_obs,
    obs4 public.dom_obs,
    obs5 public.dom_obs,
    obs6 public.dom_obs,
    obs7 public.dom_obs,
    checklistrobosat character varying(250),
    codimposto public.dom_codint2,
    codimpostonfe public.dom_codint2,
    checklistdoc character varying(250),
    email2 public.dom_email2,
    codnbs public.dom_codint2
);


ALTER TABLE public.cliente OWNER TO postgres;

--
-- Name: clienteagenda; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clienteagenda (
    codcliente public.dom_codint2 NOT NULL,
    codagenda public.dom_codint2 NOT NULL,
    codtipoagenda public.dom_codint2,
    data timestamp without time zone,
    datadigitacao timestamp without time zone,
    historico text,
    dataproxagenda timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    datarealizado timestamp without time zone
);


ALTER TABLE public.clienteagenda OWNER TO postgres;

--
-- Name: clientecc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientecc (
    codclientecc public.dom_codint2 NOT NULL,
    codbanco public.dom_codint2,
    codcliente public.dom_codint,
    agencia character varying(15),
    conta character varying(25),
    titular character varying(100),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    titularcnpjcpf character varying(14)
);


ALTER TABLE public.clientecc OWNER TO postgres;

--
-- Name: clientechequerec; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientechequerec (
    codclientechequerec public.dom_codint2 NOT NULL,
    codcidade public.dom_codint2,
    codmotivobloqueio public.dom_codint2,
    nome character varying(100),
    cnpjcpf character varying(20),
    endereco character varying(100),
    cep character varying(8),
    fone character varying(20),
    obs character varying(100),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    bairro character varying(30),
    liberado public.dom_resp,
    celular character varying(20),
    complemento character varying(100),
    databloqueio timestamp without time zone,
    usuariobloqueio character varying(15),
    obsbloqueio character varying(100)
);


ALTER TABLE public.clientechequerec OWNER TO postgres;

--
-- Name: clientechequereccc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientechequereccc (
    codclientechequereccc public.dom_codint2 NOT NULL,
    codbanco public.dom_codint2,
    codclientechequerec public.dom_codint2,
    agencia character varying(15),
    conta character varying(25),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone
);


ALTER TABLE public.clientechequereccc OWNER TO postgres;

--
-- Name: clienteclas; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clienteclas (
    codclienteclas public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    codmercadoria public.dom_codint2,
    data timestamp without time zone,
    umidade public.dom_quantreal,
    impureza public.dom_quantreal,
    ardido public.dom_quantreal,
    imaturo public.dom_quantreal,
    quebrado public.dom_quantreal,
    triguilho public.dom_quantreal,
    quirera public.dom_quantreal,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.clienteclas OWNER TO postgres;

--
-- Name: clientecnd; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientecnd (
    codclientecnd public.dom_codint NOT NULL,
    codcliente public.dom_codint,
    cndcli character varying(100),
    validadecndcli timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.clientecnd OWNER TO postgres;

--
-- Name: clientecolent; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientecolent (
    codclientecolent public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    codcoletaentrega public.dom_codint2,
    liberado public.dom_resp,
    obs public.dom_text,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.clientecolent OWNER TO postgres;

--
-- Name: clientecom; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientecom (
    codclientecom public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    codgerrisco public.dom_codint2,
    descricao character varying(200),
    senha character varying(70),
    usuario character varying(70),
    urlhomol character varying(150),
    urlprod character varying(150),
    tipohomologprod integer,
    token character varying(250),
    campoaux1 character varying(200),
    campoaux2 character varying(200),
    campoaux3 character varying(200),
    campoaux4 character varying(200),
    campoaux5 character varying(200),
    campoaux6 character varying(200),
    campoaux7 character varying(200),
    campoaux8 character varying(200),
    campoaux9 character varying(200),
    campoaux10 character varying(200),
    campoaux11 character varying(200),
    campoaux12 character varying(200),
    campoaux13 character varying(200),
    campoaux14 character varying(200),
    campoaux15 character varying(200),
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone,
    dataalt timestamp without time zone
);


ALTER TABLE public.clientecom OWNER TO postgres;

--
-- Name: clientecont; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientecont (
    codcliente public.dom_codint NOT NULL,
    nome public.dom_nomepessoa2 NOT NULL,
    datanascimento timestamp without time zone,
    fone character varying(25),
    celular character varying(25),
    obs character varying(200),
    codcargo public.dom_codint2,
    dataatual timestamp without time zone,
    fax character varying(25),
    email character varying(100),
    codclientecont public.dom_codint NOT NULL,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datainclusao timestamp without time zone
);


ALTER TABLE public.clientecont OWNER TO postgres;

--
-- Name: clienteddr; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clienteddr (
    codcliente public.dom_codint NOT NULL,
    codddr public.dom_codint2 NOT NULL,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    descricao public.dom_nomepessoa2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    valor public.dom_dinheiro2,
    ddrtotal public.dom_resp,
    respseguro public.dom_resp,
    cnpjseguradora public.dom_cgc2,
    nomeseguradora character varying(100),
    numeroapolice character varying(100),
    averbacao character varying(100),
    status public.dom_situacao,
    taxaseguro public.dom_quantreal
);


ALTER TABLE public.clienteddr OWNER TO postgres;

--
-- Name: clientedesp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientedesp (
    codclientedesp public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    codtipodesp public.dom_codint2,
    codfornecedor public.dom_codint2,
    valor public.dom_dinheiro2,
    obs public.dom_text,
    data timestamp without time zone,
    codclienteop public.dom_codint2,
    valorppt public.dom_dinheiro2,
    percentual public.dom_dinheiro2,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone,
    listatipoantt character varying(20)
);


ALTER TABLE public.clientedesp OWNER TO postgres;

--
-- Name: clientediavenc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientediavenc (
    codclientediavenc public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    diaini integer,
    diafim integer,
    diavenc integer,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.clientediavenc OWNER TO postgres;

--
-- Name: clientelimite; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientelimite (
    codclientelimite public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    data timestamp without time zone,
    obs text,
    limiteanterior public.dom_dinheiro2,
    limitenovo public.dom_dinheiro2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    limiteantmax public.dom_dinheiro2,
    limitenovomax public.dom_dinheiro2
);


ALTER TABLE public.clientelimite OWNER TO postgres;

--
-- Name: clientemot; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientemot (
    codclientemot public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    codmotorista public.dom_codint2,
    motivobloqueio public.dom_text,
    liberado public.dom_resp,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone,
    codproprietario public.dom_codint2
);


ALTER TABLE public.clientemot OWNER TO postgres;

--
-- Name: clienteop; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clienteop (
    codclienteop public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    descricao character varying(200),
    tipotolerancia character(1),
    tipodesconto character(1),
    taxaquebra public.dom_quantreal,
    quantidadequebra public.dom_quantreal,
    prazofaturamento integer,
    tipofechamento integer,
    prazoadicional integer,
    obsfaturamento public.dom_text,
    codtiporecto public.dom_codint2,
    exigeticket public.dom_resp,
    listadiasfat character varying(250),
    pagasegunda public.dom_resp,
    pagaterca public.dom_resp,
    pagaquarta public.dom_resp,
    pagaquinta public.dom_resp,
    pagasexta public.dom_resp,
    pagasabado public.dom_resp,
    faturapesochegada character(1),
    codtipohistfat public.dom_codint2,
    codtipoenvio public.dom_codint2,
    checklist character varying(250),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codtipoclienteop public.dom_codint2,
    tipocarga integer,
    codtipotransporte public.dom_codint2,
    checklistnfe character varying(250),
    percadmercsegurada public.dom_quantreal,
    listacompprest character varying(250),
    fvalorareceber character varying(250),
    ftotalprest character varying(250),
    fbaseicms character varying(250),
    fsaldoemp character varying(250),
    checklistpedido character varying(250),
    codmotoristavend public.dom_codint2,
    pptvend public.dom_quantreal,
    porcvend public.dom_quantreal,
    indicepesoliq public.dom_quantreal,
    taxaseguroproprio public.dom_quantreal,
    taxaseguroagregado public.dom_quantreal,
    taxaseguroagregmisto public.dom_quantreal,
    margemmaxfrota public.dom_quantreal,
    margemminfrota public.dom_quantreal,
    margemminfrete public.dom_quantreal,
    margemminpf public.dom_quantreal,
    margemminpj public.dom_quantreal,
    margemminagregado public.dom_quantreal,
    margemminagregadomisto public.dom_quantreal,
    fchecklistcte character varying(250),
    precokgmercquebra public.dom_quantreal,
    margfracmaxfrota public.dom_quantreal,
    margfracminfrota public.dom_quantreal,
    margfracminfrete public.dom_quantreal,
    margfracminpf public.dom_quantreal,
    margfracminpj public.dom_quantreal,
    margfracminagregado public.dom_quantreal,
    margfracminagregadomisto public.dom_quantreal,
    obs1 public.dom_obs,
    obs2 public.dom_obs,
    obs3 public.dom_obs,
    obs4 public.dom_obs,
    obs5 public.dom_obs,
    obs6 public.dom_obs,
    obs7 public.dom_obs,
    tipofretemotorista integer,
    liberado public.dom_resp,
    taxaseguro public.dom_quantreal,
    percfrete public.dom_porcentagem2,
    checklistdoc character varying(250)
);


ALTER TABLE public.clienteop OWNER TO postgres;

--
-- Name: clienteopfis; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clienteopfis (
    codclienteopfis public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    descricao character varying(200),
    pagaicms character(1),
    porcicms public.dom_porcentagem2,
    percredvlicms public.dom_quantreal,
    percredbaseicms public.dom_quantreal,
    icmsembutido public.dom_resp,
    faturaicmsfinal public.dom_resp,
    baseicmsdireta public.dom_resp,
    descontaicmssaldoempresa public.dom_resp,
    calculainss public.dom_resp,
    tributaimpostos public.dom_resp,
    descpissaldoemp public.dom_resp,
    calculainssempresa public.dom_resp,
    calculairrf public.dom_resp,
    desccofinssaldoemp public.dom_resp,
    descontainsssaldo public.dom_resp,
    calculasestsenat public.dom_resp,
    desccsllsaldoemp public.dom_resp,
    descontainsssaldomot public.dom_resp,
    taxaiss public.dom_porcentagem2,
    baseissdireta public.dom_resp,
    somarissfatsaldo public.dom_resp,
    issembutido public.dom_resp,
    pagaiss character(1),
    descontaisssaldoemp public.dom_resp,
    codobsfiscal public.dom_codint2,
    codobsfiscal2 public.dom_codint2,
    pedagioembutidofrete public.dom_resp,
    pedagioembfretemot public.dom_resp,
    pedagioembffiscal public.dom_resp,
    pedagiocalceixo public.dom_resp,
    pedagioembbaseicms character(1),
    descquebrasaldoemp public.dom_resp,
    segurorctrc public.dom_resp,
    entradasaida public.dom_resp,
    tipofreteempresa integer,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    checklistpedido character varying(250),
    taxairpj public.dom_porcentagem2,
    listauforigem character varying(250),
    listaufdestino character varying(250),
    liberado public.dom_resp,
    codimposto public.dom_codint2,
    codimpostonfe public.dom_codint2,
    codnbs public.dom_codint2
);


ALTER TABLE public.clienteopfis OWNER TO postgres;

--
-- Name: clienterefbanc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clienterefbanc (
    codcliente public.dom_codint NOT NULL,
    banco character varying(30) NOT NULL,
    agencia character varying(20),
    contato character varying(50),
    fone character varying(30),
    dataabertura timestamp without time zone,
    obs public.dom_obs,
    dataatual timestamp without time zone,
    codclienterefbanc public.dom_codint2 NOT NULL,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.clienterefbanc OWNER TO postgres;

--
-- Name: clienterefcom; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clienterefcom (
    codcliente public.dom_codint NOT NULL,
    nome public.dom_nomepessoa2 NOT NULL,
    contato public.dom_nomepessoa2,
    fone character varying(30),
    datacadastro timestamp without time zone,
    limitecredito public.dom_dinheiro2,
    formapagto public.dom_nomepessoa2,
    ultimacompra timestamp without time zone,
    vlultimacompra public.dom_dinheiro2,
    dataatual timestamp without time zone,
    codclienterefcom public.dom_codint2 NOT NULL,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.clienterefcom OWNER TO postgres;

--
-- Name: clientetabfrete; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientetabfrete (
    codclientetabfrete public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    codregra public.dom_codint,
    ordem public.dom_codint,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    liberado public.dom_resp
);


ALTER TABLE public.clientetabfrete OWNER TO postgres;

--
-- Name: clientetempo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clientetempo (
    codcliente public.dom_codint NOT NULL,
    codclientetempo public.dom_codint2 NOT NULL,
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    tempo public.dom_quantreal,
    tiposfreteempresa character varying(100),
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone
);


ALTER TABLE public.clientetempo OWNER TO postgres;

--
-- Name: clienteveiculo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clienteveiculo (
    codveiccliente public.dom_codint2 NOT NULL,
    codcliente public.dom_codint2,
    codveiculo public.dom_codint2,
    motivobloqueio text,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    dataatual timestamp without time zone,
    liberado character(1),
    usuarioalt character varying(15),
    codtipoveiculo public.dom_codint2,
    codtipocarroceria public.dom_codint2,
    anofabricacao integer
);


ALTER TABLE public.clienteveiculo OWNER TO postgres;

--
-- Name: codabast_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codabast_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codabast_gen OWNER TO postgres;

--
-- Name: codacaoaud_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codacaoaud_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codacaoaud_gen OWNER TO postgres;

--
-- Name: codacertomot_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codacertomot_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codacertomot_gen OWNER TO postgres;

--
-- Name: codacertopropdet_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codacertopropdet_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codacertopropdet_gen OWNER TO postgres;

--
-- Name: codacertoproprietario_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codacertoproprietario_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codacertoproprietario_gen OWNER TO postgres;

--
-- Name: codadecliente_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codadecliente_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codadecliente_gen OWNER TO postgres;

--
-- Name: codadiantamentodiaria_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codadiantamentodiaria_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codadiantamentodiaria_gen OWNER TO postgres;

--
-- Name: codadim_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codadim_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codadim_gen OWNER TO postgres;

--
-- Name: codagenda_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codagenda_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codagenda_gen OWNER TO postgres;

--
-- Name: codagendatarefa_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codagendatarefa_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codagendatarefa_gen OWNER TO postgres;

--
-- Name: codagendatarefalog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codagendatarefalog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codagendatarefalog_gen OWNER TO postgres;

--
-- Name: codagendaus_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codagendaus_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codagendaus_gen OWNER TO postgres;

--
-- Name: codapagado_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codapagado_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codapagado_gen OWNER TO postgres;

--
-- Name: codauditoria_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codauditoria_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codauditoria_gen OWNER TO postgres;

--
-- Name: codauditoriadet_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codauditoriadet_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codauditoriadet_gen OWNER TO postgres;

--
-- Name: codauditorialog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codauditorialog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codauditorialog_gen OWNER TO postgres;

--
-- Name: codauditoriaus_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codauditoriaus_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codauditoriaus_gen OWNER TO postgres;

--
-- Name: codbancooco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codbancooco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codbancooco_gen OWNER TO postgres;

--
-- Name: codbancotipopagto_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codbancotipopagto_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codbancotipopagto_gen OWNER TO postgres;

--
-- Name: codbidados_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codbidados_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codbidados_gen OWNER TO postgres;

--
-- Name: codbidadosr_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codbidadosr_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codbidadosr_gen OWNER TO postgres;

--
-- Name: codbilayout_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codbilayout_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codbilayout_gen OWNER TO postgres;

--
-- Name: codbiproc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codbiproc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codbiproc_gen OWNER TO postgres;

--
-- Name: codbombacomb_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codbombacomb_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codbombacomb_gen OWNER TO postgres;

--
-- Name: codcaixa_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcaixa_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcaixa_gen OWNER TO postgres;

--
-- Name: codcargo_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcargo_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcargo_gen OWNER TO postgres;

--
-- Name: codcargoexametreinamento_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcargoexametreinamento_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcargoexametreinamento_gen OWNER TO postgres;

--
-- Name: codcarretamov_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcarretamov_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcarretamov_gen OWNER TO postgres;

--
-- Name: codcfopnotaviagem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcfopnotaviagem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcfopnotaviagem_gen OWNER TO postgres;

--
-- Name: codche_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codche_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codche_gen OWNER TO postgres;

--
-- Name: codchecklist_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codchecklist_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codchecklist_gen OWNER TO postgres;

--
-- Name: codchequerec_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codchequerec_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codchequerec_gen OWNER TO postgres;

--
-- Name: codchequestatus_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codchequestatus_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codchequestatus_gen OWNER TO postgres;

--
-- Name: codchequestatuslog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codchequestatuslog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codchequestatuslog_gen OWNER TO postgres;

--
-- Name: codcida_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcida_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcida_gen OWNER TO postgres;

--
-- Name: codcidadedist_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcidadedist_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcidadedist_gen OWNER TO postgres;

--
-- Name: codclie_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclie_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclie_gen OWNER TO postgres;

--
-- Name: codclientecc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientecc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientecc_gen OWNER TO postgres;

--
-- Name: codclientechequerec_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientechequerec_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientechequerec_gen OWNER TO postgres;

--
-- Name: codclientechequereccc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientechequereccc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientechequereccc_gen OWNER TO postgres;

--
-- Name: codclienteclas_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclienteclas_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclienteclas_gen OWNER TO postgres;

--
-- Name: codclientecnd_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientecnd_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientecnd_gen OWNER TO postgres;

--
-- Name: codclientecolent_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientecolent_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientecolent_gen OWNER TO postgres;

--
-- Name: codclientecom_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientecom_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientecom_gen OWNER TO postgres;

--
-- Name: codclientecont_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientecont_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientecont_gen OWNER TO postgres;

--
-- Name: codclientedesp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientedesp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientedesp_gen OWNER TO postgres;

--
-- Name: codclientediavenc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientediavenc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientediavenc_gen OWNER TO postgres;

--
-- Name: codclientelimite_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientelimite_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientelimite_gen OWNER TO postgres;

--
-- Name: codclientemot_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientemot_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientemot_gen OWNER TO postgres;

--
-- Name: codclienteop_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclienteop_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclienteop_gen OWNER TO postgres;

--
-- Name: codclienteopfis_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclienteopfis_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclienteopfis_gen OWNER TO postgres;

--
-- Name: codclienterefbanc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclienterefbanc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclienterefbanc_gen OWNER TO postgres;

--
-- Name: codclienterefcom_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclienterefcom_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclienterefcom_gen OWNER TO postgres;

--
-- Name: codclientetabfrete_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientetabfrete_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientetabfrete_gen OWNER TO postgres;

--
-- Name: codclientetempo_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codclientetempo_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codclientetempo_gen OWNER TO postgres;

--
-- Name: codcoletaentrega_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcoletaentrega_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcoletaentrega_gen OWNER TO postgres;

--
-- Name: codcoletaentregacont_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcoletaentregacont_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcoletaentregacont_gen OWNER TO postgres;

--
-- Name: codcoletaentregamot_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcoletaentregamot_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcoletaentregamot_gen OWNER TO postgres;

--
-- Name: codcoletaentregasetor_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcoletaentregasetor_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcoletaentregasetor_gen OWNER TO postgres;

--
-- Name: codcoletaentregaveic_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcoletaentregaveic_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcoletaentregaveic_gen OWNER TO postgres;

--
-- Name: codcond_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcond_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcond_gen OWNER TO postgres;

--
-- Name: codconh_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconh_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconh_gen OWNER TO postgres;

--
-- Name: codconhecimentodesp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentodesp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentodesp_gen OWNER TO postgres;

--
-- Name: codconhecimentodoc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentodoc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentodoc_gen OWNER TO postgres;

--
-- Name: codconhecimentodocant_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentodocant_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentodocant_gen OWNER TO postgres;

--
-- Name: codconhecimentoevdet_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentoevdet_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentoevdet_gen OWNER TO postgres;

--
-- Name: codconhecimentogrop_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentogrop_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentogrop_gen OWNER TO postgres;

--
-- Name: codconhecimentolog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentolog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentolog_gen OWNER TO postgres;

--
-- Name: codconhecimentomotorista_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentomotorista_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentomotorista_gen OWNER TO postgres;

--
-- Name: codconhecimentonota_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentonota_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentonota_gen OWNER TO postgres;

--
-- Name: codconhecimentonotacaixa_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentonotacaixa_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentonotacaixa_gen OWNER TO postgres;

--
-- Name: codconhecimentonotadoc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentonotadoc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentonotadoc_gen OWNER TO postgres;

--
-- Name: codconhecimentonotamerc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentonotamerc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentonotamerc_gen OWNER TO postgres;

--
-- Name: codconhecimentoocolog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentoocolog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentoocolog_gen OWNER TO postgres;

--
-- Name: codconhecimentoocorrencia_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentoocorrencia_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentoocorrencia_gen OWNER TO postgres;

--
-- Name: codconhecimentosolic_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentosolic_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentosolic_gen OWNER TO postgres;

--
-- Name: codconhecimentostatus_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentostatus_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentostatus_gen OWNER TO postgres;

--
-- Name: codconhecimentoxml_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentoxml_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentoxml_gen OWNER TO postgres;

--
-- Name: codconhecimentoxmloco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconhecimentoxmloco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconhecimentoxmloco_gen OWNER TO postgres;

--
-- Name: codconsultalog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconsultalog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconsultalog_gen OWNER TO postgres;

--
-- Name: codconta_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconta_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconta_gen OWNER TO postgres;

--
-- Name: codcontaitem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcontaitem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcontaitem_gen OWNER TO postgres;

--
-- Name: codconthist_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codconthist_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codconthist_gen OWNER TO postgres;

--
-- Name: codcontlanc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcontlanc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcontlanc_gen OWNER TO postgres;

--
-- Name: codcontlancdet_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcontlancdet_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcontlancdet_gen OWNER TO postgres;

--
-- Name: codcontlancdetorig_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcontlancdetorig_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcontlancdetorig_gen OWNER TO postgres;

--
-- Name: codcontrato_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcontrato_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcontrato_gen OWNER TO postgres;

--
-- Name: codcontratoaj_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcontratoaj_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcontratoaj_gen OWNER TO postgres;

--
-- Name: codcontratocolent_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcontratocolent_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcontratocolent_gen OWNER TO postgres;

--
-- Name: codcontratodesp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcontratodesp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcontratodesp_gen OWNER TO postgres;

--
-- Name: codcontratolib_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcontratolib_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcontratolib_gen OWNER TO postgres;

--
-- Name: codcontratolog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcontratolog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcontratolog_gen OWNER TO postgres;

--
-- Name: codcontratoparc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcontratoparc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcontratoparc_gen OWNER TO postgres;

--
-- Name: codcontratoval_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcontratoval_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcontratoval_gen OWNER TO postgres;

--
-- Name: codcor_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcor_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcor_gen OWNER TO postgres;

--
-- Name: codcot_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcot_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcot_gen OWNER TO postgres;

--
-- Name: codcotfrete_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcotfrete_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcotfrete_gen OWNER TO postgres;

--
-- Name: codcotfretelog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcotfretelog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcotfretelog_gen OWNER TO postgres;

--
-- Name: codcotfretemerc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcotfretemerc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcotfretemerc_gen OWNER TO postgres;

--
-- Name: codcotfretemercpedido_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcotfretemercpedido_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcotfretemercpedido_gen OWNER TO postgres;

--
-- Name: codcotfretetaxa_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcotfretetaxa_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcotfretetaxa_gen OWNER TO postgres;

--
-- Name: codcredencial_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codcredencial_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codcredencial_gen OWNER TO postgres;

--
-- Name: codddr_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codddr_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codddr_gen OWNER TO postgres;

--
-- Name: coddepartamento_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coddepartamento_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coddepartamento_gen OWNER TO postgres;

--
-- Name: coddeposito_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coddeposito_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coddeposito_gen OWNER TO postgres;

--
-- Name: coddepositodoca_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coddepositodoca_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coddepositodoca_gen OWNER TO postgres;

--
-- Name: coddocumento_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coddocumento_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coddocumento_gen OWNER TO postgres;

--
-- Name: coddocumentooco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coddocumentooco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coddocumentooco_gen OWNER TO postgres;

--
-- Name: codduplicatapagar_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codduplicatapagar_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codduplicatapagar_gen OWNER TO postgres;

--
-- Name: codduplicatareceber_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codduplicatareceber_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codduplicatareceber_gen OWNER TO postgres;

--
-- Name: codduplordemcompra_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codduplordemcompra_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codduplordemcompra_gen OWNER TO postgres;

--
-- Name: codemba_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codemba_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codemba_gen OWNER TO postgres;

--
-- Name: codembarcadorcont_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codembarcadorcont_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codembarcadorcont_gen OWNER TO postgres;

--
-- Name: codembarcadororc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codembarcadororc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codembarcadororc_gen OWNER TO postgres;

--
-- Name: codempresa_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codempresa_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codempresa_gen OWNER TO postgres;

--
-- Name: codempresas_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codempresas_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codempresas_gen OWNER TO postgres;

--
-- Name: codempresascom_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codempresascom_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codempresascom_gen OWNER TO postgres;

--
-- Name: codempresascontacontabil_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codempresascontacontabil_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codempresascontacontabil_gen OWNER TO postgres;

--
-- Name: codempresaspar_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codempresaspar_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codempresaspar_gen OWNER TO postgres;

--
-- Name: codequip_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codequip_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codequip_gen OWNER TO postgres;

--
-- Name: codequiplog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codequiplog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codequiplog_gen OWNER TO postgres;

--
-- Name: coderpexterno_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coderpexterno_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coderpexterno_gen OWNER TO postgres;

--
-- Name: codespeciedoc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codespeciedoc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codespeciedoc_gen OWNER TO postgres;

--
-- Name: codespeciemerc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codespeciemerc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codespeciemerc_gen OWNER TO postgres;

--
-- Name: codestadiafaixa_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codestadiafaixa_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codestadiafaixa_gen OWNER TO postgres;

--
-- Name: codexametreinamento_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codexametreinamento_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codexametreinamento_gen OWNER TO postgres;

--
-- Name: codexametreinamentodoc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codexametreinamentodoc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codexametreinamentodoc_gen OWNER TO postgres;

--
-- Name: codexametreinamentoval_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codexametreinamentoval_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codexametreinamentoval_gen OWNER TO postgres;

--
-- Name: codexp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codexp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codexp_gen OWNER TO postgres;

--
-- Name: codexpcampo_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codexpcampo_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codexpcampo_gen OWNER TO postgres;

--
-- Name: codexplog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codexplog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codexplog_gen OWNER TO postgres;

--
-- Name: codextrato_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codextrato_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codextrato_gen OWNER TO postgres;

--
-- Name: codextratoofx_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codextratoofx_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codextratoofx_gen OWNER TO postgres;

--
-- Name: codfabricante_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfabricante_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfabricante_gen OWNER TO postgres;

--
-- Name: codfat_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfat_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfat_gen OWNER TO postgres;

--
-- Name: codfatn_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfatn_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfatn_gen OWNER TO postgres;

--
-- Name: codfaturacompraaud_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfaturacompraaud_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfaturacompraaud_gen OWNER TO postgres;

--
-- Name: codfaturacompracon_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfaturacompracon_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfaturacompracon_gen OWNER TO postgres;

--
-- Name: codfaturacompraoco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfaturacompraoco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfaturacompraoco_gen OWNER TO postgres;

--
-- Name: codfaturalog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfaturalog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfaturalog_gen OWNER TO postgres;

--
-- Name: codfili_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfili_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfili_gen OWNER TO postgres;

--
-- Name: codfilialportaria_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfilialportaria_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfilialportaria_gen OWNER TO postgres;

--
-- Name: codfilialsalario_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfilialsalario_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfilialsalario_gen OWNER TO postgres;

--
-- Name: codfilialseg_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfilialseg_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfilialseg_gen OWNER TO postgres;

--
-- Name: codfilialsegv_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfilialsegv_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfilialsegv_gen OWNER TO postgres;

--
-- Name: codfilialsetor_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfilialsetor_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfilialsetor_gen OWNER TO postgres;

--
-- Name: codfilialsped_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfilialsped_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfilialsped_gen OWNER TO postgres;

--
-- Name: codfor_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfor_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfor_gen OWNER TO postgres;

--
-- Name: codfornecedoragenda_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfornecedoragenda_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfornecedoragenda_gen OWNER TO postgres;

--
-- Name: codfornecedorcc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfornecedorcc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfornecedorcc_gen OWNER TO postgres;

--
-- Name: codfornecedorcont_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfornecedorcont_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfornecedorcont_gen OWNER TO postgres;

--
-- Name: codfornecedorfil_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfornecedorfil_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfornecedorfil_gen OWNER TO postgres;

--
-- Name: codfornecedorfiscal_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfornecedorfiscal_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfornecedorfiscal_gen OWNER TO postgres;

--
-- Name: codfornecedorpreco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfornecedorpreco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfornecedorpreco_gen OWNER TO postgres;

--
-- Name: codfrete_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codfrete_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codfrete_gen OWNER TO postgres;

--
-- Name: codgerrisco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgerrisco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgerrisco_gen OWNER TO postgres;

--
-- Name: codgerriscocartao_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgerriscocartao_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgerriscocartao_gen OWNER TO postgres;

--
-- Name: codgerriscodesp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgerriscodesp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgerriscodesp_gen OWNER TO postgres;

--
-- Name: codgerriscoop_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgerriscoop_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgerriscoop_gen OWNER TO postgres;

--
-- Name: codgerriscopgr_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgerriscopgr_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgerriscopgr_gen OWNER TO postgres;

--
-- Name: codgerriscopgrmercadoria_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgerriscopgrmercadoria_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgerriscopgrmercadoria_gen OWNER TO postgres;

--
-- Name: codgerriscopgrtipotransp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgerriscopgrtipotransp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgerriscopgrtipotransp_gen OWNER TO postgres;

--
-- Name: codgerriscor_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgerriscor_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgerriscor_gen OWNER TO postgres;

--
-- Name: codgerriscordet_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgerriscordet_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgerriscordet_gen OWNER TO postgres;

--
-- Name: codgrui_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrui_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrui_gen OWNER TO postgres;

--
-- Name: codgrupoauditoria_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupoauditoria_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupoauditoria_gen OWNER TO postgres;

--
-- Name: codgrupoconta_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupoconta_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupoconta_gen OWNER TO postgres;

--
-- Name: codgrupof_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupof_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupof_gen OWNER TO postgres;

--
-- Name: codgrupofilial_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupofilial_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupofilial_gen OWNER TO postgres;

--
-- Name: codgrupomercadoria_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupomercadoria_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupomercadoria_gen OWNER TO postgres;

--
-- Name: codgrupomsg_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupomsg_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupomsg_gen OWNER TO postgres;

--
-- Name: codgrupomsgdet_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupomsgdet_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupomsgdet_gen OWNER TO postgres;

--
-- Name: codgrupoopcartao_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupoopcartao_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupoopcartao_gen OWNER TO postgres;

--
-- Name: codgrupor_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupor_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupor_gen OWNER TO postgres;

--
-- Name: codgrupousuario_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupousuario_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupousuario_gen OWNER TO postgres;

--
-- Name: codgrupousuariogr_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupousuariogr_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupousuariogr_gen OWNER TO postgres;

--
-- Name: codgrupousuariohora_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupousuariohora_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupousuariohora_gen OWNER TO postgres;

--
-- Name: codgrupousuariotipodesc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codgrupousuariotipodesc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codgrupousuariotipodesc_gen OWNER TO postgres;

--
-- Name: codhipergrupofinanceiro_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codhipergrupofinanceiro_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codhipergrupofinanceiro_gen OWNER TO postgres;

--
-- Name: codimplayout_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codimplayout_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codimplayout_gen OWNER TO postgres;

--
-- Name: codimplayoutlog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codimplayoutlog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codimplayoutlog_gen OWNER TO postgres;

--
-- Name: codimplayoutus_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codimplayoutus_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codimplayoutus_gen OWNER TO postgres;

--
-- Name: codimposto_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codimposto_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codimposto_gen OWNER TO postgres;

--
-- Name: codimpostocidade_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codimpostocidade_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codimpostocidade_gen OWNER TO postgres;

--
-- Name: codimpostocidadevinc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codimpostocidadevinc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codimpostocidadevinc_gen OWNER TO postgres;

--
-- Name: codimpostocontrib_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codimpostocontrib_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codimpostocontrib_gen OWNER TO postgres;

--
-- Name: codimpostocredpres_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codimpostocredpres_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codimpostocredpres_gen OWNER TO postgres;

--
-- Name: codimpostouf_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codimpostouf_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codimpostouf_gen OWNER TO postgres;

--
-- Name: codimpostoufvinc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codimpostoufvinc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codimpostoufvinc_gen OWNER TO postgres;

--
-- Name: coditemcfop_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemcfop_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemcfop_gen OWNER TO postgres;

--
-- Name: coditemcodalt_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemcodalt_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemcodalt_gen OWNER TO postgres;

--
-- Name: coditemcot_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemcot_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemcot_gen OWNER TO postgres;

--
-- Name: coditemf_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemf_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemf_gen OWNER TO postgres;

--
-- Name: coditemfilial_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemfilial_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemfilial_gen OWNER TO postgres;

--
-- Name: coditeminv_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditeminv_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditeminv_gen OWNER TO postgres;

--
-- Name: coditemnegocio_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemnegocio_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemnegocio_gen OWNER TO postgres;

--
-- Name: coditemnotaclas_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemnotaclas_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemnotaclas_gen OWNER TO postgres;

--
-- Name: coditemnotalog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemnotalog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemnotalog_gen OWNER TO postgres;

--
-- Name: coditemnotamotorista_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemnotamotorista_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemnotamotorista_gen OWNER TO postgres;

--
-- Name: coditemnotamotoristalog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemnotamotoristalog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemnotamotoristalog_gen OWNER TO postgres;

--
-- Name: coditemnotamov_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemnotamov_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemnotamov_gen OWNER TO postgres;

--
-- Name: coditemnotaobs_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemnotaobs_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemnotaobs_gen OWNER TO postgres;

--
-- Name: coditemnotarem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemnotarem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemnotarem_gen OWNER TO postgres;

--
-- Name: coditemorcvenda_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemorcvenda_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemorcvenda_gen OWNER TO postgres;

--
-- Name: coditemordemcompra_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemordemcompra_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemordemcompra_gen OWNER TO postgres;

--
-- Name: coditemr_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemr_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemr_gen OWNER TO postgres;

--
-- Name: coditemrat_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemrat_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemrat_gen OWNER TO postgres;

--
-- Name: coditemsim_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemsim_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemsim_gen OWNER TO postgres;

--
-- Name: coditemsubitem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemsubitem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemsubitem_gen OWNER TO postgres;

--
-- Name: coditemtabncm_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemtabncm_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemtabncm_gen OWNER TO postgres;

--
-- Name: coditemtipooperacao_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemtipooperacao_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemtipooperacao_gen OWNER TO postgres;

--
-- Name: coditemtipoveiculo_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemtipoveiculo_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemtipoveiculo_gen OWNER TO postgres;

--
-- Name: coditemuf_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditemuf_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditemuf_gen OWNER TO postgres;

--
-- Name: codites_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codites_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codites_gen OWNER TO postgres;

--
-- Name: coditnota_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditnota_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditnota_gen OWNER TO postgres;

--
-- Name: coditocompra_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coditocompra_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coditocompra_gen OWNER TO postgres;

--
-- Name: codlicenca_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codlicenca_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codlicenca_gen OWNER TO postgres;

--
-- Name: codlocal_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codlocal_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codlocal_gen OWNER TO postgres;

--
-- Name: codlog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codlog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codlog_gen OWNER TO postgres;

--
-- Name: codlogactiontime_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codlogactiontime_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codlogactiontime_gen OWNER TO postgres;

--
-- Name: codlogcampo_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codlogcampo_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codlogcampo_gen OWNER TO postgres;

--
-- Name: codlogcom_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codlogcom_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codlogcom_gen OWNER TO postgres;

--
-- Name: codmalotedoc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmalotedoc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmalotedoc_gen OWNER TO postgres;

--
-- Name: codmanif_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmanif_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmanif_gen OWNER TO postgres;

--
-- Name: codmanifchecklist_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmanifchecklist_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmanifchecklist_gen OWNER TO postgres;

--
-- Name: codmanifconhecimento_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmanifconhecimento_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmanifconhecimento_gen OWNER TO postgres;

--
-- Name: codmanifdoc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmanifdoc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmanifdoc_gen OWNER TO postgres;

--
-- Name: codmaniflog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmaniflog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmaniflog_gen OWNER TO postgres;

--
-- Name: codmanifnota_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmanifnota_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmanifnota_gen OWNER TO postgres;

--
-- Name: codmanifoco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmanifoco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmanifoco_gen OWNER TO postgres;

--
-- Name: codmanifpag_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmanifpag_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmanifpag_gen OWNER TO postgres;

--
-- Name: codmanifpagb_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmanifpagb_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmanifpagb_gen OWNER TO postgres;

--
-- Name: codmanifpagc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmanifpagc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmanifpagc_gen OWNER TO postgres;

--
-- Name: codmanifpagp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmanifpagp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmanifpagp_gen OWNER TO postgres;

--
-- Name: codmanifxml_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmanifxml_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmanifxml_gen OWNER TO postgres;

--
-- Name: codmanifxmloco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmanifxmloco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmanifxmloco_gen OWNER TO postgres;

--
-- Name: codmarca_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmarca_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmarca_gen OWNER TO postgres;

--
-- Name: codmegagrupofinanceiro_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmegagrupofinanceiro_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmegagrupofinanceiro_gen OWNER TO postgres;

--
-- Name: codmensagem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmensagem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmensagem_gen OWNER TO postgres;

--
-- Name: codmenuitem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmenuitem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmenuitem_gen OWNER TO postgres;

--
-- Name: codmenusup_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmenusup_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmenusup_gen OWNER TO postgres;

--
-- Name: codmerc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmerc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmerc_gen OWNER TO postgres;

--
-- Name: codmercadoriancm_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmercadoriancm_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmercadoriancm_gen OWNER TO postgres;

--
-- Name: codmercadoriatipocar_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmercadoriatipocar_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmercadoriatipocar_gen OWNER TO postgres;

--
-- Name: codmesanobloq_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmesanobloq_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmesanobloq_gen OWNER TO postgres;

--
-- Name: codmodelo_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmodelo_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmodelo_gen OWNER TO postgres;

--
-- Name: codmodeloveic_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmodeloveic_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmodeloveic_gen OWNER TO postgres;

--
-- Name: codmoeda_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmoeda_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmoeda_gen OWNER TO postgres;

--
-- Name: codmoedacot_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmoedacot_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmoedacot_gen OWNER TO postgres;

--
-- Name: codmot_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmot_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmot_gen OWNER TO postgres;

--
-- Name: codmotivo_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotivo_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotivo_gen OWNER TO postgres;

--
-- Name: codmotivobloqueio_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotivobloqueio_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotivobloqueio_gen OWNER TO postgres;

--
-- Name: codmotivocanc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotivocanc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotivocanc_gen OWNER TO postgres;

--
-- Name: codmotivodemissao_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotivodemissao_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotivodemissao_gen OWNER TO postgres;

--
-- Name: codmotoristaagenda_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotoristaagenda_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotoristaagenda_gen OWNER TO postgres;

--
-- Name: codmotoristacont_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotoristacont_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotoristacont_gen OWNER TO postgres;

--
-- Name: codmotoristaexame_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotoristaexame_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotoristaexame_gen OWNER TO postgres;

--
-- Name: codmotoristaferiado_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotoristaferiado_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotoristaferiado_gen OWNER TO postgres;

--
-- Name: codmotoristagerrisco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotoristagerrisco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotoristagerrisco_gen OWNER TO postgres;

--
-- Name: codmotoristagerriscodesp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotoristagerriscodesp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotoristagerriscodesp_gen OWNER TO postgres;

--
-- Name: codmotoristalib_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotoristalib_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotoristalib_gen OWNER TO postgres;

--
-- Name: codmotoristalimite_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotoristalimite_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotoristalimite_gen OWNER TO postgres;

--
-- Name: codmotoristalog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotoristalog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotoristalog_gen OWNER TO postgres;

--
-- Name: codmotoristarat_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotoristarat_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotoristarat_gen OWNER TO postgres;

--
-- Name: codmotoristasalev_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmotoristasalev_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmotoristasalev_gen OWNER TO postgres;

--
-- Name: codmovitem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmovitem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmovitem_gen OWNER TO postgres;

--
-- Name: codmultaorgao_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codmultaorgao_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codmultaorgao_gen OWNER TO postgres;

--
-- Name: codnbs_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnbs_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnbs_gen OWNER TO postgres;

--
-- Name: codnegocio_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnegocio_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnegocio_gen OWNER TO postgres;

--
-- Name: codnota_duplicatapagar_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnota_duplicatapagar_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnota_duplicatapagar_gen OWNER TO postgres;

--
-- Name: codnota_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnota_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnota_gen OWNER TO postgres;

--
-- Name: codnota_itemnota_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnota_itemnota_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnota_itemnota_gen OWNER TO postgres;

--
-- Name: codnota_notaadiant_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnota_notaadiant_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnota_notaadiant_gen OWNER TO postgres;

--
-- Name: codnotaadiant_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnotaadiant_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnotaadiant_gen OWNER TO postgres;

--
-- Name: codnotadev_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnotadev_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnotadev_gen OWNER TO postgres;

--
-- Name: codnotafilialsetor_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnotafilialsetor_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnotafilialsetor_gen OWNER TO postgres;

--
-- Name: codnotalog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnotalog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnotalog_gen OWNER TO postgres;

--
-- Name: codnotaoco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnotaoco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnotaoco_gen OWNER TO postgres;

--
-- Name: codnotaxml_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnotaxml_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnotaxml_gen OWNER TO postgres;

--
-- Name: codnotaxmloco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codnotaxmloco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codnotaxmloco_gen OWNER TO postgres;

--
-- Name: codobsfiscal_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codobsfiscal_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codobsfiscal_gen OWNER TO postgres;

--
-- Name: codobsfiscalue_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codobsfiscalue_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codobsfiscalue_gen OWNER TO postgres;

--
-- Name: codorcdespesa_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codorcdespesa_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codorcdespesa_gen OWNER TO postgres;

--
-- Name: codorcreceita_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codorcreceita_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codorcreceita_gen OWNER TO postgres;

--
-- Name: codorcvenda_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codorcvenda_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codorcvenda_gen OWNER TO postgres;

--
-- Name: codordemcar_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codordemcar_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codordemcar_gen OWNER TO postgres;

--
-- Name: codordemcarlog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codordemcarlog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codordemcarlog_gen OWNER TO postgres;

--
-- Name: codordemcaroco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codordemcaroco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codordemcaroco_gen OWNER TO postgres;

--
-- Name: codordemcarstatus_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codordemcarstatus_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codordemcarstatus_gen OWNER TO postgres;

--
-- Name: codordemcompra_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codordemcompra_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codordemcompra_gen OWNER TO postgres;

--
-- Name: codordemcompraadiant_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codordemcompraadiant_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codordemcompraadiant_gen OWNER TO postgres;

--
-- Name: codordemcomprapedext_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codordemcomprapedext_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codordemcomprapedext_gen OWNER TO postgres;

--
-- Name: codpais_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpais_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpais_gen OWNER TO postgres;

--
-- Name: codparametro_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codparametro_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codparametro_gen OWNER TO postgres;

--
-- Name: codparametroempresa_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codparametroempresa_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codparametroempresa_gen OWNER TO postgres;

--
-- Name: codpedi_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpedi_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpedi_gen OWNER TO postgres;

--
-- Name: codpedidodesp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpedidodesp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpedidodesp_gen OWNER TO postgres;

--
-- Name: codpedidodoc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpedidodoc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpedidodoc_gen OWNER TO postgres;

--
-- Name: codpedidogrop_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpedidogrop_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpedidogrop_gen OWNER TO postgres;

--
-- Name: codpedidoitem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpedidoitem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpedidoitem_gen OWNER TO postgres;

--
-- Name: codpedidolog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpedidolog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpedidolog_gen OWNER TO postgres;

--
-- Name: codpedidomotorista_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpedidomotorista_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpedidomotorista_gen OWNER TO postgres;

--
-- Name: codpedidonota_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpedidonota_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpedidonota_gen OWNER TO postgres;

--
-- Name: codpedidorec_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpedidorec_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpedidorec_gen OWNER TO postgres;

--
-- Name: codpedidorota_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpedidorota_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpedidorota_gen OWNER TO postgres;

--
-- Name: codpedidoval_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpedidoval_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpedidoval_gen OWNER TO postgres;

--
-- Name: codpedidovalmot_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpedidovalmot_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpedidovalmot_gen OWNER TO postgres;

--
-- Name: codpessoaoco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpessoaoco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpessoaoco_gen OWNER TO postgres;

--
-- Name: codpneufimvida_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpneufimvida_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpneufimvida_gen OWNER TO postgres;

--
-- Name: codpneumov_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpneumov_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpneumov_gen OWNER TO postgres;

--
-- Name: codpneumovmot_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codpneumovmot_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codpneumovmot_gen OWNER TO postgres;

--
-- Name: codposicao_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codposicao_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codposicao_gen OWNER TO postgres;

--
-- Name: codprocesso_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codprocesso_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codprocesso_gen OWNER TO postgres;

--
-- Name: codprocessolog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codprocessolog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codprocessolog_gen OWNER TO postgres;

--
-- Name: codprogfrete_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codprogfrete_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codprogfrete_gen OWNER TO postgres;

--
-- Name: codprogfretedia_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codprogfretedia_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codprogfretedia_gen OWNER TO postgres;

--
-- Name: codprogfreteped_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codprogfreteped_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codprogfreteped_gen OWNER TO postgres;

--
-- Name: codprop_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codprop_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codprop_gen OWNER TO postgres;

--
-- Name: codproprietarioagenda_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codproprietarioagenda_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codproprietarioagenda_gen OWNER TO postgres;

--
-- Name: codproprietariocc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codproprietariocc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codproprietariocc_gen OWNER TO postgres;

--
-- Name: codproprietariocodext_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codproprietariocodext_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codproprietariocodext_gen OWNER TO postgres;

--
-- Name: codproprietariocont_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codproprietariocont_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codproprietariocont_gen OWNER TO postgres;

--
-- Name: codproprietariodesp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codproprietariodesp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codproprietariodesp_gen OWNER TO postgres;

--
-- Name: codproprietarioesocial_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codproprietarioesocial_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codproprietarioesocial_gen OWNER TO postgres;

--
-- Name: codproprietarioesocialconhec_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codproprietarioesocialconhec_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codproprietarioesocialconhec_gen OWNER TO postgres;

--
-- Name: codproprietariofiscal_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codproprietariofiscal_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codproprietariofiscal_gen OWNER TO postgres;

--
-- Name: codproprietariogerrisco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codproprietariogerrisco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codproprietariogerrisco_gen OWNER TO postgres;

--
-- Name: codproprietariolib_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codproprietariolib_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codproprietariolib_gen OWNER TO postgres;

--
-- Name: codproprietariosegv_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codproprietariosegv_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codproprietariosegv_gen OWNER TO postgres;

--
-- Name: codprotocolofat_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codprotocolofat_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codprotocolofat_gen OWNER TO postgres;

--
-- Name: codquestao_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codquestao_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codquestao_gen OWNER TO postgres;

--
-- Name: codquestionario_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codquestionario_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codquestionario_gen OWNER TO postgres;

--
-- Name: codquestionariotab_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codquestionariotab_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codquestionariotab_gen OWNER TO postgres;

--
-- Name: codquestionariousuario_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codquestionariousuario_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codquestionariousuario_gen OWNER TO postgres;

--
-- Name: codrecurso_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codrecurso_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codrecurso_gen OWNER TO postgres;

--
-- Name: codrecursogrupousuario_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codrecursogrupousuario_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codrecursogrupousuario_gen OWNER TO postgres;

--
-- Name: codregiao_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codregiao_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codregiao_gen OWNER TO postgres;

--
-- Name: codregiaocid_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codregiaocid_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codregiaocid_gen OWNER TO postgres;

--
-- Name: codregiaocli_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codregiaocli_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codregiaocli_gen OWNER TO postgres;

--
-- Name: codregiaoprop_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codregiaoprop_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codregiaoprop_gen OWNER TO postgres;

--
-- Name: codregrac_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codregrac_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codregrac_gen OWNER TO postgres;

--
-- Name: codregracdet_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codregracdet_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codregracdet_gen OWNER TO postgres;

--
-- Name: codreq_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codreq_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codreq_gen OWNER TO postgres;

--
-- Name: codresposta_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codresposta_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codresposta_gen OWNER TO postgres;

--
-- Name: codrespostausuario_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codrespostausuario_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codrespostausuario_gen OWNER TO postgres;

--
-- Name: codromaneio_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codromaneio_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codromaneio_gen OWNER TO postgres;

--
-- Name: codromaneioitem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codromaneioitem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codromaneioitem_gen OWNER TO postgres;

--
-- Name: codrota_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codrota_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codrota_gen OWNER TO postgres;

--
-- Name: codrotacidade_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codrotacidade_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codrotacidade_gen OWNER TO postgres;

--
-- Name: codrotagerrisco_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codrotagerrisco_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codrotagerrisco_gen OWNER TO postgres;

--
-- Name: codsafra_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codsafra_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codsafra_gen OWNER TO postgres;

--
-- Name: codsemaforo_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codsemaforo_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codsemaforo_gen OWNER TO postgres;

--
-- Name: codsemaforolog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codsemaforolog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codsemaforolog_gen OWNER TO postgres;

--
-- Name: codsincsistemaext_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codsincsistemaext_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codsincsistemaext_gen OWNER TO postgres;

--
-- Name: codsistemaext_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codsistemaext_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codsistemaext_gen OWNER TO postgres;

--
-- Name: codsolcompra_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codsolcompra_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codsolcompra_gen OWNER TO postgres;

--
-- Name: codsolcompraitem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codsolcompraitem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codsolcompraitem_gen OWNER TO postgres;

--
-- Name: codspool_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codspool_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codspool_gen OWNER TO postgres;

--
-- Name: codstatuspneu_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codstatuspneu_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codstatuspneu_gen OWNER TO postgres;

--
-- Name: codsubtopico_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codsubtopico_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codsubtopico_gen OWNER TO postgres;

--
-- Name: codsupergrupo_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codsupergrupo_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codsupergrupo_gen OWNER TO postgres;

--
-- Name: codsupergrupof_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codsupergrupof_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codsupergrupof_gen OWNER TO postgres;

--
-- Name: codsupergrupor_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codsupergrupor_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codsupergrupor_gen OWNER TO postgres;

--
-- Name: codtipoacaoaud_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoacaoaud_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoacaoaud_gen OWNER TO postgres;

--
-- Name: codtipoacidente_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoacidente_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoacidente_gen OWNER TO postgres;

--
-- Name: codtipoborracha_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoborracha_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoborracha_gen OWNER TO postgres;

--
-- Name: codtipocarroceria_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipocarroceria_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipocarroceria_gen OWNER TO postgres;

--
-- Name: codtipoccempfunc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoccempfunc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoccempfunc_gen OWNER TO postgres;

--
-- Name: codtipoccliente_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoccliente_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoccliente_gen OWNER TO postgres;

--
-- Name: codtipocliente_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipocliente_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipocliente_gen OWNER TO postgres;

--
-- Name: codtipoclienteexame_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoclienteexame_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoclienteexame_gen OWNER TO postgres;

--
-- Name: codtipoclienteop_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoclienteop_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoclienteop_gen OWNER TO postgres;

--
-- Name: codtipocobranca_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipocobranca_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipocobranca_gen OWNER TO postgres;

--
-- Name: codtipodesc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipodesc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipodesc_gen OWNER TO postgres;

--
-- Name: codtipodescdet_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipodescdet_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipodescdet_gen OWNER TO postgres;

--
-- Name: codtipodesp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipodesp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipodesp_gen OWNER TO postgres;

--
-- Name: codtipodoc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipodoc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipodoc_gen OWNER TO postgres;

--
-- Name: codtipodocaud_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipodocaud_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipodocaud_gen OWNER TO postgres;

--
-- Name: codtipodocaudus_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipodocaudus_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipodocaudus_gen OWNER TO postgres;

--
-- Name: codtipoequip_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoequip_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoequip_gen OWNER TO postgres;

--
-- Name: codtipoequiploc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoequiploc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoequiploc_gen OWNER TO postgres;

--
-- Name: codtipoequiplog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoequiplog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoequiplog_gen OWNER TO postgres;

--
-- Name: codtipoevento_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoevento_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoevento_gen OWNER TO postgres;

--
-- Name: codtipof_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipof_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipof_gen OWNER TO postgres;

--
-- Name: codtipofinanc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipofinanc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipofinanc_gen OWNER TO postgres;

--
-- Name: codtipohistfat_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipohistfat_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipohistfat_gen OWNER TO postgres;

--
-- Name: codtipojustificativa_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipojustificativa_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipojustificativa_gen OWNER TO postgres;

--
-- Name: codtipolicenca_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipolicenca_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipolicenca_gen OWNER TO postgres;

--
-- Name: codtipolicensaob_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipolicensaob_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipolicensaob_gen OWNER TO postgres;

--
-- Name: codtipologmotorista_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipologmotorista_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipologmotorista_gen OWNER TO postgres;

--
-- Name: codtipomulta_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipomulta_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipomulta_gen OWNER TO postgres;

--
-- Name: codtiponotalog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtiponotalog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtiponotalog_gen OWNER TO postgres;

--
-- Name: codtipoobs_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoobs_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoobs_gen OWNER TO postgres;

--
-- Name: codtipoocorrencia_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoocorrencia_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoocorrencia_gen OWNER TO postgres;

--
-- Name: codtipooperacao_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipooperacao_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipooperacao_gen OWNER TO postgres;

--
-- Name: codtipopagto_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipopagto_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipopagto_gen OWNER TO postgres;

--
-- Name: codtipoproprietario_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoproprietario_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoproprietario_gen OWNER TO postgres;

--
-- Name: codtipoquestao_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipoquestao_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipoquestao_gen OWNER TO postgres;

--
-- Name: codtiporastreador_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtiporastreador_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtiporastreador_gen OWNER TO postgres;

--
-- Name: codtiporastreamento_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtiporastreamento_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtiporastreamento_gen OWNER TO postgres;

--
-- Name: codtiporecto_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtiporecto_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtiporecto_gen OWNER TO postgres;

--
-- Name: codtipotransporte_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipotransporte_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipotransporte_gen OWNER TO postgres;

--
-- Name: codtipv_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtipv_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtipv_gen OWNER TO postgres;

--
-- Name: codtopico_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtopico_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtopico_gen OWNER TO postgres;

--
-- Name: codtrab_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtrab_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtrab_gen OWNER TO postgres;

--
-- Name: codtransacaoextrato_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtransacaoextrato_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtransacaoextrato_gen OWNER TO postgres;

--
-- Name: codtransacaotemp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtransacaotemp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtransacaotemp_gen OWNER TO postgres;

--
-- Name: codtxtcfg_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtxtcfg_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtxtcfg_gen OWNER TO postgres;

--
-- Name: codtxtcfgreg_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtxtcfgreg_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtxtcfgreg_gen OWNER TO postgres;

--
-- Name: codtxtcfgregtag_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codtxtcfgregtag_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codtxtcfgregtag_gen OWNER TO postgres;

--
-- Name: coduforigdest_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coduforigdest_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coduforigdest_gen OWNER TO postgres;

--
-- Name: coduftaxa_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.coduftaxa_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.coduftaxa_gen OWNER TO postgres;

--
-- Name: codunidade_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codunidade_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codunidade_gen OWNER TO postgres;

--
-- Name: codunidadeembarquedesp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codunidadeembarquedesp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codunidadeembarquedesp_gen OWNER TO postgres;

--
-- Name: codunidadeembarquedoc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codunidadeembarquedoc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codunidadeembarquedoc_gen OWNER TO postgres;

--
-- Name: codunidadeembarquemarg_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codunidadeembarquemarg_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codunidadeembarquemarg_gen OWNER TO postgres;

--
-- Name: codunidadeembarqueseg_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codunidadeembarqueseg_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codunidadeembarqueseg_gen OWNER TO postgres;

--
-- Name: codunidadeembrat_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codunidadeembrat_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codunidadeembrat_gen OWNER TO postgres;

--
-- Name: codunnegocio_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codunnegocio_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codunnegocio_gen OWNER TO postgres;

--
-- Name: codusua_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusua_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusua_gen OWNER TO postgres;

--
-- Name: codusuario_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuario_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuario_gen OWNER TO postgres;

--
-- Name: codusuariocampo_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuariocampo_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuariocampo_gen OWNER TO postgres;

--
-- Name: codusuariocliente_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuariocliente_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuariocliente_gen OWNER TO postgres;

--
-- Name: codusuarioconfig_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuarioconfig_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuarioconfig_gen OWNER TO postgres;

--
-- Name: codusuarioconta_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuarioconta_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuarioconta_gen OWNER TO postgres;

--
-- Name: codusuariofav_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuariofav_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuariofav_gen OWNER TO postgres;

--
-- Name: codusuariofilial_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuariofilial_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuariofilial_gen OWNER TO postgres;

--
-- Name: codusuariogrupo_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuariogrupo_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuariogrupo_gen OWNER TO postgres;

--
-- Name: codusuariohora_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuariohora_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuariohora_gen OWNER TO postgres;

--
-- Name: codusuarioitemreceita_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuarioitemreceita_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuarioitemreceita_gen OWNER TO postgres;

--
-- Name: codusuariolog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuariolog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuariolog_gen OWNER TO postgres;

--
-- Name: codusuarioopcartao_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuarioopcartao_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuarioopcartao_gen OWNER TO postgres;

--
-- Name: codusuarioper_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuarioper_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuarioper_gen OWNER TO postgres;

--
-- Name: codusuarioproprietario_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuarioproprietario_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuarioproprietario_gen OWNER TO postgres;

--
-- Name: codusuariosenhas_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuariosenhas_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuariosenhas_seq OWNER TO postgres;

--
-- Name: codusuariotipodesc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codusuariotipodesc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codusuariotipodesc_gen OWNER TO postgres;

--
-- Name: codveic_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveic_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveic_gen OWNER TO postgres;

--
-- Name: codveiccliente_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiccliente_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiccliente_gen OWNER TO postgres;

--
-- Name: codveiculoacidente_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculoacidente_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculoacidente_gen OWNER TO postgres;

--
-- Name: codveiculoacidenteadiant_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculoacidenteadiant_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculoacidenteadiant_gen OWNER TO postgres;

--
-- Name: codveiculoacidenteconh_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculoacidenteconh_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculoacidenteconh_gen OWNER TO postgres;

--
-- Name: codveiculoacidentelog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculoacidentelog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculoacidentelog_gen OWNER TO postgres;

--
-- Name: codveiculoaluguel_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculoaluguel_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculoaluguel_gen OWNER TO postgres;

--
-- Name: codveiculocl_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculocl_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculocl_gen OWNER TO postgres;

--
-- Name: codveiculoclitem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculoclitem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculoclitem_gen OWNER TO postgres;

--
-- Name: codveiculocompart_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculocompart_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculocompart_gen OWNER TO postgres;

--
-- Name: codveiculoconj_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculoconj_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculoconj_gen OWNER TO postgres;

--
-- Name: codveiculocontrato_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculocontrato_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculocontrato_gen OWNER TO postgres;

--
-- Name: codveiculoitem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculoitem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculoitem_gen OWNER TO postgres;

--
-- Name: codveiculoitemfer_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculoitemfer_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculoitemfer_gen OWNER TO postgres;

--
-- Name: codveiculoitemp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculoitemp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculoitemp_gen OWNER TO postgres;

--
-- Name: codveiculolib_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculolib_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculolib_gen OWNER TO postgres;

--
-- Name: codveiculolicensa_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculolicensa_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculolicensa_gen OWNER TO postgres;

--
-- Name: codveiculolog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculolog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculolog_gen OWNER TO postgres;

--
-- Name: codveiculomot_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculomot_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculomot_gen OWNER TO postgres;

--
-- Name: codveiculomov_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculomov_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculomov_gen OWNER TO postgres;

--
-- Name: codveiculomulta_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculomulta_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculomulta_gen OWNER TO postgres;

--
-- Name: codveiculomultaadiant_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculomultaadiant_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculomultaadiant_gen OWNER TO postgres;

--
-- Name: codveiculomultalog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculomultalog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculomultalog_gen OWNER TO postgres;

--
-- Name: codveiculoprod_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculoprod_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculoprod_gen OWNER TO postgres;

--
-- Name: codveiculoseguro_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codveiculoseguro_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codveiculoseguro_gen OWNER TO postgres;

--
-- Name: codviagem_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codviagem_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codviagem_gen OWNER TO postgres;

--
-- Name: codviagemdoc_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codviagemdoc_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codviagemdoc_gen OWNER TO postgres;

--
-- Name: codvisitante_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codvisitante_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codvisitante_gen OWNER TO postgres;

--
-- Name: codvisitantelog_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codvisitantelog_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codvisitantelog_gen OWNER TO postgres;

--
-- Name: codvisitantelogmov_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codvisitantelogmov_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codvisitantelogmov_gen OWNER TO postgres;

--
-- Name: codvolume_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.codvolume_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.codvolume_gen OWNER TO postgres;

--
-- Name: coletaentrega; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.coletaentrega (
    codcoletaentrega public.dom_codint2 NOT NULL,
    descricao public.dom_nomepessoa2,
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    endereco public.dom_nomepessoa2,
    nomefazenda public.dom_nomepessoa2,
    nomeprodutor public.dom_nomepessoa2,
    telefone public.dom_fone2,
    contato public.dom_nomepessoa2,
    roteiro character varying(200),
    senha character varying(10),
    kmadicional public.dom_quantreal,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    roteirodesc text,
    cnpjcpf character varying(20),
    inscricaoestadual character varying(20),
    codcidade public.dom_codint2,
    bairro public.dom_bairro,
    numero character varying(10),
    complemento public.dom_complender,
    cep public.dom_cep,
    checklist text,
    lat double precision,
    lon double precision,
    raio double precision,
    email public.dom_email2,
    enviaris public.dom_resp,
    tipoenviolink integer,
    statuscad character varying(2),
    celular character varying(20),
    usuariobloqueio character varying(15),
    databloqueio timestamp without time zone,
    codmotivobloqueio public.dom_codint2,
    obsbloqueio character varying(250)
);


ALTER TABLE public.coletaentrega OWNER TO postgres;

--
-- Name: coletaentregacont; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.coletaentregacont (
    codcoletaentregacont public.dom_codint NOT NULL,
    codcoletaentrega public.dom_codint2,
    nome public.dom_nomepessoa2,
    fone character varying(25),
    celular character varying(25),
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.coletaentregacont OWNER TO postgres;

--
-- Name: coletaentregamot; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.coletaentregamot (
    codcoletaentregamot public.dom_codint NOT NULL,
    codcoletaentrega public.dom_codint2,
    codmotorista public.dom_codint2,
    motivobloqueio text,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.coletaentregamot OWNER TO postgres;

--
-- Name: coletaentregasetor; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.coletaentregasetor (
    codcoletaentregasetor public.dom_codint NOT NULL,
    codcoletaentrega public.dom_codint2,
    descricao character varying(200),
    obs public.dom_text,
    liberado public.dom_resp,
    datadigitacao date,
    dataatual date,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.coletaentregasetor OWNER TO postgres;

--
-- Name: coletaentregaveic; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.coletaentregaveic (
    codcoletaentregaveic public.dom_codint NOT NULL,
    codcoletaentrega public.dom_codint2,
    codveiculo public.dom_codint2,
    motivobloqueio text,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.coletaentregaveic OWNER TO postgres;

--
-- Name: condpag; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.condpag (
    codcondicao public.dom_codint NOT NULL,
    prazo character varying(50),
    numeroparcelas integer,
    descricao character varying(50),
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    tipoperiod integer
);


ALTER TABLE public.condpag OWNER TO postgres;

--
-- Name: conhecimento; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimento (
    numero public.dom_codint2 NOT NULL,
    numeropedido public.dom_codint2,
    codcliente public.dom_codint2,
    coddestinatario public.dom_codint2,
    codremetente public.dom_codint2,
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2,
    codmercadoria public.dom_codint2,
    codfilial public.dom_codint2,
    codembarcador public.dom_codint2,
    codfaturasaldo public.dom_codint2,
    codfaturaadiantamento public.dom_codint2,
    codfaturaclassificacao public.dom_codint2,
    codfaturaicms public.dom_codint2,
    data timestamp without time zone,
    datadigitacao timestamp without time zone,
    pesosaida public.dom_quantreal,
    pesochegada public.dom_quantreal,
    precotonempresa public.dom_quantreal2,
    freteempresa public.dom_dinheiro2,
    adiantamentoempresa public.dom_dinheiro2,
    precotonmotorista public.dom_quantreal2,
    fretemotorista public.dom_dinheiro2,
    adiantamentomotorista public.dom_dinheiro2,
    comissao public.dom_porcentagem2,
    numeroclassificacao character varying(10),
    valorclassificacao public.dom_dinheiro2,
    valormercadoria public.dom_dinheiro2,
    codfornecedoradiant public.dom_codint2,
    datavencadiant timestamp without time zone,
    acertoadiant numeric(20,2),
    codfornecedorsaldo public.dom_codint2,
    dtvencsaldo timestamp without time zone,
    acertosaldo numeric(20,2),
    taxaquebra public.dom_quantreal,
    quantidadequebra public.dom_quantreal,
    tipodesconto character(1),
    tipotolerancia character(1),
    valorquebra public.dom_dinheiro2,
    pagaicms character(1),
    baseicms public.dom_dinheiro2,
    porcicms public.dom_porcentagem2,
    valoricms public.dom_dinheiro2,
    horacarregamento timestamp without time zone,
    horaprogramada timestamp without time zone,
    horaprevista timestamp without time zone,
    obs1 character varying(200),
    obs2 character varying(200),
    dtvencclassificacao timestamp without time zone,
    codfornecedorclassificacao public.dom_codint2,
    codfornecedoricms public.dom_codint2,
    dtvencicms timestamp without time zone,
    horasaida timestamp without time zone,
    horachegada timestamp without time zone,
    horafimdescarga timestamp without time zone,
    sacacarregamento integer,
    sacatransporte integer,
    sacadescarga integer,
    kmrodado public.dom_quantreal,
    reclamacao character(1),
    tipofrete character(1),
    numeroconhecimento public.dom_codint2,
    numeroprogramacao public.dom_codint2,
    tempo integer,
    valorestadia public.dom_dinheiro2,
    icmsembutido public.dom_resp,
    pagar public.dom_resp,
    codfornecedorestadia public.dom_codint2,
    dtvencestadia timestamp without time zone,
    despesaextra public.dom_dinheiro2,
    contrato character varying(10),
    dataatual timestamp without time zone,
    serie character varying(5),
    quantmercadoria public.dom_quantreal,
    especiemercadoria character varying(10),
    fretecombinado public.dom_dinheiro2,
    impresso public.dom_resp,
    chegouadiantamento public.dom_resp,
    chegousaldo public.dom_resp,
    chegouclassificacao public.dom_resp,
    chegouicms public.dom_resp,
    taxaseguro public.dom_porcentagem2,
    premioseguro public.dom_dinheiro2,
    fretepago public.dom_resp,
    codfornecedorpedagio public.dom_codint2,
    datavencpedagio timestamp without time zone,
    valorpedagio public.dom_dinheiro2,
    cargadescarga public.dom_dinheiro2,
    valorabonoquebra public.dom_dinheiro2,
    obsquebra public.dom_obs,
    codfaturapedagio public.dom_codint2,
    pedagioembutidofrete public.dom_resp,
    mercadoriapaga public.dom_resp,
    acertoicms numeric(20,2),
    codfornecedorbalsa public.dom_codint2,
    datavencbalsa timestamp without time zone,
    valorbalsa public.dom_dinheiro2,
    codcarreta public.dom_codint2,
    tributaimpostos public.dom_resp,
    precotonfiscal public.dom_quantreal2,
    valorfretefiscal public.dom_dinheiro2,
    datapedido timestamp without time zone,
    sacacarrvalvula integer,
    sacacarrpapel integer,
    sacacarrestouro integer,
    sacatranvalvula integer,
    sacatranpapel integer,
    sacatranestouro integer,
    sacadescvalvula integer,
    sacadescpapel integer,
    sacadescestouro integer,
    codfaturaestadia public.dom_codint2,
    horachegpedtransp timestamp without time zone,
    descdiffrete public.dom_resp,
    descsegurosaldo public.dom_resp,
    prepago public.dom_resp,
    outrosdescontos numeric(20,2),
    codcoleta public.dom_codint2,
    codentrega public.dom_codint2,
    pesosaidamotorista public.dom_resp,
    pedidofrete character varying(80),
    pedidotransf character varying(80),
    umidade public.dom_quantreal,
    impureza public.dom_quantreal,
    avariado public.dom_quantreal,
    valoriss public.dom_dinheiro2,
    issembutido public.dom_resp,
    codunidadeembarque public.dom_codint2,
    dataviagemmotorista timestamp without time zone,
    obs3 public.dom_obs,
    obs4 public.dom_obs,
    obs5 public.dom_obs,
    dtpagtomercadoria timestamp without time zone,
    dataexportacao timestamp without time zone,
    percredvlicms public.dom_quantreal,
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    flag public.dom_resp,
    numeronotafiscal character varying(200),
    toleranciaestadia public.dom_quantreal,
    valorhoraestadia public.dom_quantreal,
    cancelado public.dom_resp,
    valorinss numeric(20,2),
    valorirrf numeric(20,2),
    freteempresasai public.dom_dinheiro2,
    fretemotoristasai public.dom_dinheiro2,
    descontainsssaldo public.dom_resp,
    descontainsssaldomot public.dom_resp,
    chegoubalsa public.dom_resp,
    descquebrasaldoemp public.dom_resp,
    faturapesochegada public.dom_resp,
    cpmf public.dom_quantreal,
    pis public.dom_quantreal,
    cofins public.dom_quantreal,
    faturaicmsfinal public.dom_resp,
    descontaicmssaldoempresa public.dom_resp,
    calculainss public.dom_resp,
    natureza character varying(10),
    descsegurosaldomot public.dom_resp,
    codacertomotorista public.dom_codint2,
    percredbaseicms public.dom_quantreal,
    historico text,
    estadiapesochegada public.dom_resp,
    calculairrf public.dom_resp,
    calculasestsenat public.dom_resp,
    taxasestsenat public.dom_porcentagem2,
    valorsestsenat public.dom_dinheiro2,
    chegoucontabil public.dom_resp,
    kmini public.dom_codint2,
    kmfim public.dom_codint2,
    precotonpedagio public.dom_quantreal2,
    acertoestadia numeric(20,2),
    percfreteagregado public.dom_porcentagem2,
    codfaturacompra public.dom_codint2,
    comissaodefault public.dom_porcentagem2,
    pedagioembfretemot public.dom_resp,
    codconsignatario public.dom_codint2,
    numeroicms character varying(25),
    motoristaregistradopf public.dom_resp,
    valorinssempresa public.dom_dinheiro2,
    codadiantamento public.dom_codint2,
    codadiantamentosaldo public.dom_codint2,
    caixaarquivo character varying(15),
    permitefaturar public.dom_resp,
    obs6 public.dom_obs,
    obs7 public.dom_obs,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    chegoucomprovante public.dom_resp,
    pedagiocalceixo public.dom_resp,
    caixaarquivosaldo character varying(15),
    numeropedagio character varying(50),
    taxaiss public.dom_porcentagem2,
    numeroseguro character varying(50),
    taxaadiantempresa public.dom_dinheiro2,
    taxamercfrete public.dom_quantreal,
    codpropredespacho public.dom_codint2,
    valorseccat public.dom_dinheiro2,
    seccatembutidofrete public.dom_resp,
    quebrasegurada public.dom_resp,
    numerobalsa character varying(20),
    pedagioembffiscal public.dom_resp,
    seloicms character varying(30),
    multaicms public.dom_dinheiro2,
    jurosicms public.dom_dinheiro2,
    tseicms public.dom_dinheiro2,
    toleranciapesocheg public.dom_resp,
    numeroctrcbase public.dom_codint2,
    diasfaturamento public.dom_codint2,
    codordemcar public.dom_codint2,
    codprodutor public.dom_codint2,
    outrosdescontosmot public.dom_dinheiro2,
    codtiporastreamento public.dom_codint2,
    codagrupador public.dom_codint2,
    liberacaomotorista character varying(30),
    vlbasecomissao public.dom_dinheiro2,
    valorrastreamento public.dom_dinheiro2,
    descontaisssaldoemp public.dom_resp,
    codproprietario public.dom_codint2,
    codcidaderef public.dom_codint2,
    numtransporte character varying(10),
    veiccontratado character varying(10),
    baseicmsdireta public.dom_resp,
    baseissdireta public.dom_resp,
    baseiss public.dom_dinheiro2,
    csll public.dom_quantreal,
    vlcsll public.dom_dinheiro2,
    vlpis public.dom_dinheiro2,
    vlcofins public.dom_dinheiro2,
    descpissaldoemp public.dom_resp,
    desccofinssaldoemp public.dom_resp,
    desccsllsaldoemp public.dom_resp,
    somarissfatsaldo public.dom_resp,
    calculainssempresa public.dom_resp,
    taxainssempresa public.dom_quantreal,
    tipofreteempresa public.dom_codint2,
    pesocubado public.dom_quantreal,
    auxiliocarga public.dom_resp,
    auxiliodescarga public.dom_resp,
    segurorctrc public.dom_resp,
    segurorcfdc public.dom_resp,
    porcadvalor public.dom_quantreal,
    advalor public.dom_dinheiro2,
    valorpedagiomot public.dom_dinheiro2,
    valorentrega public.dom_dinheiro2,
    codgerrisco public.dom_codint2,
    libgerriscomot character varying(30),
    libgerriscoprop character varying(30),
    codfrete public.dom_codint2,
    valoricmsantec public.dom_dinheiro2,
    codfornicmsantec public.dom_codint2,
    dtvencicmsantec timestamp without time zone,
    valorinssoutrastransp public.dom_dinheiro2,
    aidf character varying(20),
    acertopedagio public.dom_dinheiro2,
    codrota public.dom_codint2,
    descsestsenatsaldoemp public.dom_resp,
    descirrfsaldoemp public.dom_resp,
    codfaturaentrega public.dom_codint2,
    contatocliente character varying(70),
    expseguro public.dom_resp,
    codfaturaentadto public.dom_codint2,
    codfaturaentsaldo public.dom_codint2,
    classificacaoembfreteemp public.dom_resp,
    dataexpseguro timestamp without time zone,
    dataicmsantec timestamp without time zone,
    chegoucliente public.dom_resp,
    codfatpagadiant public.dom_codint2,
    codfatpagsaldo public.dom_codint2,
    codfatpagpedagio public.dom_codint2,
    codfatpagicms public.dom_codint2,
    codfatpagestadia public.dom_codint2,
    codfatpagbalsa public.dom_codint2,
    codfatpagclassif public.dom_codint2,
    codfatpagicmsantec public.dom_codint2,
    codobsfiscal public.dom_codint2,
    adiantamentoemp2 public.dom_dinheiro2,
    codfaturaadiantemp2 public.dom_codint2,
    precotonempcomp public.dom_quantreal2,
    freteempresacomp public.dom_dinheiro2,
    codfaturasaldocomp public.dom_codint2,
    uschegousaldo character varying(15),
    datachegousaldo timestamp without time zone,
    cteloteenv character varying(15),
    ctedataloteenv timestamp without time zone,
    ctereciboenv character varying(15),
    ctedatareciboenv timestamp without time zone,
    ctechave character varying(50),
    cteprot character varying(50),
    ctestatus character varying(50),
    obscanc character varying(100),
    ctedatacanc timestamp without time zone,
    cteprotcanc character varying(50),
    datacancelado timestamp without time zone,
    taxaseguro2 public.dom_quantreal,
    descseguro2saldo public.dom_resp,
    descseguro2saldomot public.dom_resp,
    premioseguro2 public.dom_dinheiro2,
    lacres character varying(200),
    comissaoembarcador public.dom_quantreal,
    precometrocubico public.dom_quantreal,
    datasaidanf timestamp without time zone,
    dataemissaonf timestamp without time zone,
    codviatransporte public.dom_codint2,
    permitepagarsaldofrota public.dom_resp,
    outrosdescontosmot2 public.dom_dinheiro2,
    usuariopsaldo character varying(15),
    usuariopadiant character varying(15),
    usuarioppedagio character varying(15),
    usuariopbalsa character varying(15),
    usuariopicms character varying(15),
    usuariopestadia character varying(15),
    usuariopclassif character varying(15),
    datadigpsaldo timestamp without time zone,
    datadigpadiant timestamp without time zone,
    datadigppedagio timestamp without time zone,
    datadigpbalsa timestamp without time zone,
    datadigpicms timestamp without time zone,
    datadigpestadia timestamp without time zone,
    datadigpclassif timestamp without time zone,
    codfaturaquebrasegurada public.dom_codint2,
    codemonitor public.dom_codint2,
    codemonitorcanc public.dom_codint2,
    ctemsgret character varying(200),
    emonitorstatus public.dom_codint2,
    estadiaembutidafrete public.dom_resp,
    numeroformulario public.dom_codint2,
    uschegouadiant character varying(10),
    datachegouadiant timestamp without time zone,
    codtransadiant public.dom_codint2,
    codtranssaldo public.dom_codint2,
    codtranspedagio public.dom_codint2,
    codtransestadia public.dom_codint2,
    codtransicms public.dom_codint2,
    codfatpagsestsenat public.dom_codint2,
    codfatpagirrf public.dom_codint2,
    codfatpaginss public.dom_codint2,
    faturaautomatica character(1),
    numeroconta character varying(10),
    codfatpaginssemp public.dom_codint2,
    datacaixaarq timestamp without time zone,
    usuariocaixaarq character varying(15),
    datacaixaarqsaldo timestamp without time zone,
    usuariocaixaarqsaldo character varying(15),
    valormercsegurada public.dom_dinheiro2,
    usuarioviacliente character varying(15),
    dataviacliente timestamp without time zone,
    modoemissao character(1),
    selecionado character(1),
    codfatpagquebra public.dom_codint2,
    usuarioautcte character varying(15),
    usuariocanccte character varying(15),
    usuarioinutcte character varying(15),
    arqxmlass text,
    codunidadeembentrega public.dom_codint2,
    codtipopagto public.dom_codint2,
    precokgmerc public.dom_quantreal2,
    precokgmercquebra public.dom_quantreal2,
    codfatpagiss public.dom_codint2,
    codmotcontingencia public.dom_codint2,
    datainicontingencia timestamp without time zone,
    obscontingencia character varying(200),
    adtomot2 public.dom_dinheiro2,
    codfornecedoradto2 public.dom_codint2,
    dtvencadto2 timestamp without time zone,
    codfatpagadto2 public.dom_codint2,
    usuariopadto2 character varying(15),
    datadigpadto2 timestamp without time zone,
    obsinut character varying(100),
    ctedatainut timestamp without time zone,
    cteprotinut character varying(50),
    cartafrete public.dom_codint2,
    codemonitorinut public.dom_codint2,
    nomeseguradora character varying(100),
    numeroapolice character varying(100),
    respseguro character(1),
    tipocte character(1),
    horainiestadia timestamp without time zone,
    horafimestadia timestamp without time zone,
    chegouadto2 character(1),
    tiposinistro character(1),
    resppedagio character(1),
    tipopedagio character(1),
    codfornecedor public.dom_codint2,
    venccontrpedagio timestamp without time zone,
    numerocartaopedagio character varying(50),
    clientepagasaldomotorista character(1),
    codadiantamento2 public.dom_codint2,
    codunidademedida public.dom_codint2,
    codfaturaquebraseg public.dom_codint2,
    pedidocliente2 character varying(80),
    nfedevchave character varying(50),
    nfdevcnpj character varying(20),
    nfdevmod character varying(5),
    nfdevserie character varying(3),
    nfdevvalor public.dom_dinheiro2,
    nfdevdata timestamp without time zone,
    codmoeda public.dom_codint2,
    descpedagiobasemot character(1),
    desccargadescargabasemot character(1),
    descicmsbasemot character(1),
    horacoleta character varying(15),
    emailcte character varying(200),
    tpamb public.dom_resp,
    percmargem public.dom_quantreal,
    percmargemps public.dom_quantreal,
    codobsfiscal2 public.dom_codint2,
    mostrafatfrota public.dom_resp,
    caixaarqfat character varying(15),
    usuarioarqfat character varying(15),
    dataarqfat timestamp without time zone,
    codespeciemerc public.dom_codint2,
    ctrb character varying(30),
    obsestadia text,
    pedagioembbaseicms character(1),
    caixaviaarquivo character varying(15),
    caixacomprfilial character varying(15),
    comissaoestadia public.dom_dinheiro2,
    entradasaida public.dom_resp,
    chegouviaarquivo public.dom_resp,
    datacaixaarqviaarquivo timestamp without time zone,
    usuariocaixaarqviaarquivo character varying(15),
    chegouviafilial public.dom_resp,
    datacaixaarqviafilial timestamp without time zone,
    usuariocaixaarqviafilial character varying(15),
    ciot character varying(30),
    cobrasegurocliente public.dom_resp,
    numviagopcartao character varying(70),
    dataprevdescarga timestamp without time zone,
    prazodescarga public.dom_codint2,
    versaocte character varying(10),
    cnd character varying(100),
    precotonicms public.dom_quantreal2,
    precotonclassificacao public.dom_quantreal2,
    cndtransp character varying(100),
    impressocf public.dom_resp,
    valorhoraestadiamot public.dom_quantreal,
    acertoadiant2 public.dom_dinheiro2,
    numautgerrisco character varying(60),
    retroagirestadia public.dom_quantreal,
    caixaarqtiket character varying(15),
    usuariocaixaarqtiket character varying(15),
    datacaixaarqtiket timestamp without time zone,
    codacertoproprietario public.dom_codint2,
    tpemis character(1),
    chegouviaticket character(1),
    valorcontainer public.dom_dinheiro2,
    respcontainer public.dom_resp,
    datadigiestadia timestamp without time zone,
    usuariodigestadia character varying(15),
    acertoclassificacao public.dom_dinheiro2,
    versaomodal character varying(10),
    percadmercsegurada public.dom_quantreal,
    codgerriscoop public.dom_codint2,
    codgerriscoseg public.dom_codint2,
    numeroviagant public.dom_codint2,
    tpambop character(1),
    vlsaldomot public.dom_dinheiro2,
    vlsaldoemp public.dom_dinheiro2,
    vlfatfrota public.dom_dinheiro2,
    vlfatfrete public.dom_dinheiro2,
    vlcomemb public.dom_dinheiro2,
    vlmargem public.dom_dinheiro2,
    vlmargemps public.dom_dinheiro2,
    vlmargembruta public.dom_dinheiro2,
    vlfatempbr public.dom_dinheiro2,
    vlfatempbrps public.dom_dinheiro2,
    vlfatempliq public.dom_dinheiro2,
    vloutros public.dom_dinheiro2,
    pagaiss character(1),
    chegouestadia public.dom_resp,
    caixaarqestadia character varying(15),
    codcolenttrocanota public.dom_codint2,
    estadiastatuscli public.dom_codint2,
    enventregacte public.dom_resp,
    envcoletacte public.dom_resp,
    codmotorista2 public.dom_codint2,
    fusohorario character varying(5),
    cnpjseguradora public.dom_cgc,
    indglobalizado character(1),
    listacompprest character varying(250),
    fvalorareceber character varying(250),
    ftotalprest character varying(250),
    fbaseicms character varying(250),
    fsaldoemp character varying(250),
    codcontrato public.dom_codint2,
    codrotamanif public.dom_codint2,
    codcoletasetor public.dom_codint2,
    codentregasetor public.dom_codint2,
    precotonmotoristabr public.dom_quantreal,
    tpmodal character varying(1),
    enviadoccf public.dom_resp,
    idcsrt character varying(200),
    hashcsrt character varying(200),
    respteccnpj public.dom_nomepessoa2,
    respteccontato character varying(100),
    resptecemail public.dom_email2,
    resptecfone public.dom_fone2,
    qrcodcte public.dom_text,
    codtipotransporteantt public.dom_codint2,
    vafrmm public.dom_quantreal,
    codgerriscoped public.dom_codint2,
    codgerriscor public.dom_codint2,
    pagooperadora character varying(50),
    ordemcli character varying(20),
    dataenvioseguro timestamp without time zone,
    tipotributacaoprop character varying(1),
    precotonempresabr public.dom_quantreal,
    codfatpagseg2 public.dom_codint2,
    descmercnf character varying(150),
    checklist character varying(250),
    indaltodesemp character varying(1),
    tpvalepedagio character varying(2),
    percfrota public.dom_quantreal,
    fchecklistcte character varying(250),
    codverifcfad character varying(100),
    codverifcfsd character varying(100),
    codverifcfad2 character varying(100),
    percadiantmotorista public.dom_porcentagem2,
    checklistpagto character varying(250),
    ctecrt character varying(1),
    codcarreta2 public.dom_codint2,
    codcarreta3 public.dom_codint2,
    codcarreta4 public.dom_codint2
);


ALTER TABLE public.conhecimento OWNER TO postgres;

--
-- Name: filial; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.filial (
    codfilial public.dom_codint NOT NULL,
    nome public.dom_nomepessoa,
    contato public.dom_nomepessoa2,
    endereco public.dom_endereco2,
    complemento public.dom_complender,
    cep public.dom_cep,
    codcidade public.dom_codint,
    cgccpf public.dom_cgc2,
    inscricaoestadual public.dom_ie,
    fone public.dom_fone2,
    fax public.dom_fone2,
    email public.dom_email2,
    codempresa public.dom_codint2,
    dataatual timestamp without time zone,
    tributaimpostos public.dom_resp,
    pagar public.dom_resp,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    icmsembutido public.dom_resp,
    taxaiss public.dom_porcentagem2,
    frota public.dom_resp,
    descsegurosaldomot public.dom_resp,
    calculairrf public.dom_resp,
    serie character varying(10),
    bairro public.dom_bairro,
    numero character varying(10),
    codexterno character varying(10),
    nomereduzido character varying(20),
    percmaxadiant public.dom_quantreal,
    pis public.dom_porcentagem2,
    cofins public.dom_porcentagem2,
    csll public.dom_porcentagem2,
    seriecteoutrasufs public.dom_codint2,
    seriecte public.dom_codint2,
    obriganumeropedido character(1),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    rntrc character varying(15),
    validaderntrc timestamp without time zone,
    porcicms public.dom_quantreal,
    mostrainternetpagtoforn public.dom_resp,
    numeroultcte public.dom_codint2,
    datainicte timestamp without time zone,
    cndtransp character varying(100),
    validadecndtransp timestamp without time zone,
    pedagioembbaseicms public.dom_resp,
    seriemdfe public.dom_codint2,
    tipopagtomot character(1),
    temnfe public.dom_resp,
    serienf character varying(5),
    especienf character varying(5),
    modelonf character varying(2),
    fusohorario character varying(5),
    obsnf public.dom_obs,
    obsrodapenf public.dom_obs,
    obscorponf public.dom_obs,
    nfeemailret public.dom_email2,
    nfeemailerro public.dom_email2,
    nfeversao character varying(10),
    nfecrt character varying(1),
    nfetpamb character(1),
    nsu character varying(40),
    nfefusohorarioautor character varying(5),
    codfornecedorcontador public.dom_codint2,
    crccontador character varying(50),
    obs text,
    nsunfedist character varying(40),
    nsumdfedist character varying(40),
    nsuctedist character varying(40),
    datacadastro timestamp without time zone,
    taxaadm public.dom_porcentagem2,
    idcsrt character varying(200),
    obsseguro public.dom_text,
    respteccnpj character varying(15),
    respteccontato character varying(100),
    resptecemail public.dom_email2,
    resptecfone public.dom_fone2,
    codigootm character varying(50),
    nfecodgerriscoseg public.dom_codint2,
    nfecnpjseguradora public.dom_cgc2,
    nfenomseguradora character varying(100),
    nfenumeroapolice character varying(100),
    codunidadeembarquedef public.dom_codint2,
    naobuscapaineis public.dom_resp,
    checklist character varying(250),
    ultcodediviagemem public.dom_codint2,
    codcidadecomarca public.dom_codint2,
    obscomarca character varying(250),
    listaseriectefil character varying(250),
    obs1 public.dom_obs,
    obs2 public.dom_obs,
    obs3 public.dom_obs,
    obs4 public.dom_obs,
    obs5 public.dom_obs,
    obs6 public.dom_obs,
    obs7 public.dom_obs,
    codunidadeembarquenfse public.dom_codint2,
    responsavel1 character varying(100),
    responsavel2 character varying(100),
    responsavel3 character varying(100),
    nfecsrtprod character varying(50),
    nfeidcsrtprod character varying(10),
    nfecsrthml character varying(50),
    nfeidcsrthml character varying(10),
    mdfeobsencsatapp text
);


ALTER TABLE public.filial OWNER TO postgres;

--
-- Name: fornecedor; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.fornecedor (
    codfornecedor public.dom_codint NOT NULL,
    nome public.dom_nomepessoa,
    endereco public.dom_endereco2,
    complemento public.dom_complender,
    cep public.dom_cep,
    codcidade public.dom_codint,
    contato public.dom_nomepessoa2,
    banco character varying(30),
    cgccpf public.dom_cgc2,
    agencia character varying(10),
    inscricaoestadual public.dom_ie,
    conta character varying(25),
    fone public.dom_fone2,
    periodicidade public.dom_codint2,
    fax public.dom_fone2,
    prazo public.dom_codint2,
    email public.dom_email2,
    precodiesel public.dom_quantreal,
    precogasolina public.dom_quantreal,
    inscmunicipal character varying(20),
    liberadopagamento public.dom_resp,
    obs public.dom_obs,
    tipo character varying(20),
    codtipofornecedor public.dom_codint2,
    nomefantasia public.dom_nomepessoa2,
    numeroconta character varying(10),
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    bloqueadoconhecimento public.dom_resp,
    celular character varying(20),
    senha character varying(10),
    contacontabil character varying(25),
    datainclusao timestamp without time zone,
    pagasegunda public.dom_resp,
    pagaterca public.dom_resp,
    pagaquarta public.dom_resp,
    pagaquinta public.dom_resp,
    pagasexta public.dom_resp,
    horasantecedencia public.dom_quantreal,
    optantesimples public.dom_resp,
    nomereduzido character varying(15),
    rg character varying(25),
    bairro public.dom_bairro,
    numero character varying(10),
    titular character varying(100),
    site character varying(100),
    taxamulta public.dom_quantreal,
    taxajuros public.dom_quantreal,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codbanco public.dom_codint2,
    codmotivobloqueio public.dom_codint2,
    obsbloqueio character varying(100),
    databloqueio timestamp without time zone,
    usuariobloqueio character varying(15),
    saldoantecipado public.dom_dinheiro2,
    mostrainternet public.dom_resp,
    obscompleta text,
    codexterno character varying(20),
    tipoconta public.dom_resp,
    email2 character varying(200),
    nextel public.dom_fone2,
    titularcnpjcpf character varying(14),
    temcontrato public.dom_resp,
    pagasabado public.dom_resp,
    dataultsenha timestamp without time zone,
    finalidadecredito character varying(10),
    codtipocobranca public.dom_codint2,
    codfornecedorprincipal public.dom_codint2,
    pis character varying(13),
    lat double precision,
    lon double precision,
    raio double precision,
    enviaris public.dom_resp,
    datanascimento timestamp without time zone,
    codcliente public.dom_codint2,
    mostrataxaadm public.dom_resp,
    ciencianfeauto public.dom_resp,
    codtipopagto public.dom_codint2,
    fornecedorprincipal public.dom_resp,
    nffatura public.dom_resp,
    afaturar public.dom_resp,
    filiallib character varying(250),
    diasprotesto integer,
    checklist character varying(250),
    dataultfechamento timestamp without time zone,
    chavepix character varying(250),
    qrcodepix public.dom_text,
    diastrocasenha integer,
    tipoenviolink integer,
    tipochavepix integer,
    despesa character varying(1),
    codcondicao public.dom_codint2,
    senhainteg character varying(20),
    gnreversao character varying(5),
    gnretpamb character varying(1),
    statuscad character varying(2),
    checklistmod character varying(250),
    codcontacontabil2 public.dom_codint2,
    adiantamentomotorista public.dom_dinheiro2,
    adiantamentomotorista2 public.dom_dinheiro2,
    tipotributacao character varying(1)
);


ALTER TABLE public.fornecedor OWNER TO postgres;

--
-- Name: confspendadiant; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.confspendadiant AS
 SELECT conf.numero,
    conf.data,
    conf.codcliente,
    conf.numeroconhecimento,
    fil.nome AS nomefil,
    (cidfil.nome)::public.dom_complender AS cidadefil,
    (cidfil.uf)::public.dom_uf AS uf,
    conf.chegouadiantamento AS chegou,
    forn.nome AS nomeforn,
    forn.codfornecedor,
    ('ADTO'::character varying)::public.dom_banco AS tipo,
    conf.datavencadiant AS datavenc
   FROM public.conhecimento conf,
    public.fornecedor forn,
    public.filial fil,
    public.cidade cidfil
  WHERE (((conf.codfilial)::integer = (fil.codfilial)::integer) AND ((fil.codcidade)::integer = (cidfil.codcidade)::integer) AND ((conf.codfornecedoradiant)::integer = (forn.codfornecedor)::integer) AND ((conf.chegouadiantamento)::bpchar = 'N'::bpchar));


ALTER VIEW public.confspendadiant OWNER TO postgres;

--
-- Name: confspendclas; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.confspendclas AS
 SELECT conf.numero,
    conf.data,
    conf.codcliente,
    conf.numeroconhecimento,
    fil.nome AS nomefil,
    (cidfil.nome)::public.dom_complender AS cidadefil,
    (cidfil.uf)::public.dom_uf AS uf,
    conf.chegouclassificacao AS chegou,
    forn.nome AS nomeforn,
    forn.codfornecedor,
    ('CLAS'::character varying)::public.dom_banco AS tipo,
    conf.dtvencclassificacao AS datavenc
   FROM public.conhecimento conf,
    public.fornecedor forn,
    public.filial fil,
    public.cidade cidfil
  WHERE (((conf.codfilial)::integer = (fil.codfilial)::integer) AND ((fil.codcidade)::integer = (cidfil.codcidade)::integer) AND ((conf.codfornecedorclassificacao)::integer = (forn.codfornecedor)::integer) AND ((conf.chegouclassificacao)::bpchar = 'N'::bpchar));


ALTER VIEW public.confspendclas OWNER TO postgres;

--
-- Name: confspendicms; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.confspendicms AS
 SELECT conf.numero,
    conf.data,
    conf.codcliente,
    conf.numeroconhecimento,
    fil.nome AS nomefil,
    (cidfil.nome)::public.dom_complender AS cidadefil,
    (cidfil.uf)::public.dom_uf AS uf,
    conf.chegouicms AS chegou,
    forn.nome AS nomeforn,
    forn.codfornecedor,
    ('ICMS'::character varying)::public.dom_banco AS tipo,
    conf.dtvencicms AS datavenc
   FROM public.conhecimento conf,
    public.fornecedor forn,
    public.filial fil,
    public.cidade cidfil
  WHERE (((conf.codfilial)::integer = (fil.codfilial)::integer) AND ((fil.codcidade)::integer = (cidfil.codcidade)::integer) AND ((conf.codfornecedoricms)::integer = (forn.codfornecedor)::integer) AND ((conf.chegouicms)::bpchar = 'N'::bpchar));


ALTER VIEW public.confspendicms OWNER TO postgres;

--
-- Name: confspendsaldo; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.confspendsaldo AS
 SELECT conf.numero,
    conf.data,
    conf.codcliente,
    conf.numeroconhecimento,
    fil.nome AS nomefil,
    (cidfil.nome)::public.dom_complender AS cidadefil,
    (cidfil.uf)::public.dom_uf AS uf,
    conf.chegousaldo AS chegou,
    forn.nome AS nomeforn,
    forn.codfornecedor,
    ('SALD'::character varying)::public.dom_banco AS tipo,
    conf.dtvencsaldo AS datavenc
   FROM public.conhecimento conf,
    public.fornecedor forn,
    public.filial fil,
    public.cidade cidfil
  WHERE (((conf.codfilial)::integer = (fil.codfilial)::integer) AND ((fil.codcidade)::integer = (cidfil.codcidade)::integer) AND ((conf.codfornecedorsaldo)::integer = (forn.codfornecedor)::integer) AND ((conf.chegousaldo)::bpchar = 'N'::bpchar));


ALTER VIEW public.confspendsaldo OWNER TO postgres;

--
-- Name: conhecimentoadic; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentoadic (
    numero public.dom_codint NOT NULL,
    idpedagio character varying(20),
    obsopcartao text,
    tpopecrepom character varying(5),
    porcadicquebra public.dom_quantreal,
    dataenvgerrisco timestamp without time zone,
    codcoleta2 public.dom_codint2,
    codentrega2 public.dom_codint2,
    tipocalcclassif character(1),
    numformsegcte character varying(50),
    usuarioautestadia character varying(15),
    dataautestadia timestamp without time zone,
    nfserps integer,
    nfsecodemonitor integer,
    nfseemonitorstatus integer,
    nfsestatus character varying(10),
    nfsedatahoraenviolote timestamp without time zone,
    nfsedatahorareclote timestamp without time zone,
    nfsemsgret text,
    nfsenumero integer,
    nfseversao character varying(5),
    nfseserie character varying(5),
    nfsetpamb character(1),
    nfseprot character varying(50),
    nfsecnae character varying(20),
    nfsecodservico character varying(20),
    nfsedescservico character varying(100),
    nfsecodemonitorcanc integer,
    nfseobscanc character varying(100),
    nfseprotcanc character varying(50),
    nfsedatacanc timestamp without time zone,
    nfsearqxmlass public.dom_text,
    tagpesonfe character(1),
    nfseobs text,
    nfseloteenv integer,
    codcidadenfse public.dom_codint2,
    codtipocarroceria public.dom_codint2,
    usuariocaixaarqestadia character varying(15),
    datacaixaarqestadia timestamp without time zone,
    usuariopagadiant2 character varying(15),
    usuariochegouadiant2 character varying(15),
    datadigpagadiant2 timestamp without time zone,
    datachegouadiant2 timestamp without time zone,
    caixaarquivoadto2 character varying(15),
    codmotivocanc public.dom_codint2,
    usuariocaixaarqadto2 character varying(10),
    datacaixaarqadto2 timestamp without time zone,
    codclienteop public.dom_codint2,
    checklistmerc character varying(250),
    codgerriscoped public.dom_codint2,
    codclienteopfis public.dom_codint2,
    usuariochegouestadia character varying(10),
    datachegouestadia timestamp without time zone,
    codmotoristagerrisco public.dom_codint2,
    codmotoristagerriscoped public.dom_codint2,
    codrotasolicmonit public.dom_codint2,
    nfsecodtributacao character varying(20),
    percursocompl character varying(250),
    nfsechave character varying(50),
    codproprietariogr public.dom_codint2,
    codproprietariogrped public.dom_codint2,
    codcidadeorigem2 public.dom_codint2,
    codcidadedestino2 public.dom_codint2,
    codcidadetrocanota public.dom_codint2,
    emailcte public.dom_email2,
    codfornecedorfomento public.dom_codint2,
    usuariochegouicms character varying(10),
    datachegouicms timestamp without time zone,
    datafomento timestamp without time zone,
    valorabast public.dom_dinheiro2,
    acertoabast public.dom_dinheiro2,
    percabast public.dom_porcentagem2,
    codfatpagabast public.dom_codint2,
    codfornecedorabast public.dom_codint2,
    idabast character varying(100),
    numcompraabast character varying(100),
    codgerriscoabast public.dom_codint2,
    datavencabast timestamp without time zone,
    tipotributacao public.dom_resp,
    ceiinss character varying(10),
    freteempresareal public.dom_dinheiro2,
    codmotoristavend public.dom_codint2,
    valorpiscredad public.dom_dinheiro2 DEFAULT 0,
    valorcofinscredad public.dom_dinheiro2 DEFAULT 0,
    valorpiscredsd public.dom_dinheiro2 DEFAULT 0,
    valorcofinscredsd public.dom_dinheiro2 DEFAULT 0,
    checklistrobosat character varying(250),
    totalprest public.dom_dinheiro2,
    valorareceber public.dom_dinheiro2,
    tipofretemotorista integer,
    numeroviagemsimpl integer,
    baseimpostos public.dom_dinheiro2,
    codimposto public.dom_codint2,
    cstibscbs character varying(10),
    codclasstribibscbs character varying(20),
    basecalculoibscbs public.dom_dinheiro2,
    valoribs public.dom_dinheiro2,
    porcibsuf public.dom_porcentagem2,
    porcdifibsuf public.dom_porcentagem2,
    valordifibsuf public.dom_dinheiro2,
    valordevtribibsuf public.dom_dinheiro2,
    porcredibsuf public.dom_porcentagem2,
    porcefetibsuf public.dom_porcentagem2,
    valoribsuf public.dom_dinheiro2,
    porcibscidade public.dom_porcentagem2,
    porcdifibscidade public.dom_porcentagem2,
    valordifibscidade public.dom_dinheiro2,
    valordevtribibscidade public.dom_dinheiro2,
    porcredibscidade public.dom_porcentagem2,
    porcefetibscidade public.dom_porcentagem2,
    valoribscidade public.dom_dinheiro2,
    porccbs public.dom_porcentagem2,
    porcdifcbs public.dom_porcentagem2,
    valordifcbs public.dom_dinheiro2,
    valordevtribcbs public.dom_dinheiro2,
    porcredcbs public.dom_porcentagem2,
    porcefetcbs public.dom_porcentagem2,
    valorcbs public.dom_dinheiro2,
    codcredpresibs character varying(20),
    porccredpresibs public.dom_porcentagem2,
    valorcredpresibs public.dom_dinheiro2,
    valorcredpresibscondsus public.dom_dinheiro2,
    codcredprescbs character varying(20),
    porccredprescbs public.dom_porcentagem2,
    valorcredprescbs public.dom_dinheiro2,
    valorcredprescbscondsus public.dom_dinheiro2,
    valoribsufcred public.dom_dinheiro2,
    valoribscidadecred public.dom_dinheiro2,
    valorcbscred public.dom_dinheiro2,
    codnbs public.dom_codint2,
    vlpisprevisto public.dom_dinheiro2,
    vlcofinsprevisto public.dom_dinheiro2,
    nfecsrtprod character varying(50),
    nfeidcsrtprod character varying(10),
    nfecsrthml character varying(50),
    nfeidcsrthml character varying(10)
);


ALTER TABLE public.conhecimentoadic OWNER TO postgres;

--
-- Name: conhecimentodesp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentodesp (
    codconhecimentodesp public.dom_codint NOT NULL,
    numero public.dom_codint2,
    codtipodesp public.dom_codint2,
    data timestamp without time zone,
    obs text,
    codfaturacompra public.dom_codint2,
    valorbase public.dom_dinheiro2,
    valoracerto public.dom_dinheiro2,
    embfreteemp public.dom_resp,
    descontasaldomot public.dom_resp,
    codfatura public.dom_codint2,
    faturar public.dom_resp,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    basecalculo public.dom_quantreal,
    porc public.dom_quantreal,
    porc1 public.dom_quantreal,
    cst character varying(10),
    pagar public.dom_resp,
    codnotarec public.dom_codint2,
    codnotapag public.dom_codint2,
    codfornecedor public.dom_codint2,
    codcliente public.dom_codint2,
    codcontrato public.dom_codint2,
    descontasaldoemp public.dom_resp,
    checklist character varying(250),
    codcoletaentrega public.dom_codint2,
    umidade public.dom_quantreal,
    impureza public.dom_quantreal,
    ardido public.dom_quantreal,
    imaturo public.dom_quantreal,
    quebrado public.dom_quantreal,
    queimados public.dom_quantreal,
    mofados public.dom_quantreal,
    esverdeados public.dom_quantreal,
    avariados public.dom_quantreal,
    danificados public.dom_quantreal,
    ph public.dom_quantreal,
    germinados public.dom_quantreal,
    picados public.dom_quantreal,
    umidadepeso public.dom_quantreal,
    impurezapeso public.dom_quantreal,
    ardidopeso public.dom_quantreal,
    imaturopeso public.dom_quantreal,
    quebradopeso public.dom_quantreal,
    queimadospeso public.dom_quantreal,
    mofadospeso public.dom_quantreal,
    esverdeadospeso public.dom_quantreal,
    avariadospeso public.dom_quantreal,
    danificadospeso public.dom_quantreal,
    phpeso public.dom_quantreal,
    germinadospeso public.dom_quantreal,
    picadospeso public.dom_quantreal,
    pesototal public.dom_quantreal,
    pesodescontado public.dom_quantreal,
    obsclassif public.dom_text,
    codmotorista public.dom_codint2,
    numerolaudo character varying(30),
    numerocontrato character varying(100),
    numerolacre character varying(150),
    qtdeclassificada public.dom_quantreal,
    qtdefuroscarreta integer,
    transgenico character varying(1),
    vistoriaveic character varying(1),
    gnrecodemonitor integer,
    gnreemonitorstatus integer,
    gnrestatus character varying(10),
    gnremsgret public.dom_text,
    gnreversao character varying(5),
    gnretpamb character varying(1),
    gnredatahoraenviolote timestamp without time zone,
    gnredatahorareclote timestamp without time zone,
    gnrereciboenv character varying(15),
    gnrecodbarra character varying(100),
    gnrelinhadigitavel character varying(70),
    gnrearqxmlenviolote text,
    gnrearqpdfreclote text,
    gnreserie character varying(3),
    basecomissao public.dom_dinheiro2,
    comissao public.dom_porcentagem2,
    codacertomotorista public.dom_codint2,
    status character varying(1)
);


ALTER TABLE public.conhecimentodesp OWNER TO postgres;

--
-- Name: conhecimentodoc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentodoc (
    codconhecimentodoc public.dom_codint NOT NULL,
    numero public.dom_codint2,
    codtipodoc public.dom_codint2,
    obrigatorio public.dom_resp,
    chegou public.dom_resp,
    obs public.dom_text,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.conhecimentodoc OWNER TO postgres;

--
-- Name: conhecimentodocant; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentodocant (
    numero public.dom_codint2 NOT NULL,
    numerodoc public.dom_codint2 NOT NULL,
    serie character varying(3) NOT NULL,
    codcliente public.dom_codint2,
    tipo character(1),
    chave character varying(50),
    tipodoc character(1),
    datadoc timestamp without time zone,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codconhecimentodocant public.dom_codint NOT NULL,
    xml text,
    valor public.dom_dinheiro2
);


ALTER TABLE public.conhecimentodocant OWNER TO postgres;

--
-- Name: conhecimentoev; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentoev (
    codconhecimentoev integer NOT NULL,
    numero integer,
    nseqevento integer,
    xcorrecao public.dom_obs3,
    codemonitor integer,
    emonitorstatus integer,
    evstatus integer,
    datahoraenviolote timestamp without time zone,
    datahorareclote timestamp without time zone,
    nprot character varying(50),
    msgret public.dom_obs,
    arqxmlass text,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datains timestamp without time zone,
    dataalt timestamp without time zone,
    codtipoev public.dom_codint2,
    fusohorario character varying(5),
    versaoeventocte character varying(10),
    grupoalterado character varying(20),
    campoalterado character varying(20),
    nroitemalterado public.dom_codint2,
    xconduso text,
    codcliente public.dom_codint2,
    codremetente public.dom_codint2,
    coddestinatario public.dom_codint2,
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    codcoleta public.dom_codint2,
    codentrega public.dom_codint2,
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2,
    codmercadoria public.dom_codint2,
    codcfop character varying(11),
    protcancseg character varying(50),
    hashentrega character varying(250),
    datahashentrega timestamp without time zone,
    ntentativa integer,
    lat double precision,
    lon double precision,
    tpmotivo integer,
    xjustmotivo character varying(250),
    infentrega public.dom_text
);


ALTER TABLE public.conhecimentoev OWNER TO postgres;

--
-- Name: conhecimentoevdet; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentoevdet (
    codconhecimentoevdet public.dom_codint NOT NULL,
    codconhecimentoev public.dom_codint2,
    grupoalterado character varying(100),
    campoalterado character varying(100),
    valoralterado character varying(200),
    nroitemalterado public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    valoranterior public.dom_obs,
    enviaxml public.dom_resp,
    nomecamposat character varying(50),
    valoralteradoblob text,
    valoranteriorblob text
);


ALTER TABLE public.conhecimentoevdet OWNER TO postgres;

--
-- Name: conhecimentogrop; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentogrop (
    codconhecimentogrop public.dom_codint NOT NULL,
    codgerriscoop public.dom_codint,
    numero public.dom_codint,
    ordem integer,
    opcao character varying(30),
    tipo character(2),
    listaop character varying(250),
    listaop1 character varying(250),
    apelido character varying(30),
    descricao character varying(100),
    filtrodefault character varying(250),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataalt timestamp without time zone
);


ALTER TABLE public.conhecimentogrop OWNER TO postgres;

--
-- Name: conhecimentolog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentolog (
    codconhecimentolog public.dom_codint NOT NULL,
    numero public.dom_codint2,
    data timestamp without time zone,
    codveiculo public.dom_codint2,
    codcidade public.dom_codint2,
    local character varying(100),
    obs character varying(200),
    finalizado public.dom_resp,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    codfilial public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    codmanif public.dom_codint2,
    codtipolog public.dom_codint2,
    kmprevrecapagem public.dom_quantreal,
    codmotorista public.dom_codint2,
    km public.dom_quantreal,
    horafim timestamp without time zone,
    codunidadeembarqueant public.dom_codint2,
    usuarioanterior character varying(10),
    codtipodesc public.dom_codint2,
    coddepartamento public.dom_codint2
);


ALTER TABLE public.conhecimentolog OWNER TO postgres;

--
-- Name: conhecimentomotorista; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentomotorista (
    numero public.dom_codint2 NOT NULL,
    codmotorista public.dom_codint NOT NULL,
    valor public.dom_dinheiro2,
    percentual public.dom_quantreal,
    dataatual timestamp without time zone,
    valoradicional public.dom_dinheiro2,
    codconhecimentomotorista public.dom_codint2 NOT NULL,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.conhecimentomotorista OWNER TO postgres;

--
-- Name: conhecimentonota; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentonota (
    numero public.dom_codint2 NOT NULL,
    numeronota public.dom_codint2 NOT NULL,
    serie character varying(5),
    data timestamp without time zone,
    dataatual timestamp without time zone,
    modelo character varying(15),
    valor public.dom_dinheiro2,
    peso character varying(15),
    quantidade character varying(15),
    codmercadoria public.dom_codint2,
    especiemercadoria character varying(30),
    dataentrega timestamp without time zone,
    baseicms public.dom_dinheiro2,
    valoricms public.dom_dinheiro2,
    basesubsttrib public.dom_dinheiro2,
    valorsubsttrib public.dom_dinheiro2,
    codcfop character varying(10),
    chavenfe character varying(90),
    pinsuframa character varying(10),
    datasaidanf timestamp without time zone,
    recebedor character varying(100),
    pesocubado public.dom_quantreal,
    taxaseguro public.dom_porcentagem2,
    valorseguro public.dom_dinheiro2,
    codtipodoc public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    codespeciemerc public.dom_codint2,
    codconhecimentonota public.dom_codint NOT NULL,
    xml text,
    obs text,
    iesubsttrib character varying(20),
    chegcanhoto public.dom_resp,
    datachegcanhoto timestamp without time zone,
    usuchegcanhoto character varying(15),
    codnota public.dom_codint2,
    codfaturaent public.dom_codint2,
    recebedordoc character varying(50),
    descmercnf character varying(150)
);


ALTER TABLE public.conhecimentonota OWNER TO postgres;

--
-- Name: conhecimentonotacaixa; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentonotacaixa (
    codconhecimentonotacaixa public.dom_codint NOT NULL,
    codconhecimentonota public.dom_codint2 NOT NULL,
    codtipodesctamanho public.dom_codint2,
    quantidade integer
);


ALTER TABLE public.conhecimentonotacaixa OWNER TO postgres;

--
-- Name: conhecimentonotadoc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentonotadoc (
    codconhecimentonotadoc public.dom_codint NOT NULL,
    codconhecimentonota public.dom_codint2,
    codtipodoc public.dom_codint2,
    obrigatorio public.dom_resp,
    chegou public.dom_resp,
    obs public.dom_text,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.conhecimentonotadoc OWNER TO postgres;

--
-- Name: conhecimentonotamerc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentonotamerc (
    codconhecimentonotamerc public.dom_codint NOT NULL,
    codconhecimentonota public.dom_codint2 NOT NULL,
    valor public.dom_dinheiro2,
    peso character varying(15),
    quantidade character varying(15),
    codmercadoria public.dom_codint2,
    especiemercadoria character varying(30),
    obs public.dom_obs,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    coditem public.dom_codint2,
    valorfrete public.dom_quantreal
);


ALTER TABLE public.conhecimentonotamerc OWNER TO postgres;

--
-- Name: conhecimentoocolog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentoocolog (
    codconhecimentoocolog public.dom_codint NOT NULL,
    codconhecimentoocorrencia public.dom_codint2,
    data timestamp without time zone,
    obsresumida character varying(200),
    obs text,
    status public.dom_codint2,
    finalizado public.dom_resp,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.conhecimentoocolog OWNER TO postgres;

--
-- Name: conhecimentoocorrencia; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentoocorrencia (
    numero public.dom_codint2 NOT NULL,
    codtipoocorrencia public.dom_codint2 NOT NULL,
    data timestamp without time zone NOT NULL,
    obs text,
    numeronotafiscal public.dom_codint2,
    codtipojustificativa public.dom_codint2,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codconhecimentoocorrencia public.dom_codint NOT NULL,
    valor public.dom_quantreal,
    codfaturacompraaud public.dom_codint2,
    codfaturarec public.dom_codint2,
    codadiantamento public.dom_codint2,
    valorajustado public.dom_dinheiro2,
    pesochegada public.dom_quantreal,
    freteemp public.dom_dinheiro2,
    fretemot public.dom_dinheiro2,
    saldomot public.dom_dinheiro2,
    valorquebra public.dom_dinheiro2,
    acertosaldo public.dom_dinheiro2,
    acertoadiant public.dom_dinheiro2,
    npesochegada public.dom_quantreal,
    nfreteemp public.dom_dinheiro2,
    nfretemot public.dom_dinheiro2,
    nsaldomot public.dom_dinheiro2,
    nvalorquebra public.dom_dinheiro2,
    nacertosaldo public.dom_dinheiro2,
    nacertoadiant public.dom_dinheiro2,
    nc character varying(250),
    senha character varying(50),
    dataagendamento timestamp without time zone,
    status character(1),
    codconhecimentonota public.dom_codint2,
    codconhecimentoev public.dom_codint2,
    recebedor character varying(100),
    recebedordoc character varying(50),
    protocolo character varying(250),
    codgerrisco public.dom_codint2,
    campoaux1 character varying(250),
    campoaux2 character varying(250),
    bcampoaux1 public.dom_text,
    codlogcom public.dom_codint2,
    ciot character varying(30),
    idabast character varying(100),
    dataprevdescarga timestamp without time zone,
    pesomercadoriaavariada public.dom_quantreal,
    especiemercadoriaavariada character varying(50),
    quantidademercadoriaavariada public.dom_quantreal
);


ALTER TABLE public.conhecimentoocorrencia OWNER TO postgres;

--
-- Name: conhecimentosolic; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentosolic (
    codconhecimentosolic public.dom_codint NOT NULL,
    numero public.dom_codint2,
    codfornecedor public.dom_codint2,
    data timestamp without time zone,
    nomefornecedor public.dom_nomepessoa2,
    emailfornecedor public.dom_email2,
    fonefornecedor public.dom_fone2,
    cnpjcpffornecedor public.dom_cgc2,
    tipopagto character varying(20),
    token character varying(100),
    status character varying(1),
    obs public.dom_text,
    pesochegada public.dom_quantreal,
    codverifcfad character varying(100),
    codverifcfsd character varying(100),
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone,
    codverifcfad2 character varying(100)
);


ALTER TABLE public.conhecimentosolic OWNER TO postgres;

--
-- Name: conhecimentostatus; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentostatus (
    numero public.dom_codint2 NOT NULL,
    serie character varying(5) NOT NULL,
    codfilial public.dom_codint2 NOT NULL,
    codunidadeembarque public.dom_codint2,
    status character(1),
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    aidf character varying(20),
    validade timestamp without time zone,
    caixaarqadto character varying(15),
    caixaarqsaldo character varying(15),
    caixaarqicms character varying(15),
    caixaarqcli character varying(15),
    codembarcador public.dom_codint2,
    datainut timestamp without time zone,
    nprotinut character varying(15),
    usuarioinut character varying(15),
    obsinut character varying(100),
    codconhecimentostatus public.dom_codint2 NOT NULL,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    ctemsgret character varying(200),
    codemonitor public.dom_codint2,
    versaocte character varying(10),
    emonitorstatus public.dom_codint2,
    codmotivocanc public.dom_codint2
);


ALTER TABLE public.conhecimentostatus OWNER TO postgres;

--
-- Name: conhecimentoxml; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentoxml (
    codconhecimentoxml public.dom_codint NOT NULL,
    numero public.dom_codint2,
    codnota public.dom_codint2,
    chavecte character varying(50),
    data timestamp without time zone,
    numerocte integer,
    serie character varying(3),
    status integer,
    dhrecbto timestamp without time zone,
    valorprestacao public.dom_dinheiro2,
    valorareceber public.dom_dinheiro2,
    digval character varying(200),
    sitcte public.dom_codint2,
    nsu character varying(40),
    xml public.dom_text,
    peso public.dom_quantreal,
    valormercadoria public.dom_dinheiro2,
    codfilial public.dom_codint2,
    obs public.dom_text,
    codfornecedoremit public.dom_codint2,
    cnpjcpfemit character varying(18),
    nomeemit character varying(70),
    inscricaoestadualemit character varying(20),
    cidadeemit character varying(100),
    ufemit public.dom_uf2,
    codcidadeemit public.dom_codint2,
    codcliente public.dom_codint2,
    cnpjcpfcliente character varying(18),
    nomecliente character varying(70),
    inscricaoestadualcliente character varying(20),
    cidadecliente character varying(100),
    ufcliente public.dom_uf2,
    codcidadecliente public.dom_codint2,
    codveiculo public.dom_codint2,
    placa character varying(7),
    codmotorista public.dom_codint2,
    nomemot character varying(100),
    cpfmot character varying(15),
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    sitconf public.dom_codint2,
    statusemonitor public.dom_codint2,
    codemonitor public.dom_codint2,
    codfilialtomador public.dom_codint2,
    codmercadoria public.dom_codint2
);


ALTER TABLE public.conhecimentoxml OWNER TO postgres;

--
-- Name: conhecimentoxmloco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conhecimentoxmloco (
    codconhecimentoxmloco public.dom_codint NOT NULL,
    codconhecimentoxml public.dom_codint2,
    status character varying(1),
    codtipoocorrencia public.dom_codint2,
    data timestamp without time zone,
    codtipojustificativa public.dom_codint2,
    obs public.dom_text,
    campoaux1 character varying(250),
    campoaux2 character varying(250),
    bcampoaux1 public.dom_text,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.conhecimentoxmloco OWNER TO postgres;

--
-- Name: consultalog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.consultalog (
    codconsultalog public.dom_codint NOT NULL,
    data timestamp without time zone,
    tela public.dom_codint2,
    xmlret text,
    xmlenv text,
    texto text,
    textoatencao text,
    codveiculo public.dom_codint2,
    codproprietario public.dom_codint2,
    codmotorista public.dom_codint2,
    codcliente public.dom_codint2,
    codfornecedor public.dom_codint2,
    numero public.dom_codint2,
    numeropedido public.dom_codint2,
    codconhecimentonota public.dom_codint2,
    codnota public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codfilial public.dom_codint2,
    codveiculolicensa public.dom_codint2
);


ALTER TABLE public.consultalog OWNER TO postgres;

--
-- Name: conta; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conta (
    numeroconta character varying(10) NOT NULL,
    agencia character varying(7),
    banco character varying(20),
    datainicial timestamp without time zone,
    titular character varying(100),
    codigobanco character varying(3),
    numcontacompleto character varying(20),
    bancaria public.dom_resp,
    limitecredito public.dom_dinheiro2,
    prefixobol character varying(20),
    porcmultabol public.dom_quantreal,
    porcmorabol public.dom_quantreal,
    obsbol character varying(200),
    localpagtobol character varying(100),
    numclientecodbar character varying(20),
    numagenciacodbar character varying(20),
    incluiresumogeral public.dom_resp,
    contacontabil character varying(25),
    tipoconta public.dom_codint2,
    numseq integer,
    cnpjcpf character varying(20),
    imprimecheque public.dom_resp,
    layoutcnab public.dom_codint2,
    dataultfechamento timestamp without time zone,
    carteira character varying(10),
    codempresa public.dom_codint2,
    codfilial public.dom_codint2,
    codbanco public.dom_codint2,
    numseqpagfor public.dom_codint2,
    liberado public.dom_resp,
    obsboleto text,
    permiteboleto public.dom_resp,
    permitedeposito public.dom_resp,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codconta public.dom_codint2 DEFAULT nextval('public.codconta_gen'::regclass),
    permitesaldonegativo public.dom_resp,
    pastaarqremescob character varying(150),
    pastaarqremespagfor character varying(150),
    pastaarqremespagsal character varying(150),
    incluifluxocaixa public.dom_resp,
    codcedente character varying(30),
    campoaux1 character varying(100),
    campoaux2 character varying(100),
    campoaux3 character varying(100),
    campoaux4 character varying(100),
    campoaux5 character varying(100),
    numseqpagforfolha integer,
    campoaux6 character varying(100),
    campoaux7 character varying(100),
    campoaux8 character varying(100),
    campoaux9 character varying(100),
    campoaux10 character varying(100),
    chavepix character varying(250),
    qrcodepix public.dom_text,
    tipochavepix integer,
    codnegocio public.dom_codint2,
    checklist character varying(250),
    codcontacontabil2 public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    codfornecedor public.dom_codint2,
    imagemass text,
    qrcode bytea,
    imgadic bytea
);


ALTER TABLE public.conta OWNER TO postgres;

--
-- Name: contacontabil; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contacontabil (
    codcontacontabil public.dom_codint2 NOT NULL,
    numcontacompleto character varying(30),
    descricao character varying(200),
    item character(1),
    cliente character(1),
    fornecedor character(1),
    conta character(1),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codnatureza character varying(2),
    tipo character(1),
    nivel integer,
    contarfb character varying(60),
    codaux character varying(50),
    codconthist public.dom_codint2,
    codempresa public.dom_codint2,
    codcontacontabilsistemaext public.dom_codint2,
    numcontaaux character varying(30),
    checklist character varying(250)
);


ALTER TABLE public.contacontabil OWNER TO postgres;

--
-- Name: contaitem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contaitem (
    codcontaitem public.dom_codint NOT NULL,
    codconta public.dom_codint2,
    coditem public.dom_codint2,
    codfilial public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    codnegocio public.dom_codint2,
    codfornecedor public.dom_codint2,
    serie character varying(5),
    valor public.dom_dinheiro2,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    descparcial character varying(250),
    obs character varying(250),
    numeroconta character varying(10)
);


ALTER TABLE public.contaitem OWNER TO postgres;

--
-- Name: conthist; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.conthist (
    codconthist public.dom_codint NOT NULL,
    descricao character varying(200),
    codexterno public.dom_codint2,
    codexterno2 public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.conthist OWNER TO postgres;

--
-- Name: contlanc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contlanc (
    codcontlanc public.dom_codint NOT NULL,
    data timestamp without time zone,
    descricao character varying(200),
    obs text,
    codexterno public.dom_codint2,
    codexterno2 public.dom_codint2,
    usuarioexp character varying(15),
    dataexp timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    automatico public.dom_resp
);


ALTER TABLE public.contlanc OWNER TO postgres;

--
-- Name: contlancdet; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contlancdet (
    codcontlancdet public.dom_codint NOT NULL,
    codcontlanc public.dom_codint,
    codcontacred public.dom_codint2,
    codcontadeb public.dom_codint2,
    codconthist public.dom_codint2,
    descricao character varying(200),
    obs text,
    codexterno public.dom_codint2,
    codexterno2 public.dom_codint2,
    valor public.dom_dinheiro2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codregracdet public.dom_codint2,
    codregrac public.dom_codint2
);


ALTER TABLE public.contlancdet OWNER TO postgres;

--
-- Name: contlancdetorig; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contlancdetorig (
    codcontlancdetorig public.dom_codint NOT NULL,
    codcontlancdet public.dom_codint2,
    tabela character varying(30),
    chave character varying(50),
    valor character varying(50),
    codregracdet public.dom_codint2,
    status character(1),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.contlancdetorig OWNER TO postgres;

--
-- Name: contrato; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contrato (
    numero character varying(10) NOT NULL,
    data timestamp without time zone,
    peso numeric(20,2),
    obs text,
    datafim timestamp without time zone,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codcontrato public.dom_codint2 NOT NULL,
    codcliente public.dom_codint2,
    codmercadoria public.dom_codint2,
    codsafra public.dom_codint2,
    codmoeda public.dom_codint2,
    valorunitsicms public.dom_quantreal,
    valortotalsicms public.dom_dinheiro2,
    quantidade public.dom_quantreal,
    status character(1),
    liberado public.dom_resp,
    valorunitcicms public.dom_quantreal,
    valortotalcicms public.dom_dinheiro2,
    tipo character(1),
    obspagto public.dom_text,
    codcondicao public.dom_codint2,
    checklist public.dom_text,
    datavalidade timestamp without time zone,
    datainicio timestamp without time zone,
    codfornecedorvend public.dom_codint2,
    umidade public.dom_quantreal,
    impureza public.dom_quantreal,
    ardido public.dom_quantreal,
    imaturo public.dom_quantreal,
    quebrado public.dom_quantreal,
    triguilho public.dom_quantreal,
    quirera public.dom_quantreal,
    descricao character varying(250),
    fretepago character(1),
    codfilial public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    codcoleta public.dom_codint2,
    codentrega public.dom_codint2,
    codremetente public.dom_codint2,
    coddestinatario public.dom_codint2,
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    codunidademedida public.dom_codint2,
    codembarcador public.dom_codint2,
    coditem public.dom_codint2,
    especiemerc character varying(50),
    porcaliqicmssubstrib public.dom_porcentagem2,
    porcpautaicms public.dom_porcentagem2,
    porcredbaseicms public.dom_porcentagem2,
    porcicms public.dom_porcentagem2,
    csticms character varying(10),
    cstpis character varying(10),
    cstcofins character varying(10),
    codcfop character varying(10),
    codobsfiscal public.dom_codint2,
    codobsfiscal2 public.dom_codint2,
    obsfiscal character varying(250),
    obsnfe public.dom_text,
    codfornecedor public.dom_codint2,
    unidade character varying(3),
    unidadetrib character varying(3),
    pedidocliente character varying(50),
    lacre character varying(50),
    pedclientetransf character varying(50),
    codrota public.dom_codint2,
    cadencia integer,
    tipocadencia integer,
    prazofaturamento integer,
    tipofechamento integer,
    prazoadicional integer,
    codtiporecto public.dom_codint2,
    listadiasfat character varying(250),
    codtipohistfat public.dom_codint2,
    codtipoenvio public.dom_codint2,
    codclienteop public.dom_codint2,
    numeroconta character varying(10),
    codnotaref public.dom_codint2,
    pagaicms character(1),
    codnegocio public.dom_codint2,
    codclienteopfis public.dom_codint2,
    codcfopviagem character varying(10),
    codunidadeembarquetransp public.dom_codint2,
    codfornecedornfe public.dom_codint2,
    porcicmstransp public.dom_porcentagem2,
    percredvlicmstransp public.dom_quantreal,
    percredbaseicmstransp public.dom_quantreal,
    serieviagem character varying(5),
    codnegocionfe public.dom_codint2,
    datavencpadrao timestamp without time zone,
    codfilialcte public.dom_codint2,
    marcavoltransp character varying(250),
    codimposto public.dom_codint2,
    codimpostonfe public.dom_codint2,
    codnbs public.dom_codint2
);


ALTER TABLE public.contrato OWNER TO postgres;

--
-- Name: contratoaj; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contratoaj (
    codcontratoaj public.dom_codint NOT NULL,
    codcontrato public.dom_codint2,
    creditodebito character(1),
    campo character(1),
    data timestamp without time zone,
    obs public.dom_text,
    valor public.dom_dinheiro2,
    peso public.dom_quantreal,
    quantidade public.dom_quantreal,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.contratoaj OWNER TO postgres;

--
-- Name: contratocolent; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contratocolent (
    codcontratocolent public.dom_codint NOT NULL,
    codcontrato public.dom_codint2,
    codcoletaentrega public.dom_codint2,
    codcoletaentregasetor public.dom_codint2,
    peso public.dom_quantreal,
    quantidade public.dom_quantreal,
    obs public.dom_text,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.contratocolent OWNER TO postgres;

--
-- Name: contratodesp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contratodesp (
    codcontratodesp public.dom_codint NOT NULL,
    codcontrato public.dom_codint2,
    codtipodesp public.dom_codint2,
    obs public.dom_text,
    codfornecedor public.dom_codint2,
    valor public.dom_dinheiro2,
    valorppt public.dom_dinheiro2,
    percentual public.dom_dinheiro2,
    embfreteemp public.dom_resp,
    descontasaldomot public.dom_resp,
    faturar public.dom_resp,
    pagar public.dom_resp,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    descontasaldoemp public.dom_resp
);


ALTER TABLE public.contratodesp OWNER TO postgres;

--
-- Name: contratolib; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contratolib (
    codcontratolib public.dom_codint NOT NULL,
    codcontrato public.dom_codint2,
    codcontratocompra public.dom_codint2,
    peso public.dom_quantreal,
    coditem public.dom_codint2,
    obs public.dom_text,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.contratolib OWNER TO postgres;

--
-- Name: contratolog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contratolog (
    codcontratolog public.dom_codint NOT NULL,
    codcontrato public.dom_codint2,
    data timestamp without time zone,
    status character(1),
    obs public.dom_text,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone,
    tipolog integer
);


ALTER TABLE public.contratolog OWNER TO postgres;

--
-- Name: contratoparc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contratoparc (
    codcontratoparc public.dom_codint NOT NULL,
    codcontrato public.dom_codint2,
    recdesp character(1),
    codfaturarec public.dom_codint2,
    codfaturapag public.dom_codint2,
    parcela integer,
    datavencimento timestamp without time zone,
    valorvencimento public.dom_dinheiro2,
    obs public.dom_text,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    status character(1)
);


ALTER TABLE public.contratoparc OWNER TO postgres;

--
-- Name: contratoval; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contratoval (
    codcontratoval public.dom_codint NOT NULL,
    codcontrato public.dom_codint2,
    datavalidade timestamp without time zone,
    tipodata character(1),
    precotonpedagio public.dom_quantreal,
    toleranciaestadia public.dom_quantreal,
    valorhoraestadia public.dom_quantreal,
    precotonmotorista public.dom_quantreal,
    precotonmotpf public.dom_quantreal,
    precotonproprio public.dom_quantreal,
    precotonagregado public.dom_quantreal,
    precotonagregmisto public.dom_quantreal,
    adiantamentomotorista public.dom_quantreal,
    adiantamentomotorista2 public.dom_quantreal,
    precotonmotoristamax public.dom_quantreal,
    precotonmotpfmax public.dom_quantreal,
    precotonpropriomax public.dom_quantreal,
    precotonagregadomax public.dom_quantreal,
    precotonagregmistomax public.dom_quantreal,
    valorunitsicms public.dom_quantreal,
    valortotalsicms public.dom_dinheiro2,
    valorunitcicms public.dom_quantreal,
    valortotalcicms public.dom_dinheiro2,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codcontratocompra public.dom_codint2,
    liberado public.dom_resp,
    listatipocarroceria character varying(250),
    pagaicms character(1),
    precotonempresa public.dom_quantreal,
    precotonfiscal public.dom_quantreal,
    porcicms public.dom_porcentagem2,
    percredvlicms public.dom_quantreal,
    percredbaseicms public.dom_quantreal,
    codcfop character varying(11)
);


ALTER TABLE public.contratoval OWNER TO postgres;

--
-- Name: cor; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cor (
    codcor public.dom_codint2 NOT NULL,
    descricao character varying(50),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    liberado public.dom_resp
);


ALTER TABLE public.cor OWNER TO postgres;

--
-- Name: cot; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cot (
    codcot public.dom_codint2 NOT NULL,
    data timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    usuarioaut character varying(10),
    codfornecedor1 public.dom_codint2,
    codfornecedor2 public.dom_codint2,
    codfornecedor3 public.dom_codint2,
    codfornecedor4 public.dom_codint2,
    codfornecedor5 public.dom_codint2,
    obsf1 character varying(200),
    obsf2 character varying(200),
    obsf3 character varying(200),
    obsf4 character varying(200),
    obsf5 character varying(200),
    obs text,
    codfilial public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    geradoordemcompra public.dom_resp,
    codcondpag1 public.dom_codint2,
    codcondpag2 public.dom_codint2,
    codcondpag3 public.dom_codint2,
    codcondpag4 public.dom_codint2,
    codcondpag5 public.dom_codint2,
    prazoent1 character varying(100),
    prazoent2 character varying(100),
    prazoent3 character varying(100),
    prazoent4 character varying(100),
    prazoent5 character varying(100),
    datavenc1 timestamp without time zone,
    datavenc2 timestamp without time zone,
    datavenc3 timestamp without time zone,
    datavenc4 timestamp without time zone,
    datavenc5 timestamp without time zone,
    codtipo public.dom_codint2,
    dataatual timestamp without time zone,
    codveiculo public.dom_codint2,
    numeronotareq public.dom_codint2,
    seriereq character varying(3),
    codfornecedorreq public.dom_codint2,
    usuariogeradooc character varying(15),
    datageradooc timestamp without time zone,
    codmotivocanc public.dom_codint2,
    datacanc timestamp without time zone,
    usuariocanc character varying(15),
    detcanc public.dom_text,
    coddepartamento public.dom_codint2
);


ALTER TABLE public.cot OWNER TO postgres;

--
-- Name: cotfrete; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cotfrete (
    codcotfrete public.dom_codint2 NOT NULL,
    data timestamp without time zone,
    codfilial public.dom_codint2,
    codcliente public.dom_codint2,
    codembarcador public.dom_codint2,
    status public.dom_codint2,
    codcidadeorigem public.dom_codint2,
    origem character varying(100),
    codcidadedestino public.dom_codint2,
    destino character varying(100),
    codmercadoria public.dom_codint2,
    descmercadoria character varying(150),
    valormercadoria public.dom_dinheiro2,
    vlmercdeclarado public.dom_dinheiro2,
    quantmercadoria public.dom_quantreal,
    peso public.dom_quantreal,
    largura character varying(30),
    altura character varying(30),
    km public.dom_quantreal,
    kmterra public.dom_quantreal,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    contato character varying(100),
    modfaturamento public.dom_codint2,
    franquiahs public.dom_quantreal,
    obs text,
    carregamento public.dom_resp,
    segurototal public.dom_resp,
    balsa public.dom_resp,
    icmsembutido public.dom_resp,
    pedagioembfreteemp public.dom_resp,
    licenca public.dom_resp,
    regimefiscal public.dom_resp,
    equipcarr character varying(150),
    vlhrcarr public.dom_dinheiro2,
    equipdesc character varying(150),
    vlhrdesc public.dom_dinheiro2,
    prazopagamento character varying(150),
    validade character varying(150),
    valordiaria public.dom_dinheiro2,
    escolta public.dom_resp,
    fretecompartilhado public.dom_resp,
    seguroddr public.dom_resp,
    franquiahsdesc public.dom_quantreal,
    codmoeda public.dom_codint2,
    advalorem public.dom_dinheiro2,
    usuarioaut character varying(15),
    dataaut timestamp without time zone,
    codcondicao public.dom_codint2
);


ALTER TABLE public.cotfrete OWNER TO postgres;

--
-- Name: cotfretelog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cotfretelog (
    codcotfrete public.dom_codint2 NOT NULL,
    codcotfretelog public.dom_codint2 NOT NULL,
    data timestamp without time zone,
    status public.dom_codint2,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    freteempresa public.dom_dinheiro2,
    prazopagamento character varying(150),
    respcliente character varying(150),
    acompanhamento character varying(180),
    emailcopia character varying(100),
    emaildestino character varying(100),
    segurototal character varying(100),
    icmsembutido public.dom_resp,
    pedagioembfreteemp public.dom_resp,
    carregamento character varying(100),
    descarga character varying(100),
    escolta character varying(150),
    balsa character varying(150),
    valordiaria character varying(150),
    equipamento character varying(180),
    validade character varying(150),
    obs text,
    licenca public.dom_resp,
    codmoeda public.dom_codint2,
    codproproetario public.dom_codint2,
    valorconcorrente public.dom_quantreal,
    percconcorrente public.dom_quantreal,
    codcondicao public.dom_codint2
);


ALTER TABLE public.cotfretelog OWNER TO postgres;

--
-- Name: cotfretemerc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cotfretemerc (
    codcotfrete public.dom_codint2 NOT NULL,
    codcotfretemerc public.dom_codint2 NOT NULL,
    codcidadeorigem public.dom_codint2,
    origem character varying(100),
    codcidadedestino public.dom_codint2,
    destino character varying(100),
    codmercadoria public.dom_codint2,
    descmercadoria character varying(150),
    valormercadoria public.dom_dinheiro2,
    vlmercdeclarado public.dom_dinheiro2,
    quantmercadoria public.dom_quantreal,
    peso public.dom_quantreal,
    largura character varying(30),
    altura character varying(30),
    km public.dom_quantreal,
    kmterra public.dom_quantreal,
    freteempresa public.dom_dinheiro2,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    codmoeda public.dom_codint2,
    codtipocarroceria public.dom_codint2,
    kmpordia public.dom_quantreal,
    totdiasviaegm public.dom_quantreal,
    codrota public.dom_codint2,
    valorbatedores public.dom_dinheiro2,
    obsbatedores text,
    obs text,
    vlpedagio public.dom_dinheiro2,
    vltap public.dom_dinheiro2,
    vltuv public.dom_dinheiro2,
    vltturrs public.dom_dinheiro2,
    vldiversos public.dom_dinheiro2,
    vlmobdesmob public.dom_dinheiro2,
    vlescoltaurbana public.dom_dinheiro2,
    vlciaeletrica public.dom_dinheiro2,
    vlsemaforia public.dom_dinheiro2,
    vlciatelefonica public.dom_dinheiro2,
    vlmunk public.dom_dinheiro2,
    vlbalsa public.dom_dinheiro2,
    vlsegurobalsa public.dom_dinheiro2,
    vlguindaste public.dom_dinheiro2,
    vlfreteterceiro public.dom_dinheiro2,
    vlseguro public.dom_dinheiro2,
    vlicms public.dom_dinheiro2,
    vlfretedias public.dom_dinheiro2,
    vlfretekm public.dom_dinheiro2,
    kmadicional public.dom_dinheiro2,
    vlpre public.dom_dinheiro2,
    vlprf public.dom_dinheiro2,
    vlinversaoecovias public.dom_dinheiro2,
    vlextra public.dom_dinheiro2,
    percadm public.dom_quantreal,
    diasmob public.dom_codint2,
    diascarga public.dom_codint2,
    diastransporte public.dom_codint2,
    diasdescarga public.dom_codint2,
    diasretorno public.dom_codint2,
    quantalteracao public.dom_codint2,
    codveiculo public.dom_codint2,
    datacoleta timestamp without time zone,
    liberado public.dom_resp,
    numeropedido public.dom_codint2,
    codproprietario public.dom_codint2,
    datacoletaprev timestamp without time zone,
    compartilhado public.dom_resp,
    freteretorno public.dom_resp,
    vlfranquiacarga public.dom_dinheiro2,
    vlfranquiadescarga public.dom_dinheiro2,
    porcicms public.dom_porcentagem2,
    obsdespesa text,
    taxaseguro public.dom_quantreal,
    kmtabelafrete public.dom_quantreal,
    tempo public.dom_quantreal,
    codfrete public.dom_codint2,
    tipotabfrete public.dom_codint2
);


ALTER TABLE public.cotfretemerc OWNER TO postgres;

--
-- Name: cotfretemercpedido; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cotfretemercpedido (
    codcotfrete public.dom_codint NOT NULL,
    codcotfretemerc public.dom_codint NOT NULL,
    numero public.dom_codint2 NOT NULL,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codcotfretemercpedido public.dom_codint2 NOT NULL
);


ALTER TABLE public.cotfretemercpedido OWNER TO postgres;

--
-- Name: cotfretetaxa; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cotfretetaxa (
    codcotfretetaxa public.dom_codint NOT NULL,
    tipo public.dom_codint2,
    datainicial timestamp without time zone,
    peso public.dom_quantreal,
    comprimento public.dom_quantreal,
    largura public.dom_quantreal,
    altura public.dom_quantreal,
    km public.dom_quantreal,
    valordia public.dom_quantreal,
    valorkm public.dom_quantreal,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.cotfretetaxa OWNER TO postgres;

--
-- Name: credencial; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.credencial (
    codcredencial public.dom_codintnn NOT NULL,
    usuario public.dom_nomepessoa NOT NULL,
    senha character varying(250) NOT NULL,
    token character varying(250) NOT NULL,
    nometabela character varying(30),
    chavetabela integer,
    datavalidade timestamp without time zone,
    datains timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    usuarioins character varying(15),
    dataalt timestamp without time zone,
    usuarioalt character varying(15)
);


ALTER TABLE public.credencial OWNER TO postgres;

--
-- Name: databi; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.databi (
    coddatabi public.dom_codint NOT NULL,
    data date,
    dia public.dom_codint,
    mes public.dom_codint,
    ano public.dom_codint,
    mesnome character varying(20),
    mesnomeres character varying(3),
    mmaaaa character varying(6),
    aaaamm character varying(6),
    mmddaaaa character varying(10)
);


ALTER TABLE public.databi OWNER TO postgres;

--
-- Name: departamento; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.departamento (
    coddepartamento public.dom_codint2 NOT NULL,
    descricao character varying(70),
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone
);


ALTER TABLE public.departamento OWNER TO postgres;

--
-- Name: deposito; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.deposito (
    coddeposito public.dom_codint NOT NULL,
    codfilial public.dom_codint2,
    descricao character varying(200),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.deposito OWNER TO postgres;

--
-- Name: depositodoca; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.depositodoca (
    coddepositodoca public.dom_codint NOT NULL,
    coddeposito public.dom_codint2,
    descricao character varying(200),
    liberado public.dom_resp,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.depositodoca OWNER TO postgres;

--
-- Name: documento; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.documento (
    coddocumento public.dom_codint NOT NULL,
    codtipodoc public.dom_codint2,
    nometabela character varying(30),
    chavetabela integer,
    iddoc character varying(250),
    nomearq character varying(250),
    status character varying(1),
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone,
    codexterno character varying(250)
);


ALTER TABLE public.documento OWNER TO postgres;

--
-- Name: documentooco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.documentooco (
    coddocumentooco public.dom_codint NOT NULL,
    coddocumento public.dom_codint2,
    codtipoocorrencia public.dom_codint2,
    data timestamp without time zone NOT NULL,
    bcampoaux1 text,
    campoaux1 character varying(250),
    campoaux2 character varying(250),
    codgerrisco public.dom_codint2,
    codtipojustificativa public.dom_codint2,
    obs text,
    protocolo character varying(250),
    status character(1),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.documentooco OWNER TO postgres;

--
-- Name: duplicatapagar; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.duplicatapagar (
    codfornecedor public.dom_codint2 NOT NULL,
    numeronota public.dom_codint2 NOT NULL,
    serie character varying(3) NOT NULL,
    parcela public.dom_codint2 NOT NULL,
    datavencimento timestamp without time zone,
    codinterno public.dom_codint2,
    valorvencimento public.dom_dinheiro2,
    datapagamento timestamp without time zone,
    valorpagamento public.dom_dinheiro2,
    codtransacao public.dom_codint2,
    numeroconta character varying(10),
    codbaixa character(1),
    dataatual timestamp without time zone,
    codfilial public.dom_codint2,
    numeroconhecimento public.dom_codint2,
    datadigpagto timestamp without time zone,
    selecionado public.dom_resp,
    linhadigitavel character varying(70),
    usuariolib character varying(10),
    datalib timestamp without time zone,
    codtipopagto public.dom_codint2,
    codbarra character varying(100),
    chavejurosdescontos character varying(100),
    obs character varying(50),
    chegouboleto public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codfornecedorcc public.dom_codint2,
    codbancofornecedor public.dom_codint2,
    agenciafornecedor character varying(10),
    contafornecedor character varying(25),
    titularfornecedor character varying(70),
    codmoeda public.dom_codint2,
    codmoedapag public.dom_codint2,
    codnota public.dom_codint2,
    codduplicatapagar public.dom_codint2 NOT NULL,
    codfatura public.dom_codint2,
    codacertoproprietario public.dom_codint2,
    codcaixa public.dom_codint2,
    prevista public.dom_resp,
    titularcnpjcpf character varying(14),
    finalidadecredito character varying(10),
    datavencimentobase timestamp without time zone,
    codduplicatapagarorig public.dom_codint2,
    codfornecedorsaldoantec public.dom_codint2,
    chavepix character varying(250),
    numbanco character varying(60),
    codbarbanco character varying(60),
    valorjurosprevisto public.dom_dinheiro2,
    tipochavepix integer
);


ALTER TABLE public.duplicatapagar OWNER TO postgres;

--
-- Name: duplicatareceber; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.duplicatareceber (
    codfatura public.dom_codint NOT NULL,
    parcela public.dom_codint2 NOT NULL,
    datavencimento timestamp without time zone,
    valorvencimento public.dom_dinheiro2,
    datapagamento timestamp without time zone,
    valorpagamento public.dom_dinheiro2,
    codtransacao public.dom_codint2,
    numeroconta character varying(10),
    codbaixa character(1),
    obs public.dom_obs,
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    numboleto character varying(20),
    codbarbanco character varying(60),
    numbanco character varying(60),
    obsboleto character varying(200),
    dataenviobanco timestamp without time zone,
    datadigpagto timestamp without time zone,
    selecionado public.dom_resp,
    carteira character varying(10),
    codtiporecto public.dom_codint2,
    chavejurosdescontos character varying(100),
    datavencimentobase timestamp without time zone,
    codmoeda public.dom_codint2,
    codmoedarec public.dom_codint2,
    creditoconfirmado public.dom_resp,
    datacredito timestamp without time zone,
    codduplicatareceber public.dom_codint2 NOT NULL,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codacertoproprietario public.dom_codint2,
    valorjuros public.dom_quantreal,
    protestoaut public.dom_resp,
    qtddiasvencfat public.dom_codint2,
    codcaixa public.dom_codint2,
    codtransacaodepantec public.dom_codint2,
    codclientesaldoantec public.dom_codint2,
    datafomento timestamp without time zone,
    codfornecedorfomento public.dom_codint2,
    prevista public.dom_resp,
    valoracertoprop public.dom_dinheiro2,
    codduplicatareceberorig public.dom_codint2,
    datalib timestamp without time zone,
    usuariolib character varying(10),
    chavepix character varying(250),
    valordescontoprevisto public.dom_dinheiro2,
    valorjurosprevisto public.dom_dinheiro2
);


ALTER TABLE public.duplicatareceber OWNER TO postgres;

--
-- Name: duplordemcompra; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.duplordemcompra (
    codordemcompra public.dom_codint2 NOT NULL,
    parcela public.dom_codint2 NOT NULL,
    datavencimento timestamp without time zone,
    valorvencimento public.dom_dinheiro2,
    dataatual timestamp without time zone,
    codtipopagto public.dom_codint2,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codduplordemcompra public.dom_codint2 NOT NULL
);


ALTER TABLE public.duplordemcompra OWNER TO postgres;

--
-- Name: ediviagem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.ediviagem (
    codediviagem public.dom_codint NOT NULL,
    data timestamp without time zone,
    numconhec integer,
    serie character varying(3),
    tipocte character varying(1),
    fretemotorista public.dom_dinheiro2,
    pesosaida public.dom_quantreal,
    pesochegada public.dom_quantreal,
    status character(1),
    txt public.dom_text,
    codcliente public.dom_codint2,
    clinome character varying(150),
    clicnpjcpf character varying(20),
    cliie character varying(20),
    codcoleta public.dom_codint2,
    colnome character varying(150),
    colcnpjcpf character varying(20),
    colie character varying(20),
    codentrega public.dom_codint2,
    entnome character varying(150),
    entcnpjcpf character varying(20),
    entie character varying(20),
    codcidadeorigem public.dom_codint2,
    orignome character varying(100),
    origuf character varying(2),
    origibge integer,
    codcidadedestino public.dom_codint2,
    destnome character varying(100),
    destuf character varying(2),
    destibge integer,
    codveiculo public.dom_codint2,
    placa character varying(10),
    codproprietario public.dom_codint2,
    propnome character varying(150),
    propcnpjcpf character varying(20),
    propie character varying(20),
    codmotorista public.dom_codint2,
    motnome character varying(150),
    motcpf character varying(20),
    codmercadoria public.dom_codint2,
    mercdescricao character varying(150),
    mercncm character varying(20)
);


ALTER TABLE public.ediviagem OWNER TO postgres;

--
-- Name: embarcador; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.embarcador (
    codembarcador public.dom_codint NOT NULL,
    nome public.dom_nomepessoa,
    endereco public.dom_endereco2,
    complemento public.dom_complender,
    cep public.dom_cep,
    codcidade public.dom_codint,
    celular public.dom_fone2,
    rg character varying(14),
    fone public.dom_fone2,
    fax public.dom_fone2,
    cgccpf public.dom_cgc2,
    email public.dom_email2,
    dataatual timestamp without time zone,
    perccomissao public.dom_porcentagem2,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    percdescinss public.dom_quantreal,
    descontaseguro public.dom_resp,
    senha character varying(10),
    codmotorista public.dom_codint2,
    bairro public.dom_bairro,
    numero character varying(10),
    somapedagiofrete public.dom_resp,
    codtipocliente public.dom_codint2,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codexterno character varying(20),
    tipoproducao character varying(1),
    statuscad character varying(2)
);


ALTER TABLE public.embarcador OWNER TO postgres;

--
-- Name: embarcadorcont; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.embarcadorcont (
    codembarcador public.dom_codint NOT NULL,
    nome public.dom_nomepessoa2 NOT NULL,
    datanascimento timestamp without time zone,
    fone character varying(25),
    celular character varying(25),
    obs character varying(200),
    codcargo public.dom_codint2,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codembarcadorcont public.dom_codint2 NOT NULL
);


ALTER TABLE public.embarcadorcont OWNER TO postgres;

--
-- Name: embarcadororc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.embarcadororc (
    codembarcadororc public.dom_codint NOT NULL,
    codembarcador public.dom_codint2,
    datainicial timestamp without time zone,
    freteempresa public.dom_dinheiro2,
    valormargem public.dom_dinheiro2,
    porcmargem public.dom_porcentagem2,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codunidadeembarque public.dom_codint2,
    datafim timestamp without time zone,
    codunidadenegocio public.dom_codint2
);


ALTER TABLE public.embarcadororc OWNER TO postgres;

--
-- Name: empresa; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.empresa (
    codempresa public.dom_codint NOT NULL,
    nome public.dom_nomepessoa,
    endereco public.dom_endereco2,
    cep public.dom_cep,
    cgc public.dom_cgc,
    fone public.dom_fone2,
    fax public.dom_fone2,
    codcidade public.dom_codint,
    email public.dom_email2,
    versao character varying(10),
    datavalidade timestamp without time zone,
    chave character varying(10),
    codinstalacao public.dom_codint2,
    nomereduzido character varying(30),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    senhafb character varying(30)
);


ALTER TABLE public.empresa OWNER TO postgres;

--
-- Name: empresas; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.empresas (
    codempresa public.dom_codint NOT NULL,
    nome public.dom_nomepessoa,
    endereco public.dom_endereco2,
    cep public.dom_cep,
    cgc public.dom_cgc,
    fone public.dom_fone2,
    fax public.dom_fone2,
    codcidade public.dom_codint,
    email public.dom_email2,
    logotipo text,
    arqlogo character varying(70),
    dataatual timestamp without time zone,
    bairro public.dom_bairro,
    numero character varying(10),
    codexterno character varying(10),
    seguroemp character varying(200),
    datavencseguroemp timestamp without time zone,
    seguroamb character varying(200),
    datavencseguroamb timestamp without time zone,
    site character varying(100),
    inscricaoestadual character varying(20),
    complemento public.dom_complender,
    nomereduzido character varying(60),
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    wslocalarqcertpamcard character varying(200),
    wslocalarqcertificadonddcargo character varying(200),
    wslocalarqcertificadopolicard character varying(200),
    wsdbtransidclienterodocred character varying(30),
    wsdbtransloginintegracao character varying(50),
    wsdbtranschaveautenticacao character varying(70),
    wsrepomcodcliente character varying(30),
    wsrepomassinaturadigital character varying(70),
    wspolicardentcodigo character varying(30),
    wspolicardchaveautenticacao character varying(70),
    wsdbtranshomologprod public.dom_codint2,
    wspamcardhomologprod public.dom_codint2,
    wspolicardhomologprod public.dom_codint2,
    wsrepomhomologprod public.dom_codint2,
    wsnddcargohomologprod public.dom_codint2,
    wsadetokenacess character varying(70),
    wsadehomologprod public.dom_codint2,
    wsrepomcodclientevpr character varying(30),
    wsrepomhomologprodvpr public.dom_codint2,
    wsrepomassinaturadigitalvpr character varying(70),
    wsefretehomologprod public.dom_codint2,
    wslocalarqcertificadoefrete character varying(200),
    wsefreteintegrador character varying(50),
    wsvalecardhomologprod public.dom_codint2,
    wstipfretehomologprod public.dom_codint2,
    wsatmhomologprod public.dom_codint2,
    wsatmusuario character varying(30),
    wsatmsenha character varying(20),
    wsatmcodigo public.dom_codint2,
    wsadechaveacesso character varying(70),
    wsfastcredhomologprod public.dom_codint2,
    wsfastcredcodcontratante public.dom_codint2,
    wsefretecoduecertifa1 public.dom_codint2,
    wspamcardcoduecertifa1 public.dom_codint2,
    arqlogodanfe character varying(70),
    arqlogositesat character varying(200),
    arqlogodanfesitesat character varying(200),
    wssempararhomologprod public.dom_codint2,
    wssempararcnpj character varying(20),
    wssempararlogin character varying(30),
    wssempararsenha character varying(20),
    wssempararcodueemonitor public.dom_codint2,
    simplesnacional character(1),
    wspagbemhomologprod public.dom_codint2,
    wspagbemcnpj character varying(14),
    wspagbemlogin character varying(30),
    wspagbemsenha character varying(20),
    wspagbemtoken text,
    arqlogocracha character varying(200),
    checklist character varying(250)
);


ALTER TABLE public.empresas OWNER TO postgres;

--
-- Name: empresascom; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.empresascom (
    codempresascom public.dom_codint NOT NULL,
    codempresa integer,
    codgerrisco integer,
    descricao character varying(200),
    senha character varying(70),
    usuario character varying(70),
    urlhomol character varying(150),
    urlprod character varying(150),
    tipohomologprod integer,
    campoaux1 character varying(200),
    campoaux2 character varying(200),
    campoaux3 character varying(200),
    campoaux4 character varying(200),
    campoaux5 character varying(200),
    campoaux6 character varying(200),
    campoaux7 character varying(200),
    token character varying(250),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataalt timestamp without time zone,
    campoaux8 character varying(200),
    campoaux9 character varying(200),
    campoaux10 character varying(200),
    campoaux11 character varying(200),
    campoaux12 character varying(200),
    campoaux13 character varying(200),
    campoaux14 character varying(200),
    campoaux15 character varying(200),
    btoken public.dom_text,
    bcampoaux1 public.dom_text,
    bcampoaux2 public.dom_text
);


ALTER TABLE public.empresascom OWNER TO postgres;

--
-- Name: empresascontacontabil; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.empresascontacontabil (
    codempresacontacontabil public.dom_codint NOT NULL,
    codempresa public.dom_codint2 NOT NULL,
    codcontacontabil public.dom_codint2 NOT NULL,
    liberado public.dom_resp DEFAULT 'S'::bpchar,
    nometabela character varying(30) NOT NULL,
    chavetabela public.dom_codint2 NOT NULL,
    numerocontacontabil character varying(30)
);


ALTER TABLE public.empresascontacontabil OWNER TO postgres;

--
-- Name: empresaspar; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.empresaspar (
    codempresaspar public.dom_codint NOT NULL,
    codempresa public.dom_codint2,
    descricao character varying(200),
    tipo character(1),
    valor character varying(200),
    obs public.dom_text,
    usuarioalt character varying(15),
    dataalt timestamp without time zone
);


ALTER TABLE public.empresaspar OWNER TO postgres;

--
-- Name: equip; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.equip (
    codequip public.dom_codint2 NOT NULL,
    codtipoequip public.dom_codint2,
    descricao character varying(100),
    serie character varying(50),
    fabricante character varying(100),
    modelo character varying(50),
    liberado public.dom_resp,
    status character(1),
    obs text,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    codfornecedor public.dom_codint2,
    datacompra timestamp without time zone,
    valorcompra public.dom_dinheiro2,
    numeronotafiscal character varying(20),
    numeropatrimonio character varying(20),
    databaixa timestamp without time zone,
    codequiplocatual public.dom_codint2,
    numinventario character varying(20),
    responsavel character varying(100)
);


ALTER TABLE public.equip OWNER TO postgres;

--
-- Name: equiplog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.equiplog (
    codequiplog public.dom_codint2 NOT NULL,
    codtipoequiploc public.dom_codint2,
    codequip public.dom_codint2,
    data timestamp without time zone,
    codveiculo public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    obs text,
    dataproxrevisao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    valor public.dom_dinheiro2,
    numeronota public.dom_codint2,
    serie character varying(3),
    codfornecedor public.dom_codint2,
    coditem public.dom_codint2,
    codinterno public.dom_codint2,
    codmotorista public.dom_codint2,
    status public.dom_resp,
    codtipoequiplog public.dom_codint2,
    lacre character varying(250),
    responsavel character varying(100),
    datafimuso timestamp without time zone
);


ALTER TABLE public.equiplog OWNER TO postgres;

--
-- Name: especiedoc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.especiedoc (
    codespeciedoc public.dom_codint2 NOT NULL,
    descricao character varying(100),
    descricaoresumida character varying(5),
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    modelo character varying(15),
    codauxcontabil character varying(30)
);


ALTER TABLE public.especiedoc OWNER TO postgres;

--
-- Name: especiemerc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.especiemerc (
    codespeciemerc public.dom_codint NOT NULL,
    descricao character varying(50),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    liberado public.dom_resp
);


ALTER TABLE public.especiemerc OWNER TO postgres;

--
-- Name: estadiafaixa; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.estadiafaixa (
    codestadiafaixa public.dom_codint NOT NULL,
    nometabela character varying(30),
    chavetabela public.dom_codint,
    data timestamp without time zone,
    status character varying(1),
    horas public.dom_quantreal,
    valorhoraestadiamot public.dom_dinheiro2,
    valorhoraestadiaemp public.dom_dinheiro2,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.estadiafaixa OWNER TO postgres;

--
-- Name: exametreinamento; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.exametreinamento (
    codexametreinamento public.dom_codint2 NOT NULL,
    descricao character varying(100),
    tipo public.dom_codint2,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    validade public.dom_codint2,
    duracao public.dom_codint2,
    datadigitacao timestamp without time zone,
    exigeeficacia public.dom_resp,
    codfornecedor public.dom_codint2,
    liberado public.dom_resp,
    checklist character varying(250)
);


ALTER TABLE public.exametreinamento OWNER TO postgres;

--
-- Name: exametreinamentodoc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.exametreinamentodoc (
    codexametreinamentodoc public.dom_codint NOT NULL,
    codexametreinamento public.dom_codint2,
    codtipodoc public.dom_codint2,
    obrigatorio public.dom_resp,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.exametreinamentodoc OWNER TO postgres;

--
-- Name: exametreinamentoval; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.exametreinamentoval (
    codexametreinamentoval public.dom_codint NOT NULL,
    codexametreinamento public.dom_codint2,
    validade integer,
    idadelimite integer,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.exametreinamentoval OWNER TO postgres;

--
-- Name: exp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.exp (
    codexp public.dom_codint2 NOT NULL,
    nome public.dom_nomepessoa2,
    tipo public.dom_codint2,
    querybase public.dom_nomepessoa2,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    layout public.dom_text
);


ALTER TABLE public.exp OWNER TO postgres;

--
-- Name: expcampo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.expcampo (
    codexp public.dom_codint2 NOT NULL,
    campo public.dom_nomepessoa2 NOT NULL,
    titulo public.dom_nomepessoa2,
    ordem public.dom_codint2,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codexpcampo public.dom_codint2 NOT NULL,
    tipo public.dom_codint2,
    obs text,
    mascara character varying(30),
    alinhamento character(1),
    largura public.dom_codint2,
    caso character(1),
    formato character(1),
    ordemgroup integer
);


ALTER TABLE public.expcampo OWNER TO postgres;

--
-- Name: explog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.explog (
    codexplog public.dom_codint NOT NULL,
    codexp public.dom_codint2,
    obs character varying(200),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.explog OWNER TO postgres;

--
-- Name: extrato; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.extrato (
    codextrato public.dom_codint NOT NULL,
    numeroconta character varying(10),
    descricao character varying(250),
    valor public.dom_dinheiro2,
    codextratoofx public.dom_codint2,
    numdoc character varying(30),
    obs character varying(250),
    status character varying(1),
    tipo character varying(1),
    data timestamp without time zone,
    usuariocanc character varying(15),
    datacanc timestamp without time zone,
    obscanc character varying(250),
    dataalt timestamp without time zone,
    usuarioalt character varying(15),
    datains timestamp without time zone,
    usuarioins character varying(15)
);


ALTER TABLE public.extrato OWNER TO postgres;

--
-- Name: extratoofx; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.extratoofx (
    codextratoofx public.dom_codint NOT NULL,
    numeroconta character varying(10),
    nomearq character varying(250),
    arquivo public.dom_text,
    status character varying(1),
    data timestamp without time zone,
    usuariocanc character varying(15),
    datacanc timestamp without time zone,
    obscanc character varying(250),
    dataalt timestamp without time zone,
    usuarioalt character varying(15),
    datains timestamp without time zone,
    usuarioins character varying(15)
);


ALTER TABLE public.extratoofx OWNER TO postgres;

--
-- Name: fabricante; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.fabricante (
    codfabricante public.dom_codint2 NOT NULL,
    descricao character varying(30),
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.fabricante OWNER TO postgres;

--
-- Name: fatura; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.fatura (
    codfatura public.dom_codint NOT NULL,
    codcondicao public.dom_codint,
    codfilial public.dom_codint,
    codcliente public.dom_codint,
    data timestamp without time zone,
    valor public.dom_dinheiro2,
    atualizada character(1),
    atualizadaadiantamento character(1),
    tipofatura character varying(2),
    pesochegada public.dom_resp,
    historico public.dom_obs,
    historico1 public.dom_obs,
    coditemreceita public.dom_codint2,
    dataexportacao timestamp without time zone,
    dataatual timestamp without time zone,
    datavencimento timestamp without time zone,
    codmercadoria public.dom_codint2,
    numeropedido public.dom_codint2,
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    estadiadestinatario public.dom_resp,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    numeroconta character varying(10),
    obs public.dom_text,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codunidadeembarque public.dom_codint2,
    codcoleta public.dom_codint2,
    codentrega public.dom_codint2,
    codveiculo public.dom_codint2,
    historico2 character varying(200),
    datadigitacao timestamp without time zone,
    codembarcador public.dom_codint2,
    tipofreteempresa public.dom_codint2,
    numfatura public.dom_codint2,
    codremetente public.dom_codint2,
    coddestinatario public.dom_codint2,
    status public.dom_resp,
    codtipoenvio public.dom_codint2,
    numeropostagem character varying(30),
    datapostagem timestamp without time zone,
    dataentrega timestamp without time zone,
    obsenvio text,
    codchequerec public.dom_codint2,
    codtiporecto public.dom_codint2,
    pedidofrete character varying(80),
    codmoeda public.dom_codint2,
    codprotocolofat public.dom_codint2,
    obs1 text,
    codtipohistfat public.dom_codint2,
    codprocesso public.dom_codint2,
    valorant public.dom_quantreal,
    codmotivocanc public.dom_codint2,
    codmotorista public.dom_codint2,
    codadiantamento public.dom_codint2,
    codcontrato public.dom_codint2,
    codnegocio public.dom_codint2,
    codclienteop public.dom_codint2,
    detcanc public.dom_text,
    obscanc public.dom_text,
    precotonempresa public.dom_quantreal2,
    codcavalo public.dom_codint2,
    chavepix character varying(250),
    codveiculoacidente public.dom_codint2,
    codfaturabase public.dom_codint2,
    parcelacopia integer,
    checklist character varying(250)
);


ALTER TABLE public.fatura OWNER TO postgres;

--
-- Name: faturacompra; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.faturacompra (
    codfatura public.dom_codint NOT NULL,
    codfornecedor public.dom_codint,
    codfilial public.dom_codint,
    codcondicao public.dom_codint,
    serie character varying(3),
    data timestamp without time zone,
    valor public.dom_dinheiro2,
    atualizadovista character(1),
    dataexportacao timestamp without time zone,
    dataatual timestamp without time zone,
    datavencimento timestamp without time zone,
    tipofatura character(1),
    obs character varying(200),
    obs1 character varying(200),
    numeronf public.dom_codint2,
    serienf character varying(5),
    datadigitacao timestamp without time zone,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    usuarioaut character varying(15),
    dataaut timestamp without time zone,
    referente character varying(200),
    obspagamento character varying(200),
    codcfop character varying(10),
    dataexpfiscal timestamp without time zone,
    dataexpcontabil timestamp without time zone,
    usuariosolicaut character varying(15),
    historico text,
    codunidadeembarque public.dom_codint2,
    chavenfe character varying(50),
    xmlnfe text,
    codmoeda public.dom_codint2,
    codespeciedoc public.dom_codint2,
    codsistema character(1),
    codprocesso public.dom_codint2,
    codcontrato public.dom_codint2,
    codmotivocanc public.dom_codint2,
    datacanc timestamp without time zone,
    usuariocanc character varying(15),
    detcanc public.dom_text,
    valorantescanc public.dom_dinheiro2,
    codnotadesp public.dom_codint2,
    codfaturadesp public.dom_codint2,
    checklist character varying(250),
    codveiculoacidente integer,
    usuariosolicitanteaut character varying(15),
    usuariosolicitantecanc character varying(15),
    usuarioaudit character varying(10),
    usuariosolicaudit character varying(10),
    dataaudit timestamp without time zone
);


ALTER TABLE public.faturacompra OWNER TO postgres;

--
-- Name: faturacompraaud; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.faturacompraaud (
    codfaturacompraaud public.dom_codint NOT NULL,
    codfatura public.dom_codint2,
    valorajustado public.dom_dinheiro2,
    codfaturarec integer,
    codadiantamento public.dom_codint2,
    data timestamp without time zone,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.faturacompraaud OWNER TO postgres;

--
-- Name: faturacompracon; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.faturacompracon (
    codfaturacompracon public.dom_codint NOT NULL,
    codfatura public.dom_codint,
    numero public.dom_codint,
    pagando integer,
    valor public.dom_quantreal,
    acerto public.dom_quantreal,
    ordem integer,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.faturacompracon OWNER TO postgres;

--
-- Name: faturacompraoco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.faturacompraoco (
    codfaturacompraoco public.dom_codint NOT NULL,
    codfaturacompra public.dom_codint2 NOT NULL,
    codtipoocorrencia public.dom_codint2 NOT NULL,
    descricao text,
    usuarioins character varying(10) NOT NULL,
    datains timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    usuarioalt character varying(10) NOT NULL,
    dataalt timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);


ALTER TABLE public.faturacompraoco OWNER TO postgres;

--
-- Name: faturalog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.faturalog (
    codfaturalog public.dom_codint NOT NULL,
    codfatura public.dom_codint2,
    data timestamp without time zone,
    dataprox timestamp without time zone,
    historico text,
    tipo public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.faturalog OWNER TO postgres;

--
-- Name: feriado; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.feriado (
    data timestamp without time zone NOT NULL,
    obs character varying(200),
    proxdiautil timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.feriado OWNER TO postgres;

--
-- Name: filialportaria; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.filialportaria (
    codfilialportaria public.dom_codint NOT NULL,
    codfilial public.dom_codint2,
    descricao character varying(200),
    liberado public.dom_resp,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.filialportaria OWNER TO postgres;

--
-- Name: filialsalario; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.filialsalario (
    codfilialsalario public.dom_codint NOT NULL,
    codfilial public.dom_codint2 NOT NULL,
    datainicio timestamp without time zone,
    datafim timestamp without time zone,
    salario public.dom_dinheiro2,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.filialsalario OWNER TO postgres;

--
-- Name: filialseg; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.filialseg (
    codfilialseg public.dom_codint NOT NULL,
    codfilial public.dom_codint2,
    codgerrisco public.dom_codint2,
    nomeseguradora character varying(100),
    numeroapolice character varying(100),
    datavencapolice timestamp without time zone,
    tipotransporte character(1),
    valorsublimite public.dom_quantreal,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    listamerc character varying(250),
    listamerc1 character varying(250),
    checklist character varying(250),
    listatipotransporte character varying(250),
    taxaseguro public.dom_quantreal,
    taxaseguro2 public.dom_quantreal,
    km public.dom_quantreal,
    listamerc2 character varying(250),
    listamerc3 character varying(250),
    listamerc4 character varying(250),
    listamerc5 character varying(250)
);


ALTER TABLE public.filialseg OWNER TO postgres;

--
-- Name: filialsegv; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.filialsegv (
    codfilialsegv public.dom_codint NOT NULL,
    codfilial public.dom_codint2,
    datainicio timestamp without time zone,
    precotonini public.dom_quantreal,
    precotonfim public.dom_quantreal,
    vlsegporeixo public.dom_quantreal,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.filialsegv OWNER TO postgres;

--
-- Name: filialsetor; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.filialsetor (
    codfilialsetor public.dom_codintnn NOT NULL,
    codfilial public.dom_codint2 NOT NULL,
    descricao character varying(100) NOT NULL,
    checklist character varying(250),
    datains timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    usuarioins character varying(15),
    dataalt timestamp without time zone,
    usuarioalt character varying(15)
);


ALTER TABLE public.filialsetor OWNER TO postgres;

--
-- Name: filialsped; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.filialsped (
    codfilialsped public.dom_codint NOT NULL,
    codfilial public.dom_codint2,
    data timestamp without time zone,
    tipo public.dom_codint2,
    registro character varying(10),
    codcamposped character varying(20),
    desccamposped text,
    obs text,
    valor public.dom_dinheiro2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codcontacontabil public.dom_codint2,
    conteudo character varying(200)
);


ALTER TABLE public.filialsped OWNER TO postgres;

--
-- Name: fornecedoragenda; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.fornecedoragenda (
    codfornecedor public.dom_codint NOT NULL,
    codagenda public.dom_codint NOT NULL,
    codtipoagenda public.dom_codint2,
    data timestamp without time zone,
    historico text,
    dataproxagenda timestamp without time zone,
    datarealizado timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.fornecedoragenda OWNER TO postgres;

--
-- Name: fornecedorcc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.fornecedorcc (
    codfornecedorcc public.dom_codint2 NOT NULL,
    codbanco public.dom_codint2,
    codfornecedor public.dom_codint,
    agencia character varying(15),
    conta character varying(25),
    titular character varying(100),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    padrao public.dom_resp,
    titularcnpjcpf character varying(14),
    finalidadecredito character varying(10),
    tipoconta character(1),
    chavepix character varying(250),
    qrcodepix public.dom_text,
    tipochavepix integer
);


ALTER TABLE public.fornecedorcc OWNER TO postgres;

--
-- Name: fornecedorcont; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.fornecedorcont (
    codfornecedor public.dom_codint NOT NULL,
    nome public.dom_nomepessoa2 NOT NULL,
    datanascimento timestamp without time zone,
    fone character varying(25),
    celular character varying(25),
    obs character varying(200),
    codcargo public.dom_codint2,
    dataatual timestamp without time zone,
    codfornecedorcont public.dom_codint2 NOT NULL,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    email public.dom_email2,
    login character varying(10),
    senha character varying(10),
    tipologin integer
);


ALTER TABLE public.fornecedorcont OWNER TO postgres;

--
-- Name: fornecedorfil; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.fornecedorfil (
    codfornecedorfil public.dom_codint NOT NULL,
    codfornecedor public.dom_codint2,
    listafil character varying(250),
    codunidadeembarque public.dom_codint2,
    liberado public.dom_resp,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.fornecedorfil OWNER TO postgres;

--
-- Name: fornecedorfiscal; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.fornecedorfiscal (
    codfornecedorfiscal public.dom_codint NOT NULL,
    codfornecedor public.dom_codint2 NOT NULL,
    optantesimples public.dom_resp,
    usuarioins character varying(10),
    datains timestamp without time zone,
    usuarioalt character varying(10),
    dataalt timestamp without time zone
);


ALTER TABLE public.fornecedorfiscal OWNER TO postgres;

--
-- Name: fornecedorpreco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.fornecedorpreco (
    codfornecedor public.dom_codint NOT NULL,
    coditem public.dom_codint2 NOT NULL,
    datainicio timestamp without time zone NOT NULL,
    preco public.dom_quantreal,
    obs public.dom_obs,
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    taxaiss public.dom_porcentagem2,
    coditemfornecedor public.dom_codint2,
    coditemexterno character varying(20),
    codfornecedorpreco public.dom_codint NOT NULL,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    usuarioaut character varying(15),
    dataaut timestamp without time zone
);


ALTER TABLE public.fornecedorpreco OWNER TO postgres;

--
-- Name: frentistas; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.frentistas (
    cod_frentista smallint NOT NULL,
    nome_frentista character varying(40),
    ativo character(1),
    senha character varying(10)
);


ALTER TABLE public.frentistas OWNER TO postgres;

--
-- Name: frete; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.frete (
    codfrete public.dom_codint2 NOT NULL,
    codcliente public.dom_codint2,
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    codmercadoria public.dom_codint2,
    data timestamp without time zone,
    precotonempresa public.dom_quantreal,
    precotonmotorista public.dom_quantreal,
    precotonagregado public.dom_quantreal,
    precotonfrota public.dom_quantreal,
    obs text,
    dataatual timestamp without time zone,
    datavalidade timestamp without time zone,
    codcoleta public.dom_codint2,
    kmextracoleta public.dom_quant,
    codentrega public.dom_codint2,
    kmextraentrega public.dom_quant,
    codunidadeembarque public.dom_codint2,
    taxamercfrete public.dom_quantreal,
    porcadvalor public.dom_quantreal,
    cargadescarga public.dom_dinheiro2,
    valorseccat public.dom_dinheiro2,
    despesaextra public.dom_dinheiro2,
    precotonpedagio public.dom_quantreal,
    freteminimo public.dom_dinheiro2,
    taxaseguro public.dom_quantreal,
    valorentrega public.dom_dinheiro2,
    codgerrisco public.dom_codint2,
    pesominimo public.dom_quantreal,
    codtipoveiculo public.dom_codint2,
    pagaicms character(1),
    icmsembutido public.dom_resp,
    tipotabela public.dom_codint2,
    tempo public.dom_codint2,
    precometrocubico public.dom_quantreal,
    kmlimite public.dom_quantreal,
    pesolimite public.dom_quantreal,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    valorporquant public.dom_dinheiro2,
    valormercadorialimite public.dom_dinheiro2,
    porcacrescimo public.dom_porcentagem2,
    codmotorista public.dom_codint2,
    percentual public.dom_quantreal,
    valor public.dom_dinheiro2,
    pedagiocalceixo public.dom_resp,
    codtipocarroceria public.dom_codint2,
    valordiaria public.dom_dinheiro2,
    codrota public.dom_codint2,
    tipofreteempresa public.dom_codint2,
    contrato character varying(10),
    percreentrega public.dom_quantreal,
    percdevolucao public.dom_quantreal,
    fretemotorista public.dom_quantreal,
    baseicmsdireta public.dom_resp,
    codregiaocol public.dom_codint2,
    codregiaoent public.dom_codint2,
    valorcarroextra public.dom_dinheiro2,
    listacompprest character varying(250),
    fvalorareceber character varying(250),
    ftotalprest character varying(250),
    fbaseicms character varying(250),
    fsaldoemp character varying(250),
    taxaseguro2 public.dom_quantreal,
    checklist public.dom_text,
    codobsfiscal public.dom_codint2,
    codobsfiscal2 public.dom_codint2,
    precotonmotpf public.dom_quantreal,
    precotonagregmisto public.dom_quantreal,
    pesosaidamotorista character(1),
    porcicms public.dom_porcentagem2,
    porcredbaseicms public.dom_porcentagem2,
    precotonclassificacao public.dom_quantreal,
    pedidocliente2 character varying(80),
    status integer,
    codclienteop public.dom_codint2,
    codclienteopfis public.dom_codint2,
    precotonicms public.dom_quantreal,
    indicepauta public.dom_quantreal,
    fatorpauta public.dom_quantreal,
    pedidofrete character varying(250),
    pedidotransf character varying(250),
    codcfop character varying(10),
    emailcte public.dom_email2,
    numeropedido public.dom_codint2,
    codcontrato public.dom_codint2,
    indicepesoliq public.dom_quantreal,
    fchecklistcte character varying(250),
    quantprevista public.dom_quantreal,
    codfornecedorpedagio public.dom_codint2,
    tipopedagio character varying(1),
    resppedagio character varying(1),
    precotonproprio public.dom_quantreal,
    cepinicial public.dom_cep,
    cepfinal public.dom_cep,
    listacep public.dom_text,
    valorseguro public.dom_dinheiro2,
    valorseguro2 public.dom_dinheiro2,
    descsegurosaldomot public.dom_resp,
    descseguro2saldomot public.dom_resp,
    descsegurosaldo public.dom_resp,
    descseguro2saldo public.dom_resp,
    percdifpptmotpptemp public.dom_porcentagem2,
    adiantamentomotorista public.dom_dinheiro2,
    margemminfrota public.dom_porcentagem2,
    margemminfrete public.dom_porcentagem2,
    margemminpf public.dom_porcentagem2,
    margemminpj public.dom_porcentagem2,
    margemminagregado public.dom_porcentagem2,
    margemminagregadomisto public.dom_porcentagem2,
    pedagioembutidofrete public.dom_resp,
    checklistpagto character varying(250),
    precotonfiscal public.dom_quantreal,
    valorfretefiscal public.dom_dinheiro2,
    codespeciemerc public.dom_codint2,
    valorpedagio public.dom_dinheiro2,
    checklistrobosat character varying(250),
    tipofretemotorista integer,
    taxaiss public.dom_porcentagem2,
    codtipodescmodentrega public.dom_codint2,
    codimposto public.dom_codint2,
    checklistdoc character varying(250),
    codnbs public.dom_codint2
);


ALTER TABLE public.frete OWNER TO postgres;

--
-- Name: gen_conhecimentoev; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.gen_conhecimentoev
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.gen_conhecimentoev OWNER TO postgres;

--
-- Name: gen_manifev; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.gen_manifev
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.gen_manifev OWNER TO postgres;

--
-- Name: gen_notaev; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.gen_notaev
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.gen_notaev OWNER TO postgres;

--
-- Name: gerrisco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.gerrisco (
    codgerrisco public.dom_codint2 NOT NULL,
    nome public.dom_nomepessoa2,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    datainclusao timestamp without time zone,
    numeroconta character varying(30),
    cnpj character varying(14),
    tipo public.dom_situacao,
    status public.dom_situacao,
    controlacartoes public.dom_resp,
    checklist character varying(250),
    codfornecedor public.dom_codint2,
    numerocontadeb character varying(30)
);


ALTER TABLE public.gerrisco OWNER TO postgres;

--
-- Name: gerriscocartao; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.gerriscocartao (
    codgerriscocartao public.dom_codint NOT NULL,
    codgerrisco public.dom_codint2,
    numero character varying(50),
    codfilial public.dom_codint2,
    validade timestamp without time zone,
    codunidadeembarque public.dom_codint2,
    status character(1),
    valor public.dom_quantreal,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    numero2 character varying(100),
    modalidade character varying(20)
);


ALTER TABLE public.gerriscocartao OWNER TO postgres;

--
-- Name: gerriscodesp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.gerriscodesp (
    codgerriscodesp public.dom_codint NOT NULL,
    codgerrisco public.dom_codint2,
    operacao character varying(100),
    codtipodesp public.dom_codint2,
    obs public.dom_text,
    codfornecedor public.dom_codint2,
    valor public.dom_dinheiro2,
    embfreteemp public.dom_resp,
    descontasaldomot public.dom_resp,
    faturar public.dom_resp,
    pagar public.dom_resp,
    descontasaldoemp public.dom_resp,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    percentual public.dom_quantreal
);


ALTER TABLE public.gerriscodesp OWNER TO postgres;

--
-- Name: gerriscoop; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.gerriscoop (
    codgerriscoop public.dom_codint NOT NULL,
    codgerrisco public.dom_codint,
    ordem integer,
    apelido character varying(30),
    descricao character varying(100),
    listaop character varying(250),
    listaop1 character varying(250),
    tipo character(2),
    filtrodefault character varying(250),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataalt timestamp without time zone,
    filtrofixo character varying(250),
    tag character varying(100),
    operacao integer,
    listatipoantt character varying(20),
    veiculoproprio public.dom_resp
);


ALTER TABLE public.gerriscoop OWNER TO postgres;

--
-- Name: gerriscopgr; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.gerriscopgr (
    codgerriscopgr public.dom_codint NOT NULL,
    codgerrisco public.dom_codint2 NOT NULL,
    valor public.dom_quantreal,
    tipotransportador smallint,
    diasvalidade smallint,
    usuarioins character varying(10) NOT NULL,
    datains timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    usuarioalt character varying(10) NOT NULL,
    dataalt timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    CONSTRAINT gerriscopgr_diasvalidade_check CHECK ((diasvalidade > 0))
);


ALTER TABLE public.gerriscopgr OWNER TO postgres;

--
-- Name: gerriscopgrmercadoria; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.gerriscopgrmercadoria (
    codgerriscopgrmercadoria public.dom_codint NOT NULL,
    codgerriscopgr public.dom_codint2 NOT NULL,
    codmercadoria public.dom_codint2 NOT NULL
);


ALTER TABLE public.gerriscopgrmercadoria OWNER TO postgres;

--
-- Name: gerriscopgrtipotransporte; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.gerriscopgrtipotransporte (
    codgerriscopgrtipotransporte public.dom_codint NOT NULL,
    codgerriscopgr public.dom_codint2 NOT NULL,
    codtipotransporte public.dom_codint2 NOT NULL
);


ALTER TABLE public.gerriscopgrtipotransporte OWNER TO postgres;

--
-- Name: gerriscor; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.gerriscor (
    codgerriscor public.dom_codint2 NOT NULL,
    codgerrisco public.dom_codint,
    descricao character varying(100),
    codexterno character varying(100),
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone,
    dataalt timestamp without time zone
);


ALTER TABLE public.gerriscor OWNER TO postgres;

--
-- Name: gerriscordet; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.gerriscordet (
    codgerriscordet public.dom_codint NOT NULL,
    codgerriscor public.dom_codint2,
    descricao character varying(100),
    codexterno character varying(100),
    tag character varying(100),
    conteudo character varying(250),
    listaop character varying(250),
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone,
    dataalt timestamp without time zone
);


ALTER TABLE public.gerriscordet OWNER TO postgres;

--
-- Name: grupo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupo (
    codgrupo public.dom_codint NOT NULL,
    codsupergrupo public.dom_codint2,
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    descricao character varying(80),
    obs text,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    ordem integer,
    codexterno character varying(20),
    codcontacontabil public.dom_codint2,
    codauxcontabil character varying(30)
);


ALTER TABLE public.grupo OWNER TO postgres;

--
-- Name: grupoauditoria; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupoauditoria (
    codgrupoauditoria public.dom_codint NOT NULL,
    codgrupo public.dom_codint,
    data timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.grupoauditoria OWNER TO postgres;

--
-- Name: grupoconta; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupoconta (
    codgrupoconta public.dom_codint NOT NULL,
    codgrupousuario public.dom_codint2,
    numeroconta character varying(10),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.grupoconta OWNER TO postgres;

--
-- Name: grupofilial; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupofilial (
    codgrupofilial public.dom_codint2 NOT NULL,
    codgrupousuario public.dom_codint2,
    codfilial public.dom_codint2,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datainclusao timestamp without time zone
);


ALTER TABLE public.grupofilial OWNER TO postgres;

--
-- Name: grupofinanceiro; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupofinanceiro (
    codgrupofinanceiro public.dom_codint2 NOT NULL,
    descricao character varying(70),
    codsupergrupofinanceiro public.dom_codint2,
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    ordem public.dom_codint2
);


ALTER TABLE public.grupofinanceiro OWNER TO postgres;

--
-- Name: grupomercadoria; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupomercadoria (
    codgrupomercadoria public.dom_codint NOT NULL,
    descricao character varying(200),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.grupomercadoria OWNER TO postgres;

--
-- Name: grupomsg; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupomsg (
    codgrupomsg public.dom_codint NOT NULL,
    descricao character varying(80),
    tipo character(1),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.grupomsg OWNER TO postgres;

--
-- Name: grupomsgdet; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupomsgdet (
    codgrupomsgdet public.dom_codint NOT NULL,
    codgrupomsg public.dom_codint2,
    codigo public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.grupomsgdet OWNER TO postgres;

--
-- Name: grupoopcartao; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupoopcartao (
    codgrupoopcartao public.dom_codint NOT NULL,
    codgrupousuario public.dom_codint2,
    codgerrisco public.dom_codint2,
    operacao character varying(100),
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.grupoopcartao OWNER TO postgres;

--
-- Name: gruporeceita; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.gruporeceita (
    codgruporeceita public.dom_codint2 NOT NULL,
    codsupergruporeceita public.dom_codint2,
    descricao character varying(30),
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    datainclusao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.gruporeceita OWNER TO postgres;

--
-- Name: grupousuario; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupousuario (
    nome character varying(20) NOT NULL,
    privilegios character varying(200),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    privilegios2 character varying(200),
    condpagto2 character varying(250),
    condpagto character varying(250),
    privilegios3 character varying(250),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codgrupousuario public.dom_codint2,
    obs text,
    tipoctelib character varying(200),
    tipofaturalib character varying(200),
    cargos character varying(250),
    tipofornecedorlib character varying(200),
    tipofornecedorlib1 character varying(250),
    datalimiterel timestamp without time zone,
    diaslimiterel public.dom_codint2,
    vlmaxpagtit public.dom_quantreal,
    pesosaidamaximo public.dom_quantreal,
    acertopeso public.dom_quantreal,
    diaslimitevencfat integer,
    cargos2 character varying(250),
    tipodesplib1 character varying(250),
    privilegios4 character varying(250),
    fusohorario character varying(5),
    valormercadoriamax public.dom_quantreal,
    negociolib character varying(250),
    examelib character varying(250),
    tipofornecedorlib2 character varying(250),
    listatipoos character varying(250),
    vlmaxcheque public.dom_dinheiro2,
    ueliberadas character varying(250),
    ueliberadas1 character varying(250),
    ueliberadas2 character varying(250),
    ueliberadas3 character varying(250),
    ueliberadas4 character varying(250),
    ueliberadas5 character varying(250),
    listaitembloq character varying(250),
    listaitembloq2 character varying(250),
    valormaxmerclic public.dom_dinheiro2,
    kmmaximolic public.dom_quantreal,
    itemreclib character varying(250),
    itemreclib1 character varying(250),
    itemreclib2 character varying(250),
    checklist character varying(250),
    vlmincheque public.dom_dinheiro2,
    acertoviagmin public.dom_dinheiro2,
    acertoviagmax public.dom_dinheiro2,
    abonoquebramax public.dom_dinheiro2,
    tipofornecedorlib3 character varying(250),
    tipofornecedorlib4 character varying(250),
    tipoccempfunc character varying(250),
    tipoccempfunc1 character varying(250),
    tipoccempfunc2 character varying(250),
    tipoccempfunc3 character varying(250),
    tipodocbloq character varying(250),
    tipodocbloq1 character varying(250),
    tipodesplib2 character varying(250),
    tipodesplib3 character varying(250),
    questlib character varying(250),
    vlmaxos public.dom_dinheiro2,
    valormaxconhecdesp public.dom_dinheiro2,
    uelibconhecmanif character varying(250),
    uelibconhecmanif1 character varying(250),
    uelibconhecmanif2 character varying(250),
    uelibconhecmanif3 character varying(250),
    uelibconhecmanif4 character varying(250),
    uelibconhecmanif5 character varying(250),
    localpneulib character varying(250),
    localpneulib1 character varying(250),
    statuspneulib character varying(250),
    statuspneulib1 character varying(250),
    percmaxdescduprec public.dom_quantreal,
    valormaxdescduprec public.dom_quantreal,
    listacodbilayoutr character varying(250),
    datamaxima timestamp without time zone,
    tipopagtolib character varying(250),
    valormaxpagadpix public.dom_dinheiro2,
    valormaxpagsdpix public.dom_dinheiro2,
    valormaxpedpix public.dom_dinheiro2,
    listatipoocorrencia character varying(250),
    valormaxlibparc public.dom_dinheiro2,
    valoricmsmax public.dom_dinheiro2,
    listaprivilegios text
);


ALTER TABLE public.grupousuario OWNER TO postgres;

--
-- Name: grupousuariogr; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupousuariogr (
    codgrupousuario public.dom_codint2,
    codgrupo public.dom_codint2,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone,
    codgrupousuariogr public.dom_codint NOT NULL
);


ALTER TABLE public.grupousuariogr OWNER TO postgres;

--
-- Name: grupousuariohora; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupousuariohora (
    codgrupousuariohora public.dom_codint DEFAULT nextval('public.codgrupousuariohora_gen'::regclass) NOT NULL,
    codgrupousuario public.dom_codint2,
    diasemana integer,
    horaini character varying(5),
    horafim character varying(5),
    datainivalid timestamp without time zone,
    datafimvalid timestamp without time zone
);


ALTER TABLE public.grupousuariohora OWNER TO postgres;

--
-- Name: grupousuariotipodesc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.grupousuariotipodesc (
    codgrupousuariotipodesc public.dom_codint NOT NULL,
    codgrupousuario public.dom_codint2,
    codtipodesc public.dom_codint2
);


ALTER TABLE public.grupousuariotipodesc OWNER TO postgres;

--
-- Name: hipergrupofinanceiro; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.hipergrupofinanceiro (
    codhipergrupofinanceiro public.dom_codint2 NOT NULL,
    descricao character varying(100),
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    ordem public.dom_codint2
);


ALTER TABLE public.hipergrupofinanceiro OWNER TO postgres;

--
-- Name: imp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.imp (
    codimp integer NOT NULL,
    codinstalacao integer,
    nomeimp public.dom_nomepessoa2,
    descricao public.dom_nomepessoa2,
    descusuario public.dom_nomepessoa2,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datains timestamp without time zone,
    dataalt timestamp without time zone,
    tipo character(1),
    codsistema integer
);


ALTER TABLE public.imp OWNER TO postgres;

--
-- Name: impcampo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.impcampo (
    codimpcampo integer NOT NULL,
    codimp integer,
    campo public.dom_nomepessoa2,
    linha integer,
    coluna integer,
    tamanho integer,
    alinhamento character(1),
    codregra integer,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datains timestamp without time zone,
    dataalt timestamp without time zone,
    tipo character(1),
    conteudo character varying(100)
);


ALTER TABLE public.impcampo OWNER TO postgres;

--
-- Name: implayout; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.implayout (
    codimplayout public.dom_codint NOT NULL,
    codimp public.dom_codint2,
    descricao character varying(100),
    descusuario character varying(100),
    obs character varying(250),
    layout public.dom_text,
    liberado public.dom_resp,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datains timestamp without time zone,
    dataalt timestamp without time zone
);


ALTER TABLE public.implayout OWNER TO postgres;

--
-- Name: implayoutlog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.implayoutlog (
    codimplayoutlog public.dom_codint NOT NULL,
    codimplayout public.dom_codint2,
    descricao character varying(100),
    descusuario character varying(100),
    obs character varying(250),
    layout public.dom_text,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datains timestamp without time zone,
    dataalt timestamp without time zone
);


ALTER TABLE public.implayoutlog OWNER TO postgres;

--
-- Name: implayoutus; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.implayoutus (
    codimplayoutus public.dom_codint NOT NULL,
    codimplayout public.dom_codint2,
    nome character varying(10),
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datains timestamp without time zone,
    dataalt timestamp without time zone
);


ALTER TABLE public.implayoutus OWNER TO postgres;

--
-- Name: imposto; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.imposto (
    codimposto public.dom_codint NOT NULL,
    descricao character varying(200),
    obs public.dom_text,
    cst character varying(10),
    codclasstrib character varying(20),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    checklisttipo character varying(20),
    codimpostowebsaf public.dom_codint2
);


ALTER TABLE public.imposto OWNER TO postgres;

--
-- Name: impostocidade; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.impostocidade (
    codimpostocidade public.dom_codint NOT NULL,
    codimposto public.dom_codint2,
    porccidade public.dom_porcentagem2,
    porcdifcidade public.dom_porcentagem2,
    porcredcidade public.dom_porcentagem2,
    porcefetcidade public.dom_porcentagem2,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.impostocidade OWNER TO postgres;

--
-- Name: impostocidadevinc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.impostocidadevinc (
    codimpostocidadevinc public.dom_codint NOT NULL,
    codimpostocidade public.dom_codint2,
    codcidade public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.impostocidadevinc OWNER TO postgres;

--
-- Name: impostocontrib; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.impostocontrib (
    codimpostocontrib public.dom_codint NOT NULL,
    codimposto public.dom_codint2,
    porccontrib public.dom_porcentagem2,
    porcdifcontrib public.dom_porcentagem2,
    porcredcontrib public.dom_porcentagem2,
    porcefetcontrib public.dom_porcentagem2,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.impostocontrib OWNER TO postgres;

--
-- Name: impostocredpres; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.impostocredpres (
    codimpostocredpres public.dom_codint NOT NULL,
    codimposto public.dom_codint2,
    tipo smallint,
    codcredpres character varying(20),
    porccredpres public.dom_porcentagem2,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.impostocredpres OWNER TO postgres;

--
-- Name: impostouf; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.impostouf (
    codimpostouf public.dom_codint NOT NULL,
    codimposto public.dom_codint2,
    porcuf public.dom_porcentagem2,
    porcdifuf public.dom_porcentagem2,
    porcreduf public.dom_porcentagem2,
    porcefetuf public.dom_porcentagem2,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.impostouf OWNER TO postgres;

--
-- Name: impostoufvinc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.impostoufvinc (
    codimpostoufvinc public.dom_codint NOT NULL,
    codimpostouf public.dom_codint2,
    coduf character varying(2),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.impostoufvinc OWNER TO postgres;

--
-- Name: item; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.item (
    coditem public.dom_codint2 NOT NULL,
    codtipoveiculo public.dom_codint2,
    codgrupo public.dom_codint2,
    kmpreventiva public.dom_quant,
    unidade character varying(3),
    saldo public.dom_quantreal,
    custo numeric(20,9),
    obrigakm character(1),
    coditembaixar public.dom_codint2,
    rateioveiculosproprios public.dom_resp,
    descricao character varying(100),
    obs text,
    liberado public.dom_resp,
    investimento public.dom_resp,
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    gerenciaestoque public.dom_resp,
    custoultcompra numeric(20,9),
    codfabricante character varying(20),
    precovenda numeric(20,6),
    tempoprevisto public.dom_quantreal,
    locacao character varying(20),
    coditemfinanceiro public.dom_codint2,
    contacontabil character varying(25),
    estoqueminimo public.dom_quantreal,
    estoquemaximo public.dom_quantreal,
    diasmanutpreventiva public.dom_codint2,
    creditapiscofins public.dom_resp,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    codcfop character varying(10),
    ncm character varying(20),
    incluicomfrete public.dom_resp,
    centrocusto character varying(20),
    contacontabilest character varying(25),
    obrigatipoequip public.dom_resp,
    porcicmscredito public.dom_porcentagem2,
    viagem character(1),
    saldoconf public.dom_quantreal,
    obrigacfop public.dom_resp,
    codbarra character varying(100),
    obrigacreddebcp public.dom_resp,
    datadigitacao timestamp without time zone,
    permiteacerto public.dom_resp,
    codprodanp character varying(10),
    codean character varying(40),
    codeantrib character varying(40),
    csticmscp character varying(10),
    cstpiscp character varying(10),
    cstcofinscp character varying(10),
    csticmsnfe character varying(10),
    cstpisnfe character varying(10),
    cstcofinsnfe character varying(10),
    prateleira public.dom_codint2,
    lado character varying(10),
    porcaproximp public.dom_porcentagem2,
    cstiss character varying(3),
    classservico character varying(15),
    cavalo character varying(1),
    permlancacertoger public.dom_resp,
    cest character varying(20),
    descricaoreduzida character varying(50),
    impetiqmanut public.dom_resp,
    obrigaordemcompra public.dom_resp,
    obrigamotorista public.dom_resp,
    desprec character(1),
    kmgarantia integer,
    diasgarantia integer,
    chlistgarantia character varying(250),
    codmercadoria public.dom_codint2,
    codauxcontabil character varying(30),
    codnegocio public.dom_codint2,
    obrigaeventopneu public.dom_resp,
    kmprevtolantes public.dom_codint2,
    kmprevtoldepois public.dom_codint2,
    obrigaveiculo public.dom_resp,
    codclienteprincipal public.dom_codint2,
    creditaicms public.dom_resp,
    validancmcp public.dom_resp,
    kmprevaviso integer,
    diasmanutprevaviso integer,
    codconthist public.dom_codint2,
    checklist character varying(250),
    periodminimaue integer,
    datavencimento timestamp without time zone,
    statuscad character varying(2),
    codposicao public.dom_codint2,
    codimpostonfevenda public.dom_codint2,
    codimpostonfecompra public.dom_codint2,
    custocomiva public.dom_quantreal,
    custoultcompracomiva public.dom_quantreal
);


ALTER TABLE public.item OWNER TO postgres;

--
-- Name: itemcfop; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemcfop (
    coditemcfop public.dom_codint NOT NULL,
    coditem public.dom_codint2,
    codcfopentrada character varying(10),
    codcfopsaida character varying(10),
    obs character varying(200),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    cstpiscp character varying(10),
    cstcofinscp character varying(10),
    csticmscp character varying(10),
    cstpisnfe character varying(10),
    cstcofinsnfe character varying(10),
    csticmsnfe character varying(10),
    creditapiscofins public.dom_resp,
    codimpostonfevenda public.dom_codint2,
    codimpostonfecompra public.dom_codint2
);


ALTER TABLE public.itemcfop OWNER TO postgres;

--
-- Name: itemcodalt; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemcodalt (
    coditemcodalt public.dom_codint NOT NULL,
    coditem public.dom_codint2,
    codalternativo character varying(25),
    obs character varying(200),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.itemcodalt OWNER TO postgres;

--
-- Name: itemcot; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemcot (
    codcot public.dom_codint2 NOT NULL,
    coditem public.dom_codint2 NOT NULL,
    quant public.dom_quantreal,
    vlf1 numeric(20,9),
    vlf2 numeric(20,9),
    vlf3 numeric(20,9),
    vlf4 numeric(20,9),
    vlf5 numeric(20,9),
    obs1 character varying(30),
    obs2 character varying(30),
    obs3 character varying(30),
    obs4 character varying(30),
    obs5 character varying(30),
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    codforescolhido public.dom_codint2,
    obs character varying(200),
    codveiculo public.dom_codint2,
    ved character(1),
    datadigitacao timestamp without time zone,
    codmotorista public.dom_codint2,
    descontof1 numeric(20,9),
    descontof2 numeric(20,9),
    descontof3 numeric(20,9),
    descontof4 numeric(20,9),
    descontof5 numeric(20,9),
    valorbrutof1 numeric(20,9),
    valorbrutof2 numeric(20,9),
    valorbrutof3 numeric(20,9),
    valorbrutof4 numeric(20,9),
    valorbrutof5 numeric(20,9),
    km public.dom_quantreal,
    porcipi1 public.dom_porcentagem2,
    porcipi2 public.dom_porcentagem2,
    porcipi3 public.dom_porcentagem2,
    porcipi4 public.dom_porcentagem2,
    porcipi5 public.dom_porcentagem2,
    coditemcot public.dom_codintnn NOT NULL,
    ipi1 public.dom_porcentagem2,
    ipi2 public.dom_porcentagem2,
    ipi3 public.dom_porcentagem2,
    ipi4 public.dom_porcentagem2,
    ipi5 public.dom_porcentagem2,
    codordemcompra public.dom_codint2,
    valorliquidof1 public.dom_quantreal,
    valorliquidof2 public.dom_quantreal,
    valorliquidof3 public.dom_quantreal,
    valorliquidof4 public.dom_quantreal,
    valorliquidof5 public.dom_quantreal,
    coddepartamento public.dom_codint2,
    codcavalo public.dom_codint2,
    valorfrete public.dom_dinheiro2
);


ALTER TABLE public.itemcot OWNER TO postgres;

--
-- Name: itemfilial; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemfilial (
    coditem public.dom_codint2 NOT NULL,
    codfilial public.dom_codint NOT NULL,
    custo numeric(20,9),
    custoultcompra numeric(20,9),
    precovenda public.dom_quantreal,
    saldo public.dom_quantreal,
    dataatual timestamp without time zone,
    estoquemaximo public.dom_quantreal,
    estoqueminimo public.dom_quantreal,
    codfabricante character varying(20),
    locacao character varying(20),
    dtultimaconf timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    coditemfilial public.dom_codint2 NOT NULL,
    prateleira public.dom_codint2,
    lado character varying(10),
    dataultconf timestamp without time zone,
    porcicms public.dom_porcentagem2,
    porcredbaseicms public.dom_porcentagem2,
    valorteto public.dom_quantreal,
    valormaximo public.dom_quantreal,
    valorminimo public.dom_quantreal,
    codposicao public.dom_codint2,
    valorvarejo public.dom_dinheiro2,
    valoratacado public.dom_dinheiro2,
    codclientepreferencial public.dom_codint2,
    perclucromin public.dom_quantreal,
    codobsfiscal public.dom_codint2,
    custofilcomiva public.dom_quantreal,
    custoultcomprafilcomiva public.dom_quantreal
);


ALTER TABLE public.itemfilial OWNER TO postgres;

--
-- Name: itemfinanceiro; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemfinanceiro (
    coditemfinanceiro public.dom_codint2 NOT NULL,
    descricao character varying(70),
    codgrupofinanceiro public.dom_codint2,
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.itemfinanceiro OWNER TO postgres;

--
-- Name: iteminv; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.iteminv (
    coditeminv public.dom_codint NOT NULL,
    coditem public.dom_codint2,
    codfilial public.dom_codint2,
    codnota public.dom_codint2,
    data timestamp without time zone,
    quant public.dom_quantreal,
    saldo public.dom_quantreal,
    obs public.dom_text,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    custounit public.dom_dinheiro2,
    locacao character varying(20),
    prateleira integer,
    lado character varying(10),
    contagem1 public.dom_quantreal,
    contagem2 public.dom_quantreal,
    contagem3 public.dom_quantreal,
    contagem4 public.dom_quantreal,
    contagem5 public.dom_quantreal,
    codposicao public.dom_codint2
);


ALTER TABLE public.iteminv OWNER TO postgres;

--
-- Name: itemnegocio; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemnegocio (
    coditemnegocio public.dom_codint NOT NULL,
    coditem public.dom_codint2,
    codnegocio public.dom_codint2,
    perc public.dom_quantreal,
    valor public.dom_dinheiro,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.itemnegocio OWNER TO postgres;

--
-- Name: itemnota; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemnota (
    codfornecedor public.dom_codint NOT NULL,
    numeronota public.dom_codint NOT NULL,
    serie character varying(3) NOT NULL,
    coditem public.dom_codint NOT NULL,
    codveiculo public.dom_codint2,
    quantidade public.dom_quantreal,
    codinterno public.dom_codint NOT NULL,
    valor public.dom_quantreal2,
    km public.dom_codint2,
    desconto public.dom_porcentagem2,
    garantia character varying(10),
    ved character(1),
    liquido public.dom_dinheiro2,
    codcarreta public.dom_codint2,
    kmcavalo public.dom_quantreal,
    codmotorista public.dom_codint2,
    dataatual timestamp without time zone,
    codfaturareceber public.dom_codint2,
    coditembaixar public.dom_codint2,
    obs character varying(200),
    custounit public.dom_dinheiro2,
    custototal public.dom_dinheiro2,
    codacertomotorista public.dom_codint2,
    naoprevista character(1),
    codcavalo public.dom_codint2,
    codcfop character varying(10),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codproprietario public.dom_codint2,
    creditapiscofins public.dom_resp,
    bombaini public.dom_quantreal,
    bombafim public.dom_quantreal,
    numbomba public.dom_codint2,
    coditemservico public.dom_codint2,
    coditemnotalog public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    porcicms public.dom_quantreal,
    valoricms public.dom_dinheiro2,
    datadigitacao timestamp without time zone,
    baseicms public.dom_quantreal,
    porcipi public.dom_porcentagem2,
    baseipi public.dom_quantreal,
    valoripi public.dom_quantreal,
    substtributaria public.dom_quantreal,
    outrasdespesas public.dom_quantreal,
    exportafiscal public.dom_resp,
    codnota public.dom_codint,
    outrasicms public.dom_dinheiro2,
    isentasicms public.dom_dinheiro2,
    vlcontabil public.dom_dinheiro2,
    valorbasesubstrib public.dom_dinheiro2 DEFAULT 0,
    porcaliqicmssubstrib public.dom_porcentagem2 DEFAULT 0,
    valorsubstrib public.dom_dinheiro2 DEFAULT 0,
    porcpautaicms public.dom_porcentagem2 DEFAULT 0,
    valorpis public.dom_dinheiro2 DEFAULT 0,
    valorcofins public.dom_dinheiro2 DEFAULT 0,
    csticms character varying(10),
    cstpis character varying(10),
    cstcofins character varying(10),
    codacertoproprietario public.dom_codint2,
    valordesccontabil public.dom_dinheiro2,
    codreq public.dom_codint2,
    porcaproximp public.dom_porcentagem2,
    valoraproximp public.dom_dinheiro2,
    cstiss character varying(3),
    baseiss public.dom_dinheiro2,
    porciss public.dom_porcentagem2,
    valoriss public.dom_dinheiro2,
    coditemordemcompra public.dom_codint2,
    codprocesso public.dom_codint2,
    cest character varying(20),
    vbcufdest public.dom_dinheiro2,
    pfcpufdest public.dom_quantreal,
    picmsufdest public.dom_quantreal,
    picmsinter public.dom_quantreal,
    picmsinterpart public.dom_quantreal,
    vfcpufdest public.dom_dinheiro2,
    vicmsufdest public.dom_dinheiro2,
    vicmsufremet public.dom_dinheiro2,
    codpedidoitem public.dom_codint2,
    valoroutras public.dom_quantreal,
    porcredbaseicms public.dom_quantreal,
    creditaicms public.dom_resp,
    codtipocarroceria public.dom_codint2,
    quantcontabil public.dom_quantreal,
    codcontrato public.dom_codint2,
    tara public.dom_quantreal,
    pesobrutocarreg public.dom_quantreal,
    pesobrutodescarreg public.dom_quantreal,
    codcoleta public.dom_codint2,
    codentrega public.dom_codint2,
    mercintacta character(1),
    codnegocio public.dom_codint2,
    codcoletasetor public.dom_codint2,
    codentregasetor public.dom_codint2,
    unidade character varying(3),
    unidadetrib character varying(3),
    pedidocliente character varying(50),
    lacre character varying(50),
    pedclientetransf character varying(50),
    obscompleta public.dom_text,
    vlicmsdeson public.dom_dinheiro2,
    dataacertoprop timestamp without time zone,
    numerodi character varying(50),
    datadi timestamp without time zone,
    codcidadedesembaraco public.dom_codint2,
    datadesembaraco timestamp without time zone,
    tipointermediodi integer,
    codfornexportador public.dom_codint2,
    codfornfabricante public.dom_codint2,
    vlbcii public.dom_dinheiro2,
    vldespadu public.dom_dinheiro2,
    vlii public.dom_dinheiro2,
    vliof public.dom_dinheiro2,
    percbcii public.dom_dinheiro2,
    dataprevfim timestamp without time zone,
    valordesconto public.dom_dinheiro2,
    valorfrete public.dom_dinheiro2,
    cbenef character varying(100),
    vbcicmsefet public.dom_quantreal,
    picmsefet public.dom_quantreal,
    vicmsefet public.dom_quantreal,
    codveiculoacidente public.dom_codint2,
    codcontacontabil public.dom_codint2,
    codconthist public.dom_codint2,
    descricaonfe character varying(250),
    codprodnfe character varying(50),
    naoencheutanque public.dom_resp,
    ncm character varying(40),
    csticmsorig character varying(10),
    cstpisorig character varying(10),
    cstcofinsorig character varying(10),
    vfcpdif public.dom_quantreal,
    pfcpdif public.dom_quantreal,
    vfcpefet public.dom_quantreal,
    vbcfcpst public.dom_quantreal,
    pfcpst public.dom_quantreal,
    vfcpst public.dom_quantreal,
    indsomapisst public.dom_resp,
    indsomacofinsst public.dom_resp,
    tpviatransp integer,
    porcpis public.dom_quantreal,
    vlbasepis public.dom_dinheiro2,
    porccofins public.dom_quantreal,
    vlbasecofins public.dom_dinheiro2,
    porcpisst public.dom_quantreal,
    vlbasepisst public.dom_dinheiro2,
    vlpisst public.dom_dinheiro2,
    porccofinsst public.dom_quantreal,
    vlbasecofinsst public.dom_dinheiro2,
    vlcofinsst public.dom_dinheiro2,
    codmotsai public.dom_codint2,
    coddepartamento public.dom_codint2,
    percdiferimento public.dom_porcentagem2,
    chassi character varying(40),
    codinternoservico public.dom_codint2,
    qbcmonoret public.dom_quantreal,
    porcadremicmsret public.dom_quantreal,
    valoricmsmonoret public.dom_dinheiro2,
    qbcmonoretcomb public.dom_quantreal,
    percadremicmsretcomb public.dom_quantreal,
    vicmsmonoretcomb public.dom_quantreal,
    codcidadecomb public.dom_codint2,
    percorigcomb public.dom_quantreal,
    codimpostonfe public.dom_codint2,
    cstibscbs character varying(10),
    codclasstribibscbs character varying(20),
    basecalculoibscbs public.dom_dinheiro2,
    valoribs public.dom_dinheiro2,
    porcibsuf public.dom_porcentagem2,
    porcdifibsuf public.dom_porcentagem2,
    valordifibsuf public.dom_dinheiro2,
    valordevtribibsuf public.dom_dinheiro2,
    porcredibsuf public.dom_porcentagem2,
    porcefetibsuf public.dom_porcentagem2,
    valoribsuf public.dom_dinheiro2,
    porcibscidade public.dom_porcentagem2,
    porcdifibscidade public.dom_porcentagem2,
    valordifibscidade public.dom_dinheiro2,
    valordevtribibscidade public.dom_dinheiro2,
    porcredibscidade public.dom_porcentagem2,
    porcefetibscidade public.dom_porcentagem2,
    valoribscidade public.dom_dinheiro2,
    porccbs public.dom_porcentagem2,
    porcdifcbs public.dom_porcentagem2,
    valordifcbs public.dom_dinheiro2,
    valordevtribcbs public.dom_dinheiro2,
    porcredcbs public.dom_porcentagem2,
    porcefetcbs public.dom_porcentagem2,
    valorcbs public.dom_dinheiro2,
    codcredpresibs character varying(20),
    porccredpresibs public.dom_porcentagem2,
    valorcredpresibs public.dom_dinheiro2,
    valorcredpresibscondsus public.dom_dinheiro2,
    codcredprescbs character varying(20),
    porccredprescbs public.dom_porcentagem2,
    valorcredprescbs public.dom_dinheiro2,
    valorcredprescbscondsus public.dom_dinheiro2,
    valoribsufcred public.dom_dinheiro2,
    valoribscidadecred public.dom_dinheiro2,
    valorcbscred public.dom_dinheiro2,
    custounitcomiva public.dom_quantreal,
    custototalcomiva public.dom_quantreal,
    codfaturarecibscbs integer,
    codnbs public.dom_codint2,
    indmistbiodiesel public.dom_quantreal,
    tpguia character varying(2),
    nguia character varying(20),
    serieguia character varying(10),
    ufguia public.dom_uf,
    incluicomfrete public.dom_resp
);


ALTER TABLE public.itemnota OWNER TO postgres;

--
-- Name: itemnotaclas; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemnotaclas (
    coditemnotaclas public.dom_codint NOT NULL,
    codinterno public.dom_codint2,
    codfornecedor public.dom_codint2,
    local public.dom_codint2,
    data timestamp without time zone,
    umidadedef public.dom_quantreal,
    impurezadef public.dom_quantreal,
    ardidodef public.dom_quantreal,
    imaturodef public.dom_quantreal,
    quebradodef public.dom_quantreal,
    triguilhodef public.dom_quantreal,
    quireradef public.dom_quantreal,
    umidade public.dom_quantreal,
    impureza public.dom_quantreal,
    ardido public.dom_quantreal,
    imaturo public.dom_quantreal,
    quebrado public.dom_quantreal,
    triguilho public.dom_quantreal,
    quirera public.dom_quantreal,
    umidadepeso public.dom_quantreal,
    impurezapeso public.dom_quantreal,
    ardidopeso public.dom_quantreal,
    imaturopeso public.dom_quantreal,
    quebradopeso public.dom_quantreal,
    triguilhopeso public.dom_quantreal,
    quirerapeso public.dom_quantreal,
    desconta character(1),
    calculardescontos public.dom_resp,
    pesototal public.dom_quantreal,
    pesodescontado public.dom_quantreal,
    obs public.dom_text,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.itemnotaclas OWNER TO postgres;

--
-- Name: itemnotalog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemnotalog (
    coditemnotalog public.dom_codint2 NOT NULL,
    descricao text,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.itemnotalog OWNER TO postgres;

--
-- Name: itemnotamotorista; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemnotamotorista (
    codfornecedor public.dom_codint NOT NULL,
    numeronota public.dom_codint2 NOT NULL,
    serie character varying(3) NOT NULL,
    coditem public.dom_codint2 NOT NULL,
    codveiculo public.dom_codint2 NOT NULL,
    codinterno public.dom_codint2 NOT NULL,
    codmotorista public.dom_codint2 NOT NULL,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    coditemnotamotorista public.dom_codint NOT NULL,
    codnota public.dom_codint2
);


ALTER TABLE public.itemnotamotorista OWNER TO postgres;

--
-- Name: itemnotamotoristalog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemnotamotoristalog (
    codfornecedor public.dom_codint NOT NULL,
    numeronota public.dom_codint2 NOT NULL,
    serie character varying(3) NOT NULL,
    coditem public.dom_codint2 NOT NULL,
    codveiculo public.dom_codint2 NOT NULL,
    codinterno public.dom_codint2 NOT NULL,
    codmotorista public.dom_codint2 NOT NULL,
    datahoraini timestamp without time zone NOT NULL,
    datahorafim timestamp without time zone,
    dataatual timestamp without time zone,
    obs character varying(250),
    tipoencerramento public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    coditemnotamotoristalog public.dom_codint NOT NULL,
    codnota public.dom_codint2
);


ALTER TABLE public.itemnotamotoristalog OWNER TO postgres;

--
-- Name: itemnotamov; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemnotamov (
    coditemnotamov public.dom_codint NOT NULL,
    codinterno public.dom_codint2,
    coditemnotamovent public.dom_codint2,
    quantidade public.dom_quantreal,
    custounit public.dom_quantreal,
    custototal public.dom_quantreal,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    custounitcomiva public.dom_quantreal,
    custototalcomiva public.dom_quantreal
);


ALTER TABLE public.itemnotamov OWNER TO postgres;

--
-- Name: itemnotaobs; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemnotaobs (
    coditemnotaobs public.dom_codint NOT NULL,
    codinterno public.dom_codint2,
    tipo integer,
    obs public.dom_text,
    campo character varying(250),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.itemnotaobs OWNER TO postgres;

--
-- Name: itemnotarem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemnotarem (
    coditemnotarem public.dom_codint NOT NULL,
    coditem public.dom_codint,
    codfornecedor public.dom_codint,
    numeronota public.dom_codint,
    serie character varying(3),
    justificativa text,
    ved public.dom_resp,
    codveiculo public.dom_codint2,
    km public.dom_codint2,
    quantidade public.dom_quantreal,
    valor public.dom_quantreal,
    liquido public.dom_quantreal,
    codmotorista public.dom_codint2,
    obs text,
    coditembaixar public.dom_codint2,
    coditemservico public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codnota public.dom_codint2,
    codreq public.dom_codint2
);


ALTER TABLE public.itemnotarem OWNER TO postgres;

--
-- Name: itemorcvenda; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemorcvenda (
    coditemorcvenda public.dom_codint NOT NULL,
    codorcvenda public.dom_codint2,
    coditem public.dom_codint2,
    quant public.dom_quantreal,
    valorvenda public.dom_quantreal,
    desconto public.dom_quantreal,
    liquido public.dom_quantreal,
    custounit public.dom_quantreal,
    custototal public.dom_quantreal,
    ved character(1),
    obs public.dom_text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.itemorcvenda OWNER TO postgres;

--
-- Name: itemordemcompra; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemordemcompra (
    codordemcompra public.dom_codint2 NOT NULL,
    coditem public.dom_codint2,
    codinterno public.dom_codint2 NOT NULL,
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2,
    quantidade public.dom_quantreal,
    valor public.dom_quantreal,
    desconto public.dom_quantreal,
    liquido public.dom_dinheiro2,
    ved character(1),
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    obs character varying(200),
    km public.dom_quantreal,
    codunidadeembarque public.dom_codint2,
    datadigitacao timestamp without time zone,
    coditemordemcompra public.dom_codint2 NOT NULL,
    datapreventrega timestamp without time zone,
    usuariosaviso character varying(200),
    quantcanc numeric(15,6),
    quantatend numeric(15,6),
    obscanc text,
    naoprevista public.dom_resp,
    codcfop character varying(10),
    vlcontabil public.dom_quantreal,
    codnegocio public.dom_codint2,
    valordesconto public.dom_dinheiro2,
    porcipi public.dom_quantreal,
    baseipi public.dom_quantreal,
    valoripi public.dom_quantreal,
    codveiculoacidente public.dom_codint2,
    vlunitcontabil public.dom_quantreal,
    valordesccontabil public.dom_quantreal,
    vicmsufdest public.dom_dinheiro2,
    quantcontabil public.dom_quantreal,
    coddepartamento public.dom_codint2,
    valorfrete public.dom_dinheiro2,
    codcoleta public.dom_codint2,
    codsolcompraitem public.dom_codint2
);


ALTER TABLE public.itemordemcompra OWNER TO postgres;

--
-- Name: itemrat; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemrat (
    coditemrat public.dom_codint NOT NULL,
    coditem public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    perc public.dom_quantreal,
    valor public.dom_dinheiro,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codnegocio public.dom_codint2
);


ALTER TABLE public.itemrat OWNER TO postgres;

--
-- Name: itemreceita; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemreceita (
    coditemreceita public.dom_codint2 NOT NULL,
    codgruporeceita public.dom_codint2,
    descricao character varying(30),
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    coditemfinanceiro public.dom_codint2,
    contacontabil character varying(25),
    datainclusao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.itemreceita OWNER TO postgres;

--
-- Name: itemsim; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemsim (
    coditemsim public.dom_codint2 NOT NULL,
    coditemsimilar public.dom_codint2,
    coditem public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.itemsim OWNER TO postgres;

--
-- Name: itemsubitem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemsubitem (
    coditem public.dom_codint2 NOT NULL,
    codsubitem public.dom_codint2 NOT NULL,
    quantidade public.dom_quantreal,
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    coditemsubitem public.dom_codint2 NOT NULL
);


ALTER TABLE public.itemsubitem OWNER TO postgres;

--
-- Name: itemtabncm; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemtabncm (
    coditemtabncm public.dom_codint NOT NULL,
    coditem public.dom_codint2,
    ncm character varying(40),
    liberado public.dom_resp,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    ncmsaida character varying(40)
);


ALTER TABLE public.itemtabncm OWNER TO postgres;

--
-- Name: itemtipooperacao; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemtipooperacao (
    coditem public.dom_codint2 NOT NULL,
    codtipooperacao public.dom_codint2 NOT NULL,
    diasmanutpreventiva public.dom_codint2,
    kmpreventiva public.dom_quantreal,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    coditemtipooperacao public.dom_codint2 NOT NULL
);


ALTER TABLE public.itemtipooperacao OWNER TO postgres;

--
-- Name: itemtipoveiculo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemtipoveiculo (
    coditemtipoveiculo public.dom_codint NOT NULL,
    coditem public.dom_codint2,
    codtipoveiculo public.dom_codint2,
    codmodelo public.dom_codint2,
    anofabricacao public.dom_codint2,
    anomodelo public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.itemtipoveiculo OWNER TO postgres;

--
-- Name: itemuf; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.itemuf (
    coditemuf public.dom_codint NOT NULL,
    coditem public.dom_codint2,
    uforig character varying(2),
    ufdest character varying(2),
    porcicms public.dom_quantreal,
    porcicmsnaocontr public.dom_quantreal,
    porcicmsfp public.dom_quantreal,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    csticms character varying(10),
    cstpis character varying(10),
    cstcofins character varying(10),
    listacnae character varying(250),
    codcfop character varying(7),
    listatiponfe character varying(250),
    porcipi public.dom_porcentagem2,
    porcicmsst public.dom_porcentagem2,
    porcpis public.dom_porcentagem2,
    porccofins public.dom_porcentagem2,
    porcpisst public.dom_porcentagem2,
    porccofinsst public.dom_porcentagem2,
    porcadremicmsret public.dom_porcentagem2,
    porcredbase public.dom_porcentagem2,
    porcdiferenciamento public.dom_porcentagem2,
    observacao text,
    codfilial public.dom_codint2
);


ALTER TABLE public.itemuf OWNER TO postgres;

--
-- Name: licenca; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.licenca (
    codlicenca public.dom_codint NOT NULL,
    codtabela public.dom_codint2,
    codtipolicenca public.dom_codint2,
    tabela integer,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    numero character varying(25),
    uf public.dom_uf2,
    status public.dom_situacao,
    obs public.dom_text,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    valor public.dom_dinheiro2
);


ALTER TABLE public.licenca OWNER TO postgres;

--
-- Name: local; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.local (
    codlocal public.dom_codint2 NOT NULL,
    descricao character varying(30),
    ordem public.dom_codint2,
    eixo public.dom_codint2,
    obrigaveiculo public.dom_resp,
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    kmminimo public.dom_quantreal
);


ALTER TABLE public.local OWNER TO postgres;

--
-- Name: log; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.log (
    nome character varying(10) NOT NULL,
    data timestamp without time zone NOT NULL,
    arquivo character varying(30) NOT NULL,
    tipo character(1) NOT NULL,
    obs public.dom_text,
    justificativa public.dom_text,
    tabela character varying(30),
    campochave character varying(50),
    valorchave character varying(30),
    senha character varying(15),
    usuarioaut character varying(15),
    codlog public.dom_codint NOT NULL
);


ALTER TABLE public.log OWNER TO postgres;

--
-- Name: logactiontime; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.logactiontime (
    codlogactiontime public.dom_codint NOT NULL,
    dhini timestamp without time zone,
    dhfim timestamp without time zone,
    servidor character varying(100),
    nomereduzempresa character varying(30),
    usuariocorrente character varying(15),
    classe character varying(100),
    detalhes text
);


ALTER TABLE public.logactiontime OWNER TO postgres;

--
-- Name: logcampo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.logcampo (
    codlogcampo integer NOT NULL,
    codlog integer,
    campo character varying(100),
    antigo character varying(250),
    novo character varying(250),
    liberado character varying(1)
);


ALTER TABLE public.logcampo OWNER TO postgres;

--
-- Name: logcom; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.logcom (
    codlogcom public.dom_codint NOT NULL,
    codgerrisco integer,
    chavetabela integer,
    tabela integer,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    datalog timestamp without time zone,
    obs character varying(200),
    xmlenv public.dom_text,
    xmlresp public.dom_text,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    xmlenvem public.dom_text,
    xmlrespem public.dom_text,
    url character varying(255)
);


ALTER TABLE public.logcom OWNER TO postgres;

--
-- Name: lotecte_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.lotecte_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.lotecte_gen OWNER TO postgres;

--
-- Name: malote; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.malote (
    codmalote public.dom_codint2 NOT NULL,
    data timestamp without time zone,
    remetente public.dom_nomepessoa2,
    destinatario public.dom_nomepessoa2,
    codfilrem public.dom_codint2,
    codfildest public.dom_codint2,
    coduerem public.dom_codint2,
    coduedest public.dom_codint2,
    lacre character varying(30),
    datachegada timestamp without time zone,
    usuariochegada character varying(15),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    obs text,
    transportador public.dom_nomepessoa2,
    registro character varying(30),
    protocolo character varying(30),
    codmotoristarem public.dom_codint2,
    codmotoristadest public.dom_codint2,
    coddepartamento public.dom_codint2
);


ALTER TABLE public.malote OWNER TO postgres;

--
-- Name: malote_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.malote_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.malote_gen OWNER TO postgres;

--
-- Name: malotedoc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.malotedoc (
    codmalotedoc public.dom_codint NOT NULL,
    codmalote public.dom_codint2,
    numero public.dom_codint2,
    codnota public.dom_codint2,
    codadiantamento public.dom_codint2,
    codcheque public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codfatura public.dom_codint2,
    codfaturacompra public.dom_codint2,
    codequip public.dom_codint2,
    obs character varying(250)
);


ALTER TABLE public.malotedoc OWNER TO postgres;

--
-- Name: maloteenv; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.maloteenv (
    codmaloteenv public.dom_codint2 NOT NULL,
    codmalote public.dom_codint2,
    usuariorem character varying(15),
    nomerem public.dom_nomepessoa2,
    usuariodest character varying(15),
    nomedest public.dom_nomepessoa2,
    data timestamp without time zone,
    quant public.dom_codint2,
    volume character varying(30),
    descricao character varying(200),
    datachegada timestamp without time zone,
    usuariochegada character varying(15),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    motivorecusa character varying(200),
    chegou character(1),
    coddepartamento public.dom_codint2
);


ALTER TABLE public.maloteenv OWNER TO postgres;

--
-- Name: maloteenv_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.maloteenv_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.maloteenv_gen OWNER TO postgres;

--
-- Name: manif; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manif (
    codmanif public.dom_codint2 NOT NULL,
    data timestamp without time zone,
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2,
    codfilial public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    fretemotorista public.dom_dinheiro2,
    adiantamentomotorista public.dom_dinheiro2,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    numeroviagmot public.dom_codint2,
    datadigitacao timestamp without time zone,
    obs text,
    datahoraini timestamp without time zone,
    datahorafim timestamp without time zone,
    quantparadas public.dom_codint2,
    obsviagem public.dom_obs,
    codrota public.dom_codint2,
    impresso public.dom_resp,
    kmini public.dom_quantreal,
    kmfim public.dom_quantreal,
    status public.dom_resp,
    vazio public.dom_resp,
    kmprevisto public.dom_quantreal,
    valorpedagio public.dom_dinheiro2,
    lacre character varying(30),
    pedagioembfretemot public.dom_resp,
    datafinalizacao timestamp without time zone,
    codfuncionario public.dom_codint2,
    outrosdescontosmot public.dom_dinheiro2,
    ussolicmonit character varying(15),
    datasolicmonit timestamp without time zone,
    codsolicmonit character varying(20),
    codcoleta public.dom_codint2,
    codentrega public.dom_codint2,
    usuarioconf character varying(15),
    dataconf timestamp without time zone,
    mdfechave character varying(50),
    mdfeprot character varying(50),
    mdfestatus character varying(50),
    versaomdfe character varying(10),
    codemonitor public.dom_codint2,
    emonitorstatus public.dom_codint2,
    mdfedataloteenv timestamp without time zone,
    mdfereciboenv character varying(15),
    mdfedatareciboenv timestamp without time zone,
    mdfemsgret character varying(200),
    usuarioautmdfe character varying(15),
    arqxmlass text,
    tpamb public.dom_resp,
    seriemdfe public.dom_codint2,
    numeromdfe public.dom_codint2,
    codobsfiscal1 public.dom_codint2,
    codobsfiscal2 public.dom_codint2,
    codfrete public.dom_codint2,
    numeroviagemorigem public.dom_codint2,
    fusohorario character varying(5),
    numeroseguro character varying(250),
    expseguro public.dom_resp,
    codgerriscoseg public.dom_codint2,
    historico public.dom_text,
    codproprietario public.dom_codint2,
    tpmodal character varying(1),
    idcsrt character varying(200),
    hashcsrt character varying(200),
    respteccnpj public.dom_nomepessoa2,
    respteccontato character varying(100),
    resptecemail public.dom_email2,
    resptecfone public.dom_fone2,
    qrcodmdfe public.dom_text,
    indcanalverde public.dom_resp,
    codagporto character varying(100),
    tpemis character varying(1),
    codmercadoria public.dom_codint2,
    cean character varying(40),
    ncm character varying(20),
    codtipotransporteantt public.dom_codint2,
    dataprevdescarga timestamp without time zone,
    peso public.dom_quantreal,
    valormercadoria public.dom_quantreal,
    descmercnf character varying(150),
    usuarioconting character varying(10),
    dataconting timestamp without time zone,
    qrcode public.dom_text,
    indcarregaposterior public.dom_resp,
    indaltodesemp character varying(1),
    nrocontrato character varying(50),
    vlcontrato public.dom_dinheiro2,
    checklistpagto character varying(250),
    dhprotdte timestamp without time zone,
    nprotdte character varying(15),
    numerodte character varying(50),
    cnpjcpfresppedagio character varying(20),
    valorfreteantt public.dom_dinheiro2
);


ALTER TABLE public.manif OWNER TO postgres;

--
-- Name: manifchecklist; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manifchecklist (
    codmanif public.dom_codint2 NOT NULL,
    codchecklist public.dom_codint2 NOT NULL,
    data timestamp without time zone,
    codmotorista public.dom_codint2,
    obs text,
    numero public.dom_codint2,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    codmanifchecklist public.dom_codint2 NOT NULL
);


ALTER TABLE public.manifchecklist OWNER TO postgres;

--
-- Name: manifconhecimento; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manifconhecimento (
    codmanif public.dom_codint2 NOT NULL,
    numero public.dom_codint2 NOT NULL,
    porcparticfretemot public.dom_quantreal,
    fretemotoristaprop public.dom_dinheiro2,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    codmanifconhecimento public.dom_codint2 NOT NULL,
    codcidadedescarga public.dom_codint2,
    ordem public.dom_codint2,
    codmanifev public.dom_codint2
);


ALTER TABLE public.manifconhecimento OWNER TO postgres;

--
-- Name: manifdoc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manifdoc (
    codmanifdoc public.dom_codint NOT NULL,
    codmanif public.dom_codint2,
    codtipodoc public.dom_codint2,
    obrigatorio public.dom_resp,
    chegou public.dom_resp,
    obs public.dom_text,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.manifdoc OWNER TO postgres;

--
-- Name: manifev; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manifev (
    codmanifev integer NOT NULL,
    codmanif integer,
    nseqevento integer,
    xcorrecao public.dom_obs3,
    codemonitor integer,
    emonitorstatus integer,
    evstatus integer,
    datahoraenviolote timestamp without time zone,
    datahorareclote timestamp without time zone,
    nprot character varying(50),
    msgret public.dom_obs,
    arqxmlass text,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datains timestamp without time zone,
    dataalt timestamp without time zone,
    codtipoev public.dom_codint2,
    fusohorario character varying(5),
    versaoeventomdfe character varying(10),
    grupoalterado character varying(20),
    campoalterado character varying(20),
    nroitemalterado public.dom_codint2,
    xconduso text,
    codmotorista public.dom_codint2
);


ALTER TABLE public.manifev OWNER TO postgres;

--
-- Name: maniflog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.maniflog (
    codmanif public.dom_codint2 NOT NULL,
    data timestamp without time zone NOT NULL,
    codfilial public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    obs public.dom_obs,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    codmaniflog public.dom_codint2 NOT NULL
);


ALTER TABLE public.maniflog OWNER TO postgres;

--
-- Name: manifnota; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manifnota (
    codmanifnota public.dom_codint NOT NULL,
    codmanif public.dom_codint2,
    codnota public.dom_codint2,
    chavenfe character varying(50),
    valornota public.dom_dinheiro2,
    peso public.dom_quantreal,
    ordem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    segcodbarra character varying(50),
    respseguro public.dom_resp,
    cnpjseguradora public.dom_cgc2,
    nomeseguradora character varying(100),
    numeroapolice character varying(100),
    averbacao character varying(100),
    codmanifev public.dom_codint2
);


ALTER TABLE public.manifnota OWNER TO postgres;

--
-- Name: manifoco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manifoco (
    codmanifoco public.dom_codint NOT NULL,
    codmanif public.dom_codint2,
    codtipoocorrencia public.dom_codint2,
    data timestamp without time zone,
    codtipojustificativa public.dom_codint2,
    status character varying(1),
    obs public.dom_text,
    protocolo character varying(250),
    codgerrisco public.dom_codint2,
    campoaux1 character varying(250),
    campoaux2 character varying(250),
    bcampoaux1 public.dom_text,
    codlogcom public.dom_codint2,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.manifoco OWNER TO postgres;

--
-- Name: manifpag; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manifpag (
    codmanifpag public.dom_codint NOT NULL,
    codmanif public.dom_codint,
    codmanifev public.dom_codint2,
    codcliente public.dom_codint2,
    fretemotorista public.dom_dinheiro2,
    indpag integer,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone,
    indantecipaadiant character varying(1),
    tpantecip character varying(1)
);


ALTER TABLE public.manifpag OWNER TO postgres;

--
-- Name: manifpagb; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manifpagb (
    codmanifpagb public.dom_codint NOT NULL,
    codmanifpag public.dom_codint,
    codbanco integer,
    codagencia integer,
    cnpjipef character varying(14),
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone,
    pix character varying(250)
);


ALTER TABLE public.manifpagb OWNER TO postgres;

--
-- Name: manifpagc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manifpagc (
    codmanifpagc public.dom_codint NOT NULL,
    codmanifpag public.dom_codint,
    tipopag integer,
    codtipo integer,
    valor public.dom_dinheiro2,
    descricao character varying(100),
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.manifpagc OWNER TO postgres;

--
-- Name: manifpagp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manifpagp (
    codmanifpagp public.dom_codint NOT NULL,
    codmanifpag public.dom_codint,
    parcela integer,
    valor public.dom_dinheiro2,
    datavenc timestamp without time zone,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.manifpagp OWNER TO postgres;

--
-- Name: manifxml; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manifxml (
    codmanifxml public.dom_codint NOT NULL,
    numero public.dom_codint2,
    chavemdfe character varying(50),
    cnpjcpf character varying(18),
    nome character varying(70),
    inscricaoestadual character varying(20),
    data timestamp without time zone,
    valor public.dom_dinheiro2,
    digval character varying(200),
    sitmdfe public.dom_codint2,
    nsu character varying(40),
    xml public.dom_text,
    codcliente public.dom_codint2,
    numeromdfe character varying(30),
    serie character varying(3),
    status public.dom_codint2,
    dhrecbto timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codfilial public.dom_codint2,
    obs public.dom_text,
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2,
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    codfornecedorped public.dom_codint2,
    valorpedagio public.dom_dinheiro2,
    peso public.dom_quantreal,
    valormercadoria public.dom_dinheiro2,
    ciot character varying(30),
    cidadecliente character varying(100),
    ufcliente public.dom_uf
);


ALTER TABLE public.manifxml OWNER TO postgres;

--
-- Name: manifxmloco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.manifxmloco (
    codmanifxmloco public.dom_codint NOT NULL,
    codmanifxml public.dom_codint2,
    status character varying(1),
    codtipoocorrencia public.dom_codint2,
    data timestamp without time zone,
    codtipojustificativa public.dom_codint2,
    obs public.dom_text,
    campoaux1 character varying(250),
    campoaux2 character varying(250),
    bcampoaux1 public.dom_text,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.manifxmloco OWNER TO postgres;

--
-- Name: marca; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.marca (
    codmarca public.dom_codint2 NOT NULL,
    descricao character varying(100),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    liberado public.dom_resp
);


ALTER TABLE public.marca OWNER TO postgres;

--
-- Name: megagrupofinanceiro; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.megagrupofinanceiro (
    codmegagrupofinanceiro public.dom_codint2 NOT NULL,
    descricao character varying(100),
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codhipergrupofinanceiro public.dom_codint2,
    ordem public.dom_codint2
);


ALTER TABLE public.megagrupofinanceiro OWNER TO postgres;

--
-- Name: mensagem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.mensagem (
    usuarioorigem character varying(10) NOT NULL,
    usuariodestino character varying(10) NOT NULL,
    data timestamp without time zone NOT NULL,
    assunto character varying(200),
    texto text,
    lida public.dom_resp,
    codveiculo public.dom_codint2,
    tipo public.dom_codint2,
    pendente public.dom_resp,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codmensagem public.dom_codint2 NOT NULL,
    codpessoamsgmgp public.dom_codint2,
    codmotorista public.dom_codint2,
    codfornecedor public.dom_codint2,
    codproprietario public.dom_codint2,
    codcliente public.dom_codint2,
    tipoenvio character(1),
    codtipopessoaoco public.dom_codint2,
    codpessoaoco public.dom_codint2
);


ALTER TABLE public.mensagem OWNER TO postgres;

--
-- Name: menuitem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.menuitem (
    codmenuitem integer DEFAULT nextval('public.codmenuitem_gen'::regclass) NOT NULL,
    codmenusup integer,
    descricao character varying(70),
    ordem integer,
    titulo character varying(200),
    nivel integer,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.menuitem OWNER TO postgres;

--
-- Name: menusup; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.menusup (
    codmenusup integer DEFAULT nextval('public.codmenusup_gen'::regclass) NOT NULL,
    descricao character varying(70),
    ordem integer,
    titulo character varying(200),
    nivel integer,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.menusup OWNER TO postgres;

--
-- Name: mercadoria; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.mercadoria (
    codmercadoria public.dom_codint NOT NULL,
    descricao character varying(100),
    perctonelada public.dom_quantreal,
    percmercadoria public.dom_quantreal,
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    codmercadoriaext character varying(15),
    codtipotransporte public.dom_codint2,
    obs text,
    comprimento character varying(30),
    largura character varying(30),
    altura character varying(30),
    peso character varying(30),
    escolta character varying(200),
    mercadoriaexp public.dom_resp,
    codunidademedida public.dom_codint2,
    descricaocomplementar character varying(100),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    ncm character varying(20),
    permitecompart public.dom_resp,
    percdesccompart public.dom_quantreal,
    vlsublimiteseguro public.dom_quantreal,
    ramoseguradora integer,
    codtipotransporteantt public.dom_codint2,
    checklist public.dom_text,
    codespeciemerc public.dom_codint2,
    cean character varying(40),
    codprodanp character varying(20),
    codmercadoriaprinc public.dom_codint2,
    statuscad character varying(2),
    codgrupomercadoria public.dom_codint2
);


ALTER TABLE public.mercadoria OWNER TO postgres;

--
-- Name: mercadoriancm; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.mercadoriancm (
    codmercadoriancm public.dom_codint NOT NULL,
    codmercadoria public.dom_codint2,
    ncm character varying(20),
    codigoexterno character varying(20),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.mercadoriancm OWNER TO postgres;

--
-- Name: mercadoriatipocar; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.mercadoriatipocar (
    codmercadoriatipocar public.dom_codint NOT NULL,
    codmercadoria public.dom_codint2,
    codtipocarroceria public.dom_codint2,
    padrao public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.mercadoriatipocar OWNER TO postgres;

--
-- Name: mesanobloq; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.mesanobloq (
    mes public.dom_codint2 NOT NULL,
    ano public.dom_codint2 NOT NULL,
    dataatual timestamp without time zone,
    bloqueioconhecimento public.dom_resp,
    bloqueionota public.dom_resp,
    bloqueioadiantamento public.dom_resp,
    bloqueiofinanceiro public.dom_resp,
    bloqueiopagtoconhecimento public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    bloqueionotafrete character(1),
    bloqueiofatura public.dom_resp,
    codmesanobloq public.dom_codint2,
    diaini integer,
    diafim integer,
    bloqueioosreforma character(1),
    bloqueiopapeleta public.dom_resp,
    bloqueioos character(1),
    listatipofat character varying(250),
    bloqueioconhecfrota public.dom_resp,
    checklist character varying(250)
);


ALTER TABLE public.mesanobloq OWNER TO postgres;

--
-- Name: modelo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.modelo (
    codmodelo public.dom_codint2 NOT NULL,
    descricao character varying(30),
    dataatual timestamp without time zone,
    kmprevista public.dom_quantreal,
    kmprevvida1 public.dom_quantreal,
    kmprevvida2 public.dom_quantreal,
    kmprevvida3 public.dom_quantreal,
    kmprevvida4 public.dom_quantreal,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    coditem public.dom_codint2
);


ALTER TABLE public.modelo OWNER TO postgres;

--
-- Name: modeloveic; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.modeloveic (
    codmodelo public.dom_codint2 NOT NULL,
    descricao character varying(50),
    codmarca public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    codigofipe character varying(15)
);


ALTER TABLE public.modeloveic OWNER TO postgres;

--
-- Name: moeda; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.moeda (
    codmoeda public.dom_codint2 NOT NULL,
    descricao public.dom_nomereduz,
    simbolo character varying(5),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.moeda OWNER TO postgres;

--
-- Name: moedacot; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.moedacot (
    codmoeda public.dom_codint2 NOT NULL,
    data timestamp without time zone NOT NULL,
    cotacao public.dom_quantreal,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codmoedacot public.dom_codint NOT NULL
);


ALTER TABLE public.moedacot OWNER TO postgres;

--
-- Name: motivo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motivo (
    codmotivo public.dom_codint NOT NULL,
    descricao character varying(100),
    checklist character varying(250),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.motivo OWNER TO postgres;

--
-- Name: motivobloqueio; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motivobloqueio (
    codmotivobloqueio public.dom_codint2 NOT NULL,
    descricao character varying(70),
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    dataatual timestamp without time zone,
    usuarioalt character varying(15)
);


ALTER TABLE public.motivobloqueio OWNER TO postgres;

--
-- Name: motivocanc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motivocanc (
    codmotivocanc public.dom_codint NOT NULL,
    codtabela integer,
    descricao character varying(70),
    liberado public.dom_resp,
    obs public.dom_text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.motivocanc OWNER TO postgres;

--
-- Name: motivodemissao; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motivodemissao (
    codmotivodemissao public.dom_codint NOT NULL,
    descricao character varying(100),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.motivodemissao OWNER TO postgres;

--
-- Name: motorista; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motorista (
    codmotorista public.dom_codint NOT NULL,
    codcidade public.dom_codint,
    nome public.dom_nomepessoa2,
    endereco public.dom_endereco2,
    complemento public.dom_complender,
    cep public.dom_cep,
    cpf public.dom_cpf2,
    cnh character varying(12),
    admissao timestamp without time zone,
    demissao timestamp without time zone,
    motivodemissao text,
    carteiratrabalho character varying(15),
    salario public.dom_dinheiro2,
    validadecarteira timestamp without time zone,
    celular public.dom_fone2,
    pis character varying(13),
    funcao character varying(40),
    seriecarteira character varying(10),
    tipomoeda character varying(5),
    funcionario public.dom_resp,
    dataatual timestamp without time zone,
    datanascimento timestamp without time zone,
    codcargo public.dom_codint2,
    fone public.dom_fone2,
    dataregistro timestamp without time zone,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    salarioliquido public.dom_dinheiro2,
    tituloeleitor character varying(30),
    agencia character varying(15),
    conta character varying(25),
    banco character varying(15),
    titular character varying(100),
    codfilial public.dom_codint2,
    obs text,
    rg character varying(25),
    apelido character varying(20),
    datafimexperiencia timestamp without time zone,
    fichapessoal text,
    entrevistadesligamento text,
    laudo text,
    obsgerais text,
    senha character varying(10),
    datainclusao timestamp without time zone,
    tipoproducao character(1),
    prontuario character varying(20),
    codunidadeembarque public.dom_codint2,
    nomepai public.dom_nomepessoa2,
    nomemae public.dom_nomepessoa2,
    tamcalca character varying(10),
    tamcamisa character varying(10),
    tamcamiseta character varying(10),
    tamsapato character varying(10),
    tamblusa character varying(10),
    percadiant public.dom_quantreal,
    vladiant public.dom_dinheiro2,
    vlsaldosalario public.dom_dinheiro2,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    usuariolib character varying(15),
    dataferias timestamp without time zone,
    datafimexperiencia2 timestamp without time zone,
    codexterno character varying(15),
    cathabilitacao character varying(20),
    periculosidade character varying(20),
    estadocivil character varying(30),
    nomeconjuge character varying(70),
    codcidadenatural public.dom_codint2,
    limitecredito public.dom_dinheiro2,
    coddepartamento public.dom_codint2,
    bairro public.dom_bairro,
    numero character varying(10),
    comissaofrete public.dom_quantreal,
    dataemissaorg timestamp without time zone,
    tammacacao character varying(15),
    tambata character varying(15),
    tambota character varying(15),
    codbanco public.dom_codint2,
    permiteapontamento public.dom_resp,
    pele character varying(30),
    barba character varying(30),
    bigode character varying(30),
    cabelos character varying(30),
    olhos character varying(20),
    altura character varying(10),
    peso character varying(10),
    sinaisfisicos text,
    orgaorg character varying(30),
    receita character varying(150),
    restricoes character varying(150),
    zonaeleitoral character varying(15),
    secaoeleitoral character varying(15),
    tipoconta public.dom_codint2,
    nextel character varying(20),
    porcinss public.dom_quantreal,
    contrassistencial public.dom_quantreal,
    valorseguro public.dom_dinheiro2,
    cpftitularcc character varying(20),
    nacionalidade character varying(30),
    valordiaria public.dom_dinheiro2,
    complementosalario public.dom_dinheiro2,
    dataprimeiracnh timestamp without time zone,
    celular2 public.dom_fone2,
    titularcnpjcpf character varying(14),
    salariocarteira public.dom_dinheiro2,
    obs2 text,
    exigeautgerrisco public.dom_resp,
    bloqueadoadm public.dom_resp,
    databloqueio timestamp without time zone,
    obsbloq text,
    comissaoestadia public.dom_quantreal,
    codmotoristager public.dom_codint2,
    codmotoristasup public.dom_codint2,
    codcidadecnh public.dom_codint2,
    sexo public.dom_resp,
    operadoracel public.dom_codint2,
    codpessoamgp public.dom_codint2,
    statusmgp character(1),
    numsegcnh character varying(40),
    percadiantcompl public.dom_quantreal,
    tipoenviosms public.dom_resp,
    listaapp character varying(30),
    tiposanguineo character varying(3),
    datafimexperiencia3 timestamp without time zone,
    escolaridade public.dom_codint2,
    email public.dom_email2,
    complescolaridade character varying(200),
    numsus character varying(30),
    codmotivodemissao public.dom_codint2,
    finalidadecredito character varying(10),
    enviaris public.dom_resp,
    dataemissaocnh date,
    codmotivobloqueio public.dom_codint2,
    usuariobloqueio character varying(10),
    listafilportaria character varying(250),
    adicionalnoturno public.dom_resp,
    codnegocio public.dom_codint2,
    reservista character varying(250),
    datareservista timestamp without time zone,
    dataexpctps timestamp without time zone,
    tipomotivodemissao public.dom_codint2,
    chavepix character varying(250),
    qrcodepix public.dom_text,
    checklist character varying(250),
    diastrocasenha integer,
    dataultsenha timestamp without time zone,
    codseguranca character varying(20),
    tipoenviolink integer,
    tipochavepix integer,
    perccomapontamento public.dom_quantreal,
    percadtofrete public.dom_quantreal,
    senhainteg character varying(20),
    statuscad character varying(2),
    datavenccadastro timestamp without time zone,
    checklistmod character varying(250),
    numrenachcnh character varying(20),
    codfornecedor public.dom_codint2,
    codcliente public.dom_codint2,
    etnia integer
);


ALTER TABLE public.motorista OWNER TO postgres;

--
-- Name: motoristaagenda; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motoristaagenda (
    codmotorista public.dom_codint,
    codmotoristaagenda public.dom_codint NOT NULL,
    codtipoagenda public.dom_codint2,
    data timestamp without time zone,
    datadigitacao timestamp without time zone,
    historico text,
    dataproxagenda timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    datarealizado timestamp without time zone
);


ALTER TABLE public.motoristaagenda OWNER TO postgres;

--
-- Name: motoristacont; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motoristacont (
    codmotorista public.dom_codint NOT NULL,
    nome public.dom_nomepessoa2 NOT NULL,
    datanascimento timestamp without time zone,
    fone character varying(25),
    celular character varying(25),
    obs character varying(200),
    codcargo public.dom_codint2,
    dataatual timestamp without time zone,
    codmotoristacont public.dom_codint NOT NULL,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datainclusao timestamp without time zone,
    cpf public.dom_cpf,
    email public.dom_email2,
    rg character varying(25),
    orgaorg character varying(30),
    certnascimento character varying(100),
    codcidadenatural public.dom_codint2,
    sexo public.dom_resp
);


ALTER TABLE public.motoristacont OWNER TO postgres;

--
-- Name: motoristaexame; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motoristaexame (
    codmotorista public.dom_codint NOT NULL,
    descricao character varying(250) NOT NULL,
    dataefetuado timestamp without time zone NOT NULL,
    datavencimento timestamp without time zone,
    dataatual timestamp without time zone,
    obs public.dom_obs,
    codexametreinamento public.dom_codint2,
    numero character varying(25),
    codmotoristaexame public.dom_codint NOT NULL,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datainclusao timestamp without time zone,
    dataeficacia timestamp without time zone,
    codfornecedor public.dom_codint2,
    situacao character(1),
    usuariorealiz character varying(10),
    datarealiz timestamp without time zone,
    usuariorevis character varying(10),
    datarevis timestamp without time zone,
    codmotoristarealiz public.dom_codint2,
    codmotoristarevis public.dom_codint2,
    nota numeric(5,2)
);


ALTER TABLE public.motoristaexame OWNER TO postgres;

--
-- Name: motoristaferiado; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motoristaferiado (
    codmotoristaferiado public.dom_codint NOT NULL,
    codmotorista public.dom_codint2,
    data timestamp without time zone,
    obs character varying(200),
    proxdiautil timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.motoristaferiado OWNER TO postgres;

--
-- Name: motoristagerrisco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motoristagerrisco (
    codmotorista public.dom_codint NOT NULL,
    codgerrisco public.dom_codint2 NOT NULL,
    data timestamp without time zone NOT NULL,
    datavalidade timestamp without time zone,
    numliberacao character varying(30),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    datainscricao timestamp without time zone,
    obs character varying(200),
    liberado public.dom_resp,
    codveiculo public.dom_codint2,
    codproprietario public.dom_codint2,
    status public.dom_codint2,
    tipo public.dom_codint2,
    usuariosolic character varying(15),
    datasolic timestamp without time zone,
    codsolic character varying(15),
    codmotoristagerrisco public.dom_codint NOT NULL,
    datainclusao timestamp without time zone,
    numerocartao public.dom_codint2,
    numerocartao2 character varying(50),
    tipocartao public.dom_codint2,
    liberadoordemcar character(1),
    codexterno character varying(20),
    obscomp public.dom_text,
    numerocartaoadto character varying(50),
    setor2 character varying(50),
    codmercadoria public.dom_codint2,
    valormercadoria public.dom_dinheiro2,
    km public.dom_quantreal,
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2
);


ALTER TABLE public.motoristagerrisco OWNER TO postgres;

--
-- Name: motoristagerriscodesp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motoristagerriscodesp (
    codmotoristagerriscodesp public.dom_codint NOT NULL,
    codmotoristagerrisco public.dom_codint2,
    codtipodesp public.dom_codint2,
    valor public.dom_dinheiro2,
    numero integer,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.motoristagerriscodesp OWNER TO postgres;

--
-- Name: motoristalib; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motoristalib (
    codmotoristalib public.dom_codint NOT NULL,
    codmotorista public.dom_codint2 NOT NULL,
    datalib timestamp without time zone,
    usuariolib character varying(15),
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    liberado character varying(1),
    codveiculo public.dom_codint2,
    codproprietario public.dom_codint2
);


ALTER TABLE public.motoristalib OWNER TO postgres;

--
-- Name: motoristalimite; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motoristalimite (
    codmotoristalimite public.dom_codint NOT NULL,
    codmotorista public.dom_codint2,
    data timestamp without time zone,
    obs text,
    limiteanterior public.dom_dinheiro2,
    limitenovo public.dom_dinheiro2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    metafat public.dom_dinheiro2
);


ALTER TABLE public.motoristalimite OWNER TO postgres;

--
-- Name: motoristalog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motoristalog (
    codmotorista public.dom_codint2 NOT NULL,
    data timestamp without time zone NOT NULL,
    codtipolog public.dom_codint2,
    descricao public.dom_nomepessoa2,
    obs text,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datafim timestamp without time zone,
    codmotoristalog public.dom_codint NOT NULL,
    datainclusao timestamp without time zone,
    usuariosolic character varying(15),
    datasolic timestamp without time zone,
    folga public.dom_resp,
    codpessoalogmgp public.dom_codint2,
    diaria public.dom_resp,
    km public.dom_codint2,
    codveiculo public.dom_codint2,
    codcidade public.dom_codint2
);


ALTER TABLE public.motoristalog OWNER TO postgres;

--
-- Name: motoristarat; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motoristarat (
    codmotoristarat public.dom_codint NOT NULL,
    codmotorista public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    perc public.dom_quantreal,
    valor public.dom_dinheiro,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codnegocio public.dom_codint2
);


ALTER TABLE public.motoristarat OWNER TO postgres;

--
-- Name: motoristaref; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motoristaref (
    codmotoristaref public.dom_codint2 NOT NULL,
    codmotorista public.dom_codint,
    tipo public.dom_codint2,
    nome public.dom_nomepessoa2,
    fone public.dom_fone2,
    endereco public.dom_endereco2,
    codcidade public.dom_codint2,
    celular public.dom_fone2,
    obs character varying(100),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    cep public.dom_cep,
    complemento public.dom_complender,
    bairro public.dom_bairro,
    numero character varying(10),
    status public.dom_resp,
    nomecontato public.dom_nomepessoa2,
    tipocontato public.dom_nomepessoa2,
    codcargo public.dom_codint2,
    codvisitante public.dom_codint2
);


ALTER TABLE public.motoristaref OWNER TO postgres;

--
-- Name: motoristaref_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.motoristaref_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.motoristaref_gen OWNER TO postgres;

--
-- Name: motoristasalev; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.motoristasalev (
    codmotoristasalev public.dom_codint NOT NULL,
    codmotorista public.dom_codint2,
    codtipoevento public.dom_codint2,
    creditodebito character varying(1),
    valortotal public.dom_dinheiro2,
    valordescontado public.dom_dinheiro2,
    valortaxa public.dom_dinheiro2,
    data timestamp without time zone,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codfornecedor public.dom_codint2,
    serie character varying(5),
    gerarcredito character(1),
    despesa character(1),
    tipofaturamento character(1),
    diavencimento public.dom_codint2,
    codexterno character varying(20),
    coditem public.dom_codint2,
    codtipoccempfunc public.dom_codint2,
    descricaores character varying(200),
    codnegocio public.dom_codint2,
    codcfop character varying(11),
    viagem public.dom_resp,
    ved character varying(1),
    especie character varying(5),
    especial public.dom_resp,
    codcliente public.dom_codint2,
    valorreembolso public.dom_dinheiro2,
    coditemreceita public.dom_codint2
);


ALTER TABLE public.motoristasalev OWNER TO postgres;

--
-- Name: movitem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.movitem (
    codmovitem public.dom_codint2 NOT NULL,
    coditem public.dom_codint2,
    data timestamp without time zone,
    datadigitacao timestamp without time zone,
    tipomov public.dom_codint2,
    quant public.dom_quantreal,
    descricao public.dom_nomepessoa2,
    usuario character varying(10),
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.movitem OWNER TO postgres;

--
-- Name: multaorgao; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.multaorgao (
    codmultaorgao public.dom_codint NOT NULL,
    descricao character varying(100),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.multaorgao OWNER TO postgres;

--
-- Name: nbs; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.nbs (
    codnbs public.dom_codint NOT NULL,
    descricao character varying(250) NOT NULL,
    codclasstrib character varying(10),
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.nbs OWNER TO postgres;

--
-- Name: negocio; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.negocio (
    codnegocio public.dom_codint NOT NULL,
    descricao character varying(100),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    liberado public.dom_resp
);


ALTER TABLE public.negocio OWNER TO postgres;

--
-- Name: nota; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.nota (
    codfornecedor public.dom_codint NOT NULL,
    numeronota public.dom_codint2 NOT NULL,
    serie character varying(3) NOT NULL,
    codcondicao public.dom_codint,
    codfilial public.dom_codint,
    data timestamp without time zone,
    valor public.dom_dinheiro2,
    atualizada character(1),
    codfatura public.dom_codint2,
    nffatura character(1),
    obs public.dom_obs,
    datadigitacao timestamp without time zone,
    atualizadovista character(1),
    despesa character(1),
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    codadiantamento public.dom_codint2,
    datavencimento timestamp without time zone,
    codveiculo public.dom_codint2,
    km public.dom_codint2,
    afaturar public.dom_resp,
    codunidadenegocio public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    pis public.dom_quantreal,
    cofins public.dom_quantreal,
    creditapiscofins public.dom_resp,
    datafim timestamp without time zone,
    codcfop character varying(10),
    especie character varying(5),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    valoriss public.dom_dinheiro2,
    valoricms public.dom_dinheiro2,
    valorimpsfed public.dom_dinheiro2,
    codfaturaiss public.dom_codint2,
    codfaturaicms public.dom_codint2,
    codfaturaimpsfed public.dom_codint2,
    datainioficina timestamp without time zone,
    datafimoficina timestamp without time zone,
    vlcreditoicms public.dom_dinheiro2,
    codordemcompra public.dom_codint2,
    codagrupador public.dom_codint2,
    historico text,
    usuarioaut character varying(10),
    dataaut timestamp without time zone,
    vlcontabil public.dom_dinheiro2,
    vlicms public.dom_dinheiro2,
    vloutrasicms public.dom_dinheiro2,
    vlisentasicms public.dom_dinheiro2,
    vlbaseicmssubsttrib public.dom_dinheiro2,
    vlicmssubsttrib public.dom_dinheiro2,
    vloutrasipi public.dom_dinheiro2,
    vlisentasipi public.dom_dinheiro2,
    vlipi public.dom_dinheiro2,
    vlbaseiss public.dom_dinheiro2,
    vliss public.dom_dinheiro2,
    vloutrasiss public.dom_dinheiro2,
    vlisentasiss public.dom_dinheiro2,
    vlinssret public.dom_dinheiro2,
    vlirrfret public.dom_dinheiro2,
    vlpisret public.dom_dinheiro2,
    vlcofinsret public.dom_dinheiro2,
    vlcsllret public.dom_dinheiro2,
    codfaturainss public.dom_codint2,
    codfaturapis public.dom_codint2,
    codfaturacofins public.dom_codint2,
    codfaturairrf public.dom_codint2,
    codfaturacsll public.dom_codint2,
    usuariosolicaut character varying(15),
    vldifaliqicms public.dom_dinheiro2,
    codmotorista public.dom_codint2,
    status public.dom_codint2,
    referente character varying(200),
    obspagamento character varying(200),
    dataexpfiscal timestamp without time zone,
    dataexpcontabil timestamp without time zone,
    codmotoristaini public.dom_codint2,
    codmotoristafim public.dom_codint2,
    valortot public.dom_quantreal,
    datamotorista timestamp without time zone,
    chavenfe character varying(50),
    xmlnfe text,
    codmoeda public.dom_codint2,
    tempoexecucao public.dom_quantreal,
    dataemissao timestamp without time zone,
    tipo public.dom_codint2,
    vlbaseicms public.dom_dinheiro2,
    obsfiscal character varying(200),
    box character varying(20),
    faturafornecedor public.dom_codint2,
    exportafiscal public.dom_resp,
    usuariosolicconf character varying(15),
    datasolicconf timestamp without time zone,
    codnota public.dom_codint NOT NULL,
    historico2 text,
    codcliente public.dom_codint2,
    numeronf public.dom_codint2,
    serienf public.dom_codint2,
    tiponf public.dom_codint2,
    nfetpamb character(1),
    nfeversao character varying(10),
    modelonf character(2),
    obsentrega public.dom_obs3,
    obscorponf public.dom_obs3,
    valorseguro public.dom_dinheiro2,
    valorfrete public.dom_dinheiro2,
    numerotransp public.dom_quantreal,
    freteporconta public.dom_codint2,
    codveiculotransp public.dom_codint2,
    qtdetransportada public.dom_quantreal,
    pesobruto public.dom_quantreal,
    pesoliquido public.dom_quantreal,
    especiemerc character varying(20),
    codemonitor integer,
    emonitorstatus integer,
    nfestatus integer,
    nfedatahoraenviolote timestamp without time zone,
    nfedatahorareclote timestamp without time zone,
    nfenreclote character varying(50),
    nfenprot character varying(50),
    nfemsgret public.dom_obs,
    nfechavecontingencia character varying(50),
    nfejustcompl public.dom_obs,
    tiponfe public.dom_codint2,
    valordesccontabil public.dom_dinheiro2,
    nfefusohorario character varying(5),
    nfecrt character varying(1),
    valoroutras public.dom_dinheiro2,
    codtransportador public.dom_codint2,
    icmsretido public.dom_resp,
    codsituacao public.dom_codint2,
    nfefusohorarioautor character varying(5),
    codcfopobs character varying(100),
    creditaicms character varying(1),
    vfcpufdest public.dom_dinheiro2,
    vicmsufdest public.dom_dinheiro2,
    vicmsufremet public.dom_dinheiro2,
    codfatpagicmsufdest public.dom_codint2,
    codordemcar public.dom_codint2,
    codorcvenda public.dom_codint2,
    codobsfiscal public.dom_codint2,
    codobsfiscal2 public.dom_codint2,
    codfornecedorprod public.dom_codint2,
    vlicmsdeson public.dom_dinheiro2,
    tpemis character varying(1),
    idcsrt character varying(200),
    dataprevfim timestamp without time zone,
    hashcsrt character varying(200),
    respteccnpj public.dom_nomepessoa2,
    respteccontato character varying(100),
    resptecemail public.dom_email2,
    resptecfone character varying(20),
    qrcodnfe public.dom_text,
    natfrete integer,
    natfretebc integer,
    indfinal character varying(1),
    codmotivocanc public.dom_codint2,
    datacanc timestamp without time zone,
    usuariocanc character varying(10),
    detcanc public.dom_text,
    codcoleta public.dom_codint2,
    codentrega public.dom_codint2,
    codveiculoacidente public.dom_codint2,
    expseguro public.dom_resp,
    codgerriscoseg public.dom_codint2,
    cnpjseguradora public.dom_cgc2,
    nomseguradora character varying(100),
    numeroapolice character varying(100),
    numeroseguro character varying(100),
    numerosegurocanc character varying(100),
    dataenvioseg timestamp without time zone,
    dataenviosegcanc timestamp without time zone,
    nfeindpresencial integer,
    marcavoltransp character varying(250),
    checklist character varying(250),
    prioridade public.dom_resp,
    coddepartamento public.dom_codint2,
    usuariosolicitanteaut character varying(15),
    usuariosolicitantecanc character varying(15),
    optantesimples public.dom_resp,
    qbcmonoret public.dom_quantreal,
    valoricmsmonoret public.dom_dinheiro2,
    codtipopagto public.dom_codint2,
    usuarioaudit character varying(10),
    dataaudit timestamp without time zone,
    usuariosolicaudit character varying(10),
    qbcmonoretcomb public.dom_quantreal,
    vicmsmonoretcomb public.dom_quantreal,
    placaaux character varying(10),
    nomemotoristaaux public.dom_nomepessoa2,
    ufaux character(2),
    rntcaux character varying(12),
    tiponfedebito integer,
    tiponfecredito integer,
    basecalculoibscbs public.dom_dinheiro2,
    valoribs public.dom_dinheiro2,
    valordifibsuf public.dom_dinheiro2,
    valordevtribibsuf public.dom_dinheiro2,
    valoribsuf public.dom_dinheiro2,
    valordifibscidade public.dom_dinheiro2,
    valordevtribibscidade public.dom_dinheiro2,
    valoribscidade public.dom_dinheiro2,
    valordifcbs public.dom_dinheiro2,
    valordevtribcbs public.dom_dinheiro2,
    valorcbs public.dom_dinheiro2,
    valorcredpresibs public.dom_dinheiro2,
    valorcredpresibscondsus public.dom_dinheiro2,
    valorcredprescbs public.dom_dinheiro2,
    valorcredprescbscondsus public.dom_dinheiro2,
    valoribsufcred public.dom_dinheiro2,
    valoribscidadecred public.dom_dinheiro2,
    valorcbscred public.dom_dinheiro2,
    codfaturarecibscbs integer,
    quilowatthora public.dom_quantreal2,
    codfilialsetor public.dom_codint2
);


ALTER TABLE public.nota OWNER TO postgres;

--
-- Name: notaadiant; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.notaadiant (
    codfornecedor public.dom_codint2 NOT NULL,
    numeronota public.dom_codint2 NOT NULL,
    serie character varying(3) NOT NULL,
    codadiantamento public.dom_codint2 NOT NULL,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codnota public.dom_codint2,
    codnotaadiant public.dom_codint NOT NULL
);


ALTER TABLE public.notaadiant OWNER TO postgres;

--
-- Name: notadev; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.notadev (
    codnotadev public.dom_codint NOT NULL,
    codnota public.dom_codint2,
    chavenfe character varying(100),
    obs text,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    codnotadevolvida public.dom_codint2
);


ALTER TABLE public.notadev OWNER TO postgres;

--
-- Name: notaev; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.notaev (
    codnotaev integer NOT NULL,
    codnota integer,
    codtipoev public.dom_codint2,
    nseqevento integer,
    fusohorario character varying(5),
    xcorrecao public.dom_obs3,
    codemonitor integer,
    emonitorstatus integer,
    evstatus integer,
    datahoraenviolote timestamp without time zone,
    datahorareclote timestamp without time zone,
    nprot character varying(50),
    msgret public.dom_obs,
    arqxmlass text,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datains timestamp without time zone,
    dataalt timestamp without time zone,
    versaoeventonfe character varying(10),
    grupoalterado character varying(20),
    campoalterado character varying(20),
    nroitemalterado public.dom_codint2,
    xconduso text,
    codproprietario public.dom_codint2
);


ALTER TABLE public.notaev OWNER TO postgres;

--
-- Name: notafilialsetor; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.notafilialsetor (
    codnotafilialsetor public.dom_codintnn NOT NULL,
    codnota public.dom_codint2 NOT NULL,
    codfilialsetor public.dom_codint2 NOT NULL,
    obs public.dom_obs,
    datains timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    usuarioins character varying(15),
    dataalt timestamp without time zone,
    usuarioalt character varying(15)
);


ALTER TABLE public.notafilialsetor OWNER TO postgres;

--
-- Name: notalog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.notalog (
    codnotalog public.dom_codint NOT NULL,
    codnota public.dom_codint2,
    codmotorista public.dom_codint2,
    codtiponotalog public.dom_codint2,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    kmini public.dom_quantreal,
    kmfim public.dom_quantreal,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codmotoristafim public.dom_codint2,
    obsfim text
);


ALTER TABLE public.notalog OWNER TO postgres;

--
-- Name: notaoco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.notaoco (
    codnotaoco public.dom_codint NOT NULL,
    codnota public.dom_codint2,
    codtipoocorrencia public.dom_codint2,
    data timestamp without time zone,
    codtipojustificativa public.dom_codint2,
    obs public.dom_text,
    listacodinterno character varying(250),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.notaoco OWNER TO postgres;

--
-- Name: notastatus; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.notastatus (
    codnotastatus public.dom_codint2 NOT NULL,
    numeronota public.dom_codint2,
    serie character varying(5),
    codmotorista public.dom_codint2,
    codveiculo public.dom_codint2,
    status character(1),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codfilial public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    datainut timestamp without time zone,
    nprotinut character varying(15),
    usuarioinut character varying(10),
    obsinut character varying(100),
    nfemsgret character varying(200),
    codemonitor public.dom_codint2,
    versaonfe character varying(10),
    emonitorstatus public.dom_codint2,
    codmotivocanc public.dom_codint2
);


ALTER TABLE public.notastatus OWNER TO postgres;

--
-- Name: notastatus_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.notastatus_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.notastatus_gen OWNER TO postgres;

--
-- Name: notaxml; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.notaxml (
    codnotaxml public.dom_codint NOT NULL,
    codnota public.dom_codint2,
    chavenfe character varying(50),
    cnpjcpf character varying(18),
    nome character varying(70),
    inscricaoestadual character varying(20),
    data timestamp without time zone,
    valor public.dom_dinheiro2,
    entradasaida character(1),
    digval character varying(200),
    sitnfe public.dom_codint2,
    sitconf public.dom_codint2,
    dhrecbto timestamp without time zone,
    nsu character varying(40),
    xml text,
    codfornecedor public.dom_codint2,
    numeronota character varying(30),
    serie character varying(3),
    status public.dom_codint2,
    statusemonitor public.dom_codint2,
    codemonitor public.dom_codint2,
    codempresa public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codfilial public.dom_codint2,
    obs text,
    codcliente public.dom_codint2,
    clientecnpj character varying(20),
    clienteie character varying(20),
    clientenome character varying(100),
    usuariocienciaop character varying(20),
    datacienciaop timestamp without time zone,
    usuariodownload character varying(20),
    datadownload timestamp without time zone,
    usuariodescop character varying(20),
    datadescop timestamp without time zone,
    usuarioopnaoreal character varying(20),
    dataopnaoreal timestamp without time zone,
    obsopnaoreal character varying(200),
    tipoes character varying(1),
    peso public.dom_quantreal,
    destcnpj character varying(20),
    destie character varying(20),
    destnome character varying(100),
    destendres character varying(250),
    coddestinatario public.dom_codint2,
    entregacnpj character varying(20),
    entregaie character varying(20),
    entreganome character varying(100),
    entregaendres character varying(250),
    codentrega public.dom_codint2,
    placa character varying(10),
    codveiculo public.dom_codint2,
    codproprietario public.dom_codint2,
    obsimp public.dom_text,
    novaobsnfe public.dom_text,
    statusimp integer,
    codordemcar public.dom_codint2,
    numeropedido public.dom_codint2,
    codfrete public.dom_codint2,
    codmotorista public.dom_codint2,
    checklist character varying(250),
    mercadoria character varying(250),
    codmercadoria public.dom_codint2,
    transpcnpj public.dom_cgc2,
    transpnome character varying(150),
    transpie character varying(20),
    transpend public.dom_endereco2,
    transpcodcidade public.dom_codint2
);


ALTER TABLE public.notaxml OWNER TO postgres;

--
-- Name: notaxmloco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.notaxmloco (
    codnotaxmloco public.dom_codint NOT NULL,
    codnotaxml public.dom_codint2,
    status character varying(1),
    codtipoocorrencia public.dom_codint2,
    data timestamp without time zone,
    codtipojustificativa public.dom_codint2,
    obs public.dom_text,
    campoaux1 character varying(250),
    campoaux2 character varying(250),
    bcampoaux1 public.dom_text,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.notaxmloco OWNER TO postgres;

--
-- Name: nsufastcred_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.nsufastcred_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.nsufastcred_gen OWNER TO postgres;

--
-- Name: numeronotacp_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.numeronotacp_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.numeronotacp_gen OWNER TO postgres;

--
-- Name: numeronotaos_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.numeronotaos_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.numeronotaos_gen OWNER TO postgres;

--
-- Name: obsfiscal; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.obsfiscal (
    codobsfiscal public.dom_codint2 NOT NULL,
    descricao character varying(200),
    descricao2 character varying(200),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    obscompleto text,
    tipo public.dom_codint2,
    mercexportacao public.dom_resp
);


ALTER TABLE public.obsfiscal OWNER TO postgres;

--
-- Name: obsfiscalue; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.obsfiscalue (
    codobsfiscalue public.dom_codint NOT NULL,
    codobsfiscal public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.obsfiscalue OWNER TO postgres;

--
-- Name: orcdespesa; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.orcdespesa (
    ano public.dom_codint2 NOT NULL,
    mes public.dom_codint2 NOT NULL,
    codunidadeembarque public.dom_codint2 NOT NULL,
    coditem public.dom_codint2 NOT NULL,
    valor public.dom_dinheiro2,
    percfat public.dom_porcentagem2,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codorcdespesa public.dom_codint2 NOT NULL,
    codnegocio public.dom_codint2
);


ALTER TABLE public.orcdespesa OWNER TO postgres;

--
-- Name: orcreceita; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.orcreceita (
    ano public.dom_codint2 NOT NULL,
    mes public.dom_codint2 NOT NULL,
    codunidadeembarque public.dom_codint2 NOT NULL,
    valor public.dom_dinheiro2,
    peso public.dom_quantreal,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codorcreceita public.dom_codint2 NOT NULL,
    codnegocio public.dom_codint2,
    coditem public.dom_codint2,
    vlmargembruta public.dom_dinheiro2,
    vlmargemliq public.dom_dinheiro2
);


ALTER TABLE public.orcreceita OWNER TO postgres;

--
-- Name: orcvenda; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.orcvenda (
    codorcvenda public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    codcondicao public.dom_codint2,
    codfilial public.dom_codint2,
    codmotorista public.dom_codint2,
    codmoeda public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    data timestamp without time zone,
    obs public.dom_text,
    status character(1),
    datavalidade timestamp without time zone,
    valorfretemot public.dom_dinheiro2,
    fretepago character(1),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.orcvenda OWNER TO postgres;

--
-- Name: ordemcar; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.ordemcar (
    codordemcar public.dom_codint2 NOT NULL,
    numero public.dom_codint2,
    codfilial public.dom_codint2,
    codcliente public.dom_codint2,
    codremetente public.dom_codint2,
    coddestinatario public.dom_codint2,
    numeropedido public.dom_codint2,
    data timestamp without time zone,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    codcoleta public.dom_codint2,
    codentrega public.dom_codint2,
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2,
    codmercadoria public.dom_codint2,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    pesosaida public.dom_quantreal,
    codunidadeembarque public.dom_codint2,
    precotonmotorista public.dom_quantreal2,
    obs character varying(200),
    obs1 character varying(200),
    obs2 character varying(200),
    obs3 character varying(200),
    obs4 character varying(200),
    quantmercadoria public.dom_quantreal,
    especiemercadoria character varying(30),
    tipo character(1),
    numeroviagem public.dom_codint2,
    codgerrisco public.dom_codint2,
    codconsignatario public.dom_codint2,
    cancelado public.dom_resp,
    datacanc timestamp without time zone,
    usuariocanc character varying(15),
    codrota public.dom_codint2,
    listacoddestinatario character varying(200),
    pedidofrete character varying(80),
    pedidotransf character varying(80),
    pedidocliente2 character varying(80),
    codespeciemerc public.dom_codint2,
    kmini public.dom_codint2,
    emitida character(1) DEFAULT 'N'::bpchar,
    codembarcador public.dom_codint2,
    impresso public.dom_resp,
    motivocancelado text,
    libgerriscoprop character varying(30),
    tnfrete character varying(30),
    contratopedido character varying(30),
    ordemvenda character varying(30),
    protocolo character varying(30),
    parceiro character varying(30),
    pesocubado public.dom_quantreal,
    status public.dom_codint2,
    datavalidade timestamp without time zone,
    previsaochegada timestamp without time zone,
    numautgerrisco character varying(60),
    dataenvgerrisco timestamp without time zone,
    codmotivocanc public.dom_codint2,
    codcontrato public.dom_codint2,
    codcoletasetor public.dom_codint2,
    codentregasetor public.dom_codint2,
    codordemcarant public.dom_codint2,
    numeroseguro character varying(250),
    expseguro public.dom_resp,
    codgerriscoseg public.dom_codint2,
    arqxml public.dom_text,
    percadiantmotorista public.dom_quantreal,
    precotonadtomot public.dom_quantreal,
    codfornecedoradiant public.dom_codint2,
    horainicarreg timestamp without time zone,
    horafimcarreg timestamp without time zone,
    statuslog integer,
    ordemcli character varying(20),
    codcidadeorigem2 public.dom_codint2,
    codcidadedestino2 public.dom_codint2,
    codcidadetrocanota public.dom_codint2,
    codcoleta2 public.dom_codint2,
    codentrega2 public.dom_codint2,
    precotonempresa public.dom_quantreal,
    freteempresa public.dom_quantreal,
    fretemotorista public.dom_quantreal,
    porccomissaoemb public.dom_quantreal,
    vlcomissaoemb public.dom_dinheiro2,
    codgerriscoped public.dom_codint2,
    codgerriscop public.dom_codint2,
    outrosdescontosmot2 public.dom_dinheiro2,
    codfrete public.dom_codint2,
    checklistpagto character varying(250),
    valorapolice public.dom_dinheiro2,
    adtointegracao public.dom_dinheiro2,
    percadtointegracao public.dom_porcentagem2,
    lavagem public.dom_dinheiro2,
    abastecimentointerno public.dom_dinheiro2,
    checklistrobosat character varying(250),
    datafimviagem timestamp without time zone
);


ALTER TABLE public.ordemcar OWNER TO postgres;

--
-- Name: ordemcarlog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.ordemcarlog (
    codordemcarlog public.dom_codint NOT NULL,
    codordemcar public.dom_codint2,
    data timestamp without time zone,
    status public.dom_codint2,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.ordemcarlog OWNER TO postgres;

--
-- Name: ordemcaroco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.ordemcaroco (
    codordemcaroco public.dom_codint NOT NULL,
    codordemcar public.dom_codint2,
    status character(1),
    codtipoocorrencia public.dom_codint2,
    data timestamp without time zone,
    obs public.dom_text,
    codtipojustificativa public.dom_codint2,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    dataatual timestamp without time zone,
    protocolo character varying(250),
    codgerrisco public.dom_codint2,
    campoaux1 character varying(250),
    campoaux2 character varying(250),
    bcampoaux1 public.dom_text,
    codlogcom public.dom_codint2
);


ALTER TABLE public.ordemcaroco OWNER TO postgres;

--
-- Name: ordemcarstatus; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.ordemcarstatus (
    codordemcarstatus public.dom_codint2 NOT NULL,
    codfilial public.dom_codint2,
    numero public.dom_codint2,
    status character(1),
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    codunidadeembarque public.dom_codint2
);


ALTER TABLE public.ordemcarstatus OWNER TO postgres;

--
-- Name: ordemcompra; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.ordemcompra (
    codordemcompra public.dom_codint2 NOT NULL,
    data timestamp without time zone,
    codfornecedor public.dom_codint2,
    codcondicao public.dom_codint2,
    datavencimento timestamp without time zone,
    codunidadeembarque public.dom_codint2,
    codfilial public.dom_codint2,
    obs text,
    nffatura public.dom_resp,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioautorizou character varying(15),
    finalizada public.dom_resp,
    dataautorizacao timestamp without time zone,
    afaturar public.dom_resp,
    despesa public.dom_resp,
    codcot public.dom_codint2,
    prazoentrega character varying(200),
    frete character varying(200),
    usuariosolicaut character varying(15),
    usuarioaut character varying(15),
    dataaut timestamp without time zone,
    historico text,
    tipo public.dom_resp,
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2,
    km public.dom_quantreal,
    cancelado public.dom_resp,
    solitante public.dom_nomepessoa2,
    gerarcreddeb public.dom_resp,
    vendedor public.dom_nomepessoa2,
    fonecontato public.dom_fone2,
    datapreventrega timestamp without time zone,
    usuariosaviso character varying(200),
    codcontrato public.dom_codint2,
    tipocompra integer,
    codmotivocanc public.dom_codint2,
    datacanc timestamp without time zone,
    usuariocanc character varying(15),
    detcanc public.dom_text,
    valorantescanc public.dom_dinheiro2,
    obsautorizacao public.dom_text,
    codveiculoacidente public.dom_codint2,
    datavalidade timestamp without time zone,
    codcfop character varying(10),
    codespeciedoc public.dom_codint2,
    coddepartamento public.dom_codint2,
    codespeciemerc public.dom_codint2,
    codcoleta public.dom_codint2,
    codfilialsetor public.dom_codint2
);


ALTER TABLE public.ordemcompra OWNER TO postgres;

--
-- Name: ordemcompraadiant; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.ordemcompraadiant (
    codordemcompraadiant public.dom_codint NOT NULL,
    codordemcompra public.dom_codint2,
    codmotorista public.dom_codint2,
    valor public.dom_dinheiro2,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    datavencimento timestamp without time zone
);


ALTER TABLE public.ordemcompraadiant OWNER TO postgres;

--
-- Name: ordemcomprapedext; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.ordemcomprapedext (
    codordemcomprapedext public.dom_codint NOT NULL,
    codordemcompra public.dom_codint2,
    numpedidoext character varying(40),
    valor public.dom_dinheiro2,
    obs public.dom_text,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.ordemcomprapedext OWNER TO postgres;

--
-- Name: pais; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pais (
    codpais public.dom_codint2 NOT NULL,
    nome character varying(30),
    codexterno character varying(10),
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.pais OWNER TO postgres;

--
-- Name: parametro; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.parametro (
    codoleodiesel public.dom_codint2,
    codproprietario public.dom_codint2,
    codgasolina public.dom_codint2,
    codcidadedef public.dom_codint2,
    codclientedef public.dom_codint2,
    valordiaria public.dom_dinheiro2,
    verificaconhecimento character(1),
    codfilialdef public.dom_codint2,
    verificanominal public.dom_resp,
    intervaloacerto public.dom_dinheiro2,
    verificaadiant public.dom_resp,
    dataexportacao timestamp without time zone,
    chequeporfornecedor public.dom_resp,
    gerenciamneto public.dom_porcentagem2,
    gerenciamento public.dom_porcentagem2,
    pis public.dom_porcentagem2,
    cofins public.dom_porcentagem2,
    impostorenda public.dom_quantreal,
    valoruferms public.dom_dinheiro2,
    codmudancacavalo public.dom_codint2,
    serie character varying(5),
    comissao public.dom_porcentagem2,
    abonomaximo public.dom_dinheiro2,
    cpmf public.dom_porcentagem2,
    codmotterdef public.dom_codint2,
    dirpadraoexportacao public.dom_nomepessoa2,
    dirpadraoimportacao public.dom_nomepessoa2,
    enviaemail public.dom_resp,
    host character varying(50),
    emailorig public.dom_email2,
    nomeorig public.dom_email2,
    emaildest public.dom_email2,
    useridnosmtp public.dom_email2,
    controlastatusconf public.dom_resp,
    icmsembutido public.dom_resp,
    prefixoarquivo character varying(20),
    salariobase public.dom_dinheiro2,
    codfilialfrota public.dom_codint2,
    codsupergrupofrota public.dom_codint2,
    matriz public.dom_resp,
    taxainss public.dom_porcentagem2,
    dirimportacaoext public.dom_nomepessoa2,
    direxportacaoext public.dom_nomepessoa2,
    tipoempresa character varying(20),
    codcondicaoavista public.dom_codint2,
    codfornecedordescconc public.dom_codint2,
    codclientedescobtido public.dom_codint2,
    coditemjurospagos public.dom_codint2,
    coditemjurosrecebidos public.dom_codint2,
    coditemdescontoconc public.dom_codint2,
    coditemdescontoobtido public.dom_codint2,
    verificaext public.dom_resp,
    tempoloopext public.dom_codint2,
    codfabricaext character varying(10),
    taxairrf public.dom_porcentagem2,
    valorisentoirrf numeric(20,2),
    controlastatuscheque public.dom_resp,
    taxaseguro public.dom_porcentagem2,
    ipservidorftp character varying(70),
    usuarioservidorftp character varying(20),
    senhaservidorftp character varying(20),
    codunidadeembarque public.dom_codint2,
    diretoriobancos character varying(150),
    verificacnpjcpfcliente public.dom_resp,
    ativaexpimp public.dom_resp,
    intervaloexpimp public.dom_codint2,
    servidorftpexpimp character varying(50),
    usuarioftpexpimp character varying(10),
    senhaftpexpimp character varying(20),
    diretorioftpexp character varying(100),
    diretorioftpimp character varying(100),
    valorisentoinss public.dom_dinheiro2,
    codgasolina1 public.dom_codint2,
    codoleodiesel1 public.dom_codint2,
    taxamulta numeric(20,4),
    taxajuros numeric(20,4),
    diretoriofotos character varying(150),
    taxasestsenat public.dom_porcentagem2,
    taxairrf1 public.dom_porcentagem2,
    valordedirrf public.dom_dinheiro2,
    valordedirrf1 public.dom_dinheiro2,
    valorirrf public.dom_dinheiro2,
    valorirrf1 public.dom_dinheiro2,
    senhasmtp character varying(30),
    diretoriofotosftp character varying(200),
    usuariosatcenter character varying(15),
    senhasatcenter character varying(15),
    acrescimoprecovenda public.dom_quantreal,
    autenticaservidorsmtp public.dom_resp,
    permitedespesascarretas public.dom_resp,
    codfornecedorfrota public.dom_codint2,
    importacontaspagar public.dom_resp,
    importaviagemgeral public.dom_resp,
    importapneus public.dom_resp,
    valorbasemaxinss public.dom_dinheiro2,
    valormaxinss public.dom_dinheiro2,
    taxainssempresa public.dom_quantreal,
    taxabasecalculoinss public.dom_quantreal,
    taxabasecalculoirrf public.dom_quantreal,
    valorminimoirrf public.dom_quantreal,
    usaplanofinanceiro public.dom_resp,
    coditemfpagarctrc public.dom_codint2,
    coditemfpagaradto public.dom_codint2,
    coditemfpagarfnc public.dom_codint2,
    verifcnpjcpfdupl public.dom_resp,
    percmaxadiant public.dom_quantreal,
    exigepedviag public.dom_resp,
    exigesaldopedviag public.dom_resp,
    exigenotafiscalviag public.dom_resp,
    kmportariapneus public.dom_resp,
    impressao character varying(40),
    logogrande character varying(30),
    datamaxima timestamp without time zone,
    manutprevdigdiesel public.dom_resp,
    textocartacobranca text,
    horasantecdtvenc public.dom_codint2,
    estoqueoffline public.dom_resp,
    diasliberadofinanceiro public.dom_codint2,
    verificalimitemotorista public.dom_resp,
    veriflimitecliente public.dom_resp,
    exigelibdupp public.dom_resp,
    exigeautnota public.dom_resp,
    verifusuarioconta public.dom_resp,
    verifusuariogrupo public.dom_resp,
    taxacsll public.dom_quantreal,
    exigeunidembnota public.dom_resp,
    verifinscestcli public.dom_resp,
    verifinscestfor public.dom_resp,
    codveiculonaoinf public.dom_codint2,
    codcidadediversas public.dom_codint2,
    cargafracionada public.dom_resp,
    seriemanif character varying(5),
    pedidomanif public.dom_codint2,
    solicobsbaixacp public.dom_resp,
    codtipoveicdiv public.dom_codint2,
    dataminima timestamp without time zone,
    coditemreceitacheque public.dom_codint2,
    versaocte character varying(10),
    cteemailerro character varying(150),
    cteemailret character varying(150),
    verifusufilial public.dom_resp,
    verifusuitemreceita public.dom_resp,
    valorirrf2 public.dom_dinheiro2,
    valorirrf3 public.dom_dinheiro2,
    valorirrf4 public.dom_dinheiro2,
    valordedirrf2 public.dom_dinheiro2,
    valordedirrf3 public.dom_dinheiro2,
    valordedirrf4 public.dom_dinheiro2,
    taxairrf2 public.dom_porcentagem,
    taxairrf3 public.dom_porcentagem,
    taxairrf4 public.dom_porcentagem,
    verifinscestprop character(1),
    codgasolina2 public.dom_codint2,
    codoleodiesel2 public.dom_codint2,
    codgasolina3 public.dom_codint2,
    codoleodiesel3 public.dom_codint2,
    codgasolina4 public.dom_codint2,
    codoleodiesel4 public.dom_codint2,
    codgasolina5 public.dom_codint2,
    codoleodiesel5 public.dom_codint2,
    portasmtp integer,
    usarsmtpssl character(1),
    codparametro public.dom_codint2 NOT NULL,
    diretoriodocs character varying(150),
    mdfeemailerro character varying(150),
    mdfeemailret character varying(150),
    servimap character varying(50),
    useridnoimap public.dom_email2,
    senhaimap character varying(30),
    portaimap integer,
    usarimapssl public.dom_resp,
    senhasmtp2 character varying(50),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    acertominimo public.dom_quantreal,
    exigelibdupr public.dom_resp,
    valordedinss public.dom_dinheiro2,
    valormaxinss2 public.dom_dinheiro2,
    taxainss2 public.dom_porcentagem2,
    valordedinss2 public.dom_dinheiro2,
    valormaxinss3 public.dom_dinheiro2,
    taxainss3 public.dom_porcentagem2,
    valordedinss3 public.dom_dinheiro2,
    valormaxinss4 public.dom_dinheiro2,
    taxainss4 public.dom_porcentagem2,
    valordedinss4 public.dom_dinheiro2
);


ALTER TABLE public.parametro OWNER TO postgres;

--
-- Name: parametroempresa; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.parametroempresa (
    descricao character varying(200) NOT NULL,
    tipo character(1),
    valor character varying(200),
    obs text,
    usuarioalt character varying(15),
    dataalt timestamp without time zone,
    codparametroempresa public.dom_codint2
);


ALTER TABLE public.parametroempresa OWNER TO postgres;

--
-- Name: pedido; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedido (
    numero public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    coddestinatario public.dom_codint2,
    codremetente public.dom_codint2,
    codmercadoria public.dom_codint2,
    codfilial public.dom_codint2,
    codembarcador public.dom_codint2,
    precotonempresa public.dom_quantreal2,
    adiantamentoempresa public.dom_dinheiro2,
    precotonmotorista public.dom_quantreal2,
    adiantamentomotorista public.dom_dinheiro2,
    comissao public.dom_porcentagem2,
    taxaquebra public.dom_quantreal,
    quantidadequebra public.dom_quantreal,
    tipodesconto character(1),
    tipotolerancia character(1),
    pagaicms character(1),
    porcicms public.dom_porcentagem2,
    totalpedido public.dom_quantreal,
    precokgmercadoria public.dom_quantreal,
    precotonagregado public.dom_quantreal2,
    icmsembutido public.dom_resp,
    pedagioembutidofrete public.dom_resp,
    precotonfiscal public.dom_quantreal2,
    numerocontrato character varying(10),
    tempo public.dom_quantreal,
    pesosaidamotorista public.dom_resp,
    data timestamp without time zone,
    issembutido public.dom_resp,
    codunidadeembarque public.dom_codint2,
    dataatual timestamp without time zone,
    percredvlicms public.dom_quantreal,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    toleranciaestadia public.dom_quantreal,
    valorhoraestadia public.dom_quantreal,
    quebraarmazem public.dom_quant,
    quebranavio public.dom_quant,
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    descontainsssaldomot public.dom_resp,
    descontainsssaldo public.dom_resp,
    finalizado public.dom_resp,
    codcoleta public.dom_codint2,
    codentrega public.dom_codint2,
    calculainss public.dom_resp,
    natureza character varying(10),
    descsegurosaldomot public.dom_resp,
    taxaseguro public.dom_porcentagem2,
    obs text,
    percredbaseicms public.dom_quantreal,
    estadiapesochegada public.dom_resp,
    calculairrf public.dom_resp,
    calculasestsenat public.dom_resp,
    descontaicmssaldoempresa public.dom_resp,
    descquebrasaldoemp public.dom_resp,
    precotonpedagio public.dom_quantreal,
    obs1 character varying(200),
    obs2 character varying(200),
    pedidocliente character varying(80),
    pedclientetransf character varying(80),
    entradasaida public.dom_resp,
    creditodebito public.dom_quant,
    pedagioembfretemot public.dom_resp,
    codconsignatario public.dom_codint2,
    obs3 public.dom_obs,
    obs4 public.dom_obs,
    obs5 public.dom_obs,
    obs6 public.dom_obs,
    obs7 public.dom_obs,
    pedagiocalceixo public.dom_resp,
    taxaiss public.dom_porcentagem2,
    especiemercadoria character varying(20),
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2,
    numeroseguro character varying(50),
    serie character varying(10),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    pedagioembffiscal public.dom_resp,
    toleranciapesocheg public.dom_resp,
    datadigitacao timestamp without time zone,
    diasfaturamento public.dom_codint2,
    valorrastreamento public.dom_dinheiro2,
    descontaisssaldoemp public.dom_resp,
    kmrodado public.dom_codint2,
    quantmercadoria public.dom_quantreal,
    codcidaderef public.dom_codint2,
    fretepago public.dom_resp,
    codprodutor public.dom_codint2,
    descsegurosaldo public.dom_resp,
    outrosdescontosmot public.dom_dinheiro2,
    baseicmsdireta public.dom_resp,
    baseissdireta public.dom_resp,
    descpissaldoemp public.dom_resp,
    desccofinssaldoemp public.dom_resp,
    desccsllsaldoemp public.dom_resp,
    somarissfatsaldo public.dom_resp,
    calculainssempresa public.dom_resp,
    freteempresa public.dom_quantreal,
    taxamercfrete public.dom_quantreal,
    porcadvalor public.dom_quantreal,
    cargadescarga public.dom_dinheiro2,
    valorseccat public.dom_dinheiro2,
    despesaextra public.dom_dinheiro2,
    faturaicmsfinal public.dom_resp,
    valorpedagio public.dom_dinheiro2,
    valorentrega public.dom_dinheiro2,
    codgerrisco public.dom_codint2,
    fretemotorista public.dom_dinheiro2,
    pesominimo public.dom_quantreal,
    kmterra public.dom_codint2,
    datacoleta timestamp without time zone,
    cargadescargaemb public.dom_resp,
    balsaemb public.dom_resp,
    rastreadoremb public.dom_resp,
    codtiporastreamento public.dom_codint2,
    codpropredespacho public.dom_codint2,
    codcotfrete public.dom_codint2,
    contatocliente character varying(70),
    tributaimpostos public.dom_resp,
    expseguro public.dom_resp,
    classificacaoembfreteemp public.dom_resp,
    segurorctrc public.dom_resp,
    usuariolib character varying(20),
    datalib timestamp without time zone,
    precotonmotoristamax public.dom_quantreal2,
    codobsfiscal public.dom_codint2,
    taxaseguro2 public.dom_quantreal,
    descseguro2saldo public.dom_resp,
    descseguro2saldomot public.dom_resp,
    precotonempcomp public.dom_quantreal,
    estadiaembutidafrete public.dom_resp,
    precotonproprio public.dom_quantreal2,
    numeroconta character varying(10),
    faturaautomatica character(1),
    precotonterceiro public.dom_quantreal,
    precotonmotpf public.dom_quantreal2,
    precokgmerc public.dom_quantreal,
    precokgmercquebra public.dom_quantreal,
    codtipopagto public.dom_codint2,
    precokgmercseg public.dom_quantreal,
    nomeseguradora character varying(100),
    numeroapolice character varying(100),
    respseguro character(1),
    resppedagio character(1),
    tipopedagio character(1),
    codfornecedor public.dom_codint2,
    venccontrpedagio timestamp without time zone,
    clientepagasaldomotorista character(1),
    cddunidademedida public.dom_codint2,
    codunidademedida public.dom_codint2,
    permitefaturar character(1),
    horacoleta character varying(15),
    codtipocarroceria public.dom_codint2,
    numeronotafiscal character varying(50),
    emailcte character varying(200),
    faturapesochegada public.dom_resp,
    codobsfiscal2 public.dom_codint2,
    percmargemminpj public.dom_quantreal,
    percmargemminpf public.dom_quantreal,
    percmargemminfrota public.dom_quantreal,
    percmargemminagregado public.dom_quantreal,
    codespeciemerc public.dom_codint2,
    checklist text,
    precotonpropriomax public.dom_quantreal2,
    precotonmotpfmax public.dom_quantreal2,
    precotonagregadomax public.dom_quantreal2,
    precotonagregmisto public.dom_quantreal2,
    precotonagregmistomax public.dom_quantreal2,
    cadencia public.dom_codint2,
    datafimcoleta timestamp without time zone,
    premioseguro public.dom_dinheiro2,
    codclientecont public.dom_codint2,
    exigeautgerrisco public.dom_resp,
    codrota public.dom_codint2,
    pedagioembbaseicms character(1),
    margemmaxfrota public.dom_porcentagem2,
    margemminfrota public.dom_porcentagem2,
    margemminfrete public.dom_porcentagem2,
    margemminpf public.dom_porcentagem2,
    margemminpj public.dom_porcentagem2,
    margemminagregado public.dom_porcentagem2,
    margemminagregadomisto public.dom_porcentagem2,
    datalibmerc timestamp without time zone,
    cobrasegurocliente public.dom_resp,
    prazodescarga public.dom_codint2,
    precotonicms public.dom_quantreal,
    cnd character varying(100),
    datavalidade timestamp without time zone,
    precotonclassificacao public.dom_quantreal,
    cndtransp character varying(100),
    validadecndtransp timestamp without time zone,
    valorhoraestadiamot public.dom_dinheiro2,
    seccatembutidofrete public.dom_resp,
    tipocte character(1),
    retroagirestadia public.dom_quantreal,
    exigeordemcar character(1),
    tipofreteempresa public.dom_codint2,
    valorcontainer public.dom_dinheiro2,
    respcontainer public.dom_resp,
    numerocartaopedagio character varying(50),
    percadmercsegurada public.dom_quantreal,
    tipovalidacaoxmlnfe public.dom_codint2,
    valorbalsa public.dom_dinheiro2,
    adtomot2 public.dom_dinheiro2,
    veiculoidademaxima public.dom_codint2,
    pagaiss character(1),
    outrosdescontosmot2 public.dom_dinheiro2,
    mercadoriapaga public.dom_resp,
    codcolenttrocanota public.dom_codint2,
    premioseguro2 public.dom_quantreal,
    enventregacte public.dom_resp,
    envcoletacte public.dom_resp,
    tpopecrepom character varying(5),
    adiantamentomotorista2 public.dom_quantreal,
    porcadicquebra public.dom_quantreal,
    codcoleta2 public.dom_codint2,
    codentrega2 public.dom_codint2,
    tipocalcclassif character(1),
    pedidocliente2 character varying(80),
    codcfop character varying(11),
    tipodata character(1),
    baseicms public.dom_quantreal,
    valoricms public.dom_quantreal,
    tagpesonfe character(1),
    codembarcadorcom public.dom_codint2,
    codorcvenda public.dom_codint2,
    porcbalsa public.dom_porcentagem2,
    pagar public.dom_resp,
    cnpjseguradora public.dom_cgc,
    codmotivocanc public.dom_codint2,
    prazominordemcar integer,
    numeropedidoorig integer,
    listacompprest character varying(250),
    fvalorareceber character varying(250),
    ftotalprest character varying(250),
    tipocadencia integer,
    fbaseicms character varying(250),
    fsaldoemp character varying(250),
    codcontrato public.dom_codint2,
    codclienteop public.dom_codint2,
    codrotamanif public.dom_codint2,
    codcoletasetor public.dom_codint2,
    codentregasetor public.dom_codint2,
    tpmodal character varying(1),
    codclienteopfis public.dom_codint2,
    sm_localorigem public.dom_text,
    sm_localdestino public.dom_text,
    sm_valores public.dom_text,
    sm_obs public.dom_text,
    sm_obs2 public.dom_text,
    adiantagregado public.dom_quantreal,
    codtipotransporteantt public.dom_codint2,
    percursocompl character varying(250),
    checklistnfe character varying(250),
    codgerriscooppf public.dom_codint2,
    codgerriscooppj public.dom_codint2,
    codgerriscopedpf public.dom_codint2,
    codgerriscopedpj public.dom_codint2,
    sm_transportadora public.dom_text,
    prepago public.dom_resp,
    ordemcli character varying(20),
    codcidadeorigem2 public.dom_codint2,
    codcidadedestino2 public.dom_codint2,
    codcidadetrocanota public.dom_codint2,
    emailctedest public.dom_email2,
    obsordemcar public.dom_text,
    marcavoltransp character varying(250),
    codrotasolicmonit public.dom_codint2,
    indaltodesemp character varying(1),
    codfrete public.dom_codint2,
    numeropedidoant public.dom_codint2,
    indicepesoliq public.dom_quantreal,
    fchecklistcte character varying(250),
    taxaseguroproprio public.dom_quantreal,
    taxaseguroagregado public.dom_quantreal,
    taxaseguroagregmisto public.dom_quantreal,
    codfornecedorfomento public.dom_codint2,
    codmotivofin public.dom_codint2,
    valorabast public.dom_dinheiro2,
    percabast public.dom_porcentagem2,
    checklistpagto character varying(250),
    codcondicao public.dom_codint2,
    prazovencimento public.dom_codint2,
    permitepagarsaldofrota character varying(1),
    taxairpj public.dom_porcentagem2,
    codmoeda public.dom_codint2,
    codtiporecto public.dom_codint2,
    checklistrobosat character varying(250),
    tipofretemotorista integer,
    obsfaturarec public.dom_text,
    codimposto public.dom_codint2,
    codimpostonfe public.dom_codint2,
    checklistdoc character varying(250),
    codnbs public.dom_codint2
);


ALTER TABLE public.pedido OWNER TO postgres;

--
-- Name: pedidodesp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedidodesp (
    codpedidodesp public.dom_codint NOT NULL,
    numero public.dom_codint2,
    codtipodesp public.dom_codint2,
    obs public.dom_text,
    valorbase public.dom_dinheiro2,
    valoracerto public.dom_dinheiro2,
    embfreteemp public.dom_resp,
    descontasaldomot public.dom_resp,
    faturar public.dom_resp,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    basecalculo public.dom_dinheiro2,
    porc public.dom_dinheiro2,
    porc1 public.dom_dinheiro2,
    cst character varying(10),
    pagar public.dom_resp,
    descontasaldoemp public.dom_resp,
    valorppt public.dom_dinheiro2,
    percentual public.dom_quantreal,
    codfornecedor public.dom_codint2,
    codcliente public.dom_codint2,
    listatipotransportador character varying(30)
);


ALTER TABLE public.pedidodesp OWNER TO postgres;

--
-- Name: pedidodest; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedidodest (
    codpedidodest public.dom_codint2 NOT NULL,
    codmercadoria public.dom_codint2,
    coddestinatario public.dom_codint2,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    finalizado public.dom_resp,
    totalpedido public.dom_quantreal,
    obs text,
    fazenda character varying(70),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.pedidodest OWNER TO postgres;

--
-- Name: pedidodoc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedidodoc (
    codpedidodoc public.dom_codint NOT NULL,
    numero public.dom_codint2,
    tabela integer,
    codtipodoc public.dom_codint2,
    obrigatorio public.dom_resp,
    obs public.dom_text,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.pedidodoc OWNER TO postgres;

--
-- Name: pedidogrop; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedidogrop (
    codpedidogrop public.dom_codint NOT NULL,
    codgerriscoop public.dom_codint,
    numero public.dom_codint,
    ordem integer,
    opcao character varying(30),
    tipo character(2),
    listaop character varying(250),
    listaop1 character varying(250),
    apelido character varying(30),
    descricao character varying(100),
    filtrodefault character varying(250),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataalt timestamp without time zone,
    filtrofixo character varying(250),
    operacao integer,
    listatipoantt character varying(20),
    veiculoproprio public.dom_resp
);


ALTER TABLE public.pedidogrop OWNER TO postgres;

--
-- Name: pedidoitem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedidoitem (
    codpedidoitem public.dom_codint NOT NULL,
    numero public.dom_codint2,
    coditem public.dom_codint2,
    obs public.dom_text,
    peso public.dom_quantreal,
    quant public.dom_quantreal,
    valorunit public.dom_quantreal,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    tolerancia public.dom_quantreal,
    porcaliqicmssubstrib public.dom_porcentagem2,
    porcpautaicms public.dom_porcentagem2,
    porcredbaseicms public.dom_porcentagem2,
    porcicms public.dom_porcentagem2,
    csticms character varying(10),
    cstpis character varying(10),
    cstcofins character varying(10),
    codcfop character varying(10),
    codobsfiscal public.dom_codint2,
    codobsfiscal2 public.dom_codint2,
    obsfiscal character varying(250),
    pedidocliente character varying(50),
    obsclassificacao public.dom_text,
    obsnfe public.dom_text,
    codfornecedorclassificacao public.dom_codint2,
    unidade character varying(3),
    unidadetrib character varying(3),
    cbenef character varying(100),
    codimposto public.dom_codint2,
    codimpostonfe public.dom_codint2,
    codnbs public.dom_codint2
);


ALTER TABLE public.pedidoitem OWNER TO postgres;

--
-- Name: pedidolog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedidolog (
    numero public.dom_codint NOT NULL,
    data timestamp without time zone NOT NULL,
    codtipoobs public.dom_codint2,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    obs text,
    pendente public.dom_resp,
    dataatual timestamp without time zone,
    codpedidolog public.dom_codint NOT NULL,
    datainclusao timestamp without time zone,
    totalpedido public.dom_dinheiro2
);


ALTER TABLE public.pedidolog OWNER TO postgres;

--
-- Name: pedidomotorista; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedidomotorista (
    numero public.dom_codint NOT NULL,
    codmotorista public.dom_codint NOT NULL,
    valor public.dom_dinheiro2,
    percentual public.dom_quantreal,
    dataatual timestamp without time zone,
    codpedidomotorista public.dom_codint NOT NULL,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datainclusao timestamp without time zone
);


ALTER TABLE public.pedidomotorista OWNER TO postgres;

--
-- Name: pedidonota; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedidonota (
    numero public.dom_codint2 NOT NULL,
    numeronota public.dom_codint2 NOT NULL,
    serie character varying(5),
    data timestamp without time zone,
    modelo character varying(15),
    valor public.dom_dinheiro2,
    peso public.dom_quantreal,
    quantidade public.dom_quantreal,
    codmercadoria public.dom_codint2,
    especiemercadoria character varying(30),
    dataentrega timestamp without time zone,
    baseicms public.dom_dinheiro2,
    valoricms public.dom_dinheiro2,
    basesubsttrib public.dom_dinheiro2,
    valorsubsttrib public.dom_dinheiro2,
    codcfop character varying(10),
    chavenfe character varying(90),
    pinsuframa character varying(10),
    datasaidanf timestamp without time zone,
    pesocubado public.dom_quantreal,
    taxaseguro public.dom_porcentagem2,
    valorseguro public.dom_dinheiro2,
    codtipodoc public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codpedidonota public.dom_codint2 NOT NULL
);


ALTER TABLE public.pedidonota OWNER TO postgres;

--
-- Name: pedidorec; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedidorec (
    codpedidorec public.dom_codint NOT NULL,
    numero public.dom_codint2,
    nome character varying(10),
    listaue character varying(250),
    listaun character varying(250),
    listafil character varying(250),
    alterar character varying(1),
    utilizar character varying(1),
    obs public.dom_text,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.pedidorec OWNER TO postgres;

--
-- Name: pedidorota; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedidorota (
    codpedidorota public.dom_codint NOT NULL,
    numero public.dom_codint2,
    codrota public.dom_codint2,
    codfornecedor public.dom_codint2,
    codgerrisco public.dom_codint2,
    precotonpedagio public.dom_quantreal,
    valorpedagio public.dom_quantreal,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    tipopedagio character(1),
    codgerriscor public.dom_codint2
);


ALTER TABLE public.pedidorota OWNER TO postgres;

--
-- Name: pedidoval; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedidoval (
    codpedidoval public.dom_codint NOT NULL,
    numero public.dom_codint,
    datavalidade timestamp without time zone,
    tipodata public.dom_resp,
    precotonpedagio public.dom_quantreal,
    precotonempresa public.dom_quantreal,
    toleranciaestadia public.dom_quantreal,
    adiantamentoempresa public.dom_quantreal,
    precokgmercadoria public.dom_quantreal,
    precotonfiscal public.dom_quantreal,
    valorhoraestadia public.dom_quantreal,
    precotonmotorista public.dom_quantreal,
    precotonmotpf public.dom_quantreal,
    precotonproprio public.dom_quantreal,
    precotonagregado public.dom_quantreal,
    precotonagregmisto public.dom_quantreal,
    adiantamentomotorista public.dom_quantreal,
    adiantamentomotorista2 public.dom_quantreal,
    comissao public.dom_quantreal,
    pesosaidamotorista integer,
    precotonmotoristamax public.dom_quantreal,
    precotonmotpfmax public.dom_quantreal,
    precotonpropriomax public.dom_quantreal,
    precotonagregadomax public.dom_quantreal,
    precotonagregmistomax public.dom_quantreal,
    margemminfrota public.dom_quantreal,
    margemmaxfrota public.dom_quantreal,
    margemminpf public.dom_quantreal,
    margemminpj public.dom_quantreal,
    margemminagregado public.dom_quantreal,
    margemminagregadomisto public.dom_quantreal,
    precotonclassificacao public.dom_quantreal,
    precotonempcomp public.dom_quantreal,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataalt timestamp without time zone,
    obs public.dom_text,
    precotonicms public.dom_quantreal,
    adiantagregado public.dom_quantreal,
    listatipocarroceria character varying(250),
    listatipoveiculo character varying(250),
    listaveiculo character varying(250),
    freteempresa public.dom_dinheiro2,
    taxaseguroproprio public.dom_quantreal,
    taxaseguroagregado public.dom_quantreal,
    taxaseguroagregmisto public.dom_quantreal
);


ALTER TABLE public.pedidoval OWNER TO postgres;

--
-- Name: pedidovalmot; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pedidovalmot (
    codpedidovalmot public.dom_codint NOT NULL,
    numero public.dom_codint,
    datavalidade timestamp without time zone,
    tipodata character varying(1),
    precotonmotorista public.dom_quantreal,
    precotonmotpf public.dom_quantreal,
    precotonproprio public.dom_quantreal,
    precotonagregado public.dom_quantreal,
    precotonagregmisto public.dom_quantreal,
    adiantamentomotorista public.dom_quantreal,
    adiantamentomotorista2 public.dom_quantreal,
    fretemotorista public.dom_dinheiro2,
    precotonmotoristamax public.dom_quantreal,
    precotonmotpfmax public.dom_quantreal,
    precotonpropriomax public.dom_quantreal,
    precotonagregadomax public.dom_quantreal,
    precotonagregmistomax public.dom_quantreal,
    listatipocarroceria character varying(250),
    listatipocarroceria2 character varying(250),
    listatipoveiculo character varying(250),
    listatipoveiculo2 character varying(250),
    listaveiculo character varying(250),
    listaveiculo2 character varying(250),
    listaprop character varying(250),
    listaprop2 character varying(250),
    listamot character varying(250),
    listamot2 character varying(250),
    obs public.dom_text,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone,
    dataalt timestamp without time zone,
    taxaseguroproprio public.dom_quantreal,
    taxaseguroagregado public.dom_quantreal,
    taxaseguroagregmisto public.dom_quantreal
);


ALTER TABLE public.pedidovalmot OWNER TO postgres;

--
-- Name: pessoaoco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pessoaoco (
    codpessoaoco public.dom_codint NOT NULL,
    data timestamp without time zone,
    codtipopessoaoco public.dom_codint2,
    descricao character varying(250),
    status integer,
    obs public.dom_text,
    lat double precision,
    lon double precision,
    tabela integer,
    chavetabela public.dom_codint2,
    cnpjcpf character varying(20),
    inscricaoestadual character varying(20),
    celular character varying(30),
    codpessoaocows public.dom_codint2,
    codviagem public.dom_codint2,
    statusviagem integer,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datains timestamp without time zone,
    dataalt timestamp without time zone
);


ALTER TABLE public.pessoaoco OWNER TO postgres;

--
-- Name: pneu; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pneu (
    codpneu public.dom_codint NOT NULL,
    codveiculo public.dom_codint2,
    codmodelo public.dom_codint2,
    codfabricante public.dom_codint2,
    codlocal public.dom_codint2,
    descricao public.dom_nomepessoa2,
    notafiscal character varying(15),
    datacompra timestamp without time zone,
    codfornecedor public.dom_codint2,
    datafimvida timestamp without time zone,
    obs public.dom_obs2,
    valor public.dom_dinheiro2,
    codstatuspneu public.dom_codint2,
    dataatual timestamp without time zone,
    codtipoborracha public.dom_codint2,
    codpneufimvida public.dom_codint2,
    ano public.dom_codint2,
    numeroserie character varying(20),
    lote character varying(15),
    kmcorreto public.dom_resp,
    medida character varying(15),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    liberado public.dom_resp,
    codinternovenda public.dom_codint2,
    codinternocompra public.dom_codint2,
    codmotoristafimvida public.dom_codint2
);


ALTER TABLE public.pneu OWNER TO postgres;

--
-- Name: pneufimvida; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pneufimvida (
    codpneufimvida public.dom_codint2 NOT NULL,
    descricao public.dom_nomepessoa2,
    dataatual timestamp without time zone,
    normal public.dom_resp,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.pneufimvida OWNER TO postgres;

--
-- Name: pneumov; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pneumov (
    codpneu public.dom_codint NOT NULL,
    datamov timestamp without time zone NOT NULL,
    codtipoevento public.dom_codint2,
    codlocal public.dom_codint2,
    codveiculo public.dom_codint2,
    km numeric(20,2),
    obs public.dom_obs,
    valor numeric(20,2),
    codcavalo public.dom_codint2,
    kmcavalo public.dom_quantreal,
    dataatual timestamp without time zone,
    profundidadesulco public.dom_quantreal,
    codtipoborracha public.dom_codint2,
    vida public.dom_codint2,
    profsulcoesq public.dom_quantreal,
    profsulcodir public.dom_quantreal,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    codfornecedor public.dom_codint2,
    numeronota public.dom_codint2,
    pressao public.dom_quantreal,
    codpneumov public.dom_codint2 NOT NULL,
    nomenclatura character varying(30),
    codinterno public.dom_codint2,
    codstatuspneu public.dom_codint2,
    codfabricante public.dom_codint2,
    codmodelo public.dom_codint2,
    codmotoristaveic public.dom_codint2,
    kmlocalini public.dom_quantreal,
    kmlocalfim public.dom_quantreal,
    obslocal character varying(250),
    profsulcoesqint public.dom_quantreal,
    profsulcodirint public.dom_quantreal
);


ALTER TABLE public.pneumov OWNER TO postgres;

--
-- Name: pneumovmot; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.pneumovmot (
    codpneumovmot public.dom_codint NOT NULL,
    codpneu public.dom_codint2,
    codpneumov public.dom_codint2,
    datamov timestamp without time zone,
    codmotorista public.dom_codint2,
    tempo public.dom_quantreal,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.pneumovmot OWNER TO postgres;

--
-- Name: statuspneu; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.statuspneu (
    codstatuspneu public.dom_codint2 NOT NULL,
    descricao character varying(30),
    dataatual timestamp without time zone,
    vida public.dom_codint2,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.statuspneu OWNER TO postgres;

--
-- Name: tipoveiculo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoveiculo (
    codtipoveiculo public.dom_codint NOT NULL,
    descricao character varying(20),
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    descricaomaior character varying(200),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    qtdeixos public.dom_codint2
);


ALTER TABLE public.tipoveiculo OWNER TO postgres;

--
-- Name: veiculo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculo (
    codveiculo public.dom_codint NOT NULL,
    codproprietario public.dom_codint,
    codtipoveiculo public.dom_codint,
    placa character varying(50),
    marca character varying(100),
    cor character varying(10),
    certificado character varying(20),
    chassi character varying(20),
    modelo character varying(50),
    anofabricacao public.dom_ano2,
    anomodelo public.dom_ano2,
    placacarreta character varying(50),
    marcacarreta character varying(100),
    anocarreta public.dom_ano2,
    renavam public.dom_renavam,
    documento double precision,
    chassicarreta character varying(20),
    anomodcarreta public.dom_ano2,
    seguradora character varying(25),
    apolice character varying(15),
    vencimentoapolice timestamp without time zone,
    venda character varying(100),
    compra character varying(100),
    bancocontrato character varying(20),
    ultimaparcela timestamp without time zone,
    datavenda timestamp without time zone,
    corcarreta character varying(10),
    renavancarreta public.dom_renavam,
    modelocarreta character varying(50),
    certifcarreta public.dom_obs,
    placacarreta2 character varying(50),
    marcacarreta2 character varying(100),
    anocarreta2 public.dom_ano2,
    chassicarreta2 character varying(20),
    anomodcarreta2 public.dom_ano2,
    corcarreta2 character varying(10),
    renavancarreta2 public.dom_renavam,
    modelocarreta2 character varying(50),
    certifcarreta2 public.dom_obs,
    dataatual timestamp without time zone,
    valoratual public.dom_dinheiro2,
    taxadeprec public.dom_porcentagem2,
    valorfaturamento public.dom_dinheiro2,
    veiculoproprio public.dom_resp,
    seguradoracarreta character varying(25),
    apolicecarreta character varying(15),
    vencapolicecarreta timestamp without time zone,
    cavalo public.dom_resp,
    codcarreta public.dom_codint2,
    codmotorista public.dom_codint2,
    mediainversa public.dom_resp,
    placacarreta3 character varying(50),
    marcacarreta3 character varying(100),
    anocarreta3 public.dom_ano2,
    chassicarreta3 character varying(20),
    anomodcarreta3 public.dom_ano2,
    corcarreta3 character varying(10),
    renavancarreta3 public.dom_renavam,
    modelocarreta3 character varying(50),
    certifcarreta3 public.dom_obs,
    comissao public.dom_porcentagem2,
    alienacao character varying(20),
    alienacaocarreta character varying(20),
    alienacaocarreta2 character varying(20),
    alienacaocarreta3 character varying(20),
    codcidade public.dom_codint2,
    codcidadecarreta public.dom_codint2,
    codcidadecarreta2 public.dom_codint2,
    codcidadecarreta3 public.dom_codint2,
    liberado public.dom_resp,
    dataexportacao timestamp without time zone,
    quanteixos public.dom_codint2,
    primeiraparcela timestamp without time zone,
    valorparcela public.dom_dinheiro2,
    incluirateio public.dom_resp,
    seguradoraterc character varying(30),
    apoliceterc character varying(30),
    vencapoliceterc timestamp without time zone,
    obs text,
    frota character varying(30),
    codunidadeembarque public.dom_codint2,
    datacompra timestamp without time zone,
    kmlimiteinicial public.dom_codint2,
    codcarreta2 public.dom_codint2,
    codcarreta3 public.dom_codint2,
    datainclusao timestamp without time zone,
    numuve character varying(25),
    terceiroeixo character varying(30),
    bombainjetora character varying(25),
    caixacambio character varying(25),
    diferencial character varying(25),
    datafimgarantia timestamp without time zone,
    numeromotor character varying(25),
    mediamin public.dom_quantreal,
    mediamax public.dom_quantreal,
    numerocontrato character varying(25),
    percfreteagregado public.dom_quantreal,
    notafiscalcompra character varying(30),
    vlaluguelemp public.dom_dinheiro2,
    vlaluguelmot public.dom_dinheiro2,
    vlkmemp public.dom_quantreal,
    vlkmmot public.dom_quantreal,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    usuariolib character varying(15),
    mediadesejada public.dom_quantreal,
    tipocombustivel character varying(50),
    dadosvenda text,
    numeromct public.dom_codint2,
    captanquecomb public.dom_quantreal,
    capacidadecarga public.dom_quantreal,
    datavencdocumento timestamp without time zone,
    valorcompra public.dom_dinheiro2,
    valorvenda public.dom_dinheiro2,
    codcliente public.dom_codint2,
    codtipofinanc public.dom_codint2,
    veiccontratado public.dom_resp,
    codtipocarroceria public.dom_codint2,
    compartimentos character varying(70),
    codlocatario public.dom_codint2,
    listaequip character varying(220),
    tipoplataforma character varying(25),
    largura character varying(25),
    comprimentototal character varying(25),
    comprimentoutil character varying(25),
    altura character varying(25),
    obstecnicas text,
    tara public.dom_quantreal,
    codpropcarreta public.dom_codint2,
    codpropcarreta2 public.dom_codint2,
    codpropcarreta3 public.dom_codint2,
    restricoes character varying(150),
    receita character varying(150),
    localarquivocrv character varying(30),
    localarquivoporteobrig character varying(30),
    centrocusto character varying(20),
    dataaquisicao timestamp without time zone,
    antt character varying(30),
    codarrendatario public.dom_codint2,
    datavencarrendatario timestamp without time zone,
    codfornecedorcompra public.dom_codint2,
    obscompra text,
    codclientevenda public.dom_codint2,
    codmodelo public.dom_codint2,
    codcor public.dom_codint2,
    numestepe public.dom_codint2,
    adtomotbloqueado character(1),
    potenciamotor character varying(30),
    datalicenca timestamp without time zone,
    bloqueiomanifestomanutprev character(1),
    validaderntrc timestamp without time zone,
    tagpedagio character varying(20),
    codbanco public.dom_codint2,
    obs2 text,
    codmodelocarreta public.dom_codint2,
    codmodelocarreta2 public.dom_codint2,
    codmodelocarreta3 public.dom_codint2,
    codcorcarreta public.dom_codint2,
    codcorcarreta2 public.dom_codint2,
    codcorcarreta3 public.dom_codint2,
    bloqueadoadm public.dom_resp,
    databloqueio timestamp without time zone,
    obsbloq text,
    quantestepes public.dom_codint2,
    quanteixoscar1 public.dom_codint2,
    quanteixoscar2 public.dom_codint2,
    quanteixoscar3 public.dom_codint2,
    statusrntrc character(1),
    statuspropriedade character(1),
    liberadoordemcar character(1),
    valorseguro public.dom_dinheiro2,
    valorsegurocarreta public.dom_dinheiro2,
    valorseguroterc public.dom_dinheiro2,
    hodometroproprio character(1),
    vlogultpos timestamp without time zone,
    vlogultstatus timestamp without time zone,
    vlogultped timestamp without time zone,
    datavendaefetiva timestamp without time zone,
    valorentrada public.dom_dinheiro2,
    valorfinanciadobanco public.dom_dinheiro2,
    celularcorporativo public.dom_fone2,
    datavenccadastro timestamp without time zone,
    rastreadorversao character varying(50),
    codtiporastreador public.dom_codint2,
    valortabfipe public.dom_dinheiro2,
    codmotorista2 public.dom_codint2,
    usuariobloqueio character varying(15),
    captanquearla public.dom_quantreal,
    datavencccarreta timestamp without time zone,
    datavencccarreta2 timestamp without time zone,
    datavencccarreta3 timestamp without time zone,
    enviaris public.dom_resp,
    codtipoveiculocarreta public.dom_codint2,
    codtipoveiculocarreta2 public.dom_codint2,
    codtipoveiculocarreta3 public.dom_codint2,
    codcamarafria public.dom_codint2,
    imprimecartafrete public.dom_resp,
    codmotivobloqueio public.dom_codint2,
    listaimp character varying(250),
    vllimitecomb public.dom_quantreal,
    dataprevenda timestamp without time zone,
    codcarreta4 public.dom_codint2,
    placacarreta4 character varying(50),
    marcacarreta4 character varying(100),
    anocarreta4 public.dom_ano2,
    chassicarreta4 character varying(20),
    anomodcarreta4 public.dom_ano2,
    corcarreta4 character varying(10),
    renavancarreta4 public.dom_renavam,
    modelocarreta4 character varying(50),
    certifcarreta4 public.dom_obs,
    alienacaocarreta4 character varying(20),
    codcidadecarreta4 public.dom_codint2,
    codpropcarreta4 public.dom_codint2,
    codmodelocarreta4 public.dom_codint2,
    codcorcarreta4 public.dom_codint2,
    quanteixoscar4 public.dom_codint2,
    datavencccarreta4 timestamp without time zone,
    codtipoveiculocarreta4 public.dom_codint2,
    obspagtoviag public.dom_text,
    codcontrato public.dom_codint2,
    checklist character varying(250),
    codnegocio public.dom_codint2,
    apelido character varying(30),
    codpropcertifcar2 public.dom_codint2,
    codpropcertifcar3 public.dom_codint2,
    codpropcertifcar4 public.dom_codint2,
    codpropcertifcar public.dom_codint2,
    statuscad character varying(2),
    codigofipe character varying(15),
    dispvenda character varying(1),
    metaviagem integer,
    checklistcanaisvenda character varying(250),
    codmotoristavenda public.dom_codint2,
    validaderntrcbackup timestamp without time zone,
    codembarcador public.dom_codint2,
    tipotagpedagio integer
);


ALTER TABLE public.veiculo OWNER TO postgres;

--
-- Name: pneuveiculo; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.pneuveiculo AS
 SELECT pneu.descricao,
    pneu.codpneu,
    pneu.codmodelo,
    (modelo.descricao)::public.dom_bairro AS descmodelo,
    pneu.codlocal,
    (local.descricao)::public.dom_bairro AS desclocal,
    local.ordem,
    local.eixo,
    pneu.codveiculo,
    (veic.placa)::public.dom_email AS placa,
    pneu.codstatuspneu,
    (statuspneu.descricao)::public.dom_bairro AS descstatuspneu,
    veic.codtipoveiculo,
    (tipoveiculo.descricao)::public.dom_fone AS desctipoveiculo,
    (veic.modelo)::public.dom_email AS modeloveic,
    veic.cavalo
   FROM (((((public.pneu
     JOIN public.veiculo veic ON (((pneu.codveiculo)::integer = (veic.codveiculo)::integer)))
     JOIN public.local ON (((pneu.codlocal)::integer = (local.codlocal)::integer)))
     JOIN public.modelo ON (((pneu.codmodelo)::integer = (modelo.codmodelo)::integer)))
     JOIN public.statuspneu ON (((pneu.codstatuspneu)::integer = (statuspneu.codstatuspneu)::integer)))
     JOIN public.tipoveiculo ON (((veic.codtipoveiculo)::integer = (tipoveiculo.codtipoveiculo)::integer)));


ALTER VIEW public.pneuveiculo OWNER TO postgres;

--
-- Name: posicao; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.posicao (
    codposicao public.dom_codint NOT NULL,
    coddeposito public.dom_codint2,
    descricao character varying(200),
    prateleira integer,
    lado character varying(10),
    rua character varying(30),
    capcarga public.dom_quantreal,
    liberado character(1),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.posicao OWNER TO postgres;

--
-- Name: processo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.processo (
    codprocesso public.dom_codint2 NOT NULL,
    codcidade public.dom_codint2,
    codfilial public.dom_codint2,
    codforadvogado public.dom_codint2,
    nomeadvogado character varying(200),
    codforautor public.dom_codint2,
    codforreu public.dom_codint2,
    natureza character varying(100),
    numprocesso character varying(50),
    vara character varying(150),
    datadistribuicao timestamp without time zone,
    valorpleiteado public.dom_dinheiro2,
    valoratualizado public.dom_dinheiro2,
    obs text,
    faseatual public.dom_codint2,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    codforadvogadoadv public.dom_codint2,
    encerrado public.dom_resp,
    datafinal timestamp without time zone,
    codtipoprocesso public.dom_codint2,
    codforescritorio public.dom_codint2,
    nomeadvogadoadv character varying(200),
    coddepartamento public.dom_codint2,
    datadigitacao timestamp without time zone,
    codmotorista public.dom_codint2,
    numeropasta public.dom_codint2,
    foneadvogado character varying(25),
    emailadvogado character varying(100),
    codcidadevara public.dom_codint2,
    datavencimentocontrato timestamp without time zone,
    codtiporisco integer,
    codfaseprocesso integer
);


ALTER TABLE public.processo OWNER TO postgres;

--
-- Name: processolog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.processolog (
    codprocesso public.dom_codint2 NOT NULL,
    data timestamp without time zone NOT NULL,
    fase public.dom_codint2,
    obs text,
    realizado public.dom_resp,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone,
    datacorreio timestamp without time zone,
    enviacorreio public.dom_resp,
    codprocessolog public.dom_codint NOT NULL,
    codfaseprocesso integer,
    valoratualizado public.dom_dinheiro2,
    valorpleiteado public.dom_dinheiro2
);


ALTER TABLE public.processolog OWNER TO postgres;

--
-- Name: progfrete; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.progfrete (
    codprogfrete public.dom_codint NOT NULL,
    codcliente public.dom_codint2,
    codremetente public.dom_codint2,
    codcoleta public.dom_codint2,
    coddestinatario public.dom_codint2,
    codentrega public.dom_codint2,
    codmercadoria public.dom_codint2,
    data timestamp without time zone,
    obs public.dom_text,
    status character varying(1),
    dataalt timestamp without time zone,
    usuarioalt character varying(15),
    datains timestamp without time zone,
    usuarioins character varying(15),
    totalpeso public.dom_quantreal,
    totalpesocubico public.dom_quantreal,
    totalviagens integer,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    justificativa integer
);


ALTER TABLE public.progfrete OWNER TO postgres;

--
-- Name: progfretedia; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.progfretedia (
    codprogfretedia public.dom_codint NOT NULL,
    codprogfrete public.dom_codint2,
    data timestamp without time zone,
    peso public.dom_quantreal,
    pesocubico public.dom_quantreal,
    dataalt timestamp without time zone,
    usuarioalt character varying(15),
    datains timestamp without time zone,
    usuarioins character varying(15)
);


ALTER TABLE public.progfretedia OWNER TO postgres;

--
-- Name: progfreteped; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.progfreteped (
    codprogfreteped public.dom_codint NOT NULL,
    codprogfrete public.dom_codint2,
    numeropedido public.dom_codint2,
    dataalt timestamp without time zone,
    usuarioalt character varying(15),
    datains timestamp without time zone,
    usuarioins character varying(15)
);


ALTER TABLE public.progfreteped OWNER TO postgres;

--
-- Name: proprietario; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietario (
    codproprietario public.dom_codint NOT NULL,
    nome public.dom_nomepessoa,
    contato public.dom_nomepessoa2,
    endereco public.dom_endereco2,
    complemento public.dom_complender,
    cep public.dom_cep,
    codcidade public.dom_codint,
    inscricaoestadual public.dom_ie,
    fone public.dom_fone2,
    fax public.dom_fone2,
    email public.dom_email2,
    cgccpf character varying(30),
    dataatual timestamp without time zone,
    liberadorequisicao public.dom_resp,
    percacrescimo numeric(20,4),
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    codcliente public.dom_codint2,
    codfornecedor public.dom_codint2,
    valordiesel public.dom_quantreal,
    celular character varying(20),
    senha character varying(10),
    datainclusao timestamp without time zone,
    agregado public.dom_resp,
    obs text,
    codproprietarioprincipal public.dom_codint2,
    percfrete public.dom_porcentagem2,
    percfretecontr public.dom_porcentagem2,
    agencia character varying(12),
    conta character varying(25),
    banco character varying(30),
    titular character varying(70),
    cei character varying(20),
    rg character varying(25),
    nomepai public.dom_nomepessoa2,
    nomemae public.dom_nomepessoa2,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    usuariolib character varying(15),
    bairro public.dom_bairro,
    numero character varying(10),
    tipotributacao public.dom_resp,
    descsegurosaldomot public.dom_resp,
    rntrc character varying(15),
    restricoes character varying(150),
    receita character varying(150),
    codbanco public.dom_codint2,
    codarrendatario public.dom_codint2,
    datavencarrendatario timestamp without time zone,
    dataemissaorg timestamp without time zone,
    adtomotbloqueado character(1),
    limitecredito public.dom_dinheiro2,
    orgaorg character varying(30),
    datanascimento timestamp without time zone,
    validaderntrc timestamp without time zone,
    titularcnpjcpf character varying(14),
    obs2 text,
    contacontabil character varying(25),
    dataultsenha timestamp without time zone,
    bloqueadoadm public.dom_resp,
    databloqueio timestamp without time zone,
    obsbloq text,
    email1 character varying(250),
    datavenccadastro timestamp without time zone,
    tipoconta public.dom_resp,
    tipoantt public.dom_codint2,
    sexo public.dom_resp,
    nacionalidade character varying(30),
    operadoracel public.dom_codint2,
    finalidadecredito character varying(10),
    statusrntrc character(1),
    imprimecartafrete public.dom_resp,
    tipoenvioxml public.dom_codint2,
    emailcte character varying(200),
    codexterno character varying(20),
    codfornpag public.dom_codint2,
    codcidadenatural public.dom_codint2,
    codtipoproprietario public.dom_codint2,
    vlinsssalario public.dom_dinheiro2,
    enviaris public.dom_resp,
    cnh character varying(30),
    validadecarteira timestamp without time zone,
    cathabilitacao character varying(20),
    codcidadecnh public.dom_codint2,
    dataprimeiracnh timestamp without time zone,
    dataemissaocnh date,
    escolaridade integer,
    estadocivil character(1),
    chlistopcoes character varying(250),
    codmotivobloqueio public.dom_codint2,
    obsbloqueio character varying(250),
    usuariobloqueio character varying(10),
    taxaseguro public.dom_quantreal,
    codgerriscoop public.dom_codint2,
    codgerriscoped public.dom_codint2,
    valoradto public.dom_dinheiro2,
    percadto public.dom_quantreal,
    obspagtoviag public.dom_text,
    filiallib character varying(250),
    checklist character varying(250),
    percagreg1 public.dom_porcentagem2,
    percagreg2 public.dom_porcentagem2,
    percagreg3 public.dom_porcentagem2,
    chavepix character varying(250),
    qrcodepix public.dom_text,
    diastrocasenha integer,
    tipoenviolink integer,
    tipochavepix integer,
    senhainteg character varying(20),
    natjur character varying(10),
    datasitcad timestamp without time zone,
    statuscad character varying(2),
    checklistpagto character varying(250),
    percabast public.dom_porcentagem2,
    codgerriscoabast public.dom_codint2,
    checklistmod character varying(250),
    adiantamentomotorista public.dom_dinheiro2,
    adiantamentomotorista2 public.dom_dinheiro2,
    validaderntrcbackup timestamp without time zone,
    etnia integer
);


ALTER TABLE public.proprietario OWNER TO postgres;

--
-- Name: proprietarioagenda; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietarioagenda (
    codproprietario public.dom_codint,
    codproprietarioagenda public.dom_codint NOT NULL,
    codtipoagenda public.dom_codint2,
    data timestamp without time zone,
    datadigitacao timestamp without time zone,
    historico text,
    dataproxagenda timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    datarealizado timestamp without time zone
);


ALTER TABLE public.proprietarioagenda OWNER TO postgres;

--
-- Name: proprietariocc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietariocc (
    codproprietariocc public.dom_codint NOT NULL,
    codproprietario public.dom_codint2,
    codbanco public.dom_codint2,
    agencia character varying(15),
    conta character varying(25),
    titular character varying(100),
    titularcnpjcpf character varying(14),
    finalidadecredito character varying(10),
    liberado public.dom_resp,
    padrao public.dom_resp,
    tipoconta character(1),
    chavepix character varying(250),
    qrcodepix public.dom_text,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    tipochavepix integer
);


ALTER TABLE public.proprietariocc OWNER TO postgres;

--
-- Name: proprietariocodext; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietariocodext (
    codproprietariocodext public.dom_codint NOT NULL,
    codproprietario public.dom_codint2,
    codfilial public.dom_codint2,
    codsistema integer,
    codexterno character varying(100),
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.proprietariocodext OWNER TO postgres;

--
-- Name: proprietariocont; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietariocont (
    codproprietario public.dom_codint NOT NULL,
    nome public.dom_nomepessoa2 NOT NULL,
    datanascimento timestamp without time zone,
    fone character varying(25),
    celular character varying(25),
    obs character varying(200),
    codcargo public.dom_codint2,
    dataatual timestamp without time zone,
    codproprietariocont public.dom_codint NOT NULL,
    datainclusao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    cpf public.dom_cpf,
    email public.dom_email2,
    rg character varying(25),
    orgaorg character varying(30)
);


ALTER TABLE public.proprietariocont OWNER TO postgres;

--
-- Name: proprietariodesp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietariodesp (
    codproprietariodesp public.dom_codint NOT NULL,
    codproprietario public.dom_codint2,
    codtipodesp public.dom_codint2,
    valor public.dom_dinheiro2,
    codconhecimentodesp public.dom_codint2,
    codnotadesp public.dom_codint2,
    obs public.dom_text,
    data timestamp without time zone,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone,
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2
);


ALTER TABLE public.proprietariodesp OWNER TO postgres;

--
-- Name: proprietarioesocial; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietarioesocial (
    codproprietarioesocial public.dom_codint2 NOT NULL,
    codproprietario public.dom_codint2 NOT NULL,
    xmlenvio public.dom_text,
    xmlretorno public.dom_text,
    datarecebimento timestamp without time zone,
    protocolo character varying(255),
    mensagemretorno public.dom_text,
    campoauxiliar1 public.dom_text,
    campoauxiliar2 public.dom_text,
    retificador public.dom_resp,
    protocoloretificador character varying(50),
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone,
    dataenvio timestamp without time zone,
    dataatual timestamp without time zone
);


ALTER TABLE public.proprietarioesocial OWNER TO postgres;

--
-- Name: proprietarioesocialconhec; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietarioesocialconhec (
    codproprietarioesocialconhec public.dom_codint2 NOT NULL,
    numero public.dom_codint2 NOT NULL,
    codproprietarioesocial public.dom_codint2 NOT NULL,
    fretemotoristasai public.dom_quantreal,
    fretemotorista public.dom_quantreal,
    baseinss public.dom_quantreal,
    valorinss public.dom_quantreal,
    baseirrf public.dom_quantreal,
    valorirrf public.dom_quantreal,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone,
    dataenvio timestamp without time zone,
    dataatual timestamp without time zone,
    datarecebimento timestamp without time zone,
    valorsest public.dom_dinheiro2,
    valorsenat public.dom_dinheiro2
);


ALTER TABLE public.proprietarioesocialconhec OWNER TO postgres;

--
-- Name: proprietariofiscal; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietariofiscal (
    codproprietariofiscal public.dom_codint NOT NULL,
    codproprietario public.dom_codint2 NOT NULL,
    dataini timestamp without time zone,
    tipotributacao public.dom_resp,
    ceiinss character varying(20),
    usuarioins character varying(10),
    datains timestamp without time zone,
    usuarioalt character varying(10),
    dataalt timestamp without time zone,
    tipoantt integer,
    obs text
);


ALTER TABLE public.proprietariofiscal OWNER TO postgres;

--
-- Name: proprietariogerrisco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietariogerrisco (
    codproprietario public.dom_codint NOT NULL,
    codgerrisco public.dom_codint2 NOT NULL,
    data timestamp without time zone NOT NULL,
    datavalidade timestamp without time zone,
    numliberacao character varying(30),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    datainscricao timestamp without time zone,
    obs character varying(200),
    liberado public.dom_resp,
    codproprietariogerrisco public.dom_codint NOT NULL,
    datainclusao timestamp without time zone,
    exigeautgerrisco public.dom_resp,
    numerocartao public.dom_codint2,
    numerocartao2 character varying(50),
    tipocartao public.dom_codint2,
    codexterno character varying(20),
    codmotoristacartao public.dom_codint2,
    status integer,
    numerocartaoadto character varying(50)
);


ALTER TABLE public.proprietariogerrisco OWNER TO postgres;

--
-- Name: proprietariolib; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietariolib (
    codproprietariolib public.dom_codint NOT NULL,
    codproprietario public.dom_codint2,
    datalib timestamp without time zone,
    liberado character varying(1),
    usuariolib character varying(10),
    obs public.dom_text,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.proprietariolib OWNER TO postgres;

--
-- Name: proprietarioref; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietarioref (
    codproprietarioref public.dom_codint2 NOT NULL,
    codproprietario public.dom_codint,
    tipo public.dom_codint2,
    nome public.dom_nomepessoa2,
    fone public.dom_fone2,
    endereco public.dom_endereco2,
    codcidade public.dom_codint2,
    celular public.dom_fone2,
    obs character varying(100),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    status public.dom_resp
);


ALTER TABLE public.proprietarioref OWNER TO postgres;

--
-- Name: proprietarioref_gen; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.proprietarioref_gen
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.proprietarioref_gen OWNER TO postgres;

--
-- Name: proprietariosegv; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.proprietariosegv (
    codproprietariosegv public.dom_codint NOT NULL,
    codproprietario public.dom_codint2,
    datainicio timestamp without time zone,
    precotonini public.dom_quantreal,
    precotonfim public.dom_quantreal,
    vlsegporeixo public.dom_quantreal,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.proprietariosegv OWNER TO postgres;

--
-- Name: protocolofatura; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.protocolofatura (
    codprotocolofat public.dom_codint NOT NULL,
    data timestamp without time zone,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.protocolofatura OWNER TO postgres;

--
-- Name: questao; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.questao (
    codquestao public.dom_codint2 NOT NULL,
    codquestionario public.dom_codint2,
    sequencia public.dom_codint2,
    codsubtopico public.dom_codint2,
    codtipoquestao public.dom_codint2,
    descricao text,
    respostaobrig character(1),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.questao OWNER TO postgres;

--
-- Name: questionario; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.questionario (
    codquestionario public.dom_codint2 NOT NULL,
    descricao character varying(100),
    liberado character(1),
    cliente character(1),
    fornecedor character(1),
    proprietario character(1),
    motorista character(1),
    veiculo character(1),
    viagem character(1),
    manifesto character(1),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    nota character(1),
    os character(1),
    mostraapp public.dom_resp,
    versao character varying(30),
    checklist character varying(250),
    diasvalidade integer,
    codempresa public.dom_codint2
);


ALTER TABLE public.questionario OWNER TO postgres;

--
-- Name: questionariotab; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.questionariotab (
    codquestionariotab public.dom_codint NOT NULL,
    codquestionario public.dom_codint2,
    nometabela character varying(30),
    chavetabela integer,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.questionariotab OWNER TO postgres;

--
-- Name: questionariousuario; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.questionariousuario (
    codquestionariousuario public.dom_codint2 NOT NULL,
    codquestionario public.dom_codint2,
    codcliente public.dom_codint2,
    codfornecedor public.dom_codint2,
    codproprietario public.dom_codint2,
    codmotorista public.dom_codint2,
    codveiculo public.dom_codint2,
    numero public.dom_codint2,
    codmanif public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codnota public.dom_codint2,
    dataquest timestamp without time zone,
    codmotoristaquest public.dom_codint2,
    obs public.dom_text,
    codauditoria public.dom_codint2,
    km public.dom_quantreal,
    codcarreta public.dom_codint2,
    codcarreta2 public.dom_codint2,
    codcarreta3 public.dom_codint2,
    usuarioconf character varying(15),
    dataconf timestamp without time zone,
    status character varying(1),
    datavalidade timestamp without time zone,
    codseguranca character varying(250),
    datacanc timestamp without time zone,
    usuariocanc character varying(10),
    codempresa public.dom_codint2,
    protocolo character varying(100)
);


ALTER TABLE public.questionariousuario OWNER TO postgres;

--
-- Name: recurso; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.recurso (
    codrecurso integer DEFAULT nextval('public.codrecurso_gen'::regclass) NOT NULL,
    codusuario integer,
    codmenuitem integer,
    acessar character(1),
    inserir character(1),
    alterar character(1),
    remover character(1),
    ordematalho integer,
    tituloatalho character varying(50)
);


ALTER TABLE public.recurso OWNER TO postgres;

--
-- Name: recursogrupousuario; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.recursogrupousuario (
    codrecursogrupousuario public.dom_codint NOT NULL,
    codgrupousuario public.dom_codint2,
    codmenuitem public.dom_codint2,
    acessar character(1),
    inserir character(1),
    alterar character(1),
    remover character(1),
    ordematalho integer,
    tituloatalho character varying(50)
);


ALTER TABLE public.recursogrupousuario OWNER TO postgres;

--
-- Name: recursos; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.recursos (
    nome character varying(10) NOT NULL,
    menuitem character varying(30) NOT NULL,
    acessos character(4)
);


ALTER TABLE public.recursos OWNER TO postgres;

--
-- Name: recursosgrupousuario; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.recursosgrupousuario (
    nome character varying(20) NOT NULL,
    menuitem character varying(30) NOT NULL,
    acesso character(4)
);


ALTER TABLE public.recursosgrupousuario OWNER TO postgres;

--
-- Name: regiao; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.regiao (
    codregiao public.dom_codint NOT NULL,
    descricao character varying(250),
    obs text,
    usuarioins character varying(15),
    datadigitacao date,
    usuarioalt character varying(15),
    dataatual date
);


ALTER TABLE public.regiao OWNER TO postgres;

--
-- Name: regiaocid; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.regiaocid (
    codregiaocid public.dom_codint NOT NULL,
    codregiao public.dom_codint2,
    codcidade public.dom_codint2,
    obs text,
    usuarioins character varying(15),
    datadigitacao date,
    usuarioalt character varying(15),
    dataatual date
);


ALTER TABLE public.regiaocid OWNER TO postgres;

--
-- Name: regiaocli; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.regiaocli (
    codregiaocli public.dom_codint NOT NULL,
    codregiao public.dom_codint2,
    codcliente public.dom_codint2,
    obs text,
    usuarioins character varying(15),
    datadigitacao date,
    usuarioalt character varying(15),
    dataatual date
);


ALTER TABLE public.regiaocli OWNER TO postgres;

--
-- Name: regiaoprop; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.regiaoprop (
    codregiaoprop public.dom_codint NOT NULL,
    codregiao public.dom_codint2,
    codproprietario public.dom_codint2,
    enviaemail public.dom_resp,
    enviasms public.dom_resp,
    obs public.dom_text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    interesse character(1)
);


ALTER TABLE public.regiaoprop OWNER TO postgres;

--
-- Name: regrac; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.regrac (
    codregrac public.dom_codint NOT NULL,
    descricao character varying(250),
    lcampos character varying(250),
    obs public.dom_text,
    status character(1),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    lcampos1 character varying(250),
    lcampos2 character varying(250)
);


ALTER TABLE public.regrac OWNER TO postgres;

--
-- Name: regracdet; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.regracdet (
    codregracdet public.dom_codint NOT NULL,
    codregrac public.dom_codint2,
    campo character varying(30),
    percentual public.dom_quantreal,
    codcontadeb public.dom_codint2,
    codcontacred public.dom_codint2,
    codconthist public.dom_codint2,
    complpadrao character varying(200),
    obs public.dom_text,
    listaaux character varying(250),
    codaux integer,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    listaaux2 character varying(250)
);


ALTER TABLE public.regracdet OWNER TO postgres;

--
-- Name: req; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.req (
    codreq public.dom_codint NOT NULL,
    codnota public.dom_codint2,
    data timestamp without time zone,
    numeronota public.dom_codint2,
    serie character varying(3),
    codfornecedor public.dom_codint2,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.req OWNER TO postgres;

--
-- Name: resposta; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.resposta (
    codresposta public.dom_codint2 NOT NULL,
    codquestao public.dom_codint2,
    sequencia public.dom_codint2,
    descricao character varying(200),
    quebralinha character(1),
    tipoobs character(1),
    linobs public.dom_codint2,
    colobs public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    coditem public.dom_codint2,
    checklist character varying(250)
);


ALTER TABLE public.resposta OWNER TO postgres;

--
-- Name: respostausuario; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.respostausuario (
    codrespostausuario public.dom_codint2 NOT NULL,
    codquestionariousuario public.dom_codint2,
    codresposta public.dom_codint2,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    respdescricao character varying(200),
    questaodescricao public.dom_text
);


ALTER TABLE public.respostausuario OWNER TO postgres;

--
-- Name: romaneio; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.romaneio (
    codromaneio public.dom_codint NOT NULL,
    data timestamp without time zone,
    codfilial public.dom_codint2,
    tipo character(1),
    valor public.dom_dinheiro2,
    codveiculo public.dom_codint2,
    tara public.dom_quantreal,
    pesobrutocarreg public.dom_quantreal,
    pesobrutodescarreg public.dom_quantreal,
    codmotorista public.dom_codint2,
    dataentveic timestamp without time zone,
    datasaidaveic timestamp without time zone,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codvisitantelog public.dom_codint2,
    obs public.dom_text
);


ALTER TABLE public.romaneio OWNER TO postgres;

--
-- Name: romaneioitem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.romaneioitem (
    codromaneioitem public.dom_codint NOT NULL,
    codromaneio public.dom_codint2,
    valor public.dom_dinheiro2,
    codposicaoorig public.dom_codint2,
    codposicaodest public.dom_codint2,
    codcontrato public.dom_codint2,
    quantidade public.dom_quantreal,
    coditem public.dom_codint2,
    coditemnotamov public.dom_codint2,
    coditemnotafat public.dom_codint2,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    obs public.dom_text
);


ALTER TABLE public.romaneioitem OWNER TO postgres;

--
-- Name: rota; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.rota (
    codrota public.dom_codint2 NOT NULL,
    descricao public.dom_nomepessoa2,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    liberado public.dom_resp,
    kmprevisto public.dom_quantreal,
    tempo public.dom_quantreal,
    mediadesejada public.dom_quantreal,
    mediaminima public.dom_quantreal,
    mediamaxima public.dom_quantreal,
    codexterno public.dom_codint2,
    codpercext public.dom_codint2,
    valorporeixo public.dom_dinheiro2,
    obs text,
    valorpedagio public.dom_quantreal,
    descext character varying(100),
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    codgerrisco public.dom_codint2,
    codexterno2 character varying(50)
);


ALTER TABLE public.rota OWNER TO postgres;

--
-- Name: rotacidade; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.rotacidade (
    codrota public.dom_codint2 NOT NULL,
    codrotacidade public.dom_codint2 NOT NULL,
    ordem public.dom_codint2,
    codcidade public.dom_codint2,
    obs public.dom_obs,
    km public.dom_quantreal,
    jurisdicao character varying(200),
    tipo character varying(50),
    rodovia character varying(100),
    valorpedagioeixo public.dom_dinheiro2,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    lat double precision,
    lon double precision,
    pracapedagio character varying(30)
);


ALTER TABLE public.rotacidade OWNER TO postgres;

--
-- Name: rotagerrisco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.rotagerrisco (
    codrotagerrisco public.dom_codint NOT NULL,
    codrota public.dom_codint2,
    codgerrisco public.dom_codint2,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone
);


ALTER TABLE public.rotagerrisco OWNER TO postgres;

--
-- Name: safra; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.safra (
    codsafra public.dom_codint NOT NULL,
    descricao character varying(200),
    liberado public.dom_resp,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.safra OWNER TO postgres;

--
-- Name: semaforo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.semaforo (
    codsemaforo public.dom_codint NOT NULL,
    nometabela character varying(30),
    chavetabela integer,
    obs character varying(250),
    telafunc character varying(50),
    status character varying(1),
    dataalt timestamp without time zone,
    usuarioalt character varying(15),
    datains timestamp without time zone,
    usuarioins character varying(15),
    ipmaquina character varying(30),
    idexe character varying(50)
);


ALTER TABLE public.semaforo OWNER TO postgres;

--
-- Name: semaforolog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.semaforolog (
    codsemaforolog public.dom_codint NOT NULL,
    codsemaforo public.dom_codint2,
    obs character varying(250),
    telafunc character varying(50),
    status character varying(1),
    datains timestamp without time zone,
    usuarioins character varying(15),
    ipmaquina character varying(30),
    idexe character varying(50)
);


ALTER TABLE public.semaforolog OWNER TO postgres;

--
-- Name: sincsistemaext; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.sincsistemaext (
    codsincsistemaext public.dom_codint NOT NULL,
    nometabela character varying(30),
    chavetabela integer,
    sinc character varying(1),
    datasinc timestamp without time zone,
    codsistema public.dom_codint2,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.sincsistemaext OWNER TO postgres;

--
-- Name: sistemaext; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.sistemaext (
    codsistemaext public.dom_codint NOT NULL,
    codexterno character varying(250),
    codsistema public.dom_codint2,
    codcliente public.dom_codint2,
    codfornecedor public.dom_codint2,
    coditem public.dom_codint2,
    codmotorista public.dom_codint2,
    codproprietario public.dom_codint2,
    codfilial public.dom_codint2,
    codempresa public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codveiculo public.dom_codint2,
    codexterno2 character varying(250),
    nometabela character varying(30),
    chavetabela integer
);


ALTER TABLE public.sistemaext OWNER TO postgres;

--
-- Name: solcompra; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.solcompra (
    codsolcompra public.dom_codint NOT NULL,
    data timestamp without time zone,
    codfilial public.dom_codint2,
    codunidadeembarque public.dom_codint2,
    codfornecedor public.dom_codint2,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    gerada public.dom_resp,
    codmotorista public.dom_codint2,
    codnota public.dom_codint2,
    usuarioaut character varying(10),
    dataaut timestamp without time zone,
    usuariosolicaut character varying(10),
    codtipo integer,
    coddepartamento public.dom_codint2
);


ALTER TABLE public.solcompra OWNER TO postgres;

--
-- Name: solcompraitem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.solcompraitem (
    codsolcompraitem public.dom_codint NOT NULL,
    codsolcompra public.dom_codint2,
    coditem public.dom_codint2,
    quantidade public.dom_quantreal,
    obs text,
    ved public.dom_resp,
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2,
    codcot public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    coditemnota public.dom_codint2,
    km public.dom_quantreal,
    coddepartamento public.dom_codint2,
    codcavalo public.dom_codint2
);


ALTER TABLE public.solcompraitem OWNER TO postgres;

--
-- Name: spool; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.spool (
    codspool public.dom_codint NOT NULL,
    chavetabela public.dom_codint,
    nometabela character varying(30),
    campochave character varying(15),
    sequencia integer,
    jsonenvio text,
    jsonretorno text,
    status integer,
    tentativas integer,
    acao integer,
    urlenvio text,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datains timestamp without time zone,
    dataalt timestamp without time zone
);


ALTER TABLE public.spool OWNER TO postgres;

--
-- Name: subtopico; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.subtopico (
    codsubtopico public.dom_codint2 NOT NULL,
    codtopico public.dom_codint2,
    descricao character varying(200),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.subtopico OWNER TO postgres;

--
-- Name: supergrupo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.supergrupo (
    codsupergrupo public.dom_codint2 NOT NULL,
    descricao character varying(30),
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    ordem integer,
    codexterno character varying(20)
);


ALTER TABLE public.supergrupo OWNER TO postgres;

--
-- Name: supergrupofinanceiro; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.supergrupofinanceiro (
    codsupergrupofinanceiro public.dom_codint2 NOT NULL,
    descricao character varying(70),
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codmegagrupofinanceiro public.dom_codint2,
    ordem public.dom_codint2
);


ALTER TABLE public.supergrupofinanceiro OWNER TO postgres;

--
-- Name: supergruporeceita; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.supergruporeceita (
    codsupergruporeceita public.dom_codint2 NOT NULL,
    descricao character varying(30),
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    datainclusao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.supergruporeceita OWNER TO postgres;

--
-- Name: tipoacaoaud; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoacaoaud (
    codtipoacaoaud public.dom_codint2 NOT NULL,
    descricao character varying(200),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.tipoacaoaud OWNER TO postgres;

--
-- Name: tipoacidente; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoacidente (
    codtipoacidente public.dom_codint NOT NULL,
    descricao character varying(200),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    valormotorista public.dom_dinheiro2,
    pontos integer,
    liberado public.dom_resp
);


ALTER TABLE public.tipoacidente OWNER TO postgres;

--
-- Name: tipoborracha; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoborracha (
    codtipoborracha public.dom_codint2 NOT NULL,
    descricao character varying(70),
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.tipoborracha OWNER TO postgres;

--
-- Name: tipocarroceria; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipocarroceria (
    codtipocarroceria public.dom_codint2 NOT NULL,
    descricao character varying(70),
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    comprimento public.dom_quantreal,
    altura public.dom_quantreal,
    largura public.dom_quantreal,
    peso public.dom_quantreal,
    comprimentomax public.dom_quantreal,
    alturamax public.dom_quantreal,
    larguramax public.dom_quantreal,
    pesomax public.dom_quantreal,
    valordia public.dom_dinheiro2,
    valorkm public.dom_dinheiro2,
    quanteixos public.dom_codint2,
    valora public.dom_quantreal,
    valorb public.dom_quantreal,
    valorc public.dom_quantreal,
    valord public.dom_quantreal,
    valore public.dom_quantreal,
    valorf public.dom_quantreal,
    valorg public.dom_quantreal,
    valorh public.dom_quantreal,
    valori public.dom_quantreal,
    valorj public.dom_quantreal,
    valork public.dom_quantreal,
    valorl public.dom_quantreal,
    liberadocotacao public.dom_resp
);


ALTER TABLE public.tipocarroceria OWNER TO postgres;

--
-- Name: tipoccempfunc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoccempfunc (
    codtipoccempfunc public.dom_codint NOT NULL,
    descricao character varying(200),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codexterno character varying(20),
    codcontacontabil public.dom_codint2
);


ALTER TABLE public.tipoccempfunc OWNER TO postgres;

--
-- Name: tipocliente; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipocliente (
    codtipocliente public.dom_codint2 NOT NULL,
    descricao character varying(70),
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    maxanocavalo public.dom_codint2,
    maxanocarreta public.dom_codint2,
    codtipodescfiscal public.dom_codint2
);


ALTER TABLE public.tipocliente OWNER TO postgres;

--
-- Name: tipoclienteexame; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoclienteexame (
    codtipocliente public.dom_codint2 NOT NULL,
    codexametreinamento public.dom_codint2 NOT NULL,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codtipoclienteexame public.dom_codint2 NOT NULL
);


ALTER TABLE public.tipoclienteexame OWNER TO postgres;

--
-- Name: tipoclienteop; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoclienteop (
    codtipoclienteop public.dom_codint NOT NULL,
    descricao character varying(100),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone
);


ALTER TABLE public.tipoclienteop OWNER TO postgres;

--
-- Name: tipocobranca; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipocobranca (
    codtipocobranca public.dom_codint NOT NULL,
    descricao character varying(200),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.tipocobranca OWNER TO postgres;

--
-- Name: tipodesc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipodesc (
    codtipodesc public.dom_codint NOT NULL,
    tipo integer,
    descricao text,
    codexterno character varying(250),
    campoaux character varying(250),
    campoaux2 character varying(250),
    campoaux3 character varying(250),
    usuarioins character varying(10),
    datains timestamp without time zone,
    usuarioalt character varying(10),
    dataalt timestamp without time zone
);


ALTER TABLE public.tipodesc OWNER TO postgres;

--
-- Name: tipodescdet; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipodescdet (
    codtipodescdet public.dom_codint NOT NULL,
    nometabela character varying(30),
    chavetabela public.dom_codint2,
    codtipodesc public.dom_codint2,
    codexterno character varying(250),
    usuarioins character varying(10),
    datains timestamp without time zone,
    usuarioalt character varying(10),
    dataalt timestamp without time zone,
    auxvalor public.dom_dinheiro2,
    auxstring character varying(200),
    auxinteger public.dom_codint
);


ALTER TABLE public.tipodescdet OWNER TO postgres;

--
-- Name: tipodesp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipodesp (
    codtipodesp public.dom_codint NOT NULL,
    descricao character varying(200),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    mostradacte public.dom_resp,
    embfreteemp public.dom_resp,
    faturar public.dom_resp,
    cst character varying(10),
    pagar public.dom_resp,
    descontasaldomot public.dom_resp,
    codcontacontabil integer,
    codconthist integer,
    descontasaldoemp public.dom_resp,
    checklist character varying(250),
    liberado public.dom_resp
);


ALTER TABLE public.tipodesp OWNER TO postgres;

--
-- Name: tipodoc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipodoc (
    codtipodoc public.dom_codint2 NOT NULL,
    descricao character varying(100),
    tipo character varying(2),
    nomebasearq character varying(10),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    pasta character varying(200),
    permiteassinaturadigital character varying(1)
);


ALTER TABLE public.tipodoc OWNER TO postgres;

--
-- Name: tipodocaud; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipodocaud (
    codtipodocaud public.dom_codint2 NOT NULL,
    descricao character varying(200),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.tipodocaud OWNER TO postgres;

--
-- Name: tipodocaudus; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipodocaudus (
    codtipodocaudus public.dom_codint NOT NULL,
    codtipodocaud public.dom_codint2,
    usuario character varying(15),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    tipoaviso character(1)
);


ALTER TABLE public.tipodocaudus OWNER TO postgres;

--
-- Name: tipoequip; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoequip (
    codtipoequip public.dom_codint2 NOT NULL,
    descricao character varying(70),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.tipoequip OWNER TO postgres;

--
-- Name: tipoequiploc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoequiploc (
    codtipoequiploc public.dom_codint2 NOT NULL,
    codtipoequip public.dom_codint2,
    descricao character varying(70),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    statusdestino character(1)
);


ALTER TABLE public.tipoequiploc OWNER TO postgres;

--
-- Name: tipoequiplog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoequiplog (
    codtipoequiplog public.dom_codint NOT NULL,
    codtipoequip public.dom_codint2,
    descricao character varying(100),
    diasmanutprev integer,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone
);


ALTER TABLE public.tipoequiplog OWNER TO postgres;

--
-- Name: tipoevento; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoevento (
    codtipoevento public.dom_codint2 NOT NULL,
    descricao character varying(30),
    codstatuspneu public.dom_codint2,
    dataatual timestamp without time zone,
    integracustokm public.dom_resp,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    coditem public.dom_codint2,
    listalocallib character varying(250),
    listalocallib2 character varying(250)
);


ALTER TABLE public.tipoevento OWNER TO postgres;

--
-- Name: tipofinanc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipofinanc (
    codtipofinanc public.dom_codint2 NOT NULL,
    descricao character varying(70),
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone
);


ALTER TABLE public.tipofinanc OWNER TO postgres;

--
-- Name: tipofornecedor; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipofornecedor (
    codtipofornecedor public.dom_codint2 NOT NULL,
    descricao public.dom_nomepessoa2,
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.tipofornecedor OWNER TO postgres;

--
-- Name: tipohistfat; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipohistfat (
    codtipohistfat public.dom_codint NOT NULL,
    liberado public.dom_resp,
    descricao character varying(250),
    desccompleta public.dom_text,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.tipohistfat OWNER TO postgres;

--
-- Name: tipojustificativa; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipojustificativa (
    codtipojustificativa public.dom_codint2 NOT NULL,
    descricao character varying(100),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codexterno character varying(10),
    datadigitacao timestamp without time zone,
    checklist character varying(250)
);


ALTER TABLE public.tipojustificativa OWNER TO postgres;

--
-- Name: tipolicenca; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipolicenca (
    codtipolicenca public.dom_codint2 NOT NULL,
    descricao character varying(70),
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    liberado public.dom_resp,
    tabela integer,
    validade integer
);


ALTER TABLE public.tipolicenca OWNER TO postgres;

--
-- Name: tipolicencaob; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipolicencaob (
    codtipolicencaob public.dom_codint NOT NULL,
    codtipolicenca public.dom_codint2,
    codtipoveiculo public.dom_codint2,
    codmodelo public.dom_codint2,
    anofabricacao public.dom_codint2,
    anomodelo public.dom_codint2,
    obrigatoria public.dom_resp,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.tipolicencaob OWNER TO postgres;

--
-- Name: tipologmotorista; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipologmotorista (
    codtipologmotorista public.dom_codint NOT NULL,
    descricao public.dom_nomepessoa2,
    usuarioins character varying(15),
    datainclusao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.tipologmotorista OWNER TO postgres;

--
-- Name: tipomulta; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipomulta (
    codtipomulta public.dom_codint NOT NULL,
    descricao character varying(300),
    codinfracao character varying(30),
    codmultaorgao public.dom_codint2,
    baselegal text,
    classificacao public.dom_codint2,
    pontos public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    valor public.dom_dinheiro2,
    tempenalidade public.dom_resp,
    codfornecedor public.dom_codint2,
    checklist character varying(250)
);


ALTER TABLE public.tipomulta OWNER TO postgres;

--
-- Name: tiponotalog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tiponotalog (
    codtiponotalog public.dom_codint NOT NULL,
    descricao character varying(100),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    periodicidade public.dom_codint2
);


ALTER TABLE public.tiponotalog OWNER TO postgres;

--
-- Name: tipoobspedido; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoobspedido (
    codtipoobs public.dom_codint2 NOT NULL,
    descricao character varying(100),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.tipoobspedido OWNER TO postgres;

--
-- Name: tipoocorrencia; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoocorrencia (
    codtipoocorrencia public.dom_codint2 NOT NULL,
    descricao character varying(100),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codexterno character varying(10),
    datadigitacao timestamp without time zone,
    descricao2 character varying(250),
    codexterno2 character varying(30),
    checklist character varying(250)
);


ALTER TABLE public.tipoocorrencia OWNER TO postgres;

--
-- Name: tipooperacao; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipooperacao (
    codtipooperacao public.dom_codint2 NOT NULL,
    descricao character varying(70),
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone
);


ALTER TABLE public.tipooperacao OWNER TO postgres;

--
-- Name: tipopagto; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipopagto (
    codtipopagto public.dom_codint2 NOT NULL,
    descricao character varying(40),
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone
);


ALTER TABLE public.tipopagto OWNER TO postgres;

--
-- Name: tipopessoaoco; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipopessoaoco (
    codtipopessoaoco public.dom_codint NOT NULL,
    descricao character varying(100),
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datains timestamp without time zone,
    dataalt timestamp without time zone
);


ALTER TABLE public.tipopessoaoco OWNER TO postgres;

--
-- Name: tipoproprietario; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoproprietario (
    codtipoproprietario public.dom_codint NOT NULL,
    descricao character varying(200),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.tipoproprietario OWNER TO postgres;

--
-- Name: tipoquestao; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipoquestao (
    codtipoquestao public.dom_codint2 NOT NULL,
    descricao character varying(30),
    tiposubquestao character(1),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.tipoquestao OWNER TO postgres;

--
-- Name: tiporastreador; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tiporastreador (
    codtiporastreador public.dom_codint2 NOT NULL,
    descricao character varying(50),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.tiporastreador OWNER TO postgres;

--
-- Name: tiporastreamento; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tiporastreamento (
    codtiporastreamento public.dom_codint2 NOT NULL,
    descricao public.dom_nomepessoa2,
    dataatual timestamp without time zone,
    liberado public.dom_resp,
    rastreado public.dom_resp,
    escolta public.dom_resp,
    ramo character varying(25),
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.tiporastreamento OWNER TO postgres;

--
-- Name: tiporecto; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tiporecto (
    codtiporecto public.dom_codint2 NOT NULL,
    descricao character varying(40),
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    diasadicionais public.dom_codint2,
    datadigitacao timestamp without time zone
);


ALTER TABLE public.tiporecto OWNER TO postgres;

--
-- Name: tipotransporte; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tipotransporte (
    codtipotransporte public.dom_codint2 NOT NULL,
    descricao character varying(70),
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    vlsublimiteseguro public.dom_quantreal,
    ncm character varying(20)
);


ALTER TABLE public.tipotransporte OWNER TO postgres;

--
-- Name: topico; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.topico (
    codtopico public.dom_codint2 NOT NULL,
    descricao character varying(200),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.topico OWNER TO postgres;

--
-- Name: transacao; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.transacao (
    codtransacao public.dom_codint NOT NULL,
    numeroconta character varying(10),
    data timestamp without time zone,
    valor public.dom_dinheiro2,
    tipo character varying(1),
    databaixa timestamp without time zone,
    descricao public.dom_nomepessoa2,
    codtransacao1 public.dom_codint2,
    codtransacao2 public.dom_codint2,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    obs public.dom_obs,
    dataatual timestamp without time zone,
    tipotrans character(1),
    codcliente public.dom_codint2,
    codfornecedor public.dom_codint2,
    codmoeda public.dom_codint2,
    usuarioconf character varying(15),
    dataconf timestamp without time zone,
    datadigitacao timestamp without time zone,
    codacertoproprietario public.dom_codint2,
    pendentedoc public.dom_resp,
    obspendentedoc text,
    conferido public.dom_resp,
    dataenviobanco timestamp without time zone,
    usuarioenviobanco character varying(20),
    codfaturarec public.dom_codint2,
    codcaixa public.dom_codint2,
    statusconsolidado character(1),
    codcontrato public.dom_codint2,
    codmotivocanc public.dom_codint2,
    datacanc timestamp without time zone,
    usuariocanc character varying(15),
    valorantescanc public.dom_dinheiro2,
    detcanc public.dom_text,
    obscanc public.dom_text,
    codautenticacao character varying(250),
    idintegracao character varying(250),
    coderpexterno public.dom_codint2,
    tipopagamento integer
);


ALTER TABLE public.transacao OWNER TO postgres;

--
-- Name: transacaoextrato; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.transacaoextrato (
    codtransacaoextrato public.dom_codint NOT NULL,
    codextrato public.dom_codint2,
    codtransacao public.dom_codint2,
    status character varying(1),
    usuariocanc character varying(15),
    datacanc timestamp without time zone,
    obscanc character varying(250),
    dataalt timestamp without time zone,
    usuarioalt character varying(15),
    datains timestamp without time zone,
    usuarioins character varying(15)
);


ALTER TABLE public.transacaoextrato OWNER TO postgres;

--
-- Name: transacoestemp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.transacoestemp (
    codtransacaotemp public.dom_codint2 NOT NULL,
    data timestamp without time zone,
    numeroconta character varying(10),
    descricao character varying(200),
    numerodoc character varying(30),
    valor public.dom_dinheiro2,
    tipo character(1),
    status character(1),
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.transacoestemp OWNER TO postgres;

--
-- Name: txtcfg; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.txtcfg (
    codtxtcfg public.dom_codint2 NOT NULL,
    nome character varying(200),
    codtxtcfgtp public.dom_codint2,
    codexterno character varying(200),
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.txtcfg OWNER TO postgres;

--
-- Name: txtcfgreg; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.txtcfgreg (
    codtxtcfgreg public.dom_codint2 NOT NULL,
    codtxtcfg public.dom_codint2,
    codtiporeg character varying(200),
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.txtcfgreg OWNER TO postgres;

--
-- Name: txtcfgregtag; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.txtcfgregtag (
    codtxtcfgregtag public.dom_codint2 NOT NULL,
    codtxtcfgreg public.dom_codint2,
    ordem public.dom_codint2,
    nometag character varying(200),
    valortag character varying(250),
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.txtcfgregtag OWNER TO postgres;

--
-- Name: uf; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.uf (
    coduf character varying(2) NOT NULL,
    descricao character varying(50),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.uf OWNER TO postgres;

--
-- Name: uforigdest; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.uforigdest (
    coduforigdest public.dom_codint2 NOT NULL,
    uforigem character(2),
    ufdestino character(2),
    porcicms public.dom_quantreal,
    porcredbaseicms public.dom_quantreal,
    porcredvaloricms public.dom_quantreal,
    codmercadoria public.dom_codint2,
    taxaseguro public.dom_quantreal,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codobsfiscal public.dom_codint2,
    porcicmsnaocontr public.dom_quantreal,
    taxaseguro2 public.dom_quantreal,
    datainclusao timestamp without time zone,
    permitefreteretorno public.dom_resp,
    porcicmsfp public.dom_quantreal,
    ufspercurso character varying(250),
    pagaicms public.dom_resp
);


ALTER TABLE public.uforigdest OWNER TO postgres;

--
-- Name: uftaxa; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.uftaxa (
    uforig character(2) NOT NULL,
    ufdest character(2) NOT NULL,
    taxaseguro public.dom_quantreal,
    porcicms public.dom_quantreal,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    coduftaxa public.dom_codint2 NOT NULL
);


ALTER TABLE public.uftaxa OWNER TO postgres;

--
-- Name: unidadeembarque; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.unidadeembarque (
    codunidadeembarque public.dom_codint2 NOT NULL,
    descricao public.dom_nomepessoa2,
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    codunidadenegocio public.dom_codint2,
    descsegurosaldomot public.dom_resp,
    codfilial public.dom_codint2,
    taxaseguro public.dom_porcentagem2,
    serie character varying(5),
    endereco public.dom_nomepessoa2,
    codcidade public.dom_codint2,
    cep public.dom_cep,
    fone public.dom_fone2,
    fax public.dom_fone2,
    email public.dom_nomepessoa2,
    embarcador public.dom_nomepessoa2,
    complemento public.dom_nomepessoa2,
    taxaiss public.dom_quantreal,
    nomereduzido character varying(15),
    utilizacte public.dom_resp,
    emailcte character varying(200),
    percmaxadiant public.dom_quantreal,
    cnpj public.dom_cgc2,
    inscricaoestadual public.dom_ie,
    caminhobdcte character varying(150),
    tpamb public.dom_resp,
    versaodados character varying(10),
    emailret character varying(200),
    emailerro character varying(200),
    rntrc character varying(20),
    nomeseguradora character varying(100),
    numeroapolice character varying(100),
    respseguro character(1),
    resppedagio character(1),
    tipopedagio character(1),
    codfornecedor public.dom_codint2,
    venccontrpedagio timestamp without time zone,
    versaocte character varying(10),
    numero character varying(10),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    tipo public.dom_codint2,
    percminlucro public.dom_quantreal,
    percminlucrotercpf public.dom_quantreal,
    percminlucroproprio public.dom_quantreal,
    percminlucroagreg public.dom_quantreal,
    bairro public.dom_bairro,
    margemmaxfrota public.dom_porcentagem2,
    margemminfrota public.dom_porcentagem2,
    margemminfrete public.dom_porcentagem2,
    margemminpf public.dom_porcentagem2,
    margemminpj public.dom_porcentagem2,
    margemminagregado public.dom_porcentagem2,
    margemminagregadomisto public.dom_porcentagem2,
    percfrota public.dom_porcentagem2,
    utilizamdfe public.dom_resp,
    emailmdfe character varying(200),
    versaomdfe character varying(10),
    tpemis character(1),
    versaomodal character varying(10),
    versaoeventocte character varying(10),
    versaoeventomdfe character varying(10),
    versaoeventonfe character varying(10),
    mdfetpamb character(1),
    obscartafrete1 public.dom_obs,
    obscartafrete2 public.dom_obs,
    obscartafrete3 public.dom_obs,
    enderecocob public.dom_endereco2,
    complementocob public.dom_complender,
    codcidadecob public.dom_codint2,
    cepcob public.dom_cep,
    bairrocob public.dom_bairro,
    numerocob character varying(10),
    fonecob public.dom_fone2,
    faxcob public.dom_fone2,
    limitediariocartao public.dom_dinheiro2,
    inscricaomunicipal character varying(20),
    obsseguro text,
    verifsublimite public.dom_resp,
    premioseguro2 public.dom_quantreal,
    percmaxadiant2 public.dom_quantreal,
    arqlogo character varying(100),
    nfsecnae character varying(20),
    nfsecodservico character varying(20),
    nfsedescservico character varying(100),
    nfseversao character varying(5),
    nfseserie character varying(5),
    nfsetpamb character(1),
    codcidadenfse public.dom_codint2,
    descontaisssaldoemp public.dom_resp,
    impcartafrete integer,
    obs public.dom_text,
    cnpjseguradora public.dom_cgc,
    cidadanfseus character varying(50),
    cidadanfsepw character varying(30),
    cidadanfsechave character varying(100),
    obsordemcar public.dom_text,
    obsordemcompra public.dom_text,
    tpemisnfe character varying(1),
    sm_localorigem public.dom_text,
    sm_localdestino public.dom_text,
    sm_valores public.dom_text,
    sm_obs public.dom_text,
    sm_obs2 public.dom_text,
    listanegocio character varying(250),
    nfsecodtributacao character varying(20),
    codmotoristager public.dom_codint2,
    codmotoristasup public.dom_codint2,
    celular character varying(20),
    tpemismdfe character varying(1),
    sm_transportadora public.dom_text,
    checklist character varying(250),
    taxaadm public.dom_porcentagem2,
    taxaseguro2 public.dom_quantreal,
    codmotoristasup2 public.dom_codint2,
    ctecrt character varying(1),
    descsegurosaldo public.dom_resp,
    codmotoristaencarregado public.dom_codint2,
    codunidadeembarqueprincipal public.dom_codint2,
    codgerrisco public.dom_codint2,
    senha character varying(70),
    usuario character varying(70),
    urlhomol character varying(150),
    urlprod character varying(150),
    token character varying(250),
    tipohomologprod integer,
    campoaux1 character varying(200),
    campoaux2 character varying(200),
    campoaux3 character varying(200),
    campoaux4 character varying(200),
    campoaux5 character varying(200),
    campoaux6 character varying(200),
    campoaux7 character varying(200),
    codmotoristaencarregado2 public.dom_codint2,
    codmotoristasup3 public.dom_codint2,
    codnbs public.dom_codint2,
    valorapolice public.dom_dinheiro2,
    validadeapolice timestamp without time zone
);


ALTER TABLE public.unidadeembarque OWNER TO postgres;

--
-- Name: unidadeembarquedesp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.unidadeembarquedesp (
    codunidadeembarquedesp public.dom_codint NOT NULL,
    codunidadeembarque public.dom_codint2,
    codtipodesp public.dom_codint2,
    obs public.dom_text,
    codfornecedor public.dom_codint2,
    valor public.dom_dinheiro2,
    valorppt public.dom_dinheiro2,
    percentual public.dom_dinheiro2,
    embfreteemp public.dom_resp,
    descontasaldomot public.dom_resp,
    faturar public.dom_resp,
    pagar public.dom_resp,
    descontasaldoemp public.dom_resp,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.unidadeembarquedesp OWNER TO postgres;

--
-- Name: unidadeembarquedoc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.unidadeembarquedoc (
    codunidadeembarquedoc public.dom_codint NOT NULL,
    codunidadeembarque public.dom_codint2,
    tabela integer,
    codtipodoc public.dom_codint2,
    obrigatorio public.dom_resp,
    obs public.dom_text,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.unidadeembarquedoc OWNER TO postgres;

--
-- Name: unidadeembarquemarg; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.unidadeembarquemarg (
    codunidadeembarquemarg public.dom_codint NOT NULL,
    codunidadeembarque public.dom_codint2,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    precotonempini public.dom_quantreal,
    margemminfrota public.dom_quantreal,
    margemminfrete public.dom_quantreal,
    margemminpf public.dom_quantreal,
    margemminpj public.dom_quantreal,
    margemminagregado public.dom_quantreal,
    margemminagregadomisto public.dom_quantreal,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.unidadeembarquemarg OWNER TO postgres;

--
-- Name: unidadeembarquerat; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.unidadeembarquerat (
    codunidadeembarque public.dom_codint NOT NULL,
    codunidadeembrat public.dom_codint2 NOT NULL,
    data timestamp without time zone,
    percrateio public.dom_quantreal,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codnegocio public.dom_codint2
);


ALTER TABLE public.unidadeembarquerat OWNER TO postgres;

--
-- Name: unidadeembarqueseg; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.unidadeembarqueseg (
    codunidadeembarqueseg public.dom_codint NOT NULL,
    codunidadeembarque public.dom_codint2,
    precotonmotorista public.dom_dinheiro2,
    taxaseguro public.dom_quantreal,
    taxaseguro2 public.dom_quantreal,
    descsegurosaldomot public.dom_resp,
    descsegurosaldomot2 public.dom_resp,
    obs public.dom_text,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.unidadeembarqueseg OWNER TO postgres;

--
-- Name: unidadenegocio; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.unidadenegocio (
    codunidadenegocio public.dom_codint2 NOT NULL,
    descricao public.dom_nomepessoa2,
    dataatual timestamp without time zone,
    dataexportacao timestamp without time zone,
    liberado public.dom_resp,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codmotoristager public.dom_codint2,
    codmotoristasup public.dom_codint2,
    checklist character varying(250)
);


ALTER TABLE public.unidadenegocio OWNER TO postgres;

--
-- Name: usuario; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuario (
    nome character varying(10) NOT NULL,
    senha character varying(30),
    nomecompleto character varying(70),
    privilegios character varying(200),
    ueliberadas character varying(250),
    codlingua public.dom_codint2,
    vlmaxpagtit public.dom_dinheiro2,
    localpneulib character varying(200),
    ueliberadas1 character varying(250),
    codcidade public.dom_codint2,
    codembarcador public.dom_codint2,
    tipofaturalib character varying(200),
    datalimiterel timestamp without time zone,
    cargos character varying(250),
    condpagto character varying(250),
    valorajuste public.dom_dinheiro2,
    nomegrupo character varying(20),
    privilegios2 character varying(200),
    codunidadeembarque public.dom_codint2,
    privilegiossitesat text,
    codusuario public.dom_codint2 DEFAULT nextval('public.codusuario_gen'::regclass) NOT NULL,
    usuarioefrete character varying(250),
    senhaefrete character varying(15),
    condpagto2 character varying(250),
    coddepartamento public.dom_codint2,
    emailnome character varying(200),
    emailservidor character varying(200),
    emailuserid character varying(50),
    emailsenha character varying(25),
    emailautentica public.dom_resp,
    codmotorista public.dom_codint2,
    privilegios3 character varying(250),
    dataultsenha timestamp without time zone,
    tembp public.dom_resp,
    senhabp character varying(30),
    listatipofrete character varying(100),
    ueliberadas2 character varying(250),
    ueliberadas3 character varying(250),
    valormaximofatura public.dom_dinheiro2,
    pesosaidamaximo public.dom_quantreal,
    acertopeso public.dom_quantreal,
    statususuario character(1),
    valormercadoriamax public.dom_quantreal,
    tipoctelib character varying(200),
    tipofornecedorlib character varying(200),
    diastrocasenha integer,
    supervisor character varying(1),
    tipofornecedorlib1 character varying(250),
    localpneulib1 character varying(250),
    datavalusprinc timestamp without time zone,
    tiponotaloglib character varying(250),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    databloq timestamp without time zone,
    valormaxccempfunc public.dom_quantreal,
    diaslimiterel public.dom_codint2,
    usacamera public.dom_resp,
    seriesctelib character varying(200),
    seriesnfelib character varying(200),
    cargos2 character varying(250),
    diaslimitevencfat integer,
    usatelaatalhos public.dom_resp,
    tipodesplib1 character varying(250),
    privilegios4 character varying(250),
    fusohorario character varying(5),
    regiaolib character varying(250),
    filtros public.dom_text,
    negociolib character varying(250),
    examelib character varying(250),
    tipofornecedorlib2 character varying(250),
    listatipoos character varying(250),
    ueliberadas4 character varying(250),
    ueliberadas5 character varying(250),
    vlmaxcheque public.dom_dinheiro2,
    listaitembloq character varying(250),
    listaitembloq2 character varying(250),
    valormaxmerclic public.dom_dinheiro2,
    datavalidade timestamp without time zone,
    kmmaximolic public.dom_quantreal,
    checklist character varying(250),
    vlmincheque public.dom_dinheiro2,
    tipoordcompralib character varying(100),
    acertoviagmin public.dom_dinheiro2,
    acertoviagmax public.dom_dinheiro2,
    abonoquebramax public.dom_dinheiro2,
    tipofornecedorlib3 character varying(250),
    tipofornecedorlib4 character varying(250),
    tipoccempfunc character varying(250),
    tipoccempfunc1 character varying(250),
    tipoccempfunc2 character varying(250),
    tipoccempfunc3 character varying(250),
    tipodocbloq character varying(250),
    tipodocbloq1 character varying(250),
    tipodesplib2 character varying(250),
    tipodesplib3 character varying(250),
    questlib character varying(250),
    diasmesanobloqcpos integer,
    uelibconhecmanif character varying(250),
    uelibconhecmanif1 character varying(250),
    uelibconhecmanif2 character varying(250),
    uelibconhecmanif3 character varying(250),
    uelibconhecmanif4 character varying(250),
    uelibconhecmanif5 character varying(250),
    listacodbilayoutr character varying(250),
    vlmaxos public.dom_dinheiro2,
    valormaxconhecdesp public.dom_dinheiro2,
    statuspneulib character varying(250),
    statuspneulib1 character varying(250),
    valormaxlimitecliente public.dom_dinheiro2,
    percmaxdescduprec public.dom_quantreal,
    valormaxdescduprec public.dom_quantreal,
    datamaxima timestamp without time zone,
    tipopagtolib character varying(250),
    valormaxpagadpix public.dom_dinheiro2,
    valormaxpagsdpix public.dom_dinheiro2,
    valormaxpedpix public.dom_dinheiro2,
    valormaxauditcp public.dom_dinheiro2,
    listatipoocorrencia character varying(250),
    filtrosgzip bytea,
    valormaxlibparc public.dom_dinheiro2,
    valoricmsmax public.dom_dinheiro2,
    listaprivilegios text
);


ALTER TABLE public.usuario OWNER TO postgres;

--
-- Name: usuariocampo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuariocampo (
    codusuariocampo public.dom_codintnn NOT NULL,
    codusuario public.dom_codint2,
    nometabela character varying(30) NOT NULL,
    nomecampo character varying(30) NOT NULL,
    valormin public.dom_dinheiro2,
    valormax public.dom_dinheiro2,
    datains timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    usuarioins character varying(15),
    dataalt timestamp without time zone,
    usuarioalt character varying(15)
);


ALTER TABLE public.usuariocampo OWNER TO postgres;

--
-- Name: usuariocliente; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuariocliente (
    nome character varying(10) NOT NULL,
    codcliente public.dom_codint2 NOT NULL,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    codusuariocliente public.dom_codint NOT NULL
);


ALTER TABLE public.usuariocliente OWNER TO postgres;

--
-- Name: usuarioconfig; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuarioconfig (
    codusuarioconfig public.dom_codint NOT NULL,
    nome character varying(15),
    descricao character varying(200),
    config text
);


ALTER TABLE public.usuarioconfig OWNER TO postgres;

--
-- Name: usuarioconta; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuarioconta (
    nome character varying(10) NOT NULL,
    numeroconta character varying(10) NOT NULL,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone,
    codusuarioconta public.dom_codint2 NOT NULL,
    datalimiteini timestamp without time zone,
    limitemaxpagdiario public.dom_dinheiro2,
    limitemaxpagporhora public.dom_dinheiro2
);


ALTER TABLE public.usuarioconta OWNER TO postgres;

--
-- Name: usuariofav; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuariofav (
    nome character varying(15) NOT NULL,
    menu character varying(100) NOT NULL,
    obs character varying(200),
    ordem public.dom_codint2,
    codusuariofav public.dom_codint NOT NULL,
    tipo character(1),
    codmenuitem public.dom_codint2
);


ALTER TABLE public.usuariofav OWNER TO postgres;

--
-- Name: usuariofilial; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuariofilial (
    nome character varying(10) NOT NULL,
    codfilial public.dom_codint2 NOT NULL,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codusuariofilial public.dom_codint2 NOT NULL,
    datainclusao timestamp without time zone
);


ALTER TABLE public.usuariofilial OWNER TO postgres;

--
-- Name: usuariogrupo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuariogrupo (
    nome character varying(10) NOT NULL,
    codgrupo public.dom_codint2 NOT NULL,
    dataatual timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datadigitacao timestamp without time zone,
    codusuariogrupo public.dom_codint2 NOT NULL
);


ALTER TABLE public.usuariogrupo OWNER TO postgres;

--
-- Name: usuariohora; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuariohora (
    codusuariohora public.dom_codint NOT NULL,
    codusuario public.dom_codint2,
    diasemana integer,
    horaini character varying(5),
    horafim character varying(5),
    datainivalid timestamp without time zone,
    datafimvalid timestamp without time zone,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15)
);


ALTER TABLE public.usuariohora OWNER TO postgres;

--
-- Name: usuarioitemreceita; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuarioitemreceita (
    nome character varying(10) NOT NULL,
    coditemreceita public.dom_codint2 NOT NULL,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    codusuarioitemreceita public.dom_codint2 NOT NULL
);


ALTER TABLE public.usuarioitemreceita OWNER TO postgres;

--
-- Name: usuariolog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuariolog (
    codusuariolog public.dom_codint2 NOT NULL,
    nome character varying(15),
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    menuitem character varying(50),
    obs character varying(250)
);


ALTER TABLE public.usuariolog OWNER TO postgres;

--
-- Name: usuarioopcartao; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuarioopcartao (
    codusuarioopcartao public.dom_codint NOT NULL,
    usuario character varying(15),
    codgerrisco public.dom_codint2,
    operacao character varying(100),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.usuarioopcartao OWNER TO postgres;

--
-- Name: usuarioper; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuarioper (
    codusuarioper public.dom_codint NOT NULL,
    codusuario public.dom_codint2,
    status character(1),
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.usuarioper OWNER TO postgres;

--
-- Name: usuarioproprietario; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuarioproprietario (
    codusuarioproprietario public.dom_codint NOT NULL,
    codproprietario public.dom_codint,
    nome character varying(10),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.usuarioproprietario OWNER TO postgres;

--
-- Name: usuariosenhas; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuariosenhas (
    codusuariosenhas public.dom_codint NOT NULL,
    codusuario public.dom_codint NOT NULL,
    senhacrip character varying(255),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datains timestamp without time zone,
    dataalt timestamp without time zone
);


ALTER TABLE public.usuariosenhas OWNER TO postgres;

--
-- Name: usuariotipodesc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.usuariotipodesc (
    codusuariotipodesc public.dom_codint NOT NULL,
    codusuario public.dom_codint2,
    codtipodesc public.dom_codint2
);


ALTER TABLE public.usuariotipodesc OWNER TO postgres;

--
-- Name: veiculoacidente; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculoacidente (
    codveiculoacidente public.dom_codint2 NOT NULL,
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2,
    data timestamp without time zone,
    bo character varying(200),
    codtipoacidente public.dom_codint2,
    local text,
    avariascavalo text,
    valorcavalo public.dom_dinheiro2,
    placacarreta character varying(7),
    avariascarreta text,
    valorcarreta public.dom_dinheiro2,
    codmercadoria public.dom_codint2,
    obsmercadoria text,
    valormercadoria public.dom_dinheiro2,
    obs text,
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codmanif public.dom_codint2,
    codadiantamento public.dom_codint2,
    codcidade public.dom_codint2,
    hora character varying(5),
    status public.dom_codint2,
    valorsinistro public.dom_dinheiro2,
    numeroacidente character varying(30),
    codfaturarec public.dom_codint2,
    valormotorista public.dom_dinheiro2,
    numeroseguradora character varying(20),
    prejuizoestimado public.dom_dinheiro2,
    valorindenizado public.dom_dinheiro2,
    valorrecseg public.dom_dinheiro2,
    valorarecseg public.dom_dinheiro2,
    salvadorec public.dom_dinheiro2,
    valorimpostos public.dom_dinheiro2,
    freteindenizado public.dom_dinheiro2,
    segurocobrado public.dom_dinheiro2,
    segurodevido public.dom_dinheiro2,
    impostosinternos public.dom_dinheiro2,
    obsacidente text,
    obsmot text,
    parecertecnico text,
    placacarreta2 character varying(7),
    placacarreta3 character varying(7),
    responsabilidade integer,
    gravidade integer,
    monta integer,
    codproprietarioterc public.dom_codint2,
    codmotoristaterc public.dom_codint2,
    velocidade public.dom_quantreal,
    pontos integer,
    codtipoclienteop public.dom_codint2,
    procede integer,
    codnegocio public.dom_codint2,
    valorpos public.dom_dinheiro2,
    valorlimpeza public.dom_dinheiro2,
    valorfranquia public.dom_dinheiro2,
    valorfretesinistrado public.dom_dinheiro2,
    codfornecedor public.dom_codint2,
    pesomercadoriaavariada public.dom_quantreal,
    especiemercadoriaavariada character varying(50),
    quantidademercadoriaavariada public.dom_quantreal,
    descontomot public.dom_dinheiro2
);


ALTER TABLE public.veiculoacidente OWNER TO postgres;

--
-- Name: veiculoacidenteadiant; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculoacidenteadiant (
    codveiculoacidenteadiant public.dom_codint NOT NULL,
    codveiculoacidente public.dom_codint2,
    codadiantamento public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codfatura public.dom_codint2
);


ALTER TABLE public.veiculoacidenteadiant OWNER TO postgres;

--
-- Name: veiculoacidenteconh; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculoacidenteconh (
    codveiculoacidenteconh public.dom_codint2 NOT NULL,
    codveiculoacidente public.dom_codint2,
    numero public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    obs text,
    dataatual timestamp without time zone,
    usuarioalt character varying(15),
    codconhecimentoocorrencia public.dom_codint2
);


ALTER TABLE public.veiculoacidenteconh OWNER TO postgres;

--
-- Name: veiculoacidentelog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculoacidentelog (
    codveiculoacidentelog public.dom_codint NOT NULL,
    codveiculoacidente public.dom_codint2,
    data timestamp without time zone,
    obs text,
    status public.dom_codint,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.veiculoacidentelog OWNER TO postgres;

--
-- Name: veiculoaluguel; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculoaluguel (
    codveiculo public.dom_codint NOT NULL,
    codfilial public.dom_codint NOT NULL,
    dataini timestamp without time zone NOT NULL,
    vlaluguelempdia public.dom_dinheiro2,
    vlaluguelmotdia public.dom_dinheiro2,
    vlkmemp public.dom_quantreal,
    vlkmmot public.dom_quantreal,
    totdias public.dom_quantreal,
    totkm public.dom_quantreal,
    dataatual timestamp without time zone,
    diasuteis public.dom_codint2,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codveiculoaluguel public.dom_codint2 NOT NULL
);


ALTER TABLE public.veiculoaluguel OWNER TO postgres;

--
-- Name: veiculocl; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculocl (
    codveiculocl public.dom_codint NOT NULL,
    codveiculo public.dom_codint2,
    data timestamp without time zone,
    codmotorista public.dom_codint2,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codnota public.dom_codint2,
    tipo integer,
    status integer,
    km public.dom_quantreal,
    codtipodescturno public.dom_codint2
);


ALTER TABLE public.veiculocl OWNER TO postgres;

--
-- Name: veiculoclitem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculoclitem (
    codveiculoclitem public.dom_codint NOT NULL,
    codveiculocl public.dom_codint2,
    coditem public.dom_codint2,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codinterno public.dom_codint2,
    status integer,
    codrespostausuario public.dom_codint2
);


ALTER TABLE public.veiculoclitem OWNER TO postgres;

--
-- Name: veiculocompart; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculocompart (
    codveiculocompart public.dom_codint NOT NULL,
    codveiculo public.dom_codint2,
    numero integer,
    capacidade public.dom_quantreal,
    lacre character varying(70),
    multisetas public.dom_resp,
    checklist character varying(250),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.veiculocompart OWNER TO postgres;

--
-- Name: veiculoconj; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculoconj (
    codveiculoconj public.dom_codint NOT NULL,
    descricao character varying(100),
    codcarreta public.dom_codint2,
    codcarreta2 public.dom_codint2,
    codcarreta3 public.dom_codint2,
    codcarreta4 public.dom_codint2,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.veiculoconj OWNER TO postgres;

--
-- Name: veiculocontrato; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculocontrato (
    codveiculocontrato public.dom_codint NOT NULL,
    codveiculo public.dom_codint2,
    codfornecedor public.dom_codint2,
    numerocontrato character varying(50),
    obs text,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    valorparcela public.dom_dinheiro2,
    kminicial public.dom_quantreal,
    kmfinal public.dom_quantreal,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codcontrato public.dom_codint2
);


ALTER TABLE public.veiculocontrato OWNER TO postgres;

--
-- Name: veiculoitem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculoitem (
    codveiculo public.dom_codint2 NOT NULL,
    coditem public.dom_codint2 NOT NULL,
    liberado public.dom_resp,
    dataatual timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    codveiculoitem public.dom_codint2 NOT NULL,
    ordem integer,
    kmpreventiva public.dom_quant,
    diasmanutpreventiva public.dom_quant
);


ALTER TABLE public.veiculoitem OWNER TO postgres;

--
-- Name: veiculoitemfer; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculoitemfer (
    codveiculoitemfer public.dom_codint2 NOT NULL,
    codveiculo public.dom_codint,
    coditem public.dom_codint2,
    data timestamp without time zone,
    quant public.dom_quantreal,
    valorunit public.dom_dinheiro2,
    obs character varying(200),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    codmotorista public.dom_codint2,
    mediamin public.dom_quantreal,
    mediades public.dom_quantreal,
    mediamax public.dom_quantreal
);


ALTER TABLE public.veiculoitemfer OWNER TO postgres;

--
-- Name: veiculoitemp; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculoitemp (
    codveiculoitemp public.dom_codint NOT NULL,
    codveiculoitem public.dom_codint2,
    data timestamp without time zone,
    kmpreventiva public.dom_quant,
    diasmanutpreventiva public.dom_quant,
    obs public.dom_text,
    status character varying(1),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    codmotivo integer
);


ALTER TABLE public.veiculoitemp OWNER TO postgres;

--
-- Name: veiculolib; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculolib (
    codveiculo public.dom_codint NOT NULL,
    codveiculolib public.dom_codint2 NOT NULL,
    datalib timestamp without time zone,
    usuariolib character varying(15),
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    liberado character varying(1),
    codmotorista public.dom_codint2,
    codproprietario public.dom_codint2
);


ALTER TABLE public.veiculolib OWNER TO postgres;

--
-- Name: veiculolicensa; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculolicensa (
    codveiculo public.dom_codint NOT NULL,
    codlicensa public.dom_codint2 NOT NULL,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    dataatual timestamp without time zone,
    descricao public.dom_nomepessoa2,
    numero character varying(25),
    estado character varying(2),
    codtipolicenca public.dom_codint2,
    codmercadoria public.dom_codint2,
    codrota public.dom_codint2,
    codcidadeorigem public.dom_codint2,
    codcidadedestino public.dom_codint2,
    status character(1),
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    mercadoria character varying(200),
    largura character varying(30),
    altura character varying(30),
    comprimento character varying(30),
    pesocarga public.dom_quantreal,
    excessotraz character varying(30),
    valormercadoria public.dom_dinheiro2,
    valormercadoriamax public.dom_dinheiro2,
    km public.dom_quantreal,
    kmmax public.dom_quantreal,
    usuarioaut character varying(15),
    dataaut timestamp without time zone,
    obs text,
    numeropedido public.dom_codint2,
    codveiculolicensa public.dom_codint2 NOT NULL,
    codmotorista public.dom_codint2,
    codproprietario public.dom_codint2,
    codtipotransporte public.dom_codint2
);


ALTER TABLE public.veiculolicensa OWNER TO postgres;

--
-- Name: veiculolog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculolog (
    codveiculo public.dom_codint NOT NULL,
    data timestamp without time zone NOT NULL,
    datadigitacao timestamp without time zone,
    codmotorista public.dom_codint2,
    local character varying(100),
    coddestino public.dom_codint2,
    obs character varying(250),
    codorigem public.dom_codint2,
    dataatual timestamp without time zone,
    status character varying(25),
    usuarioins character varying(15),
    usuarioalt character varying(15),
    latitude public.dom_quantreal,
    longitude public.dom_quantreal,
    historico text,
    numeropedido public.dom_codint2,
    numeroviagem public.dom_codint2,
    obs2 character varying(100),
    lat double precision,
    lon double precision,
    numeropedido2 public.dom_codint2,
    numeropedido3 public.dom_codint2,
    temposemmodificacao public.dom_quantreal,
    codcidade public.dom_codint2,
    codrota public.dom_codint2,
    codveiculolog public.dom_codint NOT NULL,
    kmrodado public.dom_quantreal,
    tipo public.dom_codint2,
    tempoestimado character varying(20),
    kmrota public.dom_quantreal,
    kmpercorrido public.dom_quantreal,
    ignicao public.dom_resp,
    velocidade public.dom_quantreal,
    codordemcar public.dom_codint2,
    km public.dom_quantreal,
    horimetro public.dom_quantreal,
    listaeventos text
);


ALTER TABLE public.veiculolog OWNER TO postgres;

--
-- Name: veiculomot; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculomot (
    codveiculomot public.dom_codint NOT NULL,
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2,
    datainivalid timestamp without time zone,
    datafimvalid timestamp without time zone,
    listadiasemana character varying(100),
    horaini character varying(5),
    horafim character varying(5),
    obs public.dom_text,
    status character varying(1),
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.veiculomot OWNER TO postgres;

--
-- Name: veiculomov; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculomov (
    codveiculo public.dom_codint2 NOT NULL,
    data timestamp without time zone NOT NULL,
    codunidadeembarque public.dom_codint2,
    codtipotransporte public.dom_codint2,
    codtipooperacao public.dom_codint2,
    codcliente public.dom_codint2,
    km public.dom_quantreal,
    mediamin public.dom_quantreal,
    mediades public.dom_quantreal,
    mediamax public.dom_quantreal,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    obs text,
    codmotorista public.dom_codint2,
    status public.dom_codint2,
    codveiculomov public.dom_codint NOT NULL,
    valorfaturamentodes public.dom_quantreal,
    taxaadm public.dom_quantreal,
    kmjornada public.dom_quantreal,
    codcontrato public.dom_codint2,
    codnegocio public.dom_codint2,
    codtipoveiculo public.dom_codint2,
    codmotivo public.dom_codint2,
    metaviagem integer,
    condicaoveic character varying(1),
    valorofertado public.dom_dinheiro2,
    apelido character varying(50),
    codembarcador public.dom_codint2
);


ALTER TABLE public.veiculomov OWNER TO postgres;

--
-- Name: veiculomulta; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculomulta (
    codveiculomulta public.dom_codint NOT NULL,
    codveiculo public.dom_codint2,
    codmotorista public.dom_codint2,
    data timestamp without time zone,
    codcidade public.dom_codint2,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    numero character varying(50),
    status public.dom_codint2,
    local character varying(250),
    dataemissao timestamp without time zone,
    datavencdefesa timestamp without time zone,
    datavencident timestamp without time zone,
    datapagamento timestamp without time zone,
    valormulta public.dom_dinheiro2,
    valordescontado public.dom_dinheiro2,
    codnota public.dom_codint2,
    codtipomulta public.dom_codint2,
    porcdesconto public.dom_porcentagem2,
    tempenalidade public.dom_resp,
    codfornecedor public.dom_codint2,
    datapostnotif timestamp without time zone,
    checklist character varying(250),
    descontomot public.dom_dinheiro2
);


ALTER TABLE public.veiculomulta OWNER TO postgres;

--
-- Name: veiculomultaadiant; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculomultaadiant (
    codveiculomultaadiant public.dom_codint NOT NULL,
    codveiculomulta public.dom_codint2,
    codadiantamento public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    codfatura public.dom_codint2
);


ALTER TABLE public.veiculomultaadiant OWNER TO postgres;

--
-- Name: veiculomultalog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculomultalog (
    codveiculomultalog public.dom_codint NOT NULL,
    codveiculomulta public.dom_codint2,
    data timestamp without time zone,
    obs text,
    status public.dom_codint2,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone
);


ALTER TABLE public.veiculomultalog OWNER TO postgres;

--
-- Name: veiculoprod; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculoprod (
    codveiculoprod public.dom_codint2 NOT NULL,
    codveiculo public.dom_codint2,
    perccarregmin public.dom_quantreal,
    perccarregmax public.dom_quantreal,
    mediamin public.dom_quantreal,
    mediamax public.dom_quantreal,
    produtiv public.dom_quantreal,
    liberado public.dom_resp,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    datadigitacao timestamp without time zone,
    dataatual timestamp without time zone,
    dataini timestamp without time zone,
    datafim timestamp without time zone
);


ALTER TABLE public.veiculoprod OWNER TO postgres;

--
-- Name: veiculoseguro; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.veiculoseguro (
    codveiculo public.dom_codint NOT NULL,
    objeto character varying(50) NOT NULL,
    dataatual timestamp without time zone NOT NULL,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    seguradora public.dom_nomepessoa2,
    apolice character varying(20),
    classebonus character varying(15),
    franquia public.dom_dinheiro2,
    danosmateriais public.dom_dinheiro2,
    danoscorporais public.dom_dinheiro2,
    danosmorais public.dom_dinheiro2,
    mortepassageiro public.dom_dinheiro2,
    invalidezpassageiro public.dom_dinheiro2,
    obs text,
    datadigitacao timestamp without time zone,
    usuarioins character varying(15),
    usuarioalt character varying(15),
    codveiculoseguro public.dom_codint2 NOT NULL,
    valorseguro public.dom_dinheiro2,
    codveiculoanterior public.dom_codint2
);


ALTER TABLE public.veiculoseguro OWNER TO postgres;

--
-- Name: viagem; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.viagem (
    codviagem public.dom_codint NOT NULL,
    data timestamp without time zone,
    codmotorista public.dom_codint2,
    codviagemws public.dom_codint2,
    tabela integer,
    chavetabela public.dom_codint2,
    status integer,
    datainiprev timestamp without time zone,
    datafimprev timestamp without time zone,
    dataini timestamp without time zone,
    datafim timestamp without time zone,
    localorigem public.dom_text,
    latorigem double precision,
    lonorigem double precision,
    localdestino public.dom_text,
    latdestino double precision,
    londestino double precision,
    mostrainternetcliente public.dom_resp,
    valores public.dom_text,
    obs public.dom_text,
    obs2 public.dom_text,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datains timestamp without time zone,
    dataalt timestamp without time zone,
    transportadora public.dom_text
);


ALTER TABLE public.viagem OWNER TO postgres;

--
-- Name: viagemdoc; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.viagemdoc (
    codviagemdoc public.dom_codint NOT NULL,
    codviagem public.dom_codint2,
    chave character varying(50),
    tipodoc integer,
    numero integer,
    serie character varying(5),
    data timestamp without time zone,
    obs public.dom_text,
    usuarioins character varying(10),
    usuarioalt character varying(10),
    datains timestamp without time zone,
    dataalt timestamp without time zone,
    codviagemdocws public.dom_codint2
);


ALTER TABLE public.viagemdoc OWNER TO postgres;

--
-- Name: visitante; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.visitante (
    codvisitante public.dom_codint NOT NULL,
    nome public.dom_nomepessoa2,
    cpf public.dom_cgc2,
    endereco public.dom_endereco2,
    numero character varying(10),
    complemento character varying(40),
    bairro character varying(30),
    placa character varying(10),
    modelo character varying(50),
    nomeempresa public.dom_nomepessoa2,
    codcidade public.dom_codint2,
    fone public.dom_fone2,
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    validade timestamp without time zone,
    cep character varying(8),
    celular character varying(20),
    liberado public.dom_resp,
    rg character varying(25),
    inscricaoestadual character varying(20),
    codcargo public.dom_codint2
);


ALTER TABLE public.visitante OWNER TO postgres;

--
-- Name: visitantelog; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.visitantelog (
    codvisitantelog public.dom_codint NOT NULL,
    codvisitante public.dom_codint NOT NULL,
    dataent timestamp without time zone,
    datasaida timestamp without time zone,
    controle character varying(20),
    obs text,
    usuarioins character varying(15),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(15),
    dataatual timestamp without time zone,
    validade timestamp without time zone,
    falarcom character varying(200),
    codfilial public.dom_codint2,
    codfilialportariaent public.dom_codint2,
    codfilialportariasai public.dom_codint2,
    codveiculo public.dom_codint2,
    codcarreta public.dom_codint2,
    codcarreta2 public.dom_codint2,
    codcarreta3 public.dom_codint2,
    placa character varying(10),
    modelo character varying(50),
    placacarreta character varying(10),
    placacarreta2 character varying(10),
    placacarreta3 character varying(10)
);


ALTER TABLE public.visitantelog OWNER TO postgres;

--
-- Name: visitantelogmov; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.visitantelogmov (
    codvisitantelogmov public.dom_codint NOT NULL,
    codvisitantelog public.dom_codint2,
    tipomov integer,
    data timestamp without time zone,
    peso public.dom_quantreal,
    coddepositodoca public.dom_codint2,
    obs public.dom_text,
    usuarioins character varying(10),
    datadigitacao timestamp without time zone,
    usuarioalt character varying(10),
    dataatual timestamp without time zone
);


ALTER TABLE public.visitantelogmov OWNER TO postgres;

--
-- Name: volume; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.volume (
    codvolume public.dom_codint NOT NULL,
    id character varying(100),
    codcliente public.dom_codint2,
    obs public.dom_text,
    codconhecimentoocorrencia public.dom_codint2,
    peso public.dom_quantreal,
    quantidade public.dom_quantreal,
    dataatual timestamp without time zone,
    datadigitacao timestamp without time zone,
    usuarioins character varying(10),
    usuarioalt character varying(10)
);


ALTER TABLE public.volume OWNER TO postgres;

--
-- Data for Name: abast; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.abast (codabast, codbomba, litros, data, registro, tempo, codmotorista, codveiculo, bico, encerrantei, encerrantef, coditem, codfilial, codmotfrentista, tag1, tag2, codnota, km, usuarioins, datadigitacao, usuarioalt, dataatual, obs) FROM stdin;
\.
COPY public.abast (codabast, codbomba, litros, data, registro, tempo, codmotorista, codveiculo, bico, encerrantei, encerrantef, coditem, codfilial, codmotfrentista, tag1, tag2, codnota, km, usuarioins, datadigitacao, usuarioalt, dataatual, obs) FROM '$$PATH$$/9592.dat';

--
-- Data for Name: acaoaud; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.acaoaud (codacaoaud, codauditoria, codtipoacaoaud, data, resp, obs, usuarioins, datadigitacao, usuarioalt, dataatual, status, codmotoristaaplicador) FROM stdin;
\.
COPY public.acaoaud (codacaoaud, codauditoria, codtipoacaoaud, data, resp, obs, usuarioins, datadigitacao, usuarioalt, dataatual, status, codmotoristaaplicador) FROM '$$PATH$$/9593.dat';

--
-- Data for Name: acertomotorista; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.acertomotorista (codacertomotorista, codmotorista, data, dataatual, dataexportacao, codadiantamento, dataini, datafim, obs, obs1, obs2, usuarioins, obs3, obs4, obs5, usuarioaut, dataaut, usuarioconf, dataconf, valorvaleviagem, codadiantamentodeb, codunidadeembarque, codcidadedestino, codcliente, datadigitacao, usuarioalt, usuarioaudit, dataaudit, datadebito, codnota, obsmedia, codnotadiaria, codnotatempo, obscompleta, codmotivocanc, datacanc, usuariocanc, detcanc, finalizado) FROM stdin;
\.
COPY public.acertomotorista (codacertomotorista, codmotorista, data, dataatual, dataexportacao, codadiantamento, dataini, datafim, obs, obs1, obs2, usuarioins, obs3, obs4, obs5, usuarioaut, dataaut, usuarioconf, dataconf, valorvaleviagem, codadiantamentodeb, codunidadeembarque, codcidadedestino, codcliente, datadigitacao, usuarioalt, usuarioaudit, dataaudit, datadebito, codnota, obsmedia, codnotadiaria, codnotatempo, obscompleta, codmotivocanc, datacanc, usuariocanc, detcanc, finalizado) FROM '$$PATH$$/9594.dat';

--
-- Data for Name: acertopropdet; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.acertopropdet (codacertopropdet, codacertoproprietario, tipo, chavetabela, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.acertopropdet (codacertopropdet, codacertoproprietario, tipo, chavetabela, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/9595.dat';

--
-- Data for Name: acertoproprietario; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.acertoproprietario (codacertoproprietario, codproprietario, data, obs, obs1, obs2, obs3, obs4, obs5, dataini, datafim, usuarioins, datadigitacao, usuarioalt, dataatual, codfatura, codfaturacompra, codtransacaocred, codtransacaodeb, vlparccp, vlparccr, dataacertoprop, obscompleta, codmotivocanc, datacanc, usuariocanc, detcanc, listaparc) FROM stdin;
\.
COPY public.acertoproprietario (codacertoproprietario, codproprietario, data, obs, obs1, obs2, obs3, obs4, obs5, dataini, datafim, usuarioins, datadigitacao, usuarioalt, dataatual, codfatura, codfaturacompra, codtransacaocred, codtransacaodeb, vlparccp, vlparccr, dataacertoprop, obscompleta, codmotivocanc, datacanc, usuariocanc, detcanc, listaparc) FROM '$$PATH$$/9596.dat';

--
-- Data for Name: adecliente; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.adecliente (codadecliente, codcliente, cnpjraiz, datainiade, datafimade, obsini, obsfim, obsmercadoria, numeroade, liberado, usuarioins, usuarioalt, datadigitacao, dataatual) FROM stdin;
\.
COPY public.adecliente (codadecliente, codcliente, cnpjraiz, datainiade, datafimade, obsini, obsfim, obsmercadoria, numeroade, liberado, usuarioins, usuarioalt, datadigitacao, dataatual) FROM '$$PATH$$/9597.dat';

--
-- Data for Name: adiantamento; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.adiantamento (codadiantamento, codmotorista, codfilial, codfornecedor, data, creditodebito, valor, descricao, datavencimento, datadigitacao, diarias, numero, dataexportacao, dataatual, especial, codacertomotorista, dataemissao, usuarioins, usuarioalt, codtransacao, obs, codmoeda, codtipoccempfunc, codveiculo, usuarioaut, dataaut, codtipopagto, codfatura, codmotivocanc, datacanc, usuariocanc, valorantescanc, obscanc, afaturar) FROM stdin;
\.
COPY public.adiantamento (codadiantamento, codmotorista, codfilial, codfornecedor, data, creditodebito, valor, descricao, datavencimento, datadigitacao, diarias, numero, dataexportacao, dataatual, especial, codacertomotorista, dataemissao, usuarioins, usuarioalt, codtransacao, obs, codmoeda, codtipoccempfunc, codveiculo, usuarioaut, dataaut, codtipopagto, codfatura, codmotivocanc, datacanc, usuariocanc, valorantescanc, obscanc, afaturar) FROM '$$PATH$$/9598.dat';

--
-- Data for Name: adiantamentodiaria; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.adiantamentodiaria (codadiantamento, data, datadigitacao, dataatual, usuarioins, usuarioalt, codadiantamentodiaria) FROM stdin;
\.
COPY public.adiantamentodiaria (codadiantamento, data, datadigitacao, dataatual, usuarioins, usuarioalt, codadiantamentodiaria) FROM '$$PATH$$/9599.dat';

--
-- Data for Name: adiantamentostatus; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.adiantamentostatus (numero, codmotorista, status, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.adiantamentostatus (numero, codmotorista, status, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/9600.dat';

--
-- Data for Name: agenda; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.agenda (codagenda, usuario, data, status, descricao, obs, periodicidade, menuitem, menuitempar, descrmenuitem, tipo, usuarioins, datadigitacao, usuarioalt, dataatual, codagendaagrup, datalim, datafim, listausuariosolic, conclusao, listausuarioresp) FROM stdin;
\.
COPY public.agenda (codagenda, usuario, data, status, descricao, obs, periodicidade, menuitem, menuitempar, descrmenuitem, tipo, usuarioins, datadigitacao, usuarioalt, dataatual, codagendaagrup, datalim, datafim, listausuariosolic, conclusao, listausuarioresp) FROM '$$PATH$$/9601.dat';

--
-- Data for Name: agendatarefa; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.agendatarefa (codagendatarefa, processo, periodicidade, valorperiodicidade, descricao, obs, dataatual, datadigitacao, usuarioins, usuarioalt, emaildest, liberado, filtros, codtipodocaud, datalim, datafim, listausuariosolic, conclusao, codusuario, dataultexecucao) FROM stdin;
\.
COPY public.agendatarefa (codagendatarefa, processo, periodicidade, valorperiodicidade, descricao, obs, dataatual, datadigitacao, usuarioins, usuarioalt, emaildest, liberado, filtros, codtipodocaud, datalim, datafim, listausuariosolic, conclusao, codusuario, dataultexecucao) FROM '$$PATH$$/9602.dat';

--
-- Data for Name: agendatarefalog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.agendatarefalog (codagendatarefalog, codagendatarefa, processo, datalog, descricao, emaildest, periodicidade, valorperiodicidade, filtros, obsusuario, obsdesenv, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.agendatarefalog (codagendatarefalog, codagendatarefa, processo, datalog, descricao, emaildest, periodicidade, valorperiodicidade, filtros, obsusuario, obsdesenv, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10548.dat';

--
-- Data for Name: apagado; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.apagado (codapagado, nometabela, dataatual, nomecampo, valorcampo, usuarioins) FROM stdin;
\.
COPY public.apagado (codapagado, nometabela, dataatual, nomecampo, valorcampo, usuarioins) FROM '$$PATH$$/9603.dat';

--
-- Data for Name: atendimento_temp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.atendimento_temp (seq_atend_temp, cod_bomba, cod_bico_bomba, hora, qtde_litros, valor_total, hora_atend, encerrante, dia, mes, codmotorista, codveiculo, placa, processado, km, km_ant, data_abast, importada, cod_frentista, cod_filial) FROM stdin;
\.
COPY public.atendimento_temp (seq_atend_temp, cod_bomba, cod_bico_bomba, hora, qtde_litros, valor_total, hora_atend, encerrante, dia, mes, codmotorista, codveiculo, placa, processado, km, km_ant, data_abast, importada, cod_frentista, cod_filial) FROM '$$PATH$$/9604.dat';

--
-- Data for Name: auditoria; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.auditoria (codauditoria, tipo, naoconformidade, rnc, reclamacaocli, rrc, acaocorretiva, rac, acaopreventiva, rap, coordenacaosgq, codtipodocaud, numerodoc, codcliente, codproprietario, codmotorista, codfornecedor, coddepartamento, data, descricaonc, causa, obs, custoest, resultexec, respexec, dataexec, novoprazoexec, resultnovoprazo, respnovoprazo, datanovoprazo, racnovoprazo, rapnovoprazo, resulteficacia, respeficacia, dataeficacia, raceficacia, rapeficacia, usuarioins, datadigitacao, usuarioalt, dataatual, status, codtabela, chavetabela, usuarioresp, codmotoristaresp, usuariofin, datafin, codveiculo, codunidadeembarque) FROM stdin;
\.
COPY public.auditoria (codauditoria, tipo, naoconformidade, rnc, reclamacaocli, rrc, acaocorretiva, rac, acaopreventiva, rap, coordenacaosgq, codtipodocaud, numerodoc, codcliente, codproprietario, codmotorista, codfornecedor, coddepartamento, data, descricaonc, causa, obs, custoest, resultexec, respexec, dataexec, novoprazoexec, resultnovoprazo, respnovoprazo, datanovoprazo, racnovoprazo, rapnovoprazo, resulteficacia, respeficacia, dataeficacia, raceficacia, rapeficacia, usuarioins, datadigitacao, usuarioalt, dataatual, status, codtabela, chavetabela, usuarioresp, codmotoristaresp, usuariofin, datafin, codveiculo, codunidadeembarque) FROM '$$PATH$$/9605.dat';

--
-- Data for Name: auditoriadet; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.auditoriadet (codauditoriadet, codauditoria, label, conteudo, alinhamento, formatacao, ordem, tamanho, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.auditoriadet (codauditoriadet, codauditoria, label, conteudo, alinhamento, formatacao, ordem, tamanho, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/9606.dat';

--
-- Data for Name: auditorialog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.auditorialog (codauditorialog, codauditoria, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.auditorialog (codauditorialog, codauditoria, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/9607.dat';

--
-- Data for Name: auditoriaus; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.auditoriaus (codauditoriaus, codauditoria, usuario, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.auditoriaus (codauditoriaus, codauditoria, usuario, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/9608.dat';

--
-- Data for Name: auxabc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.auxabc (codigo, valor, percentual, valoraux1, valoraux2, valoraux3, valoraux4, valoraux5, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.auxabc (codigo, valor, percentual, valoraux1, valoraux2, valoraux3, valoraux4, valoraux5, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/9609.dat';

--
-- Data for Name: banco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.banco (codbanco, descricao, usuarioins, usuarioalt, datadigitacao, dataatual, ltotal, lvalor, cvalor, lext1, cext1, lext2, cext2, lnominal, cnominal, lcidade, ccidade, ldia, cdia, lmes, cmes, lano, cano, ldata2, cdata2, tdata2, lnominal2, cnominal2, tnominal2, lnominal3, cnominal3, tnominal3, lvalor2, cvalor2, tvalor2, bandacheque, lagencia, cagencia, ltitular, ctitular, g_altura, g_lvalor, g_cvalor, g_lext1, g_cext1, g_lext2, g_cext2, g_lnominal, g_cnominal, g_lcidade, g_ccidade, g_ldia, g_cdia, g_lmes, g_cmes, g_lano, g_cano, g_ldataprev, g_cdataprev, g_lnomfor, g_cnomfor, g_lagenciafor, g_cagenciafor, g_lcontafor, g_ccontafor, gc_ldata, gc_cdata, gc_lnominal, gc_cnominal, gc_lvalor, gc_cvalor, tamextenso1, tamextenso2, tamnominal, c_lcte, c_ccte, gc_lcte, gc_ccte, c_lcf, c_ccf, gc_lcf, gc_ccf, lbancofor, cbancofor, g_lbancofor, g_cbancofor, lcodverif, ccodverif, tcodverif, g_lcodverif, g_ccodverif, g_tcodverif, g_linhaassinatura, g_colunaassinatura, g_alturaassinatura, g_largurassinatura, g_linhaimgadic, g_colunaimgadic, g_alturaimgadic, g_largurimgadic, lvalidach, cvalidach, g_lvalidach, g_cvalidach) FROM stdin;
\.
COPY public.banco (codbanco, descricao, usuarioins, usuarioalt, datadigitacao, dataatual, ltotal, lvalor, cvalor, lext1, cext1, lext2, cext2, lnominal, cnominal, lcidade, ccidade, ldia, cdia, lmes, cmes, lano, cano, ldata2, cdata2, tdata2, lnominal2, cnominal2, tnominal2, lnominal3, cnominal3, tnominal3, lvalor2, cvalor2, tvalor2, bandacheque, lagencia, cagencia, ltitular, ctitular, g_altura, g_lvalor, g_cvalor, g_lext1, g_cext1, g_lext2, g_cext2, g_lnominal, g_cnominal, g_lcidade, g_ccidade, g_ldia, g_cdia, g_lmes, g_cmes, g_lano, g_cano, g_ldataprev, g_cdataprev, g_lnomfor, g_cnomfor, g_lagenciafor, g_cagenciafor, g_lcontafor, g_ccontafor, gc_ldata, gc_cdata, gc_lnominal, gc_cnominal, gc_lvalor, gc_cvalor, tamextenso1, tamextenso2, tamnominal, c_lcte, c_ccte, gc_lcte, gc_ccte, c_lcf, c_ccf, gc_lcf, gc_ccf, lbancofor, cbancofor, g_lbancofor, g_cbancofor, lcodverif, ccodverif, tcodverif, g_lcodverif, g_ccodverif, g_tcodverif, g_linhaassinatura, g_colunaassinatura, g_alturaassinatura, g_largurassinatura, g_linhaimgadic, g_colunaimgadic, g_alturaimgadic, g_largurimgadic, lvalidach, cvalidach, g_lvalidach, g_cvalidach) FROM '$$PATH$$/9610.dat';

--
-- Data for Name: bancooco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.bancooco (codbancooco, codbanco, codoco, descricao, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codocopag) FROM stdin;
\.
COPY public.bancooco (codbancooco, codbanco, codoco, descricao, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codocopag) FROM '$$PATH$$/9611.dat';

--
-- Data for Name: bancotipopagto; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.bancotipopagto (codbancotipopagto, codbanco, codtipopagto, codtipobanco, usuarioins, usuarioalt, datadigitacao, dataatual) FROM stdin;
\.
COPY public.bancotipopagto (codbancotipopagto, codbanco, codtipopagto, codtipobanco, usuarioins, usuarioalt, datadigitacao, dataatual) FROM '$$PATH$$/9612.dat';

--
-- Data for Name: bidados; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.bidados (codbidados, codlayout, id, campod1, campod2, campod3, campod4, campod5, campod6, campod7, campod8, campod9, campod10, campos1, campos2, campos3, campos4, campos5, campos6, campos7, campos8, campos9, campos10, campos11, campos12, campos13, campos14, campos15, campos16, campos17, campos18, campos19, campos20, campos21, campos22, campos23, campos24, campos25, campos26, campos27, campos28, campos29, campos30, campos31, campos32, campos33, campos34, campos35, campos36, campos37, campos38, campos39, campos40, campos41, campos42, campos43, campos44, campos45, campos46, campos47, campos48, campos49, campos50, campoi1, campoi2, campoi3, campoi4, campoi5, campoi6, campoi7, campoi8, campoi9, campoi10, campoi11, campoi12, campoi13, campoi14, campoi15, campoi16, campoi17, campoi18, campoi19, campoi20, campoi21, campoi22, campoi23, campoi24, campoi25, campoi26, campoi27, campoi28, campoi29, campoi30, campoi31, campoi32, campoi33, campoi34, campoi35, campoi36, campoi37, campoi38, campoi39, campoi40, campoi41, campoi42, campoi43, campoi44, campoi45, campoi46, campoi47, campoi48, campoi49, campoi50, campon1, campon2, campon3, campon4, campon5, campon6, campon7, campon8, campon9, campon10, campon11, campon12, campon13, campon14, campon15, campon16, campon17, campon18, campon19, campon20, campon21, campon22, campon23, campon24, campon25, campon26, campon27, campon28, campon29, campon30, campon31, campon32, campon33, campon34, campon35, campon36, campon37, campon38, campon39, campon40, campon41, campon42, campon43, campon44, campon45, campon46, campon47, campon48, campon49, campon50, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.bidados (codbidados, codlayout, id, campod1, campod2, campod3, campod4, campod5, campod6, campod7, campod8, campod9, campod10, campos1, campos2, campos3, campos4, campos5, campos6, campos7, campos8, campos9, campos10, campos11, campos12, campos13, campos14, campos15, campos16, campos17, campos18, campos19, campos20, campos21, campos22, campos23, campos24, campos25, campos26, campos27, campos28, campos29, campos30, campos31, campos32, campos33, campos34, campos35, campos36, campos37, campos38, campos39, campos40, campos41, campos42, campos43, campos44, campos45, campos46, campos47, campos48, campos49, campos50, campoi1, campoi2, campoi3, campoi4, campoi5, campoi6, campoi7, campoi8, campoi9, campoi10, campoi11, campoi12, campoi13, campoi14, campoi15, campoi16, campoi17, campoi18, campoi19, campoi20, campoi21, campoi22, campoi23, campoi24, campoi25, campoi26, campoi27, campoi28, campoi29, campoi30, campoi31, campoi32, campoi33, campoi34, campoi35, campoi36, campoi37, campoi38, campoi39, campoi40, campoi41, campoi42, campoi43, campoi44, campoi45, campoi46, campoi47, campoi48, campoi49, campoi50, campon1, campon2, campon3, campon4, campon5, campon6, campon7, campon8, campon9, campon10, campon11, campon12, campon13, campon14, campon15, campon16, campon17, campon18, campon19, campon20, campon21, campon22, campon23, campon24, campon25, campon26, campon27, campon28, campon29, campon30, campon31, campon32, campon33, campon34, campon35, campon36, campon37, campon38, campon39, campon40, campon41, campon42, campon43, campon44, campon45, campon46, campon47, campon48, campon49, campon50, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/9613.dat';

--
-- Data for Name: bidadosr; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.bidadosr (codbidadosr, codbilayoutr, data, valorchaveint, valorchavestr, valornum1, valornum2, valornum3, valornum4, valornum5, valornum6, valornum7, valornum8, valornum9, valornum10, valorstr1, valorstr2, valorstr3, valorstr4, valorstr5, valorstr6, valorstr7, valorstr8, valorstr9, valorstr10, valorint1, valorint2, valorint3, valorint4, valorint5, valorint6, valorint7, valorint8, valorint9, valorint10) FROM stdin;
\.
COPY public.bidadosr (codbidadosr, codbilayoutr, data, valorchaveint, valorchavestr, valornum1, valornum2, valornum3, valornum4, valornum5, valornum6, valornum7, valornum8, valornum9, valornum10, valorstr1, valorstr2, valorstr3, valorstr4, valorstr5, valorstr6, valorstr7, valorstr8, valorstr9, valorstr10, valorint1, valorint2, valorint3, valorint4, valorint5, valorint6, valorint7, valorint8, valorint9, valorint10) FROM '$$PATH$$/9614.dat';

--
-- Data for Name: bilayout; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.bilayout (codbilayout, codlayout, nomed1, nomed2, nomed3, nomed4, nomed5, nomed6, nomed7, nomed8, nomed9, nomed10, nomes1, nomes2, nomes3, nomes4, nomes5, nomes6, nomes7, nomes8, nomes9, nomes10, nomes11, nomes12, nomes13, nomes14, nomes15, nomes16, nomes17, nomes18, nomes19, nomes20, nomes21, nomes22, nomes23, nomes24, nomes25, nomes26, nomes27, nomes28, nomes29, nomes30, nomes31, nomes32, nomes33, nomes34, nomes35, nomes36, nomes37, nomes38, nomes39, nomes40, nomes41, nomes42, nomes43, nomes44, nomes45, nomes46, nomes47, nomes48, nomes49, nomes50, nomei1, nomei2, nomei3, nomei4, nomei5, nomei6, nomei7, nomei8, nomei9, nomei10, nomei11, nomei12, nomei13, nomei14, nomei15, nomei16, nomei17, nomei18, nomei19, nomei20, nomei21, nomei22, nomei23, nomei24, nomei25, nomei26, nomei27, nomei28, nomei29, nomei30, nomei31, nomei32, nomei33, nomei34, nomei35, nomei36, nomei37, nomei38, nomei39, nomei40, nomei41, nomei42, nomei43, nomei44, nomei45, nomei46, nomei47, nomei48, nomei49, nomei50, nomen1, nomen2, nomen3, nomen4, nomen5, nomen6, nomen7, nomen8, nomen9, nomen10, nomen11, nomen12, nomen13, nomen14, nomen15, nomen16, nomen17, nomen18, nomen19, nomen20, nomen21, nomen22, nomen23, nomen24, nomen25, nomen26, nomen27, nomen28, nomen29, nomen30, nomen31, nomen32, nomen33, nomen34, nomen35, nomen36, nomen37, nomen38, nomen39, nomen40, nomen41, nomen42, nomen43, nomen44, nomen45, nomen46, nomen47, nomen48, nomen49, nomen50, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.bilayout (codbilayout, codlayout, nomed1, nomed2, nomed3, nomed4, nomed5, nomed6, nomed7, nomed8, nomed9, nomed10, nomes1, nomes2, nomes3, nomes4, nomes5, nomes6, nomes7, nomes8, nomes9, nomes10, nomes11, nomes12, nomes13, nomes14, nomes15, nomes16, nomes17, nomes18, nomes19, nomes20, nomes21, nomes22, nomes23, nomes24, nomes25, nomes26, nomes27, nomes28, nomes29, nomes30, nomes31, nomes32, nomes33, nomes34, nomes35, nomes36, nomes37, nomes38, nomes39, nomes40, nomes41, nomes42, nomes43, nomes44, nomes45, nomes46, nomes47, nomes48, nomes49, nomes50, nomei1, nomei2, nomei3, nomei4, nomei5, nomei6, nomei7, nomei8, nomei9, nomei10, nomei11, nomei12, nomei13, nomei14, nomei15, nomei16, nomei17, nomei18, nomei19, nomei20, nomei21, nomei22, nomei23, nomei24, nomei25, nomei26, nomei27, nomei28, nomei29, nomei30, nomei31, nomei32, nomei33, nomei34, nomei35, nomei36, nomei37, nomei38, nomei39, nomei40, nomei41, nomei42, nomei43, nomei44, nomei45, nomei46, nomei47, nomei48, nomei49, nomei50, nomen1, nomen2, nomen3, nomen4, nomen5, nomen6, nomen7, nomen8, nomen9, nomen10, nomen11, nomen12, nomen13, nomen14, nomen15, nomen16, nomen17, nomen18, nomen19, nomen20, nomen21, nomen22, nomen23, nomen24, nomen25, nomen26, nomen27, nomen28, nomen29, nomen30, nomen31, nomen32, nomen33, nomen34, nomen35, nomen36, nomen37, nomen38, nomen39, nomen40, nomen41, nomen42, nomen43, nomen44, nomen45, nomen46, nomen47, nomen48, nomen49, nomen50, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/9615.dat';

--
-- Data for Name: bilayoutr; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.bilayoutr (codbilayoutr, descricao, campodata, campochaveint, campochavestr, camponum1, camponum2, camponum3, camponum4, camponum5, camponum6, camponum7, camponum8, camponum9, camponum10, campostr1, campostr2, campostr3, campostr4, campostr5, campostr6, campostr7, campostr8, campostr9, campostr10, campoint1, campoint2, campoint3, campoint4, campoint5, campoint6, campoint7, campoint8, campoint9, campoint10) FROM stdin;
\.
COPY public.bilayoutr (codbilayoutr, descricao, campodata, campochaveint, campochavestr, camponum1, camponum2, camponum3, camponum4, camponum5, camponum6, camponum7, camponum8, camponum9, camponum10, campostr1, campostr2, campostr3, campostr4, campostr5, campostr6, campostr7, campostr8, campostr9, campostr10, campoint1, campoint2, campoint3, campoint4, campoint5, campoint6, campoint7, campoint8, campoint9, campoint10) FROM '$$PATH$$/9616.dat';

--
-- Data for Name: biproc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.biproc (codbiproc, nometabela, chavetabela, obs, status) FROM stdin;
\.
COPY public.biproc (codbiproc, nometabela, chavetabela, obs, status) FROM '$$PATH$$/9617.dat';

--
-- Data for Name: bombacomb; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.bombacomb (codbombacomb, codbomba, codfilial, bico, canal, coditem) FROM stdin;
\.
COPY public.bombacomb (codbombacomb, codbomba, codfilial, bico, canal, coditem) FROM '$$PATH$$/9618.dat';

--
-- Data for Name: bombas; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.bombas (cod_bomba, cod_bico_bomba, fator_qtd, qtd_div_mult, fator_valor, valor_div_mult, endereco_logico, preco_venda, status, canal, cod_filial) FROM stdin;
\.
COPY public.bombas (cod_bomba, cod_bico_bomba, fator_qtd, qtd_div_mult, fator_valor, valor_div_mult, endereco_logico, preco_venda, status, canal, cod_filial) FROM '$$PATH$$/9619.dat';

--
-- Data for Name: caixa; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.caixa (codcaixa, dataini, datafim, obs, datadigitacao, dataatual, usuarioins, usuarioalt, usuarioconf, dataconf, usuariofim) FROM stdin;
\.
COPY public.caixa (codcaixa, dataini, datafim, obs, datadigitacao, dataatual, usuarioins, usuarioalt, usuarioconf, dataconf, usuariofim) FROM '$$PATH$$/9620.dat';

--
-- Data for Name: campo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.campo (codcampo, tela, campo, tipo, acao, valor, obs, usuarioins, datadigitacao, usuarioalt, dataatual, scriptbd) FROM stdin;
\.
COPY public.campo (codcampo, tela, campo, tipo, acao, valor, obs, usuarioins, datadigitacao, usuarioalt, dataatual, scriptbd) FROM '$$PATH$$/9621.dat';

--
-- Data for Name: cargo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cargo (codcargo, descricao, dataatual, usuarioins, datadigitacao, usuarioalt, diretoria, coddepartamento, educacao, treinamento, habilidades, expcomprovada, descatividades, liberado, competcomport, insttrabalho, faixasalben, cbo) FROM stdin;
\.
COPY public.cargo (codcargo, descricao, dataatual, usuarioins, datadigitacao, usuarioalt, diretoria, coddepartamento, educacao, treinamento, habilidades, expcomprovada, descatividades, liberado, competcomport, insttrabalho, faixasalben, cbo) FROM '$$PATH$$/9622.dat';

--
-- Data for Name: cargoexametreinamento; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cargoexametreinamento (codcargoexametreinamento, codcargo, codexametreinamento, usuarioins, datadigitacao, usuarioalt, dataatual, obrigatorio) FROM stdin;
\.
COPY public.cargoexametreinamento (codcargoexametreinamento, codcargo, codexametreinamento, usuarioins, datadigitacao, usuarioalt, dataatual, obrigatorio) FROM '$$PATH$$/9623.dat';

--
-- Data for Name: carretamov; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.carretamov (codveiculo, codcavalo, dataini, datafim, kminicavalo, kmfimcavalo, kminicarreta, kmfimcarreta, dataatual, usuarioins, datadigitacao, usuarioalt, codcarretamov, codmotorista, codmotivo) FROM stdin;
\.
COPY public.carretamov (codveiculo, codcavalo, dataini, datafim, kminicavalo, kmfimcavalo, kminicarreta, kmfimcarreta, dataatual, usuarioins, datadigitacao, usuarioalt, codcarretamov, codmotorista, codmotivo) FROM '$$PATH$$/9624.dat';

--
-- Data for Name: cfop; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cfop (codcfop, descricao, liberado, dataatual, tipo, usuarioins, usuarioalt, datadigitacao, exportaentrada, exportasaida, expspedcomosaida) FROM stdin;
\.
COPY public.cfop (codcfop, descricao, liberado, dataatual, tipo, usuarioins, usuarioalt, datadigitacao, exportaentrada, exportasaida, expspedcomosaida) FROM '$$PATH$$/9625.dat';

--
-- Data for Name: cfopnotaviagem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cfopnotaviagem (codcfopnotaviagem, nometabela, chavetabela, cfopnota, cfopviagem, cfopuforigdestigual, cfopuforigdestdif, cfopfiliaisdifufigual, cfopfiliaisdifufdif, usuarioins, datains, usuarioalt, dataalt) FROM stdin;
\.
COPY public.cfopnotaviagem (codcfopnotaviagem, nometabela, chavetabela, cfopnota, cfopviagem, cfopuforigdestigual, cfopuforigdestdif, cfopfiliaisdifufigual, cfopfiliaisdifufdif, usuarioins, datains, usuarioalt, dataalt) FROM '$$PATH$$/9626.dat';

--
-- Data for Name: cheque; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cheque (codinterno, numeroconta, numerocheque, valor, nominal, dataemissao, descricao, databaixa, codtransacao, emitido, dataprevista, dataenviobanco, selecionado, codmoeda, datadigitacao, dataatual, usuarioins, usuarioalt, dataimpressao, codcidadeemissao) FROM stdin;
\.
COPY public.cheque (codinterno, numeroconta, numerocheque, valor, nominal, dataemissao, descricao, databaixa, codtransacao, emitido, dataprevista, dataenviobanco, selecionado, codmoeda, datadigitacao, dataatual, usuarioins, usuarioalt, dataimpressao, codcidadeemissao) FROM '$$PATH$$/9627.dat';

--
-- Data for Name: chequerec; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.chequerec (codchequerec, codfaturareparc, codcliente, codtransacao, codclientecc, codcontachequerec, data, valor, valortroco, numerocheque, status, datadep1, codtransacaodep1, codtransacaodep1cx, datadev1, codtransacaodev1, codtransacaodev1cx, datadep2, codtransacaodep2, codtransacaodep2cx, datadev2, codtransacaodev2, codtransacaodev2cx, datasustado, codtransacaosustado, codtransacaosustadocx, automatico, codbar, usuarioins, usuarioalt, datadigitacao, dataatual, codfilial, dataemissao, codtransacaoorigem, codtransacaodestino, obs, datadep3, codtransacaodep3, codtransacaodep3cx, datadev3, codtransacaodev3, codtransacaodev3cx) FROM stdin;
\.
COPY public.chequerec (codchequerec, codfaturareparc, codcliente, codtransacao, codclientecc, codcontachequerec, data, valor, valortroco, numerocheque, status, datadep1, codtransacaodep1, codtransacaodep1cx, datadev1, codtransacaodev1, codtransacaodev1cx, datadep2, codtransacaodep2, codtransacaodep2cx, datadev2, codtransacaodev2, codtransacaodev2cx, datasustado, codtransacaosustado, codtransacaosustadocx, automatico, codbar, usuarioins, usuarioalt, datadigitacao, dataatual, codfilial, dataemissao, codtransacaoorigem, codtransacaodestino, obs, datadep3, codtransacaodep3, codtransacaodep3cx, datadev3, codtransacaodev3, codtransacaodev3cx) FROM '$$PATH$$/9628.dat';

--
-- Data for Name: chequestatus; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.chequestatus (numeroconta, numerocheque, status, dataatual, codunidadeembarque, obs, datadigitacao, usuarioins, usuarioalt, codchequestatus, usuarioresp, codmotivocanc) FROM stdin;
\.
COPY public.chequestatus (numeroconta, numerocheque, status, dataatual, codunidadeembarque, obs, datadigitacao, usuarioins, usuarioalt, codchequestatus, usuarioresp, codmotivocanc) FROM '$$PATH$$/9629.dat';

--
-- Data for Name: chequestatuslog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.chequestatuslog (codchequestatuslog, codchequestatus, statusantigo, statusnovo, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.chequestatuslog (codchequestatuslog, codchequestatus, statusantigo, statusnovo, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/9630.dat';

--
-- Data for Name: cidade; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cidade (codcidade, nome, uf, dataatual, codexterno, dataexportacao, liberado, pais, codunidadeembarque, datadigitacao, usuarioins, usuarioalt, codibge, obs, lat, lon, raio, codsiafi, taxaiss, checklist, checklistnfse) FROM stdin;
\.
COPY public.cidade (codcidade, nome, uf, dataatual, codexterno, dataexportacao, liberado, pais, codunidadeembarque, datadigitacao, usuarioins, usuarioalt, codibge, obs, lat, lon, raio, codsiafi, taxaiss, checklist, checklistnfse) FROM '$$PATH$$/9631.dat';

--
-- Data for Name: cidadedist; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cidadedist (codcidade, codcidadedest, km, tempo, taxaseguro, pedagio, indicepauta, aliquotaicms, dataatual, dataexportacao, liberado, obs, kmtabela, codcidadedist, usuarioins, usuarioalt, datadigitacao, tempomalote, precotonfiscalmin) FROM stdin;
\.
COPY public.cidadedist (codcidade, codcidadedest, km, tempo, taxaseguro, pedagio, indicepauta, aliquotaicms, dataatual, dataexportacao, liberado, obs, kmtabela, codcidadedist, usuarioins, usuarioalt, datadigitacao, tempomalote, precotonfiscalmin) FROM '$$PATH$$/9632.dat';

--
-- Data for Name: cliente; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cliente (codcliente, nome, endereco, complemento, cep, codcidade, contato, precotonelada, cgccpf, inscricaoestadual, fone, fax, precotonmotorista, observacao, precotonagregado, nomereduzido, inscmunicipal, dataatual, enderecocob, complementocob, codcidadecob, cepcob, tipotolerancia, tipodesconto, taxaquebra, quantidadequebra, email, email1, numeroconta, dataexportacao, liberado, descquebrasaldoemp, descontainsssaldo, calculainss, faturaicmsfinal, descontaicmssaldoempresa, codclienteprincipal, taxamulta, taxajuros, natureza, celular, estadiapesochegada, senha, prazofaturamento, contacontabil, datainclusao, usuarioins, usuarioalt, usuariolib, toleranciapesocheg, limitecredito, ramoatividade, fundacao, imovelproprio, valorimovel, avaliacao, codvendedor, descontaisssaldoemp, dataultavalcadastral, auxiliocarga, auxiliodescarga, segurorcfdc, segurorctrc, pagaicms, icmsembutido, tipofechamento, prazoadicional, codtipocliente, bairro, numero, bairrocob, numerocob, site, fretepago, codfornecedor, tributaimpostos, codembarcador, codmotivobloqueio, obsbloqueio, databloqueio, usuariobloqueio, suframa, saldoantecipado, numerocontafatura, cnae, obsfaturamento, limiteutilizado, datavencseguro, transportadora, codmercadoria, codexterno, emailcte, toleranciaestadia, valorhoraestadia, codtiporecto, serasa, dataultsenha, datalib, percdesccompart, percdescseguro, cobrasegurocliente, prazodescarga, cnd, contribuinte, rg, valorhoraestadiamot, permitevariasnfctrc, retroagirestadia, clienteprincipal, tipoenvioxml, exigeticket, codobsfiscal, lat, lon, datavenclimite, pagaiss, precokgmercquebra, raio, protestoaut, protquantdias, listadiasfat, pagasegunda, pagaterca, pagaquarta, pagaquinta, pagasexta, pagasabado, exigepedidocliente2, baseicmsdireta, tipodata, codcfop, tagpesonfe, taxaiss, faturaautomatica, coditemreceita, enviaris, descsegurosaldo, listacompprest, fvalorareceber, ftotalprest, fbaseicms, fsaldoemp, nomefantasia, datainicio, taxaseguro, expseguro, codcontacontabil2, checklistnfe, assuntoemailcte, ssurl, ssusuario, sssenha, tipoenviovencfat, checklist, tipoctelib, autxmlcte, autxmlnfe, autxmlmdfe, obsmercexp, dataobsmercexp, filiallib, taxaseguro2, dataultfechamento, checklistpedido, chavepix, qrcodepix, limitecreditomax, pesomaxpedido, diastrocasenha, tipoenviolink, indicepesoliq, tipochavepix, codmotfaturista, fchecklistcte, taxaseguroproprio, taxaseguroagregado, taxaseguroagregmisto, margemmaxfrota, margemminfrota, margemminfrete, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, tipotributacao, percacrescimo, codfornecedorfomento, senhainteg, statuscad, resppedagio, tipopedagio, codfornecedorpedagio, porcadicprecokgmerc, checklistop, checklistmod, margfracmaxfrota, margfracminfrota, margfracminfrete, margfracminpf, margfracminpj, margfracminagregado, margfracminagregadomisto, taxairpj, emailcobranca, perccustofinanceiro, prazomediocustofinanceiro, obs1, obs2, obs3, obs4, obs5, obs6, obs7, checklistrobosat, codimposto, codimpostonfe, checklistdoc, email2, codnbs) FROM stdin;
\.
COPY public.cliente (codcliente, nome, endereco, complemento, cep, codcidade, contato, precotonelada, cgccpf, inscricaoestadual, fone, fax, precotonmotorista, observacao, precotonagregado, nomereduzido, inscmunicipal, dataatual, enderecocob, complementocob, codcidadecob, cepcob, tipotolerancia, tipodesconto, taxaquebra, quantidadequebra, email, email1, numeroconta, dataexportacao, liberado, descquebrasaldoemp, descontainsssaldo, calculainss, faturaicmsfinal, descontaicmssaldoempresa, codclienteprincipal, taxamulta, taxajuros, natureza, celular, estadiapesochegada, senha, prazofaturamento, contacontabil, datainclusao, usuarioins, usuarioalt, usuariolib, toleranciapesocheg, limitecredito, ramoatividade, fundacao, imovelproprio, valorimovel, avaliacao, codvendedor, descontaisssaldoemp, dataultavalcadastral, auxiliocarga, auxiliodescarga, segurorcfdc, segurorctrc, pagaicms, icmsembutido, tipofechamento, prazoadicional, codtipocliente, bairro, numero, bairrocob, numerocob, site, fretepago, codfornecedor, tributaimpostos, codembarcador, codmotivobloqueio, obsbloqueio, databloqueio, usuariobloqueio, suframa, saldoantecipado, numerocontafatura, cnae, obsfaturamento, limiteutilizado, datavencseguro, transportadora, codmercadoria, codexterno, emailcte, toleranciaestadia, valorhoraestadia, codtiporecto, serasa, dataultsenha, datalib, percdesccompart, percdescseguro, cobrasegurocliente, prazodescarga, cnd, contribuinte, rg, valorhoraestadiamot, permitevariasnfctrc, retroagirestadia, clienteprincipal, tipoenvioxml, exigeticket, codobsfiscal, lat, lon, datavenclimite, pagaiss, precokgmercquebra, raio, protestoaut, protquantdias, listadiasfat, pagasegunda, pagaterca, pagaquarta, pagaquinta, pagasexta, pagasabado, exigepedidocliente2, baseicmsdireta, tipodata, codcfop, tagpesonfe, taxaiss, faturaautomatica, coditemreceita, enviaris, descsegurosaldo, listacompprest, fvalorareceber, ftotalprest, fbaseicms, fsaldoemp, nomefantasia, datainicio, taxaseguro, expseguro, codcontacontabil2, checklistnfe, assuntoemailcte, ssurl, ssusuario, sssenha, tipoenviovencfat, checklist, tipoctelib, autxmlcte, autxmlnfe, autxmlmdfe, obsmercexp, dataobsmercexp, filiallib, taxaseguro2, dataultfechamento, checklistpedido, chavepix, qrcodepix, limitecreditomax, pesomaxpedido, diastrocasenha, tipoenviolink, indicepesoliq, tipochavepix, codmotfaturista, fchecklistcte, taxaseguroproprio, taxaseguroagregado, taxaseguroagregmisto, margemmaxfrota, margemminfrota, margemminfrete, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, tipotributacao, percacrescimo, codfornecedorfomento, senhainteg, statuscad, resppedagio, tipopedagio, codfornecedorpedagio, porcadicprecokgmerc, checklistop, checklistmod, margfracmaxfrota, margfracminfrota, margfracminfrete, margfracminpf, margfracminpj, margfracminagregado, margfracminagregadomisto, taxairpj, emailcobranca, perccustofinanceiro, prazomediocustofinanceiro, obs1, obs2, obs3, obs4, obs5, obs6, obs7, checklistrobosat, codimposto, codimpostonfe, checklistdoc, email2, codnbs) FROM '$$PATH$$/9633.dat';

--
-- Data for Name: clienteagenda; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clienteagenda (codcliente, codagenda, codtipoagenda, data, datadigitacao, historico, dataproxagenda, usuarioins, usuarioalt, dataatual, datarealizado) FROM stdin;
\.
COPY public.clienteagenda (codcliente, codagenda, codtipoagenda, data, datadigitacao, historico, dataproxagenda, usuarioins, usuarioalt, dataatual, datarealizado) FROM '$$PATH$$/9634.dat';

--
-- Data for Name: clientecc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientecc (codclientecc, codbanco, codcliente, agencia, conta, titular, usuarioins, usuarioalt, datadigitacao, dataatual, liberado, titularcnpjcpf) FROM stdin;
\.
COPY public.clientecc (codclientecc, codbanco, codcliente, agencia, conta, titular, usuarioins, usuarioalt, datadigitacao, dataatual, liberado, titularcnpjcpf) FROM '$$PATH$$/9635.dat';

--
-- Data for Name: clientechequerec; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientechequerec (codclientechequerec, codcidade, codmotivobloqueio, nome, cnpjcpf, endereco, cep, fone, obs, datadigitacao, dataatual, usuarioins, usuarioalt, bairro, liberado, celular, complemento, databloqueio, usuariobloqueio, obsbloqueio) FROM stdin;
\.
COPY public.clientechequerec (codclientechequerec, codcidade, codmotivobloqueio, nome, cnpjcpf, endereco, cep, fone, obs, datadigitacao, dataatual, usuarioins, usuarioalt, bairro, liberado, celular, complemento, databloqueio, usuariobloqueio, obsbloqueio) FROM '$$PATH$$/9636.dat';

--
-- Data for Name: clientechequereccc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientechequereccc (codclientechequereccc, codbanco, codclientechequerec, agencia, conta, usuarioins, usuarioalt, datadigitacao, dataatual) FROM stdin;
\.
COPY public.clientechequereccc (codclientechequereccc, codbanco, codclientechequerec, agencia, conta, usuarioins, usuarioalt, datadigitacao, dataatual) FROM '$$PATH$$/9637.dat';

--
-- Data for Name: clienteclas; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clienteclas (codclienteclas, codcliente, codmercadoria, data, umidade, impureza, ardido, imaturo, quebrado, triguilho, quirera, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.clienteclas (codclienteclas, codcliente, codmercadoria, data, umidade, impureza, ardido, imaturo, quebrado, triguilho, quirera, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/9638.dat';

--
-- Data for Name: clientecnd; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientecnd (codclientecnd, codcliente, cndcli, validadecndcli, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.clientecnd (codclientecnd, codcliente, cndcli, validadecndcli, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/9639.dat';

--
-- Data for Name: clientecolent; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientecolent (codclientecolent, codcliente, codcoletaentrega, liberado, obs, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.clientecolent (codclientecolent, codcliente, codcoletaentrega, liberado, obs, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/9640.dat';

--
-- Data for Name: clientecom; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientecom (codclientecom, codcliente, codgerrisco, descricao, senha, usuario, urlhomol, urlprod, tipohomologprod, token, campoaux1, campoaux2, campoaux3, campoaux4, campoaux5, campoaux6, campoaux7, campoaux8, campoaux9, campoaux10, campoaux11, campoaux12, campoaux13, campoaux14, campoaux15, usuarioins, usuarioalt, datadigitacao, dataalt) FROM stdin;
\.
COPY public.clientecom (codclientecom, codcliente, codgerrisco, descricao, senha, usuario, urlhomol, urlprod, tipohomologprod, token, campoaux1, campoaux2, campoaux3, campoaux4, campoaux5, campoaux6, campoaux7, campoaux8, campoaux9, campoaux10, campoaux11, campoaux12, campoaux13, campoaux14, campoaux15, usuarioins, usuarioalt, datadigitacao, dataalt) FROM '$$PATH$$/9641.dat';

--
-- Data for Name: clientecont; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientecont (codcliente, nome, datanascimento, fone, celular, obs, codcargo, dataatual, fax, email, codclientecont, usuarioins, usuarioalt, datainclusao) FROM stdin;
\.
COPY public.clientecont (codcliente, nome, datanascimento, fone, celular, obs, codcargo, dataatual, fax, email, codclientecont, usuarioins, usuarioalt, datainclusao) FROM '$$PATH$$/9642.dat';

--
-- Data for Name: clienteddr; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clienteddr (codcliente, codddr, dataini, datafim, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, valor, ddrtotal, respseguro, cnpjseguradora, nomeseguradora, numeroapolice, averbacao, status, taxaseguro) FROM stdin;
\.
COPY public.clienteddr (codcliente, codddr, dataini, datafim, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, valor, ddrtotal, respseguro, cnpjseguradora, nomeseguradora, numeroapolice, averbacao, status, taxaseguro) FROM '$$PATH$$/9643.dat';

--
-- Data for Name: clientedesp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientedesp (codclientedesp, codcliente, codtipodesp, codfornecedor, valor, obs, data, codclienteop, valorppt, percentual, usuarioins, datadigitacao, usuarioalt, dataatual, listatipoantt) FROM stdin;
\.
COPY public.clientedesp (codclientedesp, codcliente, codtipodesp, codfornecedor, valor, obs, data, codclienteop, valorppt, percentual, usuarioins, datadigitacao, usuarioalt, dataatual, listatipoantt) FROM '$$PATH$$/9644.dat';

--
-- Data for Name: clientediavenc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientediavenc (codclientediavenc, codcliente, diaini, diafim, diavenc, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.clientediavenc (codclientediavenc, codcliente, diaini, diafim, diavenc, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/9645.dat';

--
-- Data for Name: clientelimite; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientelimite (codclientelimite, codcliente, data, obs, limiteanterior, limitenovo, usuarioins, datadigitacao, usuarioalt, dataatual, limiteantmax, limitenovomax) FROM stdin;
\.
COPY public.clientelimite (codclientelimite, codcliente, data, obs, limiteanterior, limitenovo, usuarioins, datadigitacao, usuarioalt, dataatual, limiteantmax, limitenovomax) FROM '$$PATH$$/9646.dat';

--
-- Data for Name: clientemot; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientemot (codclientemot, codcliente, codmotorista, motivobloqueio, liberado, usuarioins, datadigitacao, usuarioalt, dataatual, codproprietario) FROM stdin;
\.
COPY public.clientemot (codclientemot, codcliente, codmotorista, motivobloqueio, liberado, usuarioins, datadigitacao, usuarioalt, dataatual, codproprietario) FROM '$$PATH$$/9647.dat';

--
-- Data for Name: clienteop; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clienteop (codclienteop, codcliente, descricao, tipotolerancia, tipodesconto, taxaquebra, quantidadequebra, prazofaturamento, tipofechamento, prazoadicional, obsfaturamento, codtiporecto, exigeticket, listadiasfat, pagasegunda, pagaterca, pagaquarta, pagaquinta, pagasexta, pagasabado, faturapesochegada, codtipohistfat, codtipoenvio, checklist, dataatual, datadigitacao, usuarioins, usuarioalt, codtipoclienteop, tipocarga, codtipotransporte, checklistnfe, percadmercsegurada, listacompprest, fvalorareceber, ftotalprest, fbaseicms, fsaldoemp, checklistpedido, codmotoristavend, pptvend, porcvend, indicepesoliq, taxaseguroproprio, taxaseguroagregado, taxaseguroagregmisto, margemmaxfrota, margemminfrota, margemminfrete, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, fchecklistcte, precokgmercquebra, margfracmaxfrota, margfracminfrota, margfracminfrete, margfracminpf, margfracminpj, margfracminagregado, margfracminagregadomisto, obs1, obs2, obs3, obs4, obs5, obs6, obs7, tipofretemotorista, liberado, taxaseguro, percfrete, checklistdoc) FROM stdin;
\.
COPY public.clienteop (codclienteop, codcliente, descricao, tipotolerancia, tipodesconto, taxaquebra, quantidadequebra, prazofaturamento, tipofechamento, prazoadicional, obsfaturamento, codtiporecto, exigeticket, listadiasfat, pagasegunda, pagaterca, pagaquarta, pagaquinta, pagasexta, pagasabado, faturapesochegada, codtipohistfat, codtipoenvio, checklist, dataatual, datadigitacao, usuarioins, usuarioalt, codtipoclienteop, tipocarga, codtipotransporte, checklistnfe, percadmercsegurada, listacompprest, fvalorareceber, ftotalprest, fbaseicms, fsaldoemp, checklistpedido, codmotoristavend, pptvend, porcvend, indicepesoliq, taxaseguroproprio, taxaseguroagregado, taxaseguroagregmisto, margemmaxfrota, margemminfrota, margemminfrete, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, fchecklistcte, precokgmercquebra, margfracmaxfrota, margfracminfrota, margfracminfrete, margfracminpf, margfracminpj, margfracminagregado, margfracminagregadomisto, obs1, obs2, obs3, obs4, obs5, obs6, obs7, tipofretemotorista, liberado, taxaseguro, percfrete, checklistdoc) FROM '$$PATH$$/9648.dat';

--
-- Data for Name: clienteopfis; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clienteopfis (codclienteopfis, codcliente, descricao, pagaicms, porcicms, percredvlicms, percredbaseicms, icmsembutido, faturaicmsfinal, baseicmsdireta, descontaicmssaldoempresa, calculainss, tributaimpostos, descpissaldoemp, calculainssempresa, calculairrf, desccofinssaldoemp, descontainsssaldo, calculasestsenat, desccsllsaldoemp, descontainsssaldomot, taxaiss, baseissdireta, somarissfatsaldo, issembutido, pagaiss, descontaisssaldoemp, codobsfiscal, codobsfiscal2, pedagioembutidofrete, pedagioembfretemot, pedagioembffiscal, pedagiocalceixo, pedagioembbaseicms, descquebrasaldoemp, segurorctrc, entradasaida, tipofreteempresa, dataatual, datadigitacao, usuarioins, usuarioalt, checklistpedido, taxairpj, listauforigem, listaufdestino, liberado, codimposto, codimpostonfe, codnbs) FROM stdin;
\.
COPY public.clienteopfis (codclienteopfis, codcliente, descricao, pagaicms, porcicms, percredvlicms, percredbaseicms, icmsembutido, faturaicmsfinal, baseicmsdireta, descontaicmssaldoempresa, calculainss, tributaimpostos, descpissaldoemp, calculainssempresa, calculairrf, desccofinssaldoemp, descontainsssaldo, calculasestsenat, desccsllsaldoemp, descontainsssaldomot, taxaiss, baseissdireta, somarissfatsaldo, issembutido, pagaiss, descontaisssaldoemp, codobsfiscal, codobsfiscal2, pedagioembutidofrete, pedagioembfretemot, pedagioembffiscal, pedagiocalceixo, pedagioembbaseicms, descquebrasaldoemp, segurorctrc, entradasaida, tipofreteempresa, dataatual, datadigitacao, usuarioins, usuarioalt, checklistpedido, taxairpj, listauforigem, listaufdestino, liberado, codimposto, codimpostonfe, codnbs) FROM '$$PATH$$/9649.dat';

--
-- Data for Name: clienterefbanc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clienterefbanc (codcliente, banco, agencia, contato, fone, dataabertura, obs, dataatual, codclienterefbanc, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.clienterefbanc (codcliente, banco, agencia, contato, fone, dataabertura, obs, dataatual, codclienterefbanc, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/9650.dat';

--
-- Data for Name: clienterefcom; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clienterefcom (codcliente, nome, contato, fone, datacadastro, limitecredito, formapagto, ultimacompra, vlultimacompra, dataatual, codclienterefcom, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.clienterefcom (codcliente, nome, contato, fone, datacadastro, limitecredito, formapagto, ultimacompra, vlultimacompra, dataatual, codclienterefcom, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/9651.dat';

--
-- Data for Name: clientetabfrete; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientetabfrete (codclientetabfrete, codcliente, codregra, ordem, obs, usuarioins, datadigitacao, usuarioalt, dataatual, liberado) FROM stdin;
\.
COPY public.clientetabfrete (codclientetabfrete, codcliente, codregra, ordem, obs, usuarioins, datadigitacao, usuarioalt, dataatual, liberado) FROM '$$PATH$$/9652.dat';

--
-- Data for Name: clientetempo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clientetempo (codcliente, codclientetempo, codcidadeorigem, codcidadedestino, tempo, tiposfreteempresa, dataatual, usuarioins, usuarioalt, datadigitacao) FROM stdin;
\.
COPY public.clientetempo (codcliente, codclientetempo, codcidadeorigem, codcidadedestino, tempo, tiposfreteempresa, dataatual, usuarioins, usuarioalt, datadigitacao) FROM '$$PATH$$/9653.dat';

--
-- Data for Name: clienteveiculo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.clienteveiculo (codveiccliente, codcliente, codveiculo, motivobloqueio, datadigitacao, usuarioins, dataatual, liberado, usuarioalt, codtipoveiculo, codtipocarroceria, anofabricacao) FROM stdin;
\.
COPY public.clienteveiculo (codveiccliente, codcliente, codveiculo, motivobloqueio, datadigitacao, usuarioins, dataatual, liberado, usuarioalt, codtipoveiculo, codtipocarroceria, anofabricacao) FROM '$$PATH$$/9654.dat';

--
-- Data for Name: coletaentrega; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.coletaentrega (codcoletaentrega, descricao, dataatual, dataexportacao, liberado, endereco, nomefazenda, nomeprodutor, telefone, contato, roteiro, senha, kmadicional, datadigitacao, usuarioins, usuarioalt, roteirodesc, cnpjcpf, inscricaoestadual, codcidade, bairro, numero, complemento, cep, checklist, lat, lon, raio, email, enviaris, tipoenviolink, statuscad, celular, usuariobloqueio, databloqueio, codmotivobloqueio, obsbloqueio) FROM stdin;
\.
COPY public.coletaentrega (codcoletaentrega, descricao, dataatual, dataexportacao, liberado, endereco, nomefazenda, nomeprodutor, telefone, contato, roteiro, senha, kmadicional, datadigitacao, usuarioins, usuarioalt, roteirodesc, cnpjcpf, inscricaoestadual, codcidade, bairro, numero, complemento, cep, checklist, lat, lon, raio, email, enviaris, tipoenviolink, statuscad, celular, usuariobloqueio, databloqueio, codmotivobloqueio, obsbloqueio) FROM '$$PATH$$/10114.dat';

--
-- Data for Name: coletaentregacont; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.coletaentregacont (codcoletaentregacont, codcoletaentrega, nome, fone, celular, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.coletaentregacont (codcoletaentregacont, codcoletaentrega, nome, fone, celular, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10115.dat';

--
-- Data for Name: coletaentregamot; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.coletaentregamot (codcoletaentregamot, codcoletaentrega, codmotorista, motivobloqueio, liberado, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.coletaentregamot (codcoletaentregamot, codcoletaentrega, codmotorista, motivobloqueio, liberado, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10116.dat';

--
-- Data for Name: coletaentregasetor; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.coletaentregasetor (codcoletaentregasetor, codcoletaentrega, descricao, obs, liberado, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.coletaentregasetor (codcoletaentregasetor, codcoletaentrega, descricao, obs, liberado, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10117.dat';

--
-- Data for Name: coletaentregaveic; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.coletaentregaveic (codcoletaentregaveic, codcoletaentrega, codveiculo, motivobloqueio, liberado, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.coletaentregaveic (codcoletaentregaveic, codcoletaentrega, codveiculo, motivobloqueio, liberado, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10118.dat';

--
-- Data for Name: condpag; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.condpag (codcondicao, prazo, numeroparcelas, descricao, dataatual, dataexportacao, liberado, usuarioins, datadigitacao, usuarioalt, tipoperiod) FROM stdin;
\.
COPY public.condpag (codcondicao, prazo, numeroparcelas, descricao, dataatual, dataexportacao, liberado, usuarioins, datadigitacao, usuarioalt, tipoperiod) FROM '$$PATH$$/10119.dat';

--
-- Data for Name: conhecimento; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimento (numero, numeropedido, codcliente, coddestinatario, codremetente, codveiculo, codmotorista, codmercadoria, codfilial, codembarcador, codfaturasaldo, codfaturaadiantamento, codfaturaclassificacao, codfaturaicms, data, datadigitacao, pesosaida, pesochegada, precotonempresa, freteempresa, adiantamentoempresa, precotonmotorista, fretemotorista, adiantamentomotorista, comissao, numeroclassificacao, valorclassificacao, valormercadoria, codfornecedoradiant, datavencadiant, acertoadiant, codfornecedorsaldo, dtvencsaldo, acertosaldo, taxaquebra, quantidadequebra, tipodesconto, tipotolerancia, valorquebra, pagaicms, baseicms, porcicms, valoricms, horacarregamento, horaprogramada, horaprevista, obs1, obs2, dtvencclassificacao, codfornecedorclassificacao, codfornecedoricms, dtvencicms, horasaida, horachegada, horafimdescarga, sacacarregamento, sacatransporte, sacadescarga, kmrodado, reclamacao, tipofrete, numeroconhecimento, numeroprogramacao, tempo, valorestadia, icmsembutido, pagar, codfornecedorestadia, dtvencestadia, despesaextra, contrato, dataatual, serie, quantmercadoria, especiemercadoria, fretecombinado, impresso, chegouadiantamento, chegousaldo, chegouclassificacao, chegouicms, taxaseguro, premioseguro, fretepago, codfornecedorpedagio, datavencpedagio, valorpedagio, cargadescarga, valorabonoquebra, obsquebra, codfaturapedagio, pedagioembutidofrete, mercadoriapaga, acertoicms, codfornecedorbalsa, datavencbalsa, valorbalsa, codcarreta, tributaimpostos, precotonfiscal, valorfretefiscal, datapedido, sacacarrvalvula, sacacarrpapel, sacacarrestouro, sacatranvalvula, sacatranpapel, sacatranestouro, sacadescvalvula, sacadescpapel, sacadescestouro, codfaturaestadia, horachegpedtransp, descdiffrete, descsegurosaldo, prepago, outrosdescontos, codcoleta, codentrega, pesosaidamotorista, pedidofrete, pedidotransf, umidade, impureza, avariado, valoriss, issembutido, codunidadeembarque, dataviagemmotorista, obs3, obs4, obs5, dtpagtomercadoria, dataexportacao, percredvlicms, codcidadeorigem, codcidadedestino, flag, numeronotafiscal, toleranciaestadia, valorhoraestadia, cancelado, valorinss, valorirrf, freteempresasai, fretemotoristasai, descontainsssaldo, descontainsssaldomot, chegoubalsa, descquebrasaldoemp, faturapesochegada, cpmf, pis, cofins, faturaicmsfinal, descontaicmssaldoempresa, calculainss, natureza, descsegurosaldomot, codacertomotorista, percredbaseicms, historico, estadiapesochegada, calculairrf, calculasestsenat, taxasestsenat, valorsestsenat, chegoucontabil, kmini, kmfim, precotonpedagio, acertoestadia, percfreteagregado, codfaturacompra, comissaodefault, pedagioembfretemot, codconsignatario, numeroicms, motoristaregistradopf, valorinssempresa, codadiantamento, codadiantamentosaldo, caixaarquivo, permitefaturar, obs6, obs7, usuarioins, usuarioalt, chegoucomprovante, pedagiocalceixo, caixaarquivosaldo, numeropedagio, taxaiss, numeroseguro, taxaadiantempresa, taxamercfrete, codpropredespacho, valorseccat, seccatembutidofrete, quebrasegurada, numerobalsa, pedagioembffiscal, seloicms, multaicms, jurosicms, tseicms, toleranciapesocheg, numeroctrcbase, diasfaturamento, codordemcar, codprodutor, outrosdescontosmot, codtiporastreamento, codagrupador, liberacaomotorista, vlbasecomissao, valorrastreamento, descontaisssaldoemp, codproprietario, codcidaderef, numtransporte, veiccontratado, baseicmsdireta, baseissdireta, baseiss, csll, vlcsll, vlpis, vlcofins, descpissaldoemp, desccofinssaldoemp, desccsllsaldoemp, somarissfatsaldo, calculainssempresa, taxainssempresa, tipofreteempresa, pesocubado, auxiliocarga, auxiliodescarga, segurorctrc, segurorcfdc, porcadvalor, advalor, valorpedagiomot, valorentrega, codgerrisco, libgerriscomot, libgerriscoprop, codfrete, valoricmsantec, codfornicmsantec, dtvencicmsantec, valorinssoutrastransp, aidf, acertopedagio, codrota, descsestsenatsaldoemp, descirrfsaldoemp, codfaturaentrega, contatocliente, expseguro, codfaturaentadto, codfaturaentsaldo, classificacaoembfreteemp, dataexpseguro, dataicmsantec, chegoucliente, codfatpagadiant, codfatpagsaldo, codfatpagpedagio, codfatpagicms, codfatpagestadia, codfatpagbalsa, codfatpagclassif, codfatpagicmsantec, codobsfiscal, adiantamentoemp2, codfaturaadiantemp2, precotonempcomp, freteempresacomp, codfaturasaldocomp, uschegousaldo, datachegousaldo, cteloteenv, ctedataloteenv, ctereciboenv, ctedatareciboenv, ctechave, cteprot, ctestatus, obscanc, ctedatacanc, cteprotcanc, datacancelado, taxaseguro2, descseguro2saldo, descseguro2saldomot, premioseguro2, lacres, comissaoembarcador, precometrocubico, datasaidanf, dataemissaonf, codviatransporte, permitepagarsaldofrota, outrosdescontosmot2, usuariopsaldo, usuariopadiant, usuarioppedagio, usuariopbalsa, usuariopicms, usuariopestadia, usuariopclassif, datadigpsaldo, datadigpadiant, datadigppedagio, datadigpbalsa, datadigpicms, datadigpestadia, datadigpclassif, codfaturaquebrasegurada, codemonitor, codemonitorcanc, ctemsgret, emonitorstatus, estadiaembutidafrete, numeroformulario, uschegouadiant, datachegouadiant, codtransadiant, codtranssaldo, codtranspedagio, codtransestadia, codtransicms, codfatpagsestsenat, codfatpagirrf, codfatpaginss, faturaautomatica, numeroconta, codfatpaginssemp, datacaixaarq, usuariocaixaarq, datacaixaarqsaldo, usuariocaixaarqsaldo, valormercsegurada, usuarioviacliente, dataviacliente, modoemissao, selecionado, codfatpagquebra, usuarioautcte, usuariocanccte, usuarioinutcte, arqxmlass, codunidadeembentrega, codtipopagto, precokgmerc, precokgmercquebra, codfatpagiss, codmotcontingencia, datainicontingencia, obscontingencia, adtomot2, codfornecedoradto2, dtvencadto2, codfatpagadto2, usuariopadto2, datadigpadto2, obsinut, ctedatainut, cteprotinut, cartafrete, codemonitorinut, nomeseguradora, numeroapolice, respseguro, tipocte, horainiestadia, horafimestadia, chegouadto2, tiposinistro, resppedagio, tipopedagio, codfornecedor, venccontrpedagio, numerocartaopedagio, clientepagasaldomotorista, codadiantamento2, codunidademedida, codfaturaquebraseg, pedidocliente2, nfedevchave, nfdevcnpj, nfdevmod, nfdevserie, nfdevvalor, nfdevdata, codmoeda, descpedagiobasemot, desccargadescargabasemot, descicmsbasemot, horacoleta, emailcte, tpamb, percmargem, percmargemps, codobsfiscal2, mostrafatfrota, caixaarqfat, usuarioarqfat, dataarqfat, codespeciemerc, ctrb, obsestadia, pedagioembbaseicms, caixaviaarquivo, caixacomprfilial, comissaoestadia, entradasaida, chegouviaarquivo, datacaixaarqviaarquivo, usuariocaixaarqviaarquivo, chegouviafilial, datacaixaarqviafilial, usuariocaixaarqviafilial, ciot, cobrasegurocliente, numviagopcartao, dataprevdescarga, prazodescarga, versaocte, cnd, precotonicms, precotonclassificacao, cndtransp, impressocf, valorhoraestadiamot, acertoadiant2, numautgerrisco, retroagirestadia, caixaarqtiket, usuariocaixaarqtiket, datacaixaarqtiket, codacertoproprietario, tpemis, chegouviaticket, valorcontainer, respcontainer, datadigiestadia, usuariodigestadia, acertoclassificacao, versaomodal, percadmercsegurada, codgerriscoop, codgerriscoseg, numeroviagant, tpambop, vlsaldomot, vlsaldoemp, vlfatfrota, vlfatfrete, vlcomemb, vlmargem, vlmargemps, vlmargembruta, vlfatempbr, vlfatempbrps, vlfatempliq, vloutros, pagaiss, chegouestadia, caixaarqestadia, codcolenttrocanota, estadiastatuscli, enventregacte, envcoletacte, codmotorista2, fusohorario, cnpjseguradora, indglobalizado, listacompprest, fvalorareceber, ftotalprest, fbaseicms, fsaldoemp, codcontrato, codrotamanif, codcoletasetor, codentregasetor, precotonmotoristabr, tpmodal, enviadoccf, idcsrt, hashcsrt, respteccnpj, respteccontato, resptecemail, resptecfone, qrcodcte, codtipotransporteantt, vafrmm, codgerriscoped, codgerriscor, pagooperadora, ordemcli, dataenvioseguro, tipotributacaoprop, precotonempresabr, codfatpagseg2, descmercnf, checklist, indaltodesemp, tpvalepedagio, percfrota, fchecklistcte, codverifcfad, codverifcfsd, codverifcfad2, percadiantmotorista, checklistpagto, ctecrt, codcarreta2, codcarreta3, codcarreta4) FROM stdin;
\.
COPY public.conhecimento (numero, numeropedido, codcliente, coddestinatario, codremetente, codveiculo, codmotorista, codmercadoria, codfilial, codembarcador, codfaturasaldo, codfaturaadiantamento, codfaturaclassificacao, codfaturaicms, data, datadigitacao, pesosaida, pesochegada, precotonempresa, freteempresa, adiantamentoempresa, precotonmotorista, fretemotorista, adiantamentomotorista, comissao, numeroclassificacao, valorclassificacao, valormercadoria, codfornecedoradiant, datavencadiant, acertoadiant, codfornecedorsaldo, dtvencsaldo, acertosaldo, taxaquebra, quantidadequebra, tipodesconto, tipotolerancia, valorquebra, pagaicms, baseicms, porcicms, valoricms, horacarregamento, horaprogramada, horaprevista, obs1, obs2, dtvencclassificacao, codfornecedorclassificacao, codfornecedoricms, dtvencicms, horasaida, horachegada, horafimdescarga, sacacarregamento, sacatransporte, sacadescarga, kmrodado, reclamacao, tipofrete, numeroconhecimento, numeroprogramacao, tempo, valorestadia, icmsembutido, pagar, codfornecedorestadia, dtvencestadia, despesaextra, contrato, dataatual, serie, quantmercadoria, especiemercadoria, fretecombinado, impresso, chegouadiantamento, chegousaldo, chegouclassificacao, chegouicms, taxaseguro, premioseguro, fretepago, codfornecedorpedagio, datavencpedagio, valorpedagio, cargadescarga, valorabonoquebra, obsquebra, codfaturapedagio, pedagioembutidofrete, mercadoriapaga, acertoicms, codfornecedorbalsa, datavencbalsa, valorbalsa, codcarreta, tributaimpostos, precotonfiscal, valorfretefiscal, datapedido, sacacarrvalvula, sacacarrpapel, sacacarrestouro, sacatranvalvula, sacatranpapel, sacatranestouro, sacadescvalvula, sacadescpapel, sacadescestouro, codfaturaestadia, horachegpedtransp, descdiffrete, descsegurosaldo, prepago, outrosdescontos, codcoleta, codentrega, pesosaidamotorista, pedidofrete, pedidotransf, umidade, impureza, avariado, valoriss, issembutido, codunidadeembarque, dataviagemmotorista, obs3, obs4, obs5, dtpagtomercadoria, dataexportacao, percredvlicms, codcidadeorigem, codcidadedestino, flag, numeronotafiscal, toleranciaestadia, valorhoraestadia, cancelado, valorinss, valorirrf, freteempresasai, fretemotoristasai, descontainsssaldo, descontainsssaldomot, chegoubalsa, descquebrasaldoemp, faturapesochegada, cpmf, pis, cofins, faturaicmsfinal, descontaicmssaldoempresa, calculainss, natureza, descsegurosaldomot, codacertomotorista, percredbaseicms, historico, estadiapesochegada, calculairrf, calculasestsenat, taxasestsenat, valorsestsenat, chegoucontabil, kmini, kmfim, precotonpedagio, acertoestadia, percfreteagregado, codfaturacompra, comissaodefault, pedagioembfretemot, codconsignatario, numeroicms, motoristaregistradopf, valorinssempresa, codadiantamento, codadiantamentosaldo, caixaarquivo, permitefaturar, obs6, obs7, usuarioins, usuarioalt, chegoucomprovante, pedagiocalceixo, caixaarquivosaldo, numeropedagio, taxaiss, numeroseguro, taxaadiantempresa, taxamercfrete, codpropredespacho, valorseccat, seccatembutidofrete, quebrasegurada, numerobalsa, pedagioembffiscal, seloicms, multaicms, jurosicms, tseicms, toleranciapesocheg, numeroctrcbase, diasfaturamento, codordemcar, codprodutor, outrosdescontosmot, codtiporastreamento, codagrupador, liberacaomotorista, vlbasecomissao, valorrastreamento, descontaisssaldoemp, codproprietario, codcidaderef, numtransporte, veiccontratado, baseicmsdireta, baseissdireta, baseiss, csll, vlcsll, vlpis, vlcofins, descpissaldoemp, desccofinssaldoemp, desccsllsaldoemp, somarissfatsaldo, calculainssempresa, taxainssempresa, tipofreteempresa, pesocubado, auxiliocarga, auxiliodescarga, segurorctrc, segurorcfdc, porcadvalor, advalor, valorpedagiomot, valorentrega, codgerrisco, libgerriscomot, libgerriscoprop, codfrete, valoricmsantec, codfornicmsantec, dtvencicmsantec, valorinssoutrastransp, aidf, acertopedagio, codrota, descsestsenatsaldoemp, descirrfsaldoemp, codfaturaentrega, contatocliente, expseguro, codfaturaentadto, codfaturaentsaldo, classificacaoembfreteemp, dataexpseguro, dataicmsantec, chegoucliente, codfatpagadiant, codfatpagsaldo, codfatpagpedagio, codfatpagicms, codfatpagestadia, codfatpagbalsa, codfatpagclassif, codfatpagicmsantec, codobsfiscal, adiantamentoemp2, codfaturaadiantemp2, precotonempcomp, freteempresacomp, codfaturasaldocomp, uschegousaldo, datachegousaldo, cteloteenv, ctedataloteenv, ctereciboenv, ctedatareciboenv, ctechave, cteprot, ctestatus, obscanc, ctedatacanc, cteprotcanc, datacancelado, taxaseguro2, descseguro2saldo, descseguro2saldomot, premioseguro2, lacres, comissaoembarcador, precometrocubico, datasaidanf, dataemissaonf, codviatransporte, permitepagarsaldofrota, outrosdescontosmot2, usuariopsaldo, usuariopadiant, usuarioppedagio, usuariopbalsa, usuariopicms, usuariopestadia, usuariopclassif, datadigpsaldo, datadigpadiant, datadigppedagio, datadigpbalsa, datadigpicms, datadigpestadia, datadigpclassif, codfaturaquebrasegurada, codemonitor, codemonitorcanc, ctemsgret, emonitorstatus, estadiaembutidafrete, numeroformulario, uschegouadiant, datachegouadiant, codtransadiant, codtranssaldo, codtranspedagio, codtransestadia, codtransicms, codfatpagsestsenat, codfatpagirrf, codfatpaginss, faturaautomatica, numeroconta, codfatpaginssemp, datacaixaarq, usuariocaixaarq, datacaixaarqsaldo, usuariocaixaarqsaldo, valormercsegurada, usuarioviacliente, dataviacliente, modoemissao, selecionado, codfatpagquebra, usuarioautcte, usuariocanccte, usuarioinutcte, arqxmlass, codunidadeembentrega, codtipopagto, precokgmerc, precokgmercquebra, codfatpagiss, codmotcontingencia, datainicontingencia, obscontingencia, adtomot2, codfornecedoradto2, dtvencadto2, codfatpagadto2, usuariopadto2, datadigpadto2, obsinut, ctedatainut, cteprotinut, cartafrete, codemonitorinut, nomeseguradora, numeroapolice, respseguro, tipocte, horainiestadia, horafimestadia, chegouadto2, tiposinistro, resppedagio, tipopedagio, codfornecedor, venccontrpedagio, numerocartaopedagio, clientepagasaldomotorista, codadiantamento2, codunidademedida, codfaturaquebraseg, pedidocliente2, nfedevchave, nfdevcnpj, nfdevmod, nfdevserie, nfdevvalor, nfdevdata, codmoeda, descpedagiobasemot, desccargadescargabasemot, descicmsbasemot, horacoleta, emailcte, tpamb, percmargem, percmargemps, codobsfiscal2, mostrafatfrota, caixaarqfat, usuarioarqfat, dataarqfat, codespeciemerc, ctrb, obsestadia, pedagioembbaseicms, caixaviaarquivo, caixacomprfilial, comissaoestadia, entradasaida, chegouviaarquivo, datacaixaarqviaarquivo, usuariocaixaarqviaarquivo, chegouviafilial, datacaixaarqviafilial, usuariocaixaarqviafilial, ciot, cobrasegurocliente, numviagopcartao, dataprevdescarga, prazodescarga, versaocte, cnd, precotonicms, precotonclassificacao, cndtransp, impressocf, valorhoraestadiamot, acertoadiant2, numautgerrisco, retroagirestadia, caixaarqtiket, usuariocaixaarqtiket, datacaixaarqtiket, codacertoproprietario, tpemis, chegouviaticket, valorcontainer, respcontainer, datadigiestadia, usuariodigestadia, acertoclassificacao, versaomodal, percadmercsegurada, codgerriscoop, codgerriscoseg, numeroviagant, tpambop, vlsaldomot, vlsaldoemp, vlfatfrota, vlfatfrete, vlcomemb, vlmargem, vlmargemps, vlmargembruta, vlfatempbr, vlfatempbrps, vlfatempliq, vloutros, pagaiss, chegouestadia, caixaarqestadia, codcolenttrocanota, estadiastatuscli, enventregacte, envcoletacte, codmotorista2, fusohorario, cnpjseguradora, indglobalizado, listacompprest, fvalorareceber, ftotalprest, fbaseicms, fsaldoemp, codcontrato, codrotamanif, codcoletasetor, codentregasetor, precotonmotoristabr, tpmodal, enviadoccf, idcsrt, hashcsrt, respteccnpj, respteccontato, resptecemail, resptecfone, qrcodcte, codtipotransporteantt, vafrmm, codgerriscoped, codgerriscor, pagooperadora, ordemcli, dataenvioseguro, tipotributacaoprop, precotonempresabr, codfatpagseg2, descmercnf, checklist, indaltodesemp, tpvalepedagio, percfrota, fchecklistcte, codverifcfad, codverifcfsd, codverifcfad2, percadiantmotorista, checklistpagto, ctecrt, codcarreta2, codcarreta3, codcarreta4) FROM '$$PATH$$/10120.dat';

--
-- Data for Name: conhecimentoadic; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentoadic (numero, idpedagio, obsopcartao, tpopecrepom, porcadicquebra, dataenvgerrisco, codcoleta2, codentrega2, tipocalcclassif, numformsegcte, usuarioautestadia, dataautestadia, nfserps, nfsecodemonitor, nfseemonitorstatus, nfsestatus, nfsedatahoraenviolote, nfsedatahorareclote, nfsemsgret, nfsenumero, nfseversao, nfseserie, nfsetpamb, nfseprot, nfsecnae, nfsecodservico, nfsedescservico, nfsecodemonitorcanc, nfseobscanc, nfseprotcanc, nfsedatacanc, nfsearqxmlass, tagpesonfe, nfseobs, nfseloteenv, codcidadenfse, codtipocarroceria, usuariocaixaarqestadia, datacaixaarqestadia, usuariopagadiant2, usuariochegouadiant2, datadigpagadiant2, datachegouadiant2, caixaarquivoadto2, codmotivocanc, usuariocaixaarqadto2, datacaixaarqadto2, codclienteop, checklistmerc, codgerriscoped, codclienteopfis, usuariochegouestadia, datachegouestadia, codmotoristagerrisco, codmotoristagerriscoped, codrotasolicmonit, nfsecodtributacao, percursocompl, nfsechave, codproprietariogr, codproprietariogrped, codcidadeorigem2, codcidadedestino2, codcidadetrocanota, emailcte, codfornecedorfomento, usuariochegouicms, datachegouicms, datafomento, valorabast, acertoabast, percabast, codfatpagabast, codfornecedorabast, idabast, numcompraabast, codgerriscoabast, datavencabast, tipotributacao, ceiinss, freteempresareal, codmotoristavend, valorpiscredad, valorcofinscredad, valorpiscredsd, valorcofinscredsd, checklistrobosat, totalprest, valorareceber, tipofretemotorista, numeroviagemsimpl, baseimpostos, codimposto, cstibscbs, codclasstribibscbs, basecalculoibscbs, valoribs, porcibsuf, porcdifibsuf, valordifibsuf, valordevtribibsuf, porcredibsuf, porcefetibsuf, valoribsuf, porcibscidade, porcdifibscidade, valordifibscidade, valordevtribibscidade, porcredibscidade, porcefetibscidade, valoribscidade, porccbs, porcdifcbs, valordifcbs, valordevtribcbs, porcredcbs, porcefetcbs, valorcbs, codcredpresibs, porccredpresibs, valorcredpresibs, valorcredpresibscondsus, codcredprescbs, porccredprescbs, valorcredprescbs, valorcredprescbscondsus, valoribsufcred, valoribscidadecred, valorcbscred, codnbs, vlpisprevisto, vlcofinsprevisto, nfecsrtprod, nfeidcsrtprod, nfecsrthml, nfeidcsrthml) FROM stdin;
\.
COPY public.conhecimentoadic (numero, idpedagio, obsopcartao, tpopecrepom, porcadicquebra, dataenvgerrisco, codcoleta2, codentrega2, tipocalcclassif, numformsegcte, usuarioautestadia, dataautestadia, nfserps, nfsecodemonitor, nfseemonitorstatus, nfsestatus, nfsedatahoraenviolote, nfsedatahorareclote, nfsemsgret, nfsenumero, nfseversao, nfseserie, nfsetpamb, nfseprot, nfsecnae, nfsecodservico, nfsedescservico, nfsecodemonitorcanc, nfseobscanc, nfseprotcanc, nfsedatacanc, nfsearqxmlass, tagpesonfe, nfseobs, nfseloteenv, codcidadenfse, codtipocarroceria, usuariocaixaarqestadia, datacaixaarqestadia, usuariopagadiant2, usuariochegouadiant2, datadigpagadiant2, datachegouadiant2, caixaarquivoadto2, codmotivocanc, usuariocaixaarqadto2, datacaixaarqadto2, codclienteop, checklistmerc, codgerriscoped, codclienteopfis, usuariochegouestadia, datachegouestadia, codmotoristagerrisco, codmotoristagerriscoped, codrotasolicmonit, nfsecodtributacao, percursocompl, nfsechave, codproprietariogr, codproprietariogrped, codcidadeorigem2, codcidadedestino2, codcidadetrocanota, emailcte, codfornecedorfomento, usuariochegouicms, datachegouicms, datafomento, valorabast, acertoabast, percabast, codfatpagabast, codfornecedorabast, idabast, numcompraabast, codgerriscoabast, datavencabast, tipotributacao, ceiinss, freteempresareal, codmotoristavend, valorpiscredad, valorcofinscredad, valorpiscredsd, valorcofinscredsd, checklistrobosat, totalprest, valorareceber, tipofretemotorista, numeroviagemsimpl, baseimpostos, codimposto, cstibscbs, codclasstribibscbs, basecalculoibscbs, valoribs, porcibsuf, porcdifibsuf, valordifibsuf, valordevtribibsuf, porcredibsuf, porcefetibsuf, valoribsuf, porcibscidade, porcdifibscidade, valordifibscidade, valordevtribibscidade, porcredibscidade, porcefetibscidade, valoribscidade, porccbs, porcdifcbs, valordifcbs, valordevtribcbs, porcredcbs, porcefetcbs, valorcbs, codcredpresibs, porccredpresibs, valorcredpresibs, valorcredpresibscondsus, codcredprescbs, porccredprescbs, valorcredprescbs, valorcredprescbscondsus, valoribsufcred, valoribscidadecred, valorcbscred, codnbs, vlpisprevisto, vlcofinsprevisto, nfecsrtprod, nfeidcsrtprod, nfecsrthml, nfeidcsrthml) FROM '$$PATH$$/10123.dat';

--
-- Data for Name: conhecimentodesp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentodesp (codconhecimentodesp, numero, codtipodesp, data, obs, codfaturacompra, valorbase, valoracerto, embfreteemp, descontasaldomot, codfatura, faturar, usuarioins, datadigitacao, usuarioalt, dataatual, basecalculo, porc, porc1, cst, pagar, codnotarec, codnotapag, codfornecedor, codcliente, codcontrato, descontasaldoemp, checklist, codcoletaentrega, umidade, impureza, ardido, imaturo, quebrado, queimados, mofados, esverdeados, avariados, danificados, ph, germinados, picados, umidadepeso, impurezapeso, ardidopeso, imaturopeso, quebradopeso, queimadospeso, mofadospeso, esverdeadospeso, avariadospeso, danificadospeso, phpeso, germinadospeso, picadospeso, pesototal, pesodescontado, obsclassif, codmotorista, numerolaudo, numerocontrato, numerolacre, qtdeclassificada, qtdefuroscarreta, transgenico, vistoriaveic, gnrecodemonitor, gnreemonitorstatus, gnrestatus, gnremsgret, gnreversao, gnretpamb, gnredatahoraenviolote, gnredatahorareclote, gnrereciboenv, gnrecodbarra, gnrelinhadigitavel, gnrearqxmlenviolote, gnrearqpdfreclote, gnreserie, basecomissao, comissao, codacertomotorista, status) FROM stdin;
\.
COPY public.conhecimentodesp (codconhecimentodesp, numero, codtipodesp, data, obs, codfaturacompra, valorbase, valoracerto, embfreteemp, descontasaldomot, codfatura, faturar, usuarioins, datadigitacao, usuarioalt, dataatual, basecalculo, porc, porc1, cst, pagar, codnotarec, codnotapag, codfornecedor, codcliente, codcontrato, descontasaldoemp, checklist, codcoletaentrega, umidade, impureza, ardido, imaturo, quebrado, queimados, mofados, esverdeados, avariados, danificados, ph, germinados, picados, umidadepeso, impurezapeso, ardidopeso, imaturopeso, quebradopeso, queimadospeso, mofadospeso, esverdeadospeso, avariadospeso, danificadospeso, phpeso, germinadospeso, picadospeso, pesototal, pesodescontado, obsclassif, codmotorista, numerolaudo, numerocontrato, numerolacre, qtdeclassificada, qtdefuroscarreta, transgenico, vistoriaveic, gnrecodemonitor, gnreemonitorstatus, gnrestatus, gnremsgret, gnreversao, gnretpamb, gnredatahoraenviolote, gnredatahorareclote, gnrereciboenv, gnrecodbarra, gnrelinhadigitavel, gnrearqxmlenviolote, gnrearqpdfreclote, gnreserie, basecomissao, comissao, codacertomotorista, status) FROM '$$PATH$$/10124.dat';

--
-- Data for Name: conhecimentodoc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentodoc (codconhecimentodoc, numero, codtipodoc, obrigatorio, chegou, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.conhecimentodoc (codconhecimentodoc, numero, codtipodoc, obrigatorio, chegou, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10125.dat';

--
-- Data for Name: conhecimentodocant; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentodocant (numero, numerodoc, serie, codcliente, tipo, chave, tipodoc, datadoc, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codconhecimentodocant, xml, valor) FROM stdin;
\.
COPY public.conhecimentodocant (numero, numerodoc, serie, codcliente, tipo, chave, tipodoc, datadoc, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codconhecimentodocant, xml, valor) FROM '$$PATH$$/10126.dat';

--
-- Data for Name: conhecimentoev; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentoev (codconhecimentoev, numero, nseqevento, xcorrecao, codemonitor, emonitorstatus, evstatus, datahoraenviolote, datahorareclote, nprot, msgret, arqxmlass, usuarioins, usuarioalt, datains, dataalt, codtipoev, fusohorario, versaoeventocte, grupoalterado, campoalterado, nroitemalterado, xconduso, codcliente, codremetente, coddestinatario, codcidadeorigem, codcidadedestino, codcoleta, codentrega, codveiculo, codmotorista, codmercadoria, codcfop, protcancseg, hashentrega, datahashentrega, ntentativa, lat, lon, tpmotivo, xjustmotivo, infentrega) FROM stdin;
\.
COPY public.conhecimentoev (codconhecimentoev, numero, nseqevento, xcorrecao, codemonitor, emonitorstatus, evstatus, datahoraenviolote, datahorareclote, nprot, msgret, arqxmlass, usuarioins, usuarioalt, datains, dataalt, codtipoev, fusohorario, versaoeventocte, grupoalterado, campoalterado, nroitemalterado, xconduso, codcliente, codremetente, coddestinatario, codcidadeorigem, codcidadedestino, codcoleta, codentrega, codveiculo, codmotorista, codmercadoria, codcfop, protcancseg, hashentrega, datahashentrega, ntentativa, lat, lon, tpmotivo, xjustmotivo, infentrega) FROM '$$PATH$$/10127.dat';

--
-- Data for Name: conhecimentoevdet; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentoevdet (codconhecimentoevdet, codconhecimentoev, grupoalterado, campoalterado, valoralterado, nroitemalterado, usuarioins, datadigitacao, usuarioalt, dataatual, valoranterior, enviaxml, nomecamposat, valoralteradoblob, valoranteriorblob) FROM stdin;
\.
COPY public.conhecimentoevdet (codconhecimentoevdet, codconhecimentoev, grupoalterado, campoalterado, valoralterado, nroitemalterado, usuarioins, datadigitacao, usuarioalt, dataatual, valoranterior, enviaxml, nomecamposat, valoralteradoblob, valoranteriorblob) FROM '$$PATH$$/10128.dat';

--
-- Data for Name: conhecimentogrop; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentogrop (codconhecimentogrop, codgerriscoop, numero, ordem, opcao, tipo, listaop, listaop1, apelido, descricao, filtrodefault, usuarioins, usuarioalt, datadigitacao, dataalt) FROM stdin;
\.
COPY public.conhecimentogrop (codconhecimentogrop, codgerriscoop, numero, ordem, opcao, tipo, listaop, listaop1, apelido, descricao, filtrodefault, usuarioins, usuarioalt, datadigitacao, dataalt) FROM '$$PATH$$/10129.dat';

--
-- Data for Name: conhecimentolog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentolog (codconhecimentolog, numero, data, codveiculo, codcidade, local, obs, finalizado, dataatual, usuarioins, usuarioalt, codfilial, codunidadeembarque, codmanif, codtipolog, kmprevrecapagem, codmotorista, km, horafim, codunidadeembarqueant, usuarioanterior, codtipodesc, coddepartamento) FROM stdin;
\.
COPY public.conhecimentolog (codconhecimentolog, numero, data, codveiculo, codcidade, local, obs, finalizado, dataatual, usuarioins, usuarioalt, codfilial, codunidadeembarque, codmanif, codtipolog, kmprevrecapagem, codmotorista, km, horafim, codunidadeembarqueant, usuarioanterior, codtipodesc, coddepartamento) FROM '$$PATH$$/10130.dat';

--
-- Data for Name: conhecimentomotorista; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentomotorista (numero, codmotorista, valor, percentual, dataatual, valoradicional, codconhecimentomotorista, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.conhecimentomotorista (numero, codmotorista, valor, percentual, dataatual, valoradicional, codconhecimentomotorista, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10131.dat';

--
-- Data for Name: conhecimentonota; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentonota (numero, numeronota, serie, data, dataatual, modelo, valor, peso, quantidade, codmercadoria, especiemercadoria, dataentrega, baseicms, valoricms, basesubsttrib, valorsubsttrib, codcfop, chavenfe, pinsuframa, datasaidanf, recebedor, pesocubado, taxaseguro, valorseguro, codtipodoc, usuarioins, datadigitacao, usuarioalt, codespeciemerc, codconhecimentonota, xml, obs, iesubsttrib, chegcanhoto, datachegcanhoto, usuchegcanhoto, codnota, codfaturaent, recebedordoc, descmercnf) FROM stdin;
\.
COPY public.conhecimentonota (numero, numeronota, serie, data, dataatual, modelo, valor, peso, quantidade, codmercadoria, especiemercadoria, dataentrega, baseicms, valoricms, basesubsttrib, valorsubsttrib, codcfop, chavenfe, pinsuframa, datasaidanf, recebedor, pesocubado, taxaseguro, valorseguro, codtipodoc, usuarioins, datadigitacao, usuarioalt, codespeciemerc, codconhecimentonota, xml, obs, iesubsttrib, chegcanhoto, datachegcanhoto, usuchegcanhoto, codnota, codfaturaent, recebedordoc, descmercnf) FROM '$$PATH$$/10132.dat';

--
-- Data for Name: conhecimentonotacaixa; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentonotacaixa (codconhecimentonotacaixa, codconhecimentonota, codtipodesctamanho, quantidade) FROM stdin;
\.
COPY public.conhecimentonotacaixa (codconhecimentonotacaixa, codconhecimentonota, codtipodesctamanho, quantidade) FROM '$$PATH$$/10133.dat';

--
-- Data for Name: conhecimentonotadoc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentonotadoc (codconhecimentonotadoc, codconhecimentonota, codtipodoc, obrigatorio, chegou, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.conhecimentonotadoc (codconhecimentonotadoc, codconhecimentonota, codtipodoc, obrigatorio, chegou, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10134.dat';

--
-- Data for Name: conhecimentonotamerc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentonotamerc (codconhecimentonotamerc, codconhecimentonota, valor, peso, quantidade, codmercadoria, especiemercadoria, obs, usuarioins, datadigitacao, usuarioalt, dataatual, coditem, valorfrete) FROM stdin;
\.
COPY public.conhecimentonotamerc (codconhecimentonotamerc, codconhecimentonota, valor, peso, quantidade, codmercadoria, especiemercadoria, obs, usuarioins, datadigitacao, usuarioalt, dataatual, coditem, valorfrete) FROM '$$PATH$$/10135.dat';

--
-- Data for Name: conhecimentoocolog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentoocolog (codconhecimentoocolog, codconhecimentoocorrencia, data, obsresumida, obs, status, finalizado, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.conhecimentoocolog (codconhecimentoocolog, codconhecimentoocorrencia, data, obsresumida, obs, status, finalizado, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10136.dat';

--
-- Data for Name: conhecimentoocorrencia; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentoocorrencia (numero, codtipoocorrencia, data, obs, numeronotafiscal, codtipojustificativa, datadigitacao, usuarioins, usuarioalt, dataatual, codconhecimentoocorrencia, valor, codfaturacompraaud, codfaturarec, codadiantamento, valorajustado, pesochegada, freteemp, fretemot, saldomot, valorquebra, acertosaldo, acertoadiant, npesochegada, nfreteemp, nfretemot, nsaldomot, nvalorquebra, nacertosaldo, nacertoadiant, nc, senha, dataagendamento, status, codconhecimentonota, codconhecimentoev, recebedor, recebedordoc, protocolo, codgerrisco, campoaux1, campoaux2, bcampoaux1, codlogcom, ciot, idabast, dataprevdescarga, pesomercadoriaavariada, especiemercadoriaavariada, quantidademercadoriaavariada) FROM stdin;
\.
COPY public.conhecimentoocorrencia (numero, codtipoocorrencia, data, obs, numeronotafiscal, codtipojustificativa, datadigitacao, usuarioins, usuarioalt, dataatual, codconhecimentoocorrencia, valor, codfaturacompraaud, codfaturarec, codadiantamento, valorajustado, pesochegada, freteemp, fretemot, saldomot, valorquebra, acertosaldo, acertoadiant, npesochegada, nfreteemp, nfretemot, nsaldomot, nvalorquebra, nacertosaldo, nacertoadiant, nc, senha, dataagendamento, status, codconhecimentonota, codconhecimentoev, recebedor, recebedordoc, protocolo, codgerrisco, campoaux1, campoaux2, bcampoaux1, codlogcom, ciot, idabast, dataprevdescarga, pesomercadoriaavariada, especiemercadoriaavariada, quantidademercadoriaavariada) FROM '$$PATH$$/10137.dat';

--
-- Data for Name: conhecimentosolic; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentosolic (codconhecimentosolic, numero, codfornecedor, data, nomefornecedor, emailfornecedor, fonefornecedor, cnpjcpffornecedor, tipopagto, token, status, obs, pesochegada, codverifcfad, codverifcfsd, usuarioins, datadigitacao, usuarioalt, dataatual, codverifcfad2) FROM stdin;
\.
COPY public.conhecimentosolic (codconhecimentosolic, numero, codfornecedor, data, nomefornecedor, emailfornecedor, fonefornecedor, cnpjcpffornecedor, tipopagto, token, status, obs, pesochegada, codverifcfad, codverifcfsd, usuarioins, datadigitacao, usuarioalt, dataatual, codverifcfad2) FROM '$$PATH$$/10138.dat';

--
-- Data for Name: conhecimentostatus; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentostatus (numero, serie, codfilial, codunidadeembarque, status, dataatual, dataexportacao, aidf, validade, caixaarqadto, caixaarqsaldo, caixaarqicms, caixaarqcli, codembarcador, datainut, nprotinut, usuarioinut, obsinut, codconhecimentostatus, usuarioins, datadigitacao, usuarioalt, ctemsgret, codemonitor, versaocte, emonitorstatus, codmotivocanc) FROM stdin;
\.
COPY public.conhecimentostatus (numero, serie, codfilial, codunidadeembarque, status, dataatual, dataexportacao, aidf, validade, caixaarqadto, caixaarqsaldo, caixaarqicms, caixaarqcli, codembarcador, datainut, nprotinut, usuarioinut, obsinut, codconhecimentostatus, usuarioins, datadigitacao, usuarioalt, ctemsgret, codemonitor, versaocte, emonitorstatus, codmotivocanc) FROM '$$PATH$$/10139.dat';

--
-- Data for Name: conhecimentoxml; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentoxml (codconhecimentoxml, numero, codnota, chavecte, data, numerocte, serie, status, dhrecbto, valorprestacao, valorareceber, digval, sitcte, nsu, xml, peso, valormercadoria, codfilial, obs, codfornecedoremit, cnpjcpfemit, nomeemit, inscricaoestadualemit, cidadeemit, ufemit, codcidadeemit, codcliente, cnpjcpfcliente, nomecliente, inscricaoestadualcliente, cidadecliente, ufcliente, codcidadecliente, codveiculo, placa, codmotorista, nomemot, cpfmot, codcidadeorigem, codcidadedestino, usuarioins, datadigitacao, usuarioalt, dataatual, sitconf, statusemonitor, codemonitor, codfilialtomador, codmercadoria) FROM stdin;
\.
COPY public.conhecimentoxml (codconhecimentoxml, numero, codnota, chavecte, data, numerocte, serie, status, dhrecbto, valorprestacao, valorareceber, digval, sitcte, nsu, xml, peso, valormercadoria, codfilial, obs, codfornecedoremit, cnpjcpfemit, nomeemit, inscricaoestadualemit, cidadeemit, ufemit, codcidadeemit, codcliente, cnpjcpfcliente, nomecliente, inscricaoestadualcliente, cidadecliente, ufcliente, codcidadecliente, codveiculo, placa, codmotorista, nomemot, cpfmot, codcidadeorigem, codcidadedestino, usuarioins, datadigitacao, usuarioalt, dataatual, sitconf, statusemonitor, codemonitor, codfilialtomador, codmercadoria) FROM '$$PATH$$/10140.dat';

--
-- Data for Name: conhecimentoxmloco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conhecimentoxmloco (codconhecimentoxmloco, codconhecimentoxml, status, codtipoocorrencia, data, codtipojustificativa, obs, campoaux1, campoaux2, bcampoaux1, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.conhecimentoxmloco (codconhecimentoxmloco, codconhecimentoxml, status, codtipoocorrencia, data, codtipojustificativa, obs, campoaux1, campoaux2, bcampoaux1, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10141.dat';

--
-- Data for Name: consultalog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.consultalog (codconsultalog, data, tela, xmlret, xmlenv, texto, textoatencao, codveiculo, codproprietario, codmotorista, codcliente, codfornecedor, numero, numeropedido, codconhecimentonota, codnota, usuarioins, datadigitacao, usuarioalt, dataatual, codfilial, codveiculolicensa) FROM stdin;
\.
COPY public.consultalog (codconsultalog, data, tela, xmlret, xmlenv, texto, textoatencao, codveiculo, codproprietario, codmotorista, codcliente, codfornecedor, numero, numeropedido, codconhecimentonota, codnota, usuarioins, datadigitacao, usuarioalt, dataatual, codfilial, codveiculolicensa) FROM '$$PATH$$/10142.dat';

--
-- Data for Name: conta; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conta (numeroconta, agencia, banco, datainicial, titular, codigobanco, numcontacompleto, bancaria, limitecredito, prefixobol, porcmultabol, porcmorabol, obsbol, localpagtobol, numclientecodbar, numagenciacodbar, incluiresumogeral, contacontabil, tipoconta, numseq, cnpjcpf, imprimecheque, layoutcnab, dataultfechamento, carteira, codempresa, codfilial, codbanco, numseqpagfor, liberado, obsboleto, permiteboleto, permitedeposito, datadigitacao, dataatual, usuarioins, usuarioalt, codconta, permitesaldonegativo, pastaarqremescob, pastaarqremespagfor, pastaarqremespagsal, incluifluxocaixa, codcedente, campoaux1, campoaux2, campoaux3, campoaux4, campoaux5, numseqpagforfolha, campoaux6, campoaux7, campoaux8, campoaux9, campoaux10, chavepix, qrcodepix, tipochavepix, codnegocio, checklist, codcontacontabil2, codunidadeembarque, codfornecedor, imagemass, qrcode, imgadic) FROM stdin;
\.
COPY public.conta (numeroconta, agencia, banco, datainicial, titular, codigobanco, numcontacompleto, bancaria, limitecredito, prefixobol, porcmultabol, porcmorabol, obsbol, localpagtobol, numclientecodbar, numagenciacodbar, incluiresumogeral, contacontabil, tipoconta, numseq, cnpjcpf, imprimecheque, layoutcnab, dataultfechamento, carteira, codempresa, codfilial, codbanco, numseqpagfor, liberado, obsboleto, permiteboleto, permitedeposito, datadigitacao, dataatual, usuarioins, usuarioalt, codconta, permitesaldonegativo, pastaarqremescob, pastaarqremespagfor, pastaarqremespagsal, incluifluxocaixa, codcedente, campoaux1, campoaux2, campoaux3, campoaux4, campoaux5, numseqpagforfolha, campoaux6, campoaux7, campoaux8, campoaux9, campoaux10, chavepix, qrcodepix, tipochavepix, codnegocio, checklist, codcontacontabil2, codunidadeembarque, codfornecedor, imagemass, qrcode, imgadic) FROM '$$PATH$$/10143.dat';

--
-- Data for Name: contacontabil; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contacontabil (codcontacontabil, numcontacompleto, descricao, item, cliente, fornecedor, conta, usuarioins, datadigitacao, usuarioalt, dataatual, codnatureza, tipo, nivel, contarfb, codaux, codconthist, codempresa, codcontacontabilsistemaext, numcontaaux, checklist) FROM stdin;
\.
COPY public.contacontabil (codcontacontabil, numcontacompleto, descricao, item, cliente, fornecedor, conta, usuarioins, datadigitacao, usuarioalt, dataatual, codnatureza, tipo, nivel, contarfb, codaux, codconthist, codempresa, codcontacontabilsistemaext, numcontaaux, checklist) FROM '$$PATH$$/10144.dat';

--
-- Data for Name: contaitem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contaitem (codcontaitem, codconta, coditem, codfilial, codunidadeembarque, codnegocio, codfornecedor, serie, valor, dataatual, datadigitacao, usuarioins, usuarioalt, descparcial, obs, numeroconta) FROM stdin;
\.
COPY public.contaitem (codcontaitem, codconta, coditem, codfilial, codunidadeembarque, codnegocio, codfornecedor, serie, valor, dataatual, datadigitacao, usuarioins, usuarioalt, descparcial, obs, numeroconta) FROM '$$PATH$$/10145.dat';

--
-- Data for Name: conthist; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.conthist (codconthist, descricao, codexterno, codexterno2, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.conthist (codconthist, descricao, codexterno, codexterno2, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10146.dat';

--
-- Data for Name: contlanc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contlanc (codcontlanc, data, descricao, obs, codexterno, codexterno2, usuarioexp, dataexp, usuarioins, datadigitacao, usuarioalt, dataatual, automatico) FROM stdin;
\.
COPY public.contlanc (codcontlanc, data, descricao, obs, codexterno, codexterno2, usuarioexp, dataexp, usuarioins, datadigitacao, usuarioalt, dataatual, automatico) FROM '$$PATH$$/10147.dat';

--
-- Data for Name: contlancdet; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contlancdet (codcontlancdet, codcontlanc, codcontacred, codcontadeb, codconthist, descricao, obs, codexterno, codexterno2, valor, usuarioins, datadigitacao, usuarioalt, dataatual, codregracdet, codregrac) FROM stdin;
\.
COPY public.contlancdet (codcontlancdet, codcontlanc, codcontacred, codcontadeb, codconthist, descricao, obs, codexterno, codexterno2, valor, usuarioins, datadigitacao, usuarioalt, dataatual, codregracdet, codregrac) FROM '$$PATH$$/10148.dat';

--
-- Data for Name: contlancdetorig; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contlancdetorig (codcontlancdetorig, codcontlancdet, tabela, chave, valor, codregracdet, status, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.contlancdetorig (codcontlancdetorig, codcontlancdet, tabela, chave, valor, codregracdet, status, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10149.dat';

--
-- Data for Name: contrato; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contrato (numero, data, peso, obs, datafim, dataatual, datadigitacao, usuarioins, usuarioalt, codcontrato, codcliente, codmercadoria, codsafra, codmoeda, valorunitsicms, valortotalsicms, quantidade, status, liberado, valorunitcicms, valortotalcicms, tipo, obspagto, codcondicao, checklist, datavalidade, datainicio, codfornecedorvend, umidade, impureza, ardido, imaturo, quebrado, triguilho, quirera, descricao, fretepago, codfilial, codunidadeembarque, codcoleta, codentrega, codremetente, coddestinatario, codcidadeorigem, codcidadedestino, codunidademedida, codembarcador, coditem, especiemerc, porcaliqicmssubstrib, porcpautaicms, porcredbaseicms, porcicms, csticms, cstpis, cstcofins, codcfop, codobsfiscal, codobsfiscal2, obsfiscal, obsnfe, codfornecedor, unidade, unidadetrib, pedidocliente, lacre, pedclientetransf, codrota, cadencia, tipocadencia, prazofaturamento, tipofechamento, prazoadicional, codtiporecto, listadiasfat, codtipohistfat, codtipoenvio, codclienteop, numeroconta, codnotaref, pagaicms, codnegocio, codclienteopfis, codcfopviagem, codunidadeembarquetransp, codfornecedornfe, porcicmstransp, percredvlicmstransp, percredbaseicmstransp, serieviagem, codnegocionfe, datavencpadrao, codfilialcte, marcavoltransp, codimposto, codimpostonfe, codnbs) FROM stdin;
\.
COPY public.contrato (numero, data, peso, obs, datafim, dataatual, datadigitacao, usuarioins, usuarioalt, codcontrato, codcliente, codmercadoria, codsafra, codmoeda, valorunitsicms, valortotalsicms, quantidade, status, liberado, valorunitcicms, valortotalcicms, tipo, obspagto, codcondicao, checklist, datavalidade, datainicio, codfornecedorvend, umidade, impureza, ardido, imaturo, quebrado, triguilho, quirera, descricao, fretepago, codfilial, codunidadeembarque, codcoleta, codentrega, codremetente, coddestinatario, codcidadeorigem, codcidadedestino, codunidademedida, codembarcador, coditem, especiemerc, porcaliqicmssubstrib, porcpautaicms, porcredbaseicms, porcicms, csticms, cstpis, cstcofins, codcfop, codobsfiscal, codobsfiscal2, obsfiscal, obsnfe, codfornecedor, unidade, unidadetrib, pedidocliente, lacre, pedclientetransf, codrota, cadencia, tipocadencia, prazofaturamento, tipofechamento, prazoadicional, codtiporecto, listadiasfat, codtipohistfat, codtipoenvio, codclienteop, numeroconta, codnotaref, pagaicms, codnegocio, codclienteopfis, codcfopviagem, codunidadeembarquetransp, codfornecedornfe, porcicmstransp, percredvlicmstransp, percredbaseicmstransp, serieviagem, codnegocionfe, datavencpadrao, codfilialcte, marcavoltransp, codimposto, codimpostonfe, codnbs) FROM '$$PATH$$/10150.dat';

--
-- Data for Name: contratoaj; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contratoaj (codcontratoaj, codcontrato, creditodebito, campo, data, obs, valor, peso, quantidade, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.contratoaj (codcontratoaj, codcontrato, creditodebito, campo, data, obs, valor, peso, quantidade, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10151.dat';

--
-- Data for Name: contratocolent; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contratocolent (codcontratocolent, codcontrato, codcoletaentrega, codcoletaentregasetor, peso, quantidade, obs, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.contratocolent (codcontratocolent, codcontrato, codcoletaentrega, codcoletaentregasetor, peso, quantidade, obs, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10152.dat';

--
-- Data for Name: contratodesp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contratodesp (codcontratodesp, codcontrato, codtipodesp, obs, codfornecedor, valor, valorppt, percentual, embfreteemp, descontasaldomot, faturar, pagar, dataatual, datadigitacao, usuarioins, usuarioalt, descontasaldoemp) FROM stdin;
\.
COPY public.contratodesp (codcontratodesp, codcontrato, codtipodesp, obs, codfornecedor, valor, valorppt, percentual, embfreteemp, descontasaldomot, faturar, pagar, dataatual, datadigitacao, usuarioins, usuarioalt, descontasaldoemp) FROM '$$PATH$$/10153.dat';

--
-- Data for Name: contratolib; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contratolib (codcontratolib, codcontrato, codcontratocompra, peso, coditem, obs, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.contratolib (codcontratolib, codcontrato, codcontratocompra, peso, coditem, obs, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10154.dat';

--
-- Data for Name: contratolog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contratolog (codcontratolog, codcontrato, data, status, obs, usuarioins, datadigitacao, usuarioalt, dataatual, tipolog) FROM stdin;
\.
COPY public.contratolog (codcontratolog, codcontrato, data, status, obs, usuarioins, datadigitacao, usuarioalt, dataatual, tipolog) FROM '$$PATH$$/10155.dat';

--
-- Data for Name: contratoparc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contratoparc (codcontratoparc, codcontrato, recdesp, codfaturarec, codfaturapag, parcela, datavencimento, valorvencimento, obs, dataatual, datadigitacao, usuarioins, usuarioalt, status) FROM stdin;
\.
COPY public.contratoparc (codcontratoparc, codcontrato, recdesp, codfaturarec, codfaturapag, parcela, datavencimento, valorvencimento, obs, dataatual, datadigitacao, usuarioins, usuarioalt, status) FROM '$$PATH$$/10156.dat';

--
-- Data for Name: contratoval; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.contratoval (codcontratoval, codcontrato, datavalidade, tipodata, precotonpedagio, toleranciaestadia, valorhoraestadia, precotonmotorista, precotonmotpf, precotonproprio, precotonagregado, precotonagregmisto, adiantamentomotorista, adiantamentomotorista2, precotonmotoristamax, precotonmotpfmax, precotonpropriomax, precotonagregadomax, precotonagregmistomax, valorunitsicms, valortotalsicms, valorunitcicms, valortotalcicms, dataatual, datadigitacao, usuarioins, usuarioalt, codcontratocompra, liberado, listatipocarroceria, pagaicms, precotonempresa, precotonfiscal, porcicms, percredvlicms, percredbaseicms, codcfop) FROM stdin;
\.
COPY public.contratoval (codcontratoval, codcontrato, datavalidade, tipodata, precotonpedagio, toleranciaestadia, valorhoraestadia, precotonmotorista, precotonmotpf, precotonproprio, precotonagregado, precotonagregmisto, adiantamentomotorista, adiantamentomotorista2, precotonmotoristamax, precotonmotpfmax, precotonpropriomax, precotonagregadomax, precotonagregmistomax, valorunitsicms, valortotalsicms, valorunitcicms, valortotalcicms, dataatual, datadigitacao, usuarioins, usuarioalt, codcontratocompra, liberado, listatipocarroceria, pagaicms, precotonempresa, precotonfiscal, porcicms, percredvlicms, percredbaseicms, codcfop) FROM '$$PATH$$/10157.dat';

--
-- Data for Name: cor; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cor (codcor, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, liberado) FROM stdin;
\.
COPY public.cor (codcor, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, liberado) FROM '$$PATH$$/10158.dat';

--
-- Data for Name: cot; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cot (codcot, data, datadigitacao, usuarioins, usuarioalt, usuarioaut, codfornecedor1, codfornecedor2, codfornecedor3, codfornecedor4, codfornecedor5, obsf1, obsf2, obsf3, obsf4, obsf5, obs, codfilial, codunidadeembarque, geradoordemcompra, codcondpag1, codcondpag2, codcondpag3, codcondpag4, codcondpag5, prazoent1, prazoent2, prazoent3, prazoent4, prazoent5, datavenc1, datavenc2, datavenc3, datavenc4, datavenc5, codtipo, dataatual, codveiculo, numeronotareq, seriereq, codfornecedorreq, usuariogeradooc, datageradooc, codmotivocanc, datacanc, usuariocanc, detcanc, coddepartamento) FROM stdin;
\.
COPY public.cot (codcot, data, datadigitacao, usuarioins, usuarioalt, usuarioaut, codfornecedor1, codfornecedor2, codfornecedor3, codfornecedor4, codfornecedor5, obsf1, obsf2, obsf3, obsf4, obsf5, obs, codfilial, codunidadeembarque, geradoordemcompra, codcondpag1, codcondpag2, codcondpag3, codcondpag4, codcondpag5, prazoent1, prazoent2, prazoent3, prazoent4, prazoent5, datavenc1, datavenc2, datavenc3, datavenc4, datavenc5, codtipo, dataatual, codveiculo, numeronotareq, seriereq, codfornecedorreq, usuariogeradooc, datageradooc, codmotivocanc, datacanc, usuariocanc, detcanc, coddepartamento) FROM '$$PATH$$/10159.dat';

--
-- Data for Name: cotfrete; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cotfrete (codcotfrete, data, codfilial, codcliente, codembarcador, status, codcidadeorigem, origem, codcidadedestino, destino, codmercadoria, descmercadoria, valormercadoria, vlmercdeclarado, quantmercadoria, peso, largura, altura, km, kmterra, usuarioins, usuarioalt, datadigitacao, dataatual, contato, modfaturamento, franquiahs, obs, carregamento, segurototal, balsa, icmsembutido, pedagioembfreteemp, licenca, regimefiscal, equipcarr, vlhrcarr, equipdesc, vlhrdesc, prazopagamento, validade, valordiaria, escolta, fretecompartilhado, seguroddr, franquiahsdesc, codmoeda, advalorem, usuarioaut, dataaut, codcondicao) FROM stdin;
\.
COPY public.cotfrete (codcotfrete, data, codfilial, codcliente, codembarcador, status, codcidadeorigem, origem, codcidadedestino, destino, codmercadoria, descmercadoria, valormercadoria, vlmercdeclarado, quantmercadoria, peso, largura, altura, km, kmterra, usuarioins, usuarioalt, datadigitacao, dataatual, contato, modfaturamento, franquiahs, obs, carregamento, segurototal, balsa, icmsembutido, pedagioembfreteemp, licenca, regimefiscal, equipcarr, vlhrcarr, equipdesc, vlhrdesc, prazopagamento, validade, valordiaria, escolta, fretecompartilhado, seguroddr, franquiahsdesc, codmoeda, advalorem, usuarioaut, dataaut, codcondicao) FROM '$$PATH$$/10160.dat';

--
-- Data for Name: cotfretelog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cotfretelog (codcotfrete, codcotfretelog, data, status, usuarioins, usuarioalt, datadigitacao, dataatual, freteempresa, prazopagamento, respcliente, acompanhamento, emailcopia, emaildestino, segurototal, icmsembutido, pedagioembfreteemp, carregamento, descarga, escolta, balsa, valordiaria, equipamento, validade, obs, licenca, codmoeda, codproproetario, valorconcorrente, percconcorrente, codcondicao) FROM stdin;
\.
COPY public.cotfretelog (codcotfrete, codcotfretelog, data, status, usuarioins, usuarioalt, datadigitacao, dataatual, freteempresa, prazopagamento, respcliente, acompanhamento, emailcopia, emaildestino, segurototal, icmsembutido, pedagioembfreteemp, carregamento, descarga, escolta, balsa, valordiaria, equipamento, validade, obs, licenca, codmoeda, codproproetario, valorconcorrente, percconcorrente, codcondicao) FROM '$$PATH$$/10161.dat';

--
-- Data for Name: cotfretemerc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cotfretemerc (codcotfrete, codcotfretemerc, codcidadeorigem, origem, codcidadedestino, destino, codmercadoria, descmercadoria, valormercadoria, vlmercdeclarado, quantmercadoria, peso, largura, altura, km, kmterra, freteempresa, usuarioins, usuarioalt, datadigitacao, dataatual, codmoeda, codtipocarroceria, kmpordia, totdiasviaegm, codrota, valorbatedores, obsbatedores, obs, vlpedagio, vltap, vltuv, vltturrs, vldiversos, vlmobdesmob, vlescoltaurbana, vlciaeletrica, vlsemaforia, vlciatelefonica, vlmunk, vlbalsa, vlsegurobalsa, vlguindaste, vlfreteterceiro, vlseguro, vlicms, vlfretedias, vlfretekm, kmadicional, vlpre, vlprf, vlinversaoecovias, vlextra, percadm, diasmob, diascarga, diastransporte, diasdescarga, diasretorno, quantalteracao, codveiculo, datacoleta, liberado, numeropedido, codproprietario, datacoletaprev, compartilhado, freteretorno, vlfranquiacarga, vlfranquiadescarga, porcicms, obsdespesa, taxaseguro, kmtabelafrete, tempo, codfrete, tipotabfrete) FROM stdin;
\.
COPY public.cotfretemerc (codcotfrete, codcotfretemerc, codcidadeorigem, origem, codcidadedestino, destino, codmercadoria, descmercadoria, valormercadoria, vlmercdeclarado, quantmercadoria, peso, largura, altura, km, kmterra, freteempresa, usuarioins, usuarioalt, datadigitacao, dataatual, codmoeda, codtipocarroceria, kmpordia, totdiasviaegm, codrota, valorbatedores, obsbatedores, obs, vlpedagio, vltap, vltuv, vltturrs, vldiversos, vlmobdesmob, vlescoltaurbana, vlciaeletrica, vlsemaforia, vlciatelefonica, vlmunk, vlbalsa, vlsegurobalsa, vlguindaste, vlfreteterceiro, vlseguro, vlicms, vlfretedias, vlfretekm, kmadicional, vlpre, vlprf, vlinversaoecovias, vlextra, percadm, diasmob, diascarga, diastransporte, diasdescarga, diasretorno, quantalteracao, codveiculo, datacoleta, liberado, numeropedido, codproprietario, datacoletaprev, compartilhado, freteretorno, vlfranquiacarga, vlfranquiadescarga, porcicms, obsdespesa, taxaseguro, kmtabelafrete, tempo, codfrete, tipotabfrete) FROM '$$PATH$$/10162.dat';

--
-- Data for Name: cotfretemercpedido; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cotfretemercpedido (codcotfrete, codcotfretemerc, numero, usuarioins, datadigitacao, usuarioalt, dataatual, codcotfretemercpedido) FROM stdin;
\.
COPY public.cotfretemercpedido (codcotfrete, codcotfretemerc, numero, usuarioins, datadigitacao, usuarioalt, dataatual, codcotfretemercpedido) FROM '$$PATH$$/10163.dat';

--
-- Data for Name: cotfretetaxa; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cotfretetaxa (codcotfretetaxa, tipo, datainicial, peso, comprimento, largura, altura, km, valordia, valorkm, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.cotfretetaxa (codcotfretetaxa, tipo, datainicial, peso, comprimento, largura, altura, km, valordia, valorkm, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10164.dat';

--
-- Data for Name: credencial; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.credencial (codcredencial, usuario, senha, token, nometabela, chavetabela, datavalidade, datains, usuarioins, dataalt, usuarioalt) FROM stdin;
\.
COPY public.credencial (codcredencial, usuario, senha, token, nometabela, chavetabela, datavalidade, datains, usuarioins, dataalt, usuarioalt) FROM '$$PATH$$/10553.dat';

--
-- Data for Name: databi; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.databi (coddatabi, data, dia, mes, ano, mesnome, mesnomeres, mmaaaa, aaaamm, mmddaaaa) FROM stdin;
\.
COPY public.databi (coddatabi, data, dia, mes, ano, mesnome, mesnomeres, mmaaaa, aaaamm, mmddaaaa) FROM '$$PATH$$/10165.dat';

--
-- Data for Name: departamento; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.departamento (coddepartamento, descricao, dataatual, usuarioins, usuarioalt, datadigitacao) FROM stdin;
\.
COPY public.departamento (coddepartamento, descricao, dataatual, usuarioins, usuarioalt, datadigitacao) FROM '$$PATH$$/10166.dat';

--
-- Data for Name: deposito; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.deposito (coddeposito, codfilial, descricao, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.deposito (coddeposito, codfilial, descricao, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10167.dat';

--
-- Data for Name: depositodoca; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.depositodoca (coddepositodoca, coddeposito, descricao, liberado, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.depositodoca (coddepositodoca, coddeposito, descricao, liberado, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10168.dat';

--
-- Data for Name: documento; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.documento (coddocumento, codtipodoc, nometabela, chavetabela, iddoc, nomearq, status, usuarioins, datadigitacao, usuarioalt, dataatual, codexterno) FROM stdin;
\.
COPY public.documento (coddocumento, codtipodoc, nometabela, chavetabela, iddoc, nomearq, status, usuarioins, datadigitacao, usuarioalt, dataatual, codexterno) FROM '$$PATH$$/10169.dat';

--
-- Data for Name: documentooco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.documentooco (coddocumentooco, coddocumento, codtipoocorrencia, data, bcampoaux1, campoaux1, campoaux2, codgerrisco, codtipojustificativa, obs, protocolo, status, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.documentooco (coddocumentooco, coddocumento, codtipoocorrencia, data, bcampoaux1, campoaux1, campoaux2, codgerrisco, codtipojustificativa, obs, protocolo, status, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10550.dat';

--
-- Data for Name: duplicatapagar; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.duplicatapagar (codfornecedor, numeronota, serie, parcela, datavencimento, codinterno, valorvencimento, datapagamento, valorpagamento, codtransacao, numeroconta, codbaixa, dataatual, codfilial, numeroconhecimento, datadigpagto, selecionado, linhadigitavel, usuariolib, datalib, codtipopagto, codbarra, chavejurosdescontos, obs, chegouboleto, datadigitacao, usuarioins, usuarioalt, codfornecedorcc, codbancofornecedor, agenciafornecedor, contafornecedor, titularfornecedor, codmoeda, codmoedapag, codnota, codduplicatapagar, codfatura, codacertoproprietario, codcaixa, prevista, titularcnpjcpf, finalidadecredito, datavencimentobase, codduplicatapagarorig, codfornecedorsaldoantec, chavepix, numbanco, codbarbanco, valorjurosprevisto, tipochavepix) FROM stdin;
\.
COPY public.duplicatapagar (codfornecedor, numeronota, serie, parcela, datavencimento, codinterno, valorvencimento, datapagamento, valorpagamento, codtransacao, numeroconta, codbaixa, dataatual, codfilial, numeroconhecimento, datadigpagto, selecionado, linhadigitavel, usuariolib, datalib, codtipopagto, codbarra, chavejurosdescontos, obs, chegouboleto, datadigitacao, usuarioins, usuarioalt, codfornecedorcc, codbancofornecedor, agenciafornecedor, contafornecedor, titularfornecedor, codmoeda, codmoedapag, codnota, codduplicatapagar, codfatura, codacertoproprietario, codcaixa, prevista, titularcnpjcpf, finalidadecredito, datavencimentobase, codduplicatapagarorig, codfornecedorsaldoantec, chavepix, numbanco, codbarbanco, valorjurosprevisto, tipochavepix) FROM '$$PATH$$/10170.dat';

--
-- Data for Name: duplicatareceber; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.duplicatareceber (codfatura, parcela, datavencimento, valorvencimento, datapagamento, valorpagamento, codtransacao, numeroconta, codbaixa, obs, dataatual, dataexportacao, numboleto, codbarbanco, numbanco, obsboleto, dataenviobanco, datadigpagto, selecionado, carteira, codtiporecto, chavejurosdescontos, datavencimentobase, codmoeda, codmoedarec, creditoconfirmado, datacredito, codduplicatareceber, datadigitacao, usuarioins, usuarioalt, codacertoproprietario, valorjuros, protestoaut, qtddiasvencfat, codcaixa, codtransacaodepantec, codclientesaldoantec, datafomento, codfornecedorfomento, prevista, valoracertoprop, codduplicatareceberorig, datalib, usuariolib, chavepix, valordescontoprevisto, valorjurosprevisto) FROM stdin;
\.
COPY public.duplicatareceber (codfatura, parcela, datavencimento, valorvencimento, datapagamento, valorpagamento, codtransacao, numeroconta, codbaixa, obs, dataatual, dataexportacao, numboleto, codbarbanco, numbanco, obsboleto, dataenviobanco, datadigpagto, selecionado, carteira, codtiporecto, chavejurosdescontos, datavencimentobase, codmoeda, codmoedarec, creditoconfirmado, datacredito, codduplicatareceber, datadigitacao, usuarioins, usuarioalt, codacertoproprietario, valorjuros, protestoaut, qtddiasvencfat, codcaixa, codtransacaodepantec, codclientesaldoantec, datafomento, codfornecedorfomento, prevista, valoracertoprop, codduplicatareceberorig, datalib, usuariolib, chavepix, valordescontoprevisto, valorjurosprevisto) FROM '$$PATH$$/10171.dat';

--
-- Data for Name: duplordemcompra; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.duplordemcompra (codordemcompra, parcela, datavencimento, valorvencimento, dataatual, codtipopagto, datadigitacao, usuarioins, usuarioalt, codduplordemcompra) FROM stdin;
\.
COPY public.duplordemcompra (codordemcompra, parcela, datavencimento, valorvencimento, dataatual, codtipopagto, datadigitacao, usuarioins, usuarioalt, codduplordemcompra) FROM '$$PATH$$/10172.dat';

--
-- Data for Name: ediviagem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.ediviagem (codediviagem, data, numconhec, serie, tipocte, fretemotorista, pesosaida, pesochegada, status, txt, codcliente, clinome, clicnpjcpf, cliie, codcoleta, colnome, colcnpjcpf, colie, codentrega, entnome, entcnpjcpf, entie, codcidadeorigem, orignome, origuf, origibge, codcidadedestino, destnome, destuf, destibge, codveiculo, placa, codproprietario, propnome, propcnpjcpf, propie, codmotorista, motnome, motcpf, codmercadoria, mercdescricao, mercncm) FROM stdin;
\.
COPY public.ediviagem (codediviagem, data, numconhec, serie, tipocte, fretemotorista, pesosaida, pesochegada, status, txt, codcliente, clinome, clicnpjcpf, cliie, codcoleta, colnome, colcnpjcpf, colie, codentrega, entnome, entcnpjcpf, entie, codcidadeorigem, orignome, origuf, origibge, codcidadedestino, destnome, destuf, destibge, codveiculo, placa, codproprietario, propnome, propcnpjcpf, propie, codmotorista, motnome, motcpf, codmercadoria, mercdescricao, mercncm) FROM '$$PATH$$/10173.dat';

--
-- Data for Name: embarcador; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.embarcador (codembarcador, nome, endereco, complemento, cep, codcidade, celular, rg, fone, fax, cgccpf, email, dataatual, perccomissao, dataexportacao, liberado, percdescinss, descontaseguro, senha, codmotorista, bairro, numero, somapedagiofrete, codtipocliente, datadigitacao, usuarioins, usuarioalt, codexterno, tipoproducao, statuscad) FROM stdin;
\.
COPY public.embarcador (codembarcador, nome, endereco, complemento, cep, codcidade, celular, rg, fone, fax, cgccpf, email, dataatual, perccomissao, dataexportacao, liberado, percdescinss, descontaseguro, senha, codmotorista, bairro, numero, somapedagiofrete, codtipocliente, datadigitacao, usuarioins, usuarioalt, codexterno, tipoproducao, statuscad) FROM '$$PATH$$/10174.dat';

--
-- Data for Name: embarcadorcont; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.embarcadorcont (codembarcador, nome, datanascimento, fone, celular, obs, codcargo, dataatual, datadigitacao, usuarioins, usuarioalt, codembarcadorcont) FROM stdin;
\.
COPY public.embarcadorcont (codembarcador, nome, datanascimento, fone, celular, obs, codcargo, dataatual, datadigitacao, usuarioins, usuarioalt, codembarcadorcont) FROM '$$PATH$$/10175.dat';

--
-- Data for Name: embarcadororc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.embarcadororc (codembarcadororc, codembarcador, datainicial, freteempresa, valormargem, porcmargem, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codunidadeembarque, datafim, codunidadenegocio) FROM stdin;
\.
COPY public.embarcadororc (codembarcadororc, codembarcador, datainicial, freteempresa, valormargem, porcmargem, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codunidadeembarque, datafim, codunidadenegocio) FROM '$$PATH$$/10176.dat';

--
-- Data for Name: empresa; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.empresa (codempresa, nome, endereco, cep, cgc, fone, fax, codcidade, email, versao, datavalidade, chave, codinstalacao, nomereduzido, datadigitacao, dataatual, usuarioins, usuarioalt, senhafb) FROM stdin;
\.
COPY public.empresa (codempresa, nome, endereco, cep, cgc, fone, fax, codcidade, email, versao, datavalidade, chave, codinstalacao, nomereduzido, datadigitacao, dataatual, usuarioins, usuarioalt, senhafb) FROM '$$PATH$$/10177.dat';

--
-- Data for Name: empresas; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.empresas (codempresa, nome, endereco, cep, cgc, fone, fax, codcidade, email, logotipo, arqlogo, dataatual, bairro, numero, codexterno, seguroemp, datavencseguroemp, seguroamb, datavencseguroamb, site, inscricaoestadual, complemento, nomereduzido, datadigitacao, usuarioins, usuarioalt, wslocalarqcertpamcard, wslocalarqcertificadonddcargo, wslocalarqcertificadopolicard, wsdbtransidclienterodocred, wsdbtransloginintegracao, wsdbtranschaveautenticacao, wsrepomcodcliente, wsrepomassinaturadigital, wspolicardentcodigo, wspolicardchaveautenticacao, wsdbtranshomologprod, wspamcardhomologprod, wspolicardhomologprod, wsrepomhomologprod, wsnddcargohomologprod, wsadetokenacess, wsadehomologprod, wsrepomcodclientevpr, wsrepomhomologprodvpr, wsrepomassinaturadigitalvpr, wsefretehomologprod, wslocalarqcertificadoefrete, wsefreteintegrador, wsvalecardhomologprod, wstipfretehomologprod, wsatmhomologprod, wsatmusuario, wsatmsenha, wsatmcodigo, wsadechaveacesso, wsfastcredhomologprod, wsfastcredcodcontratante, wsefretecoduecertifa1, wspamcardcoduecertifa1, arqlogodanfe, arqlogositesat, arqlogodanfesitesat, wssempararhomologprod, wssempararcnpj, wssempararlogin, wssempararsenha, wssempararcodueemonitor, simplesnacional, wspagbemhomologprod, wspagbemcnpj, wspagbemlogin, wspagbemsenha, wspagbemtoken, arqlogocracha, checklist) FROM stdin;
\.
COPY public.empresas (codempresa, nome, endereco, cep, cgc, fone, fax, codcidade, email, logotipo, arqlogo, dataatual, bairro, numero, codexterno, seguroemp, datavencseguroemp, seguroamb, datavencseguroamb, site, inscricaoestadual, complemento, nomereduzido, datadigitacao, usuarioins, usuarioalt, wslocalarqcertpamcard, wslocalarqcertificadonddcargo, wslocalarqcertificadopolicard, wsdbtransidclienterodocred, wsdbtransloginintegracao, wsdbtranschaveautenticacao, wsrepomcodcliente, wsrepomassinaturadigital, wspolicardentcodigo, wspolicardchaveautenticacao, wsdbtranshomologprod, wspamcardhomologprod, wspolicardhomologprod, wsrepomhomologprod, wsnddcargohomologprod, wsadetokenacess, wsadehomologprod, wsrepomcodclientevpr, wsrepomhomologprodvpr, wsrepomassinaturadigitalvpr, wsefretehomologprod, wslocalarqcertificadoefrete, wsefreteintegrador, wsvalecardhomologprod, wstipfretehomologprod, wsatmhomologprod, wsatmusuario, wsatmsenha, wsatmcodigo, wsadechaveacesso, wsfastcredhomologprod, wsfastcredcodcontratante, wsefretecoduecertifa1, wspamcardcoduecertifa1, arqlogodanfe, arqlogositesat, arqlogodanfesitesat, wssempararhomologprod, wssempararcnpj, wssempararlogin, wssempararsenha, wssempararcodueemonitor, simplesnacional, wspagbemhomologprod, wspagbemcnpj, wspagbemlogin, wspagbemsenha, wspagbemtoken, arqlogocracha, checklist) FROM '$$PATH$$/10178.dat';

--
-- Data for Name: empresascom; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.empresascom (codempresascom, codempresa, codgerrisco, descricao, senha, usuario, urlhomol, urlprod, tipohomologprod, campoaux1, campoaux2, campoaux3, campoaux4, campoaux5, campoaux6, campoaux7, token, usuarioins, usuarioalt, datadigitacao, dataalt, campoaux8, campoaux9, campoaux10, campoaux11, campoaux12, campoaux13, campoaux14, campoaux15, btoken, bcampoaux1, bcampoaux2) FROM stdin;
\.
COPY public.empresascom (codempresascom, codempresa, codgerrisco, descricao, senha, usuario, urlhomol, urlprod, tipohomologprod, campoaux1, campoaux2, campoaux3, campoaux4, campoaux5, campoaux6, campoaux7, token, usuarioins, usuarioalt, datadigitacao, dataalt, campoaux8, campoaux9, campoaux10, campoaux11, campoaux12, campoaux13, campoaux14, campoaux15, btoken, bcampoaux1, bcampoaux2) FROM '$$PATH$$/10179.dat';

--
-- Data for Name: empresascontacontabil; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.empresascontacontabil (codempresacontacontabil, codempresa, codcontacontabil, liberado, nometabela, chavetabela, numerocontacontabil) FROM stdin;
\.
COPY public.empresascontacontabil (codempresacontacontabil, codempresa, codcontacontabil, liberado, nometabela, chavetabela, numerocontacontabil) FROM '$$PATH$$/10180.dat';

--
-- Data for Name: empresaspar; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.empresaspar (codempresaspar, codempresa, descricao, tipo, valor, obs, usuarioalt, dataalt) FROM stdin;
\.
COPY public.empresaspar (codempresaspar, codempresa, descricao, tipo, valor, obs, usuarioalt, dataalt) FROM '$$PATH$$/10181.dat';

--
-- Data for Name: equip; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.equip (codequip, codtipoequip, descricao, serie, fabricante, modelo, liberado, status, obs, usuarioins, usuarioalt, datadigitacao, dataatual, codfornecedor, datacompra, valorcompra, numeronotafiscal, numeropatrimonio, databaixa, codequiplocatual, numinventario, responsavel) FROM stdin;
\.
COPY public.equip (codequip, codtipoequip, descricao, serie, fabricante, modelo, liberado, status, obs, usuarioins, usuarioalt, datadigitacao, dataatual, codfornecedor, datacompra, valorcompra, numeronotafiscal, numeropatrimonio, databaixa, codequiplocatual, numinventario, responsavel) FROM '$$PATH$$/10182.dat';

--
-- Data for Name: equiplog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.equiplog (codequiplog, codtipoequiploc, codequip, data, codveiculo, codunidadeembarque, obs, dataproxrevisao, usuarioins, usuarioalt, datadigitacao, dataatual, valor, numeronota, serie, codfornecedor, coditem, codinterno, codmotorista, status, codtipoequiplog, lacre, responsavel, datafimuso) FROM stdin;
\.
COPY public.equiplog (codequiplog, codtipoequiploc, codequip, data, codveiculo, codunidadeembarque, obs, dataproxrevisao, usuarioins, usuarioalt, datadigitacao, dataatual, valor, numeronota, serie, codfornecedor, coditem, codinterno, codmotorista, status, codtipoequiplog, lacre, responsavel, datafimuso) FROM '$$PATH$$/10183.dat';

--
-- Data for Name: especiedoc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.especiedoc (codespeciedoc, descricao, descricaoresumida, obs, usuarioins, datadigitacao, usuarioalt, dataatual, modelo, codauxcontabil) FROM stdin;
\.
COPY public.especiedoc (codespeciedoc, descricao, descricaoresumida, obs, usuarioins, datadigitacao, usuarioalt, dataatual, modelo, codauxcontabil) FROM '$$PATH$$/10184.dat';

--
-- Data for Name: especiemerc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.especiemerc (codespeciemerc, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, liberado) FROM stdin;
\.
COPY public.especiemerc (codespeciemerc, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, liberado) FROM '$$PATH$$/10185.dat';

--
-- Data for Name: estadiafaixa; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.estadiafaixa (codestadiafaixa, nometabela, chavetabela, data, status, horas, valorhoraestadiamot, valorhoraestadiaemp, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.estadiafaixa (codestadiafaixa, nometabela, chavetabela, data, status, horas, valorhoraestadiamot, valorhoraestadiaemp, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10186.dat';

--
-- Data for Name: exametreinamento; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.exametreinamento (codexametreinamento, descricao, tipo, dataatual, usuarioins, usuarioalt, validade, duracao, datadigitacao, exigeeficacia, codfornecedor, liberado, checklist) FROM stdin;
\.
COPY public.exametreinamento (codexametreinamento, descricao, tipo, dataatual, usuarioins, usuarioalt, validade, duracao, datadigitacao, exigeeficacia, codfornecedor, liberado, checklist) FROM '$$PATH$$/10187.dat';

--
-- Data for Name: exametreinamentodoc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.exametreinamentodoc (codexametreinamentodoc, codexametreinamento, codtipodoc, obrigatorio, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.exametreinamentodoc (codexametreinamentodoc, codexametreinamento, codtipodoc, obrigatorio, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10188.dat';

--
-- Data for Name: exametreinamentoval; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.exametreinamentoval (codexametreinamentoval, codexametreinamento, validade, idadelimite, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.exametreinamentoval (codexametreinamentoval, codexametreinamento, validade, idadelimite, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10189.dat';

--
-- Data for Name: exp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.exp (codexp, nome, tipo, querybase, usuarioins, usuarioalt, datadigitacao, dataatual, layout) FROM stdin;
\.
COPY public.exp (codexp, nome, tipo, querybase, usuarioins, usuarioalt, datadigitacao, dataatual, layout) FROM '$$PATH$$/10190.dat';

--
-- Data for Name: expcampo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.expcampo (codexp, campo, titulo, ordem, datadigitacao, dataatual, usuarioins, usuarioalt, codexpcampo, tipo, obs, mascara, alinhamento, largura, caso, formato, ordemgroup) FROM stdin;
\.
COPY public.expcampo (codexp, campo, titulo, ordem, datadigitacao, dataatual, usuarioins, usuarioalt, codexpcampo, tipo, obs, mascara, alinhamento, largura, caso, formato, ordemgroup) FROM '$$PATH$$/10191.dat';

--
-- Data for Name: explog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.explog (codexplog, codexp, obs, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.explog (codexplog, codexp, obs, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10192.dat';

--
-- Data for Name: extrato; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.extrato (codextrato, numeroconta, descricao, valor, codextratoofx, numdoc, obs, status, tipo, data, usuariocanc, datacanc, obscanc, dataalt, usuarioalt, datains, usuarioins) FROM stdin;
\.
COPY public.extrato (codextrato, numeroconta, descricao, valor, codextratoofx, numdoc, obs, status, tipo, data, usuariocanc, datacanc, obscanc, dataalt, usuarioalt, datains, usuarioins) FROM '$$PATH$$/10193.dat';

--
-- Data for Name: extratoofx; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.extratoofx (codextratoofx, numeroconta, nomearq, arquivo, status, data, usuariocanc, datacanc, obscanc, dataalt, usuarioalt, datains, usuarioins) FROM stdin;
\.
COPY public.extratoofx (codextratoofx, numeroconta, nomearq, arquivo, status, data, usuariocanc, datacanc, obscanc, dataalt, usuarioalt, datains, usuarioins) FROM '$$PATH$$/10194.dat';

--
-- Data for Name: fabricante; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.fabricante (codfabricante, descricao, dataatual, liberado, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.fabricante (codfabricante, descricao, dataatual, liberado, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10195.dat';

--
-- Data for Name: fatura; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.fatura (codfatura, codcondicao, codfilial, codcliente, data, valor, atualizada, atualizadaadiantamento, tipofatura, pesochegada, historico, historico1, coditemreceita, dataexportacao, dataatual, datavencimento, codmercadoria, numeropedido, codcidadeorigem, codcidadedestino, estadiadestinatario, dataini, datafim, numeroconta, obs, usuarioins, usuarioalt, codunidadeembarque, codcoleta, codentrega, codveiculo, historico2, datadigitacao, codembarcador, tipofreteempresa, numfatura, codremetente, coddestinatario, status, codtipoenvio, numeropostagem, datapostagem, dataentrega, obsenvio, codchequerec, codtiporecto, pedidofrete, codmoeda, codprotocolofat, obs1, codtipohistfat, codprocesso, valorant, codmotivocanc, codmotorista, codadiantamento, codcontrato, codnegocio, codclienteop, detcanc, obscanc, precotonempresa, codcavalo, chavepix, codveiculoacidente, codfaturabase, parcelacopia, checklist) FROM stdin;
\.
COPY public.fatura (codfatura, codcondicao, codfilial, codcliente, data, valor, atualizada, atualizadaadiantamento, tipofatura, pesochegada, historico, historico1, coditemreceita, dataexportacao, dataatual, datavencimento, codmercadoria, numeropedido, codcidadeorigem, codcidadedestino, estadiadestinatario, dataini, datafim, numeroconta, obs, usuarioins, usuarioalt, codunidadeembarque, codcoleta, codentrega, codveiculo, historico2, datadigitacao, codembarcador, tipofreteempresa, numfatura, codremetente, coddestinatario, status, codtipoenvio, numeropostagem, datapostagem, dataentrega, obsenvio, codchequerec, codtiporecto, pedidofrete, codmoeda, codprotocolofat, obs1, codtipohistfat, codprocesso, valorant, codmotivocanc, codmotorista, codadiantamento, codcontrato, codnegocio, codclienteop, detcanc, obscanc, precotonempresa, codcavalo, chavepix, codveiculoacidente, codfaturabase, parcelacopia, checklist) FROM '$$PATH$$/10196.dat';

--
-- Data for Name: faturacompra; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.faturacompra (codfatura, codfornecedor, codfilial, codcondicao, serie, data, valor, atualizadovista, dataexportacao, dataatual, datavencimento, tipofatura, obs, obs1, numeronf, serienf, datadigitacao, dataini, datafim, usuarioins, usuarioalt, usuarioaut, dataaut, referente, obspagamento, codcfop, dataexpfiscal, dataexpcontabil, usuariosolicaut, historico, codunidadeembarque, chavenfe, xmlnfe, codmoeda, codespeciedoc, codsistema, codprocesso, codcontrato, codmotivocanc, datacanc, usuariocanc, detcanc, valorantescanc, codnotadesp, codfaturadesp, checklist, codveiculoacidente, usuariosolicitanteaut, usuariosolicitantecanc, usuarioaudit, usuariosolicaudit, dataaudit) FROM stdin;
\.
COPY public.faturacompra (codfatura, codfornecedor, codfilial, codcondicao, serie, data, valor, atualizadovista, dataexportacao, dataatual, datavencimento, tipofatura, obs, obs1, numeronf, serienf, datadigitacao, dataini, datafim, usuarioins, usuarioalt, usuarioaut, dataaut, referente, obspagamento, codcfop, dataexpfiscal, dataexpcontabil, usuariosolicaut, historico, codunidadeembarque, chavenfe, xmlnfe, codmoeda, codespeciedoc, codsistema, codprocesso, codcontrato, codmotivocanc, datacanc, usuariocanc, detcanc, valorantescanc, codnotadesp, codfaturadesp, checklist, codveiculoacidente, usuariosolicitanteaut, usuariosolicitantecanc, usuarioaudit, usuariosolicaudit, dataaudit) FROM '$$PATH$$/10197.dat';

--
-- Data for Name: faturacompraaud; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.faturacompraaud (codfaturacompraaud, codfatura, valorajustado, codfaturarec, codadiantamento, data, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.faturacompraaud (codfaturacompraaud, codfatura, valorajustado, codfaturarec, codadiantamento, data, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10198.dat';

--
-- Data for Name: faturacompracon; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.faturacompracon (codfaturacompracon, codfatura, numero, pagando, valor, acerto, ordem, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.faturacompracon (codfaturacompracon, codfatura, numero, pagando, valor, acerto, ordem, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10199.dat';

--
-- Data for Name: faturacompraoco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.faturacompraoco (codfaturacompraoco, codfaturacompra, codtipoocorrencia, descricao, usuarioins, datains, usuarioalt, dataalt) FROM stdin;
\.
COPY public.faturacompraoco (codfaturacompraoco, codfaturacompra, codtipoocorrencia, descricao, usuarioins, datains, usuarioalt, dataalt) FROM '$$PATH$$/10200.dat';

--
-- Data for Name: faturalog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.faturalog (codfaturalog, codfatura, data, dataprox, historico, tipo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.faturalog (codfaturalog, codfatura, data, dataprox, historico, tipo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10201.dat';

--
-- Data for Name: feriado; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.feriado (data, obs, proxdiautil, datadigitacao, usuarioins, usuarioalt, dataatual) FROM stdin;
\.
COPY public.feriado (data, obs, proxdiautil, datadigitacao, usuarioins, usuarioalt, dataatual) FROM '$$PATH$$/10202.dat';

--
-- Data for Name: filial; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.filial (codfilial, nome, contato, endereco, complemento, cep, codcidade, cgccpf, inscricaoestadual, fone, fax, email, codempresa, dataatual, tributaimpostos, pagar, dataexportacao, liberado, icmsembutido, taxaiss, frota, descsegurosaldomot, calculairrf, serie, bairro, numero, codexterno, nomereduzido, percmaxadiant, pis, cofins, csll, seriecteoutrasufs, seriecte, obriganumeropedido, usuarioins, datadigitacao, usuarioalt, rntrc, validaderntrc, porcicms, mostrainternetpagtoforn, numeroultcte, datainicte, cndtransp, validadecndtransp, pedagioembbaseicms, seriemdfe, tipopagtomot, temnfe, serienf, especienf, modelonf, fusohorario, obsnf, obsrodapenf, obscorponf, nfeemailret, nfeemailerro, nfeversao, nfecrt, nfetpamb, nsu, nfefusohorarioautor, codfornecedorcontador, crccontador, obs, nsunfedist, nsumdfedist, nsuctedist, datacadastro, taxaadm, idcsrt, obsseguro, respteccnpj, respteccontato, resptecemail, resptecfone, codigootm, nfecodgerriscoseg, nfecnpjseguradora, nfenomseguradora, nfenumeroapolice, codunidadeembarquedef, naobuscapaineis, checklist, ultcodediviagemem, codcidadecomarca, obscomarca, listaseriectefil, obs1, obs2, obs3, obs4, obs5, obs6, obs7, codunidadeembarquenfse, responsavel1, responsavel2, responsavel3, nfecsrtprod, nfeidcsrtprod, nfecsrthml, nfeidcsrthml, mdfeobsencsatapp) FROM stdin;
\.
COPY public.filial (codfilial, nome, contato, endereco, complemento, cep, codcidade, cgccpf, inscricaoestadual, fone, fax, email, codempresa, dataatual, tributaimpostos, pagar, dataexportacao, liberado, icmsembutido, taxaiss, frota, descsegurosaldomot, calculairrf, serie, bairro, numero, codexterno, nomereduzido, percmaxadiant, pis, cofins, csll, seriecteoutrasufs, seriecte, obriganumeropedido, usuarioins, datadigitacao, usuarioalt, rntrc, validaderntrc, porcicms, mostrainternetpagtoforn, numeroultcte, datainicte, cndtransp, validadecndtransp, pedagioembbaseicms, seriemdfe, tipopagtomot, temnfe, serienf, especienf, modelonf, fusohorario, obsnf, obsrodapenf, obscorponf, nfeemailret, nfeemailerro, nfeversao, nfecrt, nfetpamb, nsu, nfefusohorarioautor, codfornecedorcontador, crccontador, obs, nsunfedist, nsumdfedist, nsuctedist, datacadastro, taxaadm, idcsrt, obsseguro, respteccnpj, respteccontato, resptecemail, resptecfone, codigootm, nfecodgerriscoseg, nfecnpjseguradora, nfenomseguradora, nfenumeroapolice, codunidadeembarquedef, naobuscapaineis, checklist, ultcodediviagemem, codcidadecomarca, obscomarca, listaseriectefil, obs1, obs2, obs3, obs4, obs5, obs6, obs7, codunidadeembarquenfse, responsavel1, responsavel2, responsavel3, nfecsrtprod, nfeidcsrtprod, nfecsrthml, nfeidcsrthml, mdfeobsencsatapp) FROM '$$PATH$$/10121.dat';

--
-- Data for Name: filialportaria; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.filialportaria (codfilialportaria, codfilial, descricao, liberado, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.filialportaria (codfilialportaria, codfilial, descricao, liberado, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10203.dat';

--
-- Data for Name: filialsalario; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.filialsalario (codfilialsalario, codfilial, datainicio, datafim, salario, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.filialsalario (codfilialsalario, codfilial, datainicio, datafim, salario, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10204.dat';

--
-- Data for Name: filialseg; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.filialseg (codfilialseg, codfilial, codgerrisco, nomeseguradora, numeroapolice, datavencapolice, tipotransporte, valorsublimite, usuarioins, datadigitacao, usuarioalt, dataatual, listamerc, listamerc1, checklist, listatipotransporte, taxaseguro, taxaseguro2, km, listamerc2, listamerc3, listamerc4, listamerc5) FROM stdin;
\.
COPY public.filialseg (codfilialseg, codfilial, codgerrisco, nomeseguradora, numeroapolice, datavencapolice, tipotransporte, valorsublimite, usuarioins, datadigitacao, usuarioalt, dataatual, listamerc, listamerc1, checklist, listatipotransporte, taxaseguro, taxaseguro2, km, listamerc2, listamerc3, listamerc4, listamerc5) FROM '$$PATH$$/10205.dat';

--
-- Data for Name: filialsegv; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.filialsegv (codfilialsegv, codfilial, datainicio, precotonini, precotonfim, vlsegporeixo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.filialsegv (codfilialsegv, codfilial, datainicio, precotonini, precotonfim, vlsegporeixo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10206.dat';

--
-- Data for Name: filialsetor; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.filialsetor (codfilialsetor, codfilial, descricao, checklist, datains, usuarioins, dataalt, usuarioalt) FROM stdin;
\.
COPY public.filialsetor (codfilialsetor, codfilial, descricao, checklist, datains, usuarioins, dataalt, usuarioalt) FROM '$$PATH$$/10557.dat';

--
-- Data for Name: filialsped; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.filialsped (codfilialsped, codfilial, data, tipo, registro, codcamposped, desccamposped, obs, valor, usuarioins, datadigitacao, usuarioalt, dataatual, codcontacontabil, conteudo) FROM stdin;
\.
COPY public.filialsped (codfilialsped, codfilial, data, tipo, registro, codcamposped, desccamposped, obs, valor, usuarioins, datadigitacao, usuarioalt, dataatual, codcontacontabil, conteudo) FROM '$$PATH$$/10207.dat';

--
-- Data for Name: fornecedor; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.fornecedor (codfornecedor, nome, endereco, complemento, cep, codcidade, contato, banco, cgccpf, agencia, inscricaoestadual, conta, fone, periodicidade, fax, prazo, email, precodiesel, precogasolina, inscmunicipal, liberadopagamento, obs, tipo, codtipofornecedor, nomefantasia, numeroconta, dataatual, dataexportacao, liberado, bloqueadoconhecimento, celular, senha, contacontabil, datainclusao, pagasegunda, pagaterca, pagaquarta, pagaquinta, pagasexta, horasantecedencia, optantesimples, nomereduzido, rg, bairro, numero, titular, site, taxamulta, taxajuros, usuarioins, usuarioalt, codbanco, codmotivobloqueio, obsbloqueio, databloqueio, usuariobloqueio, saldoantecipado, mostrainternet, obscompleta, codexterno, tipoconta, email2, nextel, titularcnpjcpf, temcontrato, pagasabado, dataultsenha, finalidadecredito, codtipocobranca, codfornecedorprincipal, pis, lat, lon, raio, enviaris, datanascimento, codcliente, mostrataxaadm, ciencianfeauto, codtipopagto, fornecedorprincipal, nffatura, afaturar, filiallib, diasprotesto, checklist, dataultfechamento, chavepix, qrcodepix, diastrocasenha, tipoenviolink, tipochavepix, despesa, codcondicao, senhainteg, gnreversao, gnretpamb, statuscad, checklistmod, codcontacontabil2, adiantamentomotorista, adiantamentomotorista2, tipotributacao) FROM stdin;
\.
COPY public.fornecedor (codfornecedor, nome, endereco, complemento, cep, codcidade, contato, banco, cgccpf, agencia, inscricaoestadual, conta, fone, periodicidade, fax, prazo, email, precodiesel, precogasolina, inscmunicipal, liberadopagamento, obs, tipo, codtipofornecedor, nomefantasia, numeroconta, dataatual, dataexportacao, liberado, bloqueadoconhecimento, celular, senha, contacontabil, datainclusao, pagasegunda, pagaterca, pagaquarta, pagaquinta, pagasexta, horasantecedencia, optantesimples, nomereduzido, rg, bairro, numero, titular, site, taxamulta, taxajuros, usuarioins, usuarioalt, codbanco, codmotivobloqueio, obsbloqueio, databloqueio, usuariobloqueio, saldoantecipado, mostrainternet, obscompleta, codexterno, tipoconta, email2, nextel, titularcnpjcpf, temcontrato, pagasabado, dataultsenha, finalidadecredito, codtipocobranca, codfornecedorprincipal, pis, lat, lon, raio, enviaris, datanascimento, codcliente, mostrataxaadm, ciencianfeauto, codtipopagto, fornecedorprincipal, nffatura, afaturar, filiallib, diasprotesto, checklist, dataultfechamento, chavepix, qrcodepix, diastrocasenha, tipoenviolink, tipochavepix, despesa, codcondicao, senhainteg, gnreversao, gnretpamb, statuscad, checklistmod, codcontacontabil2, adiantamentomotorista, adiantamentomotorista2, tipotributacao) FROM '$$PATH$$/10122.dat';

--
-- Data for Name: fornecedoragenda; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.fornecedoragenda (codfornecedor, codagenda, codtipoagenda, data, historico, dataproxagenda, datarealizado, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.fornecedoragenda (codfornecedor, codagenda, codtipoagenda, data, historico, dataproxagenda, datarealizado, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10208.dat';

--
-- Data for Name: fornecedorcc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.fornecedorcc (codfornecedorcc, codbanco, codfornecedor, agencia, conta, titular, usuarioins, usuarioalt, datadigitacao, dataatual, liberado, padrao, titularcnpjcpf, finalidadecredito, tipoconta, chavepix, qrcodepix, tipochavepix) FROM stdin;
\.
COPY public.fornecedorcc (codfornecedorcc, codbanco, codfornecedor, agencia, conta, titular, usuarioins, usuarioalt, datadigitacao, dataatual, liberado, padrao, titularcnpjcpf, finalidadecredito, tipoconta, chavepix, qrcodepix, tipochavepix) FROM '$$PATH$$/10209.dat';

--
-- Data for Name: fornecedorcont; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.fornecedorcont (codfornecedor, nome, datanascimento, fone, celular, obs, codcargo, dataatual, codfornecedorcont, datadigitacao, usuarioins, usuarioalt, email, login, senha, tipologin) FROM stdin;
\.
COPY public.fornecedorcont (codfornecedor, nome, datanascimento, fone, celular, obs, codcargo, dataatual, codfornecedorcont, datadigitacao, usuarioins, usuarioalt, email, login, senha, tipologin) FROM '$$PATH$$/10210.dat';

--
-- Data for Name: fornecedorfil; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.fornecedorfil (codfornecedorfil, codfornecedor, listafil, codunidadeembarque, liberado, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.fornecedorfil (codfornecedorfil, codfornecedor, listafil, codunidadeembarque, liberado, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10211.dat';

--
-- Data for Name: fornecedorfiscal; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.fornecedorfiscal (codfornecedorfiscal, codfornecedor, optantesimples, usuarioins, datains, usuarioalt, dataalt) FROM stdin;
\.
COPY public.fornecedorfiscal (codfornecedorfiscal, codfornecedor, optantesimples, usuarioins, datains, usuarioalt, dataalt) FROM '$$PATH$$/10212.dat';

--
-- Data for Name: fornecedorpreco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.fornecedorpreco (codfornecedor, coditem, datainicio, preco, obs, dataatual, dataexportacao, taxaiss, coditemfornecedor, coditemexterno, codfornecedorpreco, datadigitacao, usuarioins, usuarioalt, usuarioaut, dataaut) FROM stdin;
\.
COPY public.fornecedorpreco (codfornecedor, coditem, datainicio, preco, obs, dataatual, dataexportacao, taxaiss, coditemfornecedor, coditemexterno, codfornecedorpreco, datadigitacao, usuarioins, usuarioalt, usuarioaut, dataaut) FROM '$$PATH$$/10213.dat';

--
-- Data for Name: frentistas; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.frentistas (cod_frentista, nome_frentista, ativo, senha) FROM stdin;
\.
COPY public.frentistas (cod_frentista, nome_frentista, ativo, senha) FROM '$$PATH$$/10214.dat';

--
-- Data for Name: frete; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.frete (codfrete, codcliente, codcidadeorigem, codcidadedestino, codmercadoria, data, precotonempresa, precotonmotorista, precotonagregado, precotonfrota, obs, dataatual, datavalidade, codcoleta, kmextracoleta, codentrega, kmextraentrega, codunidadeembarque, taxamercfrete, porcadvalor, cargadescarga, valorseccat, despesaextra, precotonpedagio, freteminimo, taxaseguro, valorentrega, codgerrisco, pesominimo, codtipoveiculo, pagaicms, icmsembutido, tipotabela, tempo, precometrocubico, kmlimite, pesolimite, datadigitacao, usuarioins, usuarioalt, valorporquant, valormercadorialimite, porcacrescimo, codmotorista, percentual, valor, pedagiocalceixo, codtipocarroceria, valordiaria, codrota, tipofreteempresa, contrato, percreentrega, percdevolucao, fretemotorista, baseicmsdireta, codregiaocol, codregiaoent, valorcarroextra, listacompprest, fvalorareceber, ftotalprest, fbaseicms, fsaldoemp, taxaseguro2, checklist, codobsfiscal, codobsfiscal2, precotonmotpf, precotonagregmisto, pesosaidamotorista, porcicms, porcredbaseicms, precotonclassificacao, pedidocliente2, status, codclienteop, codclienteopfis, precotonicms, indicepauta, fatorpauta, pedidofrete, pedidotransf, codcfop, emailcte, numeropedido, codcontrato, indicepesoliq, fchecklistcte, quantprevista, codfornecedorpedagio, tipopedagio, resppedagio, precotonproprio, cepinicial, cepfinal, listacep, valorseguro, valorseguro2, descsegurosaldomot, descseguro2saldomot, descsegurosaldo, descseguro2saldo, percdifpptmotpptemp, adiantamentomotorista, margemminfrota, margemminfrete, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, pedagioembutidofrete, checklistpagto, precotonfiscal, valorfretefiscal, codespeciemerc, valorpedagio, checklistrobosat, tipofretemotorista, taxaiss, codtipodescmodentrega, codimposto, checklistdoc, codnbs) FROM stdin;
\.
COPY public.frete (codfrete, codcliente, codcidadeorigem, codcidadedestino, codmercadoria, data, precotonempresa, precotonmotorista, precotonagregado, precotonfrota, obs, dataatual, datavalidade, codcoleta, kmextracoleta, codentrega, kmextraentrega, codunidadeembarque, taxamercfrete, porcadvalor, cargadescarga, valorseccat, despesaextra, precotonpedagio, freteminimo, taxaseguro, valorentrega, codgerrisco, pesominimo, codtipoveiculo, pagaicms, icmsembutido, tipotabela, tempo, precometrocubico, kmlimite, pesolimite, datadigitacao, usuarioins, usuarioalt, valorporquant, valormercadorialimite, porcacrescimo, codmotorista, percentual, valor, pedagiocalceixo, codtipocarroceria, valordiaria, codrota, tipofreteempresa, contrato, percreentrega, percdevolucao, fretemotorista, baseicmsdireta, codregiaocol, codregiaoent, valorcarroextra, listacompprest, fvalorareceber, ftotalprest, fbaseicms, fsaldoemp, taxaseguro2, checklist, codobsfiscal, codobsfiscal2, precotonmotpf, precotonagregmisto, pesosaidamotorista, porcicms, porcredbaseicms, precotonclassificacao, pedidocliente2, status, codclienteop, codclienteopfis, precotonicms, indicepauta, fatorpauta, pedidofrete, pedidotransf, codcfop, emailcte, numeropedido, codcontrato, indicepesoliq, fchecklistcte, quantprevista, codfornecedorpedagio, tipopedagio, resppedagio, precotonproprio, cepinicial, cepfinal, listacep, valorseguro, valorseguro2, descsegurosaldomot, descseguro2saldomot, descsegurosaldo, descseguro2saldo, percdifpptmotpptemp, adiantamentomotorista, margemminfrota, margemminfrete, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, pedagioembutidofrete, checklistpagto, precotonfiscal, valorfretefiscal, codespeciemerc, valorpedagio, checklistrobosat, tipofretemotorista, taxaiss, codtipodescmodentrega, codimposto, checklistdoc, codnbs) FROM '$$PATH$$/10215.dat';

--
-- Data for Name: gerrisco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.gerrisco (codgerrisco, nome, usuarioins, usuarioalt, dataatual, datainclusao, numeroconta, cnpj, tipo, status, controlacartoes, checklist, codfornecedor, numerocontadeb) FROM stdin;
\.
COPY public.gerrisco (codgerrisco, nome, usuarioins, usuarioalt, dataatual, datainclusao, numeroconta, cnpj, tipo, status, controlacartoes, checklist, codfornecedor, numerocontadeb) FROM '$$PATH$$/10219.dat';

--
-- Data for Name: gerriscocartao; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.gerriscocartao (codgerriscocartao, codgerrisco, numero, codfilial, validade, codunidadeembarque, status, valor, usuarioins, datadigitacao, usuarioalt, dataatual, numero2, modalidade) FROM stdin;
\.
COPY public.gerriscocartao (codgerriscocartao, codgerrisco, numero, codfilial, validade, codunidadeembarque, status, valor, usuarioins, datadigitacao, usuarioalt, dataatual, numero2, modalidade) FROM '$$PATH$$/10220.dat';

--
-- Data for Name: gerriscodesp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.gerriscodesp (codgerriscodesp, codgerrisco, operacao, codtipodesp, obs, codfornecedor, valor, embfreteemp, descontasaldomot, faturar, pagar, descontasaldoemp, dataatual, datadigitacao, usuarioins, usuarioalt, percentual) FROM stdin;
\.
COPY public.gerriscodesp (codgerriscodesp, codgerrisco, operacao, codtipodesp, obs, codfornecedor, valor, embfreteemp, descontasaldomot, faturar, pagar, descontasaldoemp, dataatual, datadigitacao, usuarioins, usuarioalt, percentual) FROM '$$PATH$$/10221.dat';

--
-- Data for Name: gerriscoop; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.gerriscoop (codgerriscoop, codgerrisco, ordem, apelido, descricao, listaop, listaop1, tipo, filtrodefault, usuarioins, usuarioalt, datadigitacao, dataalt, filtrofixo, tag, operacao, listatipoantt, veiculoproprio) FROM stdin;
\.
COPY public.gerriscoop (codgerriscoop, codgerrisco, ordem, apelido, descricao, listaop, listaop1, tipo, filtrodefault, usuarioins, usuarioalt, datadigitacao, dataalt, filtrofixo, tag, operacao, listatipoantt, veiculoproprio) FROM '$$PATH$$/10222.dat';

--
-- Data for Name: gerriscopgr; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.gerriscopgr (codgerriscopgr, codgerrisco, valor, tipotransportador, diasvalidade, usuarioins, datains, usuarioalt, dataalt) FROM stdin;
\.
COPY public.gerriscopgr (codgerriscopgr, codgerrisco, valor, tipotransportador, diasvalidade, usuarioins, datains, usuarioalt, dataalt) FROM '$$PATH$$/10223.dat';

--
-- Data for Name: gerriscopgrmercadoria; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.gerriscopgrmercadoria (codgerriscopgrmercadoria, codgerriscopgr, codmercadoria) FROM stdin;
\.
COPY public.gerriscopgrmercadoria (codgerriscopgrmercadoria, codgerriscopgr, codmercadoria) FROM '$$PATH$$/10224.dat';

--
-- Data for Name: gerriscopgrtipotransporte; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.gerriscopgrtipotransporte (codgerriscopgrtipotransporte, codgerriscopgr, codtipotransporte) FROM stdin;
\.
COPY public.gerriscopgrtipotransporte (codgerriscopgrtipotransporte, codgerriscopgr, codtipotransporte) FROM '$$PATH$$/10225.dat';

--
-- Data for Name: gerriscor; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.gerriscor (codgerriscor, codgerrisco, descricao, codexterno, usuarioins, usuarioalt, datadigitacao, dataalt) FROM stdin;
\.
COPY public.gerriscor (codgerriscor, codgerrisco, descricao, codexterno, usuarioins, usuarioalt, datadigitacao, dataalt) FROM '$$PATH$$/10226.dat';

--
-- Data for Name: gerriscordet; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.gerriscordet (codgerriscordet, codgerriscor, descricao, codexterno, tag, conteudo, listaop, usuarioins, usuarioalt, datadigitacao, dataalt) FROM stdin;
\.
COPY public.gerriscordet (codgerriscordet, codgerriscor, descricao, codexterno, tag, conteudo, listaop, usuarioins, usuarioalt, datadigitacao, dataalt) FROM '$$PATH$$/10227.dat';

--
-- Data for Name: grupo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupo (codgrupo, codsupergrupo, dataatual, dataexportacao, liberado, descricao, obs, usuarioins, usuarioalt, datadigitacao, ordem, codexterno, codcontacontabil, codauxcontabil) FROM stdin;
\.
COPY public.grupo (codgrupo, codsupergrupo, dataatual, dataexportacao, liberado, descricao, obs, usuarioins, usuarioalt, datadigitacao, ordem, codexterno, codcontacontabil, codauxcontabil) FROM '$$PATH$$/10228.dat';

--
-- Data for Name: grupoauditoria; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupoauditoria (codgrupoauditoria, codgrupo, data, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.grupoauditoria (codgrupoauditoria, codgrupo, data, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10229.dat';

--
-- Data for Name: grupoconta; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupoconta (codgrupoconta, codgrupousuario, numeroconta, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.grupoconta (codgrupoconta, codgrupousuario, numeroconta, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10230.dat';

--
-- Data for Name: grupofilial; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupofilial (codgrupofilial, codgrupousuario, codfilial, dataatual, usuarioins, usuarioalt, datainclusao) FROM stdin;
\.
COPY public.grupofilial (codgrupofilial, codgrupousuario, codfilial, dataatual, usuarioins, usuarioalt, datainclusao) FROM '$$PATH$$/10231.dat';

--
-- Data for Name: grupofinanceiro; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupofinanceiro (codgrupofinanceiro, descricao, codsupergrupofinanceiro, dataatual, liberado, datadigitacao, usuarioins, usuarioalt, ordem) FROM stdin;
\.
COPY public.grupofinanceiro (codgrupofinanceiro, descricao, codsupergrupofinanceiro, dataatual, liberado, datadigitacao, usuarioins, usuarioalt, ordem) FROM '$$PATH$$/10232.dat';

--
-- Data for Name: grupomercadoria; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupomercadoria (codgrupomercadoria, descricao, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.grupomercadoria (codgrupomercadoria, descricao, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10233.dat';

--
-- Data for Name: grupomsg; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupomsg (codgrupomsg, descricao, tipo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.grupomsg (codgrupomsg, descricao, tipo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10234.dat';

--
-- Data for Name: grupomsgdet; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupomsgdet (codgrupomsgdet, codgrupomsg, codigo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.grupomsgdet (codgrupomsgdet, codgrupomsg, codigo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10235.dat';

--
-- Data for Name: grupoopcartao; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupoopcartao (codgrupoopcartao, codgrupousuario, codgerrisco, operacao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.grupoopcartao (codgrupoopcartao, codgrupousuario, codgerrisco, operacao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10236.dat';

--
-- Data for Name: gruporeceita; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.gruporeceita (codgruporeceita, codsupergruporeceita, descricao, dataatual, dataexportacao, datainclusao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.gruporeceita (codgruporeceita, codsupergruporeceita, descricao, dataatual, dataexportacao, datainclusao, usuarioins, usuarioalt) FROM '$$PATH$$/10237.dat';

--
-- Data for Name: grupousuario; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupousuario (nome, privilegios, datadigitacao, dataatual, privilegios2, condpagto2, condpagto, privilegios3, usuarioins, usuarioalt, codgrupousuario, obs, tipoctelib, tipofaturalib, cargos, tipofornecedorlib, tipofornecedorlib1, datalimiterel, diaslimiterel, vlmaxpagtit, pesosaidamaximo, acertopeso, diaslimitevencfat, cargos2, tipodesplib1, privilegios4, fusohorario, valormercadoriamax, negociolib, examelib, tipofornecedorlib2, listatipoos, vlmaxcheque, ueliberadas, ueliberadas1, ueliberadas2, ueliberadas3, ueliberadas4, ueliberadas5, listaitembloq, listaitembloq2, valormaxmerclic, kmmaximolic, itemreclib, itemreclib1, itemreclib2, checklist, vlmincheque, acertoviagmin, acertoviagmax, abonoquebramax, tipofornecedorlib3, tipofornecedorlib4, tipoccempfunc, tipoccempfunc1, tipoccempfunc2, tipoccempfunc3, tipodocbloq, tipodocbloq1, tipodesplib2, tipodesplib3, questlib, vlmaxos, valormaxconhecdesp, uelibconhecmanif, uelibconhecmanif1, uelibconhecmanif2, uelibconhecmanif3, uelibconhecmanif4, uelibconhecmanif5, localpneulib, localpneulib1, statuspneulib, statuspneulib1, percmaxdescduprec, valormaxdescduprec, listacodbilayoutr, datamaxima, tipopagtolib, valormaxpagadpix, valormaxpagsdpix, valormaxpedpix, listatipoocorrencia, valormaxlibparc, valoricmsmax, listaprivilegios) FROM stdin;
\.
COPY public.grupousuario (nome, privilegios, datadigitacao, dataatual, privilegios2, condpagto2, condpagto, privilegios3, usuarioins, usuarioalt, codgrupousuario, obs, tipoctelib, tipofaturalib, cargos, tipofornecedorlib, tipofornecedorlib1, datalimiterel, diaslimiterel, vlmaxpagtit, pesosaidamaximo, acertopeso, diaslimitevencfat, cargos2, tipodesplib1, privilegios4, fusohorario, valormercadoriamax, negociolib, examelib, tipofornecedorlib2, listatipoos, vlmaxcheque, ueliberadas, ueliberadas1, ueliberadas2, ueliberadas3, ueliberadas4, ueliberadas5, listaitembloq, listaitembloq2, valormaxmerclic, kmmaximolic, itemreclib, itemreclib1, itemreclib2, checklist, vlmincheque, acertoviagmin, acertoviagmax, abonoquebramax, tipofornecedorlib3, tipofornecedorlib4, tipoccempfunc, tipoccempfunc1, tipoccempfunc2, tipoccempfunc3, tipodocbloq, tipodocbloq1, tipodesplib2, tipodesplib3, questlib, vlmaxos, valormaxconhecdesp, uelibconhecmanif, uelibconhecmanif1, uelibconhecmanif2, uelibconhecmanif3, uelibconhecmanif4, uelibconhecmanif5, localpneulib, localpneulib1, statuspneulib, statuspneulib1, percmaxdescduprec, valormaxdescduprec, listacodbilayoutr, datamaxima, tipopagtolib, valormaxpagadpix, valormaxpagsdpix, valormaxpedpix, listatipoocorrencia, valormaxlibparc, valoricmsmax, listaprivilegios) FROM '$$PATH$$/10238.dat';

--
-- Data for Name: grupousuariogr; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupousuariogr (codgrupousuario, codgrupo, dataatual, usuarioins, usuarioalt, datadigitacao, codgrupousuariogr) FROM stdin;
\.
COPY public.grupousuariogr (codgrupousuario, codgrupo, dataatual, usuarioins, usuarioalt, datadigitacao, codgrupousuariogr) FROM '$$PATH$$/10239.dat';

--
-- Data for Name: grupousuariohora; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupousuariohora (codgrupousuariohora, codgrupousuario, diasemana, horaini, horafim, datainivalid, datafimvalid) FROM stdin;
\.
COPY public.grupousuariohora (codgrupousuariohora, codgrupousuario, diasemana, horaini, horafim, datainivalid, datafimvalid) FROM '$$PATH$$/10240.dat';

--
-- Data for Name: grupousuariotipodesc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.grupousuariotipodesc (codgrupousuariotipodesc, codgrupousuario, codtipodesc) FROM stdin;
\.
COPY public.grupousuariotipodesc (codgrupousuariotipodesc, codgrupousuario, codtipodesc) FROM '$$PATH$$/10241.dat';

--
-- Data for Name: hipergrupofinanceiro; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.hipergrupofinanceiro (codhipergrupofinanceiro, descricao, dataatual, liberado, datadigitacao, usuarioins, usuarioalt, ordem) FROM stdin;
\.
COPY public.hipergrupofinanceiro (codhipergrupofinanceiro, descricao, dataatual, liberado, datadigitacao, usuarioins, usuarioalt, ordem) FROM '$$PATH$$/10242.dat';

--
-- Data for Name: imp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.imp (codimp, codinstalacao, nomeimp, descricao, descusuario, usuarioins, usuarioalt, datains, dataalt, tipo, codsistema) FROM stdin;
\.
COPY public.imp (codimp, codinstalacao, nomeimp, descricao, descusuario, usuarioins, usuarioalt, datains, dataalt, tipo, codsistema) FROM '$$PATH$$/10243.dat';

--
-- Data for Name: impcampo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.impcampo (codimpcampo, codimp, campo, linha, coluna, tamanho, alinhamento, codregra, usuarioins, usuarioalt, datains, dataalt, tipo, conteudo) FROM stdin;
\.
COPY public.impcampo (codimpcampo, codimp, campo, linha, coluna, tamanho, alinhamento, codregra, usuarioins, usuarioalt, datains, dataalt, tipo, conteudo) FROM '$$PATH$$/10244.dat';

--
-- Data for Name: implayout; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.implayout (codimplayout, codimp, descricao, descusuario, obs, layout, liberado, usuarioins, usuarioalt, datains, dataalt) FROM stdin;
\.
COPY public.implayout (codimplayout, codimp, descricao, descusuario, obs, layout, liberado, usuarioins, usuarioalt, datains, dataalt) FROM '$$PATH$$/10245.dat';

--
-- Data for Name: implayoutlog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.implayoutlog (codimplayoutlog, codimplayout, descricao, descusuario, obs, layout, usuarioins, usuarioalt, datains, dataalt) FROM stdin;
\.
COPY public.implayoutlog (codimplayoutlog, codimplayout, descricao, descusuario, obs, layout, usuarioins, usuarioalt, datains, dataalt) FROM '$$PATH$$/10246.dat';

--
-- Data for Name: implayoutus; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.implayoutus (codimplayoutus, codimplayout, nome, usuarioins, usuarioalt, datains, dataalt) FROM stdin;
\.
COPY public.implayoutus (codimplayoutus, codimplayout, nome, usuarioins, usuarioalt, datains, dataalt) FROM '$$PATH$$/10247.dat';

--
-- Data for Name: imposto; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.imposto (codimposto, descricao, obs, cst, codclasstrib, usuarioins, datadigitacao, usuarioalt, dataatual, checklisttipo, codimpostowebsaf) FROM stdin;
\.
COPY public.imposto (codimposto, descricao, obs, cst, codclasstrib, usuarioins, datadigitacao, usuarioalt, dataatual, checklisttipo, codimpostowebsaf) FROM '$$PATH$$/10248.dat';

--
-- Data for Name: impostocidade; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.impostocidade (codimpostocidade, codimposto, porccidade, porcdifcidade, porcredcidade, porcefetcidade, dataini, datafim, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.impostocidade (codimpostocidade, codimposto, porccidade, porcdifcidade, porcredcidade, porcefetcidade, dataini, datafim, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10249.dat';

--
-- Data for Name: impostocidadevinc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.impostocidadevinc (codimpostocidadevinc, codimpostocidade, codcidade, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.impostocidadevinc (codimpostocidadevinc, codimpostocidade, codcidade, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10250.dat';

--
-- Data for Name: impostocontrib; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.impostocontrib (codimpostocontrib, codimposto, porccontrib, porcdifcontrib, porcredcontrib, porcefetcontrib, dataini, datafim, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.impostocontrib (codimpostocontrib, codimposto, porccontrib, porcdifcontrib, porcredcontrib, porcefetcontrib, dataini, datafim, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10251.dat';

--
-- Data for Name: impostocredpres; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.impostocredpres (codimpostocredpres, codimposto, tipo, codcredpres, porccredpres, dataini, datafim, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.impostocredpres (codimpostocredpres, codimposto, tipo, codcredpres, porccredpres, dataini, datafim, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10252.dat';

--
-- Data for Name: impostouf; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.impostouf (codimpostouf, codimposto, porcuf, porcdifuf, porcreduf, porcefetuf, dataini, datafim, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.impostouf (codimpostouf, codimposto, porcuf, porcdifuf, porcreduf, porcefetuf, dataini, datafim, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10253.dat';

--
-- Data for Name: impostoufvinc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.impostoufvinc (codimpostoufvinc, codimpostouf, coduf, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.impostoufvinc (codimpostoufvinc, codimpostouf, coduf, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10254.dat';

--
-- Data for Name: item; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.item (coditem, codtipoveiculo, codgrupo, kmpreventiva, unidade, saldo, custo, obrigakm, coditembaixar, rateioveiculosproprios, descricao, obs, liberado, investimento, dataatual, dataexportacao, gerenciaestoque, custoultcompra, codfabricante, precovenda, tempoprevisto, locacao, coditemfinanceiro, contacontabil, estoqueminimo, estoquemaximo, diasmanutpreventiva, creditapiscofins, usuarioins, usuarioalt, codcfop, ncm, incluicomfrete, centrocusto, contacontabilest, obrigatipoequip, porcicmscredito, viagem, saldoconf, obrigacfop, codbarra, obrigacreddebcp, datadigitacao, permiteacerto, codprodanp, codean, codeantrib, csticmscp, cstpiscp, cstcofinscp, csticmsnfe, cstpisnfe, cstcofinsnfe, prateleira, lado, porcaproximp, cstiss, classservico, cavalo, permlancacertoger, cest, descricaoreduzida, impetiqmanut, obrigaordemcompra, obrigamotorista, desprec, kmgarantia, diasgarantia, chlistgarantia, codmercadoria, codauxcontabil, codnegocio, obrigaeventopneu, kmprevtolantes, kmprevtoldepois, obrigaveiculo, codclienteprincipal, creditaicms, validancmcp, kmprevaviso, diasmanutprevaviso, codconthist, checklist, periodminimaue, datavencimento, statuscad, codposicao, codimpostonfevenda, codimpostonfecompra, custocomiva, custoultcompracomiva) FROM stdin;
\.
COPY public.item (coditem, codtipoveiculo, codgrupo, kmpreventiva, unidade, saldo, custo, obrigakm, coditembaixar, rateioveiculosproprios, descricao, obs, liberado, investimento, dataatual, dataexportacao, gerenciaestoque, custoultcompra, codfabricante, precovenda, tempoprevisto, locacao, coditemfinanceiro, contacontabil, estoqueminimo, estoquemaximo, diasmanutpreventiva, creditapiscofins, usuarioins, usuarioalt, codcfop, ncm, incluicomfrete, centrocusto, contacontabilest, obrigatipoequip, porcicmscredito, viagem, saldoconf, obrigacfop, codbarra, obrigacreddebcp, datadigitacao, permiteacerto, codprodanp, codean, codeantrib, csticmscp, cstpiscp, cstcofinscp, csticmsnfe, cstpisnfe, cstcofinsnfe, prateleira, lado, porcaproximp, cstiss, classservico, cavalo, permlancacertoger, cest, descricaoreduzida, impetiqmanut, obrigaordemcompra, obrigamotorista, desprec, kmgarantia, diasgarantia, chlistgarantia, codmercadoria, codauxcontabil, codnegocio, obrigaeventopneu, kmprevtolantes, kmprevtoldepois, obrigaveiculo, codclienteprincipal, creditaicms, validancmcp, kmprevaviso, diasmanutprevaviso, codconthist, checklist, periodminimaue, datavencimento, statuscad, codposicao, codimpostonfevenda, codimpostonfecompra, custocomiva, custoultcompracomiva) FROM '$$PATH$$/10255.dat';

--
-- Data for Name: itemcfop; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemcfop (coditemcfop, coditem, codcfopentrada, codcfopsaida, obs, usuarioins, datadigitacao, usuarioalt, dataatual, cstpiscp, cstcofinscp, csticmscp, cstpisnfe, cstcofinsnfe, csticmsnfe, creditapiscofins, codimpostonfevenda, codimpostonfecompra) FROM stdin;
\.
COPY public.itemcfop (coditemcfop, coditem, codcfopentrada, codcfopsaida, obs, usuarioins, datadigitacao, usuarioalt, dataatual, cstpiscp, cstcofinscp, csticmscp, cstpisnfe, cstcofinsnfe, csticmsnfe, creditapiscofins, codimpostonfevenda, codimpostonfecompra) FROM '$$PATH$$/10256.dat';

--
-- Data for Name: itemcodalt; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemcodalt (coditemcodalt, coditem, codalternativo, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.itemcodalt (coditemcodalt, coditem, codalternativo, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10257.dat';

--
-- Data for Name: itemcot; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemcot (codcot, coditem, quant, vlf1, vlf2, vlf3, vlf4, vlf5, obs1, obs2, obs3, obs4, obs5, dataatual, usuarioins, usuarioalt, codforescolhido, obs, codveiculo, ved, datadigitacao, codmotorista, descontof1, descontof2, descontof3, descontof4, descontof5, valorbrutof1, valorbrutof2, valorbrutof3, valorbrutof4, valorbrutof5, km, porcipi1, porcipi2, porcipi3, porcipi4, porcipi5, coditemcot, ipi1, ipi2, ipi3, ipi4, ipi5, codordemcompra, valorliquidof1, valorliquidof2, valorliquidof3, valorliquidof4, valorliquidof5, coddepartamento, codcavalo, valorfrete) FROM stdin;
\.
COPY public.itemcot (codcot, coditem, quant, vlf1, vlf2, vlf3, vlf4, vlf5, obs1, obs2, obs3, obs4, obs5, dataatual, usuarioins, usuarioalt, codforescolhido, obs, codveiculo, ved, datadigitacao, codmotorista, descontof1, descontof2, descontof3, descontof4, descontof5, valorbrutof1, valorbrutof2, valorbrutof3, valorbrutof4, valorbrutof5, km, porcipi1, porcipi2, porcipi3, porcipi4, porcipi5, coditemcot, ipi1, ipi2, ipi3, ipi4, ipi5, codordemcompra, valorliquidof1, valorliquidof2, valorliquidof3, valorliquidof4, valorliquidof5, coddepartamento, codcavalo, valorfrete) FROM '$$PATH$$/10258.dat';

--
-- Data for Name: itemfilial; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemfilial (coditem, codfilial, custo, custoultcompra, precovenda, saldo, dataatual, estoquemaximo, estoqueminimo, codfabricante, locacao, dtultimaconf, datadigitacao, usuarioins, usuarioalt, coditemfilial, prateleira, lado, dataultconf, porcicms, porcredbaseicms, valorteto, valormaximo, valorminimo, codposicao, valorvarejo, valoratacado, codclientepreferencial, perclucromin, codobsfiscal, custofilcomiva, custoultcomprafilcomiva) FROM stdin;
\.
COPY public.itemfilial (coditem, codfilial, custo, custoultcompra, precovenda, saldo, dataatual, estoquemaximo, estoqueminimo, codfabricante, locacao, dtultimaconf, datadigitacao, usuarioins, usuarioalt, coditemfilial, prateleira, lado, dataultconf, porcicms, porcredbaseicms, valorteto, valormaximo, valorminimo, codposicao, valorvarejo, valoratacado, codclientepreferencial, perclucromin, codobsfiscal, custofilcomiva, custoultcomprafilcomiva) FROM '$$PATH$$/10259.dat';

--
-- Data for Name: itemfinanceiro; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemfinanceiro (coditemfinanceiro, descricao, codgrupofinanceiro, dataatual, liberado, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.itemfinanceiro (coditemfinanceiro, descricao, codgrupofinanceiro, dataatual, liberado, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10260.dat';

--
-- Data for Name: iteminv; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.iteminv (coditeminv, coditem, codfilial, codnota, data, quant, saldo, obs, usuarioins, usuarioalt, datadigitacao, dataatual, custounit, locacao, prateleira, lado, contagem1, contagem2, contagem3, contagem4, contagem5, codposicao) FROM stdin;
\.
COPY public.iteminv (coditeminv, coditem, codfilial, codnota, data, quant, saldo, obs, usuarioins, usuarioalt, datadigitacao, dataatual, custounit, locacao, prateleira, lado, contagem1, contagem2, contagem3, contagem4, contagem5, codposicao) FROM '$$PATH$$/10261.dat';

--
-- Data for Name: itemnegocio; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemnegocio (coditemnegocio, coditem, codnegocio, perc, valor, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.itemnegocio (coditemnegocio, coditem, codnegocio, perc, valor, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10262.dat';

--
-- Data for Name: itemnota; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemnota (codfornecedor, numeronota, serie, coditem, codveiculo, quantidade, codinterno, valor, km, desconto, garantia, ved, liquido, codcarreta, kmcavalo, codmotorista, dataatual, codfaturareceber, coditembaixar, obs, custounit, custototal, codacertomotorista, naoprevista, codcavalo, codcfop, usuarioins, usuarioalt, codproprietario, creditapiscofins, bombaini, bombafim, numbomba, coditemservico, coditemnotalog, codunidadeembarque, porcicms, valoricms, datadigitacao, baseicms, porcipi, baseipi, valoripi, substtributaria, outrasdespesas, exportafiscal, codnota, outrasicms, isentasicms, vlcontabil, valorbasesubstrib, porcaliqicmssubstrib, valorsubstrib, porcpautaicms, valorpis, valorcofins, csticms, cstpis, cstcofins, codacertoproprietario, valordesccontabil, codreq, porcaproximp, valoraproximp, cstiss, baseiss, porciss, valoriss, coditemordemcompra, codprocesso, cest, vbcufdest, pfcpufdest, picmsufdest, picmsinter, picmsinterpart, vfcpufdest, vicmsufdest, vicmsufremet, codpedidoitem, valoroutras, porcredbaseicms, creditaicms, codtipocarroceria, quantcontabil, codcontrato, tara, pesobrutocarreg, pesobrutodescarreg, codcoleta, codentrega, mercintacta, codnegocio, codcoletasetor, codentregasetor, unidade, unidadetrib, pedidocliente, lacre, pedclientetransf, obscompleta, vlicmsdeson, dataacertoprop, numerodi, datadi, codcidadedesembaraco, datadesembaraco, tipointermediodi, codfornexportador, codfornfabricante, vlbcii, vldespadu, vlii, vliof, percbcii, dataprevfim, valordesconto, valorfrete, cbenef, vbcicmsefet, picmsefet, vicmsefet, codveiculoacidente, codcontacontabil, codconthist, descricaonfe, codprodnfe, naoencheutanque, ncm, csticmsorig, cstpisorig, cstcofinsorig, vfcpdif, pfcpdif, vfcpefet, vbcfcpst, pfcpst, vfcpst, indsomapisst, indsomacofinsst, tpviatransp, porcpis, vlbasepis, porccofins, vlbasecofins, porcpisst, vlbasepisst, vlpisst, porccofinsst, vlbasecofinsst, vlcofinsst, codmotsai, coddepartamento, percdiferimento, chassi, codinternoservico, qbcmonoret, porcadremicmsret, valoricmsmonoret, qbcmonoretcomb, percadremicmsretcomb, vicmsmonoretcomb, codcidadecomb, percorigcomb, codimpostonfe, cstibscbs, codclasstribibscbs, basecalculoibscbs, valoribs, porcibsuf, porcdifibsuf, valordifibsuf, valordevtribibsuf, porcredibsuf, porcefetibsuf, valoribsuf, porcibscidade, porcdifibscidade, valordifibscidade, valordevtribibscidade, porcredibscidade, porcefetibscidade, valoribscidade, porccbs, porcdifcbs, valordifcbs, valordevtribcbs, porcredcbs, porcefetcbs, valorcbs, codcredpresibs, porccredpresibs, valorcredpresibs, valorcredpresibscondsus, codcredprescbs, porccredprescbs, valorcredprescbs, valorcredprescbscondsus, valoribsufcred, valoribscidadecred, valorcbscred, custounitcomiva, custototalcomiva, codfaturarecibscbs, codnbs, indmistbiodiesel, tpguia, nguia, serieguia, ufguia, incluicomfrete) FROM stdin;
\.
COPY public.itemnota (codfornecedor, numeronota, serie, coditem, codveiculo, quantidade, codinterno, valor, km, desconto, garantia, ved, liquido, codcarreta, kmcavalo, codmotorista, dataatual, codfaturareceber, coditembaixar, obs, custounit, custototal, codacertomotorista, naoprevista, codcavalo, codcfop, usuarioins, usuarioalt, codproprietario, creditapiscofins, bombaini, bombafim, numbomba, coditemservico, coditemnotalog, codunidadeembarque, porcicms, valoricms, datadigitacao, baseicms, porcipi, baseipi, valoripi, substtributaria, outrasdespesas, exportafiscal, codnota, outrasicms, isentasicms, vlcontabil, valorbasesubstrib, porcaliqicmssubstrib, valorsubstrib, porcpautaicms, valorpis, valorcofins, csticms, cstpis, cstcofins, codacertoproprietario, valordesccontabil, codreq, porcaproximp, valoraproximp, cstiss, baseiss, porciss, valoriss, coditemordemcompra, codprocesso, cest, vbcufdest, pfcpufdest, picmsufdest, picmsinter, picmsinterpart, vfcpufdest, vicmsufdest, vicmsufremet, codpedidoitem, valoroutras, porcredbaseicms, creditaicms, codtipocarroceria, quantcontabil, codcontrato, tara, pesobrutocarreg, pesobrutodescarreg, codcoleta, codentrega, mercintacta, codnegocio, codcoletasetor, codentregasetor, unidade, unidadetrib, pedidocliente, lacre, pedclientetransf, obscompleta, vlicmsdeson, dataacertoprop, numerodi, datadi, codcidadedesembaraco, datadesembaraco, tipointermediodi, codfornexportador, codfornfabricante, vlbcii, vldespadu, vlii, vliof, percbcii, dataprevfim, valordesconto, valorfrete, cbenef, vbcicmsefet, picmsefet, vicmsefet, codveiculoacidente, codcontacontabil, codconthist, descricaonfe, codprodnfe, naoencheutanque, ncm, csticmsorig, cstpisorig, cstcofinsorig, vfcpdif, pfcpdif, vfcpefet, vbcfcpst, pfcpst, vfcpst, indsomapisst, indsomacofinsst, tpviatransp, porcpis, vlbasepis, porccofins, vlbasecofins, porcpisst, vlbasepisst, vlpisst, porccofinsst, vlbasecofinsst, vlcofinsst, codmotsai, coddepartamento, percdiferimento, chassi, codinternoservico, qbcmonoret, porcadremicmsret, valoricmsmonoret, qbcmonoretcomb, percadremicmsretcomb, vicmsmonoretcomb, codcidadecomb, percorigcomb, codimpostonfe, cstibscbs, codclasstribibscbs, basecalculoibscbs, valoribs, porcibsuf, porcdifibsuf, valordifibsuf, valordevtribibsuf, porcredibsuf, porcefetibsuf, valoribsuf, porcibscidade, porcdifibscidade, valordifibscidade, valordevtribibscidade, porcredibscidade, porcefetibscidade, valoribscidade, porccbs, porcdifcbs, valordifcbs, valordevtribcbs, porcredcbs, porcefetcbs, valorcbs, codcredpresibs, porccredpresibs, valorcredpresibs, valorcredpresibscondsus, codcredprescbs, porccredprescbs, valorcredprescbs, valorcredprescbscondsus, valoribsufcred, valoribscidadecred, valorcbscred, custounitcomiva, custototalcomiva, codfaturarecibscbs, codnbs, indmistbiodiesel, tpguia, nguia, serieguia, ufguia, incluicomfrete) FROM '$$PATH$$/10263.dat';

--
-- Data for Name: itemnotaclas; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemnotaclas (coditemnotaclas, codinterno, codfornecedor, local, data, umidadedef, impurezadef, ardidodef, imaturodef, quebradodef, triguilhodef, quireradef, umidade, impureza, ardido, imaturo, quebrado, triguilho, quirera, umidadepeso, impurezapeso, ardidopeso, imaturopeso, quebradopeso, triguilhopeso, quirerapeso, desconta, calculardescontos, pesototal, pesodescontado, obs, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.itemnotaclas (coditemnotaclas, codinterno, codfornecedor, local, data, umidadedef, impurezadef, ardidodef, imaturodef, quebradodef, triguilhodef, quireradef, umidade, impureza, ardido, imaturo, quebrado, triguilho, quirera, umidadepeso, impurezapeso, ardidopeso, imaturopeso, quebradopeso, triguilhopeso, quirerapeso, desconta, calculardescontos, pesototal, pesodescontado, obs, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10264.dat';

--
-- Data for Name: itemnotalog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemnotalog (coditemnotalog, descricao, datadigitacao, usuarioins, usuarioalt, dataatual) FROM stdin;
\.
COPY public.itemnotalog (coditemnotalog, descricao, datadigitacao, usuarioins, usuarioalt, dataatual) FROM '$$PATH$$/10265.dat';

--
-- Data for Name: itemnotamotorista; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemnotamotorista (codfornecedor, numeronota, serie, coditem, codveiculo, codinterno, codmotorista, dataatual, datadigitacao, usuarioins, usuarioalt, coditemnotamotorista, codnota) FROM stdin;
\.
COPY public.itemnotamotorista (codfornecedor, numeronota, serie, coditem, codveiculo, codinterno, codmotorista, dataatual, datadigitacao, usuarioins, usuarioalt, coditemnotamotorista, codnota) FROM '$$PATH$$/10266.dat';

--
-- Data for Name: itemnotamotoristalog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemnotamotoristalog (codfornecedor, numeronota, serie, coditem, codveiculo, codinterno, codmotorista, datahoraini, datahorafim, dataatual, obs, tipoencerramento, datadigitacao, usuarioins, usuarioalt, coditemnotamotoristalog, codnota) FROM stdin;
\.
COPY public.itemnotamotoristalog (codfornecedor, numeronota, serie, coditem, codveiculo, codinterno, codmotorista, datahoraini, datahorafim, dataatual, obs, tipoencerramento, datadigitacao, usuarioins, usuarioalt, coditemnotamotoristalog, codnota) FROM '$$PATH$$/10267.dat';

--
-- Data for Name: itemnotamov; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemnotamov (coditemnotamov, codinterno, coditemnotamovent, quantidade, custounit, custototal, dataatual, datadigitacao, usuarioins, usuarioalt, custounitcomiva, custototalcomiva) FROM stdin;
\.
COPY public.itemnotamov (coditemnotamov, codinterno, coditemnotamovent, quantidade, custounit, custototal, dataatual, datadigitacao, usuarioins, usuarioalt, custounitcomiva, custototalcomiva) FROM '$$PATH$$/10268.dat';

--
-- Data for Name: itemnotaobs; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemnotaobs (coditemnotaobs, codinterno, tipo, obs, campo, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.itemnotaobs (coditemnotaobs, codinterno, tipo, obs, campo, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10269.dat';

--
-- Data for Name: itemnotarem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemnotarem (coditemnotarem, coditem, codfornecedor, numeronota, serie, justificativa, ved, codveiculo, km, quantidade, valor, liquido, codmotorista, obs, coditembaixar, coditemservico, usuarioins, datadigitacao, usuarioalt, dataatual, codnota, codreq) FROM stdin;
\.
COPY public.itemnotarem (coditemnotarem, coditem, codfornecedor, numeronota, serie, justificativa, ved, codveiculo, km, quantidade, valor, liquido, codmotorista, obs, coditembaixar, coditemservico, usuarioins, datadigitacao, usuarioalt, dataatual, codnota, codreq) FROM '$$PATH$$/10270.dat';

--
-- Data for Name: itemorcvenda; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemorcvenda (coditemorcvenda, codorcvenda, coditem, quant, valorvenda, desconto, liquido, custounit, custototal, ved, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.itemorcvenda (coditemorcvenda, codorcvenda, coditem, quant, valorvenda, desconto, liquido, custounit, custototal, ved, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10271.dat';

--
-- Data for Name: itemordemcompra; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemordemcompra (codordemcompra, coditem, codinterno, codveiculo, codmotorista, quantidade, valor, desconto, liquido, ved, dataatual, usuarioins, usuarioalt, obs, km, codunidadeembarque, datadigitacao, coditemordemcompra, datapreventrega, usuariosaviso, quantcanc, quantatend, obscanc, naoprevista, codcfop, vlcontabil, codnegocio, valordesconto, porcipi, baseipi, valoripi, codveiculoacidente, vlunitcontabil, valordesccontabil, vicmsufdest, quantcontabil, coddepartamento, valorfrete, codcoleta, codsolcompraitem) FROM stdin;
\.
COPY public.itemordemcompra (codordemcompra, coditem, codinterno, codveiculo, codmotorista, quantidade, valor, desconto, liquido, ved, dataatual, usuarioins, usuarioalt, obs, km, codunidadeembarque, datadigitacao, coditemordemcompra, datapreventrega, usuariosaviso, quantcanc, quantatend, obscanc, naoprevista, codcfop, vlcontabil, codnegocio, valordesconto, porcipi, baseipi, valoripi, codveiculoacidente, vlunitcontabil, valordesccontabil, vicmsufdest, quantcontabil, coddepartamento, valorfrete, codcoleta, codsolcompraitem) FROM '$$PATH$$/10272.dat';

--
-- Data for Name: itemrat; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemrat (coditemrat, coditem, codunidadeembarque, perc, valor, dataatual, datadigitacao, usuarioins, usuarioalt, codnegocio) FROM stdin;
\.
COPY public.itemrat (coditemrat, coditem, codunidadeembarque, perc, valor, dataatual, datadigitacao, usuarioins, usuarioalt, codnegocio) FROM '$$PATH$$/10273.dat';

--
-- Data for Name: itemreceita; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemreceita (coditemreceita, codgruporeceita, descricao, dataatual, dataexportacao, coditemfinanceiro, contacontabil, datainclusao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.itemreceita (coditemreceita, codgruporeceita, descricao, dataatual, dataexportacao, coditemfinanceiro, contacontabil, datainclusao, usuarioins, usuarioalt) FROM '$$PATH$$/10274.dat';

--
-- Data for Name: itemsim; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemsim (coditemsim, coditemsimilar, coditem, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.itemsim (coditemsim, coditemsimilar, coditem, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10275.dat';

--
-- Data for Name: itemsubitem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemsubitem (coditem, codsubitem, quantidade, dataatual, dataexportacao, datadigitacao, usuarioins, usuarioalt, coditemsubitem) FROM stdin;
\.
COPY public.itemsubitem (coditem, codsubitem, quantidade, dataatual, dataexportacao, datadigitacao, usuarioins, usuarioalt, coditemsubitem) FROM '$$PATH$$/10276.dat';

--
-- Data for Name: itemtabncm; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemtabncm (coditemtabncm, coditem, ncm, liberado, dataatual, datadigitacao, usuarioins, usuarioalt, ncmsaida) FROM stdin;
\.
COPY public.itemtabncm (coditemtabncm, coditem, ncm, liberado, dataatual, datadigitacao, usuarioins, usuarioalt, ncmsaida) FROM '$$PATH$$/10277.dat';

--
-- Data for Name: itemtipooperacao; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemtipooperacao (coditem, codtipooperacao, diasmanutpreventiva, kmpreventiva, usuarioins, usuarioalt, datadigitacao, dataatual, coditemtipooperacao) FROM stdin;
\.
COPY public.itemtipooperacao (coditem, codtipooperacao, diasmanutpreventiva, kmpreventiva, usuarioins, usuarioalt, datadigitacao, dataatual, coditemtipooperacao) FROM '$$PATH$$/10278.dat';

--
-- Data for Name: itemtipoveiculo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemtipoveiculo (coditemtipoveiculo, coditem, codtipoveiculo, codmodelo, anofabricacao, anomodelo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.itemtipoveiculo (coditemtipoveiculo, coditem, codtipoveiculo, codmodelo, anofabricacao, anomodelo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10279.dat';

--
-- Data for Name: itemuf; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.itemuf (coditemuf, coditem, uforig, ufdest, porcicms, porcicmsnaocontr, porcicmsfp, datadigitacao, dataatual, usuarioins, usuarioalt, csticms, cstpis, cstcofins, listacnae, codcfop, listatiponfe, porcipi, porcicmsst, porcpis, porccofins, porcpisst, porccofinsst, porcadremicmsret, porcredbase, porcdiferenciamento, observacao, codfilial) FROM stdin;
\.
COPY public.itemuf (coditemuf, coditem, uforig, ufdest, porcicms, porcicmsnaocontr, porcicmsfp, datadigitacao, dataatual, usuarioins, usuarioalt, csticms, cstpis, cstcofins, listacnae, codcfop, listatiponfe, porcipi, porcicmsst, porcpis, porccofins, porcpisst, porccofinsst, porcadremicmsret, porcredbase, porcdiferenciamento, observacao, codfilial) FROM '$$PATH$$/10280.dat';

--
-- Data for Name: licenca; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.licenca (codlicenca, codtabela, codtipolicenca, tabela, dataini, datafim, numero, uf, status, obs, usuarioins, usuarioalt, datadigitacao, dataatual, valor) FROM stdin;
\.
COPY public.licenca (codlicenca, codtabela, codtipolicenca, tabela, dataini, datafim, numero, uf, status, obs, usuarioins, usuarioalt, datadigitacao, dataatual, valor) FROM '$$PATH$$/10281.dat';

--
-- Data for Name: local; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.local (codlocal, descricao, ordem, eixo, obrigaveiculo, dataatual, liberado, datadigitacao, usuarioins, usuarioalt, kmminimo) FROM stdin;
\.
COPY public.local (codlocal, descricao, ordem, eixo, obrigaveiculo, dataatual, liberado, datadigitacao, usuarioins, usuarioalt, kmminimo) FROM '$$PATH$$/10282.dat';

--
-- Data for Name: log; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.log (nome, data, arquivo, tipo, obs, justificativa, tabela, campochave, valorchave, senha, usuarioaut, codlog) FROM stdin;
\.
COPY public.log (nome, data, arquivo, tipo, obs, justificativa, tabela, campochave, valorchave, senha, usuarioaut, codlog) FROM '$$PATH$$/10283.dat';

--
-- Data for Name: logactiontime; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.logactiontime (codlogactiontime, dhini, dhfim, servidor, nomereduzempresa, usuariocorrente, classe, detalhes) FROM stdin;
\.
COPY public.logactiontime (codlogactiontime, dhini, dhfim, servidor, nomereduzempresa, usuariocorrente, classe, detalhes) FROM '$$PATH$$/10284.dat';

--
-- Data for Name: logcampo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.logcampo (codlogcampo, codlog, campo, antigo, novo, liberado) FROM stdin;
\.
COPY public.logcampo (codlogcampo, codlog, campo, antigo, novo, liberado) FROM '$$PATH$$/10285.dat';

--
-- Data for Name: logcom; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.logcom (codlogcom, codgerrisco, chavetabela, tabela, datadigitacao, dataatual, datalog, obs, xmlenv, xmlresp, usuarioins, usuarioalt, xmlenvem, xmlrespem, url) FROM stdin;
\.
COPY public.logcom (codlogcom, codgerrisco, chavetabela, tabela, datadigitacao, dataatual, datalog, obs, xmlenv, xmlresp, usuarioins, usuarioalt, xmlenvem, xmlrespem, url) FROM '$$PATH$$/10286.dat';

--
-- Data for Name: malote; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.malote (codmalote, data, remetente, destinatario, codfilrem, codfildest, coduerem, coduedest, lacre, datachegada, usuariochegada, dataatual, datadigitacao, usuarioins, usuarioalt, obs, transportador, registro, protocolo, codmotoristarem, codmotoristadest, coddepartamento) FROM stdin;
\.
COPY public.malote (codmalote, data, remetente, destinatario, codfilrem, codfildest, coduerem, coduedest, lacre, datachegada, usuariochegada, dataatual, datadigitacao, usuarioins, usuarioalt, obs, transportador, registro, protocolo, codmotoristarem, codmotoristadest, coddepartamento) FROM '$$PATH$$/10288.dat';

--
-- Data for Name: malotedoc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.malotedoc (codmalotedoc, codmalote, numero, codnota, codadiantamento, codcheque, usuarioins, datadigitacao, usuarioalt, dataatual, codfatura, codfaturacompra, codequip, obs) FROM stdin;
\.
COPY public.malotedoc (codmalotedoc, codmalote, numero, codnota, codadiantamento, codcheque, usuarioins, datadigitacao, usuarioalt, dataatual, codfatura, codfaturacompra, codequip, obs) FROM '$$PATH$$/10290.dat';

--
-- Data for Name: maloteenv; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.maloteenv (codmaloteenv, codmalote, usuariorem, nomerem, usuariodest, nomedest, data, quant, volume, descricao, datachegada, usuariochegada, dataatual, datadigitacao, usuarioins, usuarioalt, motivorecusa, chegou, coddepartamento) FROM stdin;
\.
COPY public.maloteenv (codmaloteenv, codmalote, usuariorem, nomerem, usuariodest, nomedest, data, quant, volume, descricao, datachegada, usuariochegada, dataatual, datadigitacao, usuarioins, usuarioalt, motivorecusa, chegou, coddepartamento) FROM '$$PATH$$/10291.dat';

--
-- Data for Name: manif; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manif (codmanif, data, codveiculo, codmotorista, codfilial, codunidadeembarque, codcidadeorigem, codcidadedestino, fretemotorista, adiantamentomotorista, usuarioins, usuarioalt, dataatual, numeroviagmot, datadigitacao, obs, datahoraini, datahorafim, quantparadas, obsviagem, codrota, impresso, kmini, kmfim, status, vazio, kmprevisto, valorpedagio, lacre, pedagioembfretemot, datafinalizacao, codfuncionario, outrosdescontosmot, ussolicmonit, datasolicmonit, codsolicmonit, codcoleta, codentrega, usuarioconf, dataconf, mdfechave, mdfeprot, mdfestatus, versaomdfe, codemonitor, emonitorstatus, mdfedataloteenv, mdfereciboenv, mdfedatareciboenv, mdfemsgret, usuarioautmdfe, arqxmlass, tpamb, seriemdfe, numeromdfe, codobsfiscal1, codobsfiscal2, codfrete, numeroviagemorigem, fusohorario, numeroseguro, expseguro, codgerriscoseg, historico, codproprietario, tpmodal, idcsrt, hashcsrt, respteccnpj, respteccontato, resptecemail, resptecfone, qrcodmdfe, indcanalverde, codagporto, tpemis, codmercadoria, cean, ncm, codtipotransporteantt, dataprevdescarga, peso, valormercadoria, descmercnf, usuarioconting, dataconting, qrcode, indcarregaposterior, indaltodesemp, nrocontrato, vlcontrato, checklistpagto, dhprotdte, nprotdte, numerodte, cnpjcpfresppedagio, valorfreteantt) FROM stdin;
\.
COPY public.manif (codmanif, data, codveiculo, codmotorista, codfilial, codunidadeembarque, codcidadeorigem, codcidadedestino, fretemotorista, adiantamentomotorista, usuarioins, usuarioalt, dataatual, numeroviagmot, datadigitacao, obs, datahoraini, datahorafim, quantparadas, obsviagem, codrota, impresso, kmini, kmfim, status, vazio, kmprevisto, valorpedagio, lacre, pedagioembfretemot, datafinalizacao, codfuncionario, outrosdescontosmot, ussolicmonit, datasolicmonit, codsolicmonit, codcoleta, codentrega, usuarioconf, dataconf, mdfechave, mdfeprot, mdfestatus, versaomdfe, codemonitor, emonitorstatus, mdfedataloteenv, mdfereciboenv, mdfedatareciboenv, mdfemsgret, usuarioautmdfe, arqxmlass, tpamb, seriemdfe, numeromdfe, codobsfiscal1, codobsfiscal2, codfrete, numeroviagemorigem, fusohorario, numeroseguro, expseguro, codgerriscoseg, historico, codproprietario, tpmodal, idcsrt, hashcsrt, respteccnpj, respteccontato, resptecemail, resptecfone, qrcodmdfe, indcanalverde, codagporto, tpemis, codmercadoria, cean, ncm, codtipotransporteantt, dataprevdescarga, peso, valormercadoria, descmercnf, usuarioconting, dataconting, qrcode, indcarregaposterior, indaltodesemp, nrocontrato, vlcontrato, checklistpagto, dhprotdte, nprotdte, numerodte, cnpjcpfresppedagio, valorfreteantt) FROM '$$PATH$$/10293.dat';

--
-- Data for Name: manifchecklist; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manifchecklist (codmanif, codchecklist, data, codmotorista, obs, numero, dataatual, usuarioins, usuarioalt, datadigitacao, codmanifchecklist) FROM stdin;
\.
COPY public.manifchecklist (codmanif, codchecklist, data, codmotorista, obs, numero, dataatual, usuarioins, usuarioalt, datadigitacao, codmanifchecklist) FROM '$$PATH$$/10294.dat';

--
-- Data for Name: manifconhecimento; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manifconhecimento (codmanif, numero, porcparticfretemot, fretemotoristaprop, usuarioins, usuarioalt, dataatual, datadigitacao, codmanifconhecimento, codcidadedescarga, ordem, codmanifev) FROM stdin;
\.
COPY public.manifconhecimento (codmanif, numero, porcparticfretemot, fretemotoristaprop, usuarioins, usuarioalt, dataatual, datadigitacao, codmanifconhecimento, codcidadedescarga, ordem, codmanifev) FROM '$$PATH$$/10295.dat';

--
-- Data for Name: manifdoc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manifdoc (codmanifdoc, codmanif, codtipodoc, obrigatorio, chegou, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.manifdoc (codmanifdoc, codmanif, codtipodoc, obrigatorio, chegou, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10296.dat';

--
-- Data for Name: manifev; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manifev (codmanifev, codmanif, nseqevento, xcorrecao, codemonitor, emonitorstatus, evstatus, datahoraenviolote, datahorareclote, nprot, msgret, arqxmlass, usuarioins, usuarioalt, datains, dataalt, codtipoev, fusohorario, versaoeventomdfe, grupoalterado, campoalterado, nroitemalterado, xconduso, codmotorista) FROM stdin;
\.
COPY public.manifev (codmanifev, codmanif, nseqevento, xcorrecao, codemonitor, emonitorstatus, evstatus, datahoraenviolote, datahorareclote, nprot, msgret, arqxmlass, usuarioins, usuarioalt, datains, dataalt, codtipoev, fusohorario, versaoeventomdfe, grupoalterado, campoalterado, nroitemalterado, xconduso, codmotorista) FROM '$$PATH$$/10297.dat';

--
-- Data for Name: maniflog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.maniflog (codmanif, data, codfilial, codunidadeembarque, obs, usuarioins, usuarioalt, dataatual, datadigitacao, codmaniflog) FROM stdin;
\.
COPY public.maniflog (codmanif, data, codfilial, codunidadeembarque, obs, usuarioins, usuarioalt, dataatual, datadigitacao, codmaniflog) FROM '$$PATH$$/10298.dat';

--
-- Data for Name: manifnota; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manifnota (codmanifnota, codmanif, codnota, chavenfe, valornota, peso, ordem, codcidadedestino, datadigitacao, dataatual, usuarioins, usuarioalt, segcodbarra, respseguro, cnpjseguradora, nomeseguradora, numeroapolice, averbacao, codmanifev) FROM stdin;
\.
COPY public.manifnota (codmanifnota, codmanif, codnota, chavenfe, valornota, peso, ordem, codcidadedestino, datadigitacao, dataatual, usuarioins, usuarioalt, segcodbarra, respseguro, cnpjseguradora, nomeseguradora, numeroapolice, averbacao, codmanifev) FROM '$$PATH$$/10299.dat';

--
-- Data for Name: manifoco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manifoco (codmanifoco, codmanif, codtipoocorrencia, data, codtipojustificativa, status, obs, protocolo, codgerrisco, campoaux1, campoaux2, bcampoaux1, codlogcom, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.manifoco (codmanifoco, codmanif, codtipoocorrencia, data, codtipojustificativa, status, obs, protocolo, codgerrisco, campoaux1, campoaux2, bcampoaux1, codlogcom, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10300.dat';

--
-- Data for Name: manifpag; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manifpag (codmanifpag, codmanif, codmanifev, codcliente, fretemotorista, indpag, usuarioins, datadigitacao, usuarioalt, dataatual, indantecipaadiant, tpantecip) FROM stdin;
\.
COPY public.manifpag (codmanifpag, codmanif, codmanifev, codcliente, fretemotorista, indpag, usuarioins, datadigitacao, usuarioalt, dataatual, indantecipaadiant, tpantecip) FROM '$$PATH$$/10301.dat';

--
-- Data for Name: manifpagb; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manifpagb (codmanifpagb, codmanifpag, codbanco, codagencia, cnpjipef, usuarioins, datadigitacao, usuarioalt, dataatual, pix) FROM stdin;
\.
COPY public.manifpagb (codmanifpagb, codmanifpag, codbanco, codagencia, cnpjipef, usuarioins, datadigitacao, usuarioalt, dataatual, pix) FROM '$$PATH$$/10302.dat';

--
-- Data for Name: manifpagc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manifpagc (codmanifpagc, codmanifpag, tipopag, codtipo, valor, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.manifpagc (codmanifpagc, codmanifpag, tipopag, codtipo, valor, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10303.dat';

--
-- Data for Name: manifpagp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manifpagp (codmanifpagp, codmanifpag, parcela, valor, datavenc, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.manifpagp (codmanifpagp, codmanifpag, parcela, valor, datavenc, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10304.dat';

--
-- Data for Name: manifxml; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manifxml (codmanifxml, numero, chavemdfe, cnpjcpf, nome, inscricaoestadual, data, valor, digval, sitmdfe, nsu, xml, codcliente, numeromdfe, serie, status, dhrecbto, usuarioins, datadigitacao, usuarioalt, dataatual, codfilial, obs, codveiculo, codmotorista, codcidadeorigem, codcidadedestino, codfornecedorped, valorpedagio, peso, valormercadoria, ciot, cidadecliente, ufcliente) FROM stdin;
\.
COPY public.manifxml (codmanifxml, numero, chavemdfe, cnpjcpf, nome, inscricaoestadual, data, valor, digval, sitmdfe, nsu, xml, codcliente, numeromdfe, serie, status, dhrecbto, usuarioins, datadigitacao, usuarioalt, dataatual, codfilial, obs, codveiculo, codmotorista, codcidadeorigem, codcidadedestino, codfornecedorped, valorpedagio, peso, valormercadoria, ciot, cidadecliente, ufcliente) FROM '$$PATH$$/10305.dat';

--
-- Data for Name: manifxmloco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.manifxmloco (codmanifxmloco, codmanifxml, status, codtipoocorrencia, data, codtipojustificativa, obs, campoaux1, campoaux2, bcampoaux1, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.manifxmloco (codmanifxmloco, codmanifxml, status, codtipoocorrencia, data, codtipojustificativa, obs, campoaux1, campoaux2, bcampoaux1, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10306.dat';

--
-- Data for Name: marca; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.marca (codmarca, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, liberado) FROM stdin;
\.
COPY public.marca (codmarca, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, liberado) FROM '$$PATH$$/10307.dat';

--
-- Data for Name: megagrupofinanceiro; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.megagrupofinanceiro (codmegagrupofinanceiro, descricao, dataatual, liberado, datadigitacao, usuarioins, usuarioalt, codhipergrupofinanceiro, ordem) FROM stdin;
\.
COPY public.megagrupofinanceiro (codmegagrupofinanceiro, descricao, dataatual, liberado, datadigitacao, usuarioins, usuarioalt, codhipergrupofinanceiro, ordem) FROM '$$PATH$$/10308.dat';

--
-- Data for Name: mensagem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mensagem (usuarioorigem, usuariodestino, data, assunto, texto, lida, codveiculo, tipo, pendente, datadigitacao, dataatual, usuarioins, usuarioalt, codmensagem, codpessoamsgmgp, codmotorista, codfornecedor, codproprietario, codcliente, tipoenvio, codtipopessoaoco, codpessoaoco) FROM stdin;
\.
COPY public.mensagem (usuarioorigem, usuariodestino, data, assunto, texto, lida, codveiculo, tipo, pendente, datadigitacao, dataatual, usuarioins, usuarioalt, codmensagem, codpessoamsgmgp, codmotorista, codfornecedor, codproprietario, codcliente, tipoenvio, codtipopessoaoco, codpessoaoco) FROM '$$PATH$$/10309.dat';

--
-- Data for Name: menuitem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.menuitem (codmenuitem, codmenusup, descricao, ordem, titulo, nivel, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.menuitem (codmenuitem, codmenusup, descricao, ordem, titulo, nivel, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10310.dat';

--
-- Data for Name: menusup; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.menusup (codmenusup, descricao, ordem, titulo, nivel, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.menusup (codmenusup, descricao, ordem, titulo, nivel, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10311.dat';

--
-- Data for Name: mercadoria; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mercadoria (codmercadoria, descricao, perctonelada, percmercadoria, dataatual, dataexportacao, liberado, codmercadoriaext, codtipotransporte, obs, comprimento, largura, altura, peso, escolta, mercadoriaexp, codunidademedida, descricaocomplementar, usuarioins, datadigitacao, usuarioalt, ncm, permitecompart, percdesccompart, vlsublimiteseguro, ramoseguradora, codtipotransporteantt, checklist, codespeciemerc, cean, codprodanp, codmercadoriaprinc, statuscad, codgrupomercadoria) FROM stdin;
\.
COPY public.mercadoria (codmercadoria, descricao, perctonelada, percmercadoria, dataatual, dataexportacao, liberado, codmercadoriaext, codtipotransporte, obs, comprimento, largura, altura, peso, escolta, mercadoriaexp, codunidademedida, descricaocomplementar, usuarioins, datadigitacao, usuarioalt, ncm, permitecompart, percdesccompart, vlsublimiteseguro, ramoseguradora, codtipotransporteantt, checklist, codespeciemerc, cean, codprodanp, codmercadoriaprinc, statuscad, codgrupomercadoria) FROM '$$PATH$$/10312.dat';

--
-- Data for Name: mercadoriancm; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mercadoriancm (codmercadoriancm, codmercadoria, ncm, codigoexterno, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.mercadoriancm (codmercadoriancm, codmercadoria, ncm, codigoexterno, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10313.dat';

--
-- Data for Name: mercadoriatipocar; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mercadoriatipocar (codmercadoriatipocar, codmercadoria, codtipocarroceria, padrao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.mercadoriatipocar (codmercadoriatipocar, codmercadoria, codtipocarroceria, padrao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10314.dat';

--
-- Data for Name: mesanobloq; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.mesanobloq (mes, ano, dataatual, bloqueioconhecimento, bloqueionota, bloqueioadiantamento, bloqueiofinanceiro, bloqueiopagtoconhecimento, datadigitacao, usuarioins, usuarioalt, bloqueionotafrete, bloqueiofatura, codmesanobloq, diaini, diafim, bloqueioosreforma, bloqueiopapeleta, bloqueioos, listatipofat, bloqueioconhecfrota, checklist) FROM stdin;
\.
COPY public.mesanobloq (mes, ano, dataatual, bloqueioconhecimento, bloqueionota, bloqueioadiantamento, bloqueiofinanceiro, bloqueiopagtoconhecimento, datadigitacao, usuarioins, usuarioalt, bloqueionotafrete, bloqueiofatura, codmesanobloq, diaini, diafim, bloqueioosreforma, bloqueiopapeleta, bloqueioos, listatipofat, bloqueioconhecfrota, checklist) FROM '$$PATH$$/10315.dat';

--
-- Data for Name: modelo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.modelo (codmodelo, descricao, dataatual, kmprevista, kmprevvida1, kmprevvida2, kmprevvida3, kmprevvida4, liberado, datadigitacao, usuarioins, usuarioalt, coditem) FROM stdin;
\.
COPY public.modelo (codmodelo, descricao, dataatual, kmprevista, kmprevvida1, kmprevvida2, kmprevvida3, kmprevvida4, liberado, datadigitacao, usuarioins, usuarioalt, coditem) FROM '$$PATH$$/10316.dat';

--
-- Data for Name: modeloveic; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.modeloveic (codmodelo, descricao, codmarca, usuarioins, datadigitacao, usuarioalt, dataatual, liberado, codigofipe) FROM stdin;
\.
COPY public.modeloveic (codmodelo, descricao, codmarca, usuarioins, datadigitacao, usuarioalt, dataatual, liberado, codigofipe) FROM '$$PATH$$/10317.dat';

--
-- Data for Name: moeda; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.moeda (codmoeda, descricao, simbolo, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.moeda (codmoeda, descricao, simbolo, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10318.dat';

--
-- Data for Name: moedacot; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.moedacot (codmoeda, data, cotacao, dataatual, datadigitacao, usuarioins, usuarioalt, codmoedacot) FROM stdin;
\.
COPY public.moedacot (codmoeda, data, cotacao, dataatual, datadigitacao, usuarioins, usuarioalt, codmoedacot) FROM '$$PATH$$/10319.dat';

--
-- Data for Name: motivo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motivo (codmotivo, descricao, checklist, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.motivo (codmotivo, descricao, checklist, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10320.dat';

--
-- Data for Name: motivobloqueio; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motivobloqueio (codmotivobloqueio, descricao, datadigitacao, usuarioins, dataatual, usuarioalt) FROM stdin;
\.
COPY public.motivobloqueio (codmotivobloqueio, descricao, datadigitacao, usuarioins, dataatual, usuarioalt) FROM '$$PATH$$/10321.dat';

--
-- Data for Name: motivocanc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motivocanc (codmotivocanc, codtabela, descricao, liberado, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.motivocanc (codmotivocanc, codtabela, descricao, liberado, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10322.dat';

--
-- Data for Name: motivodemissao; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motivodemissao (codmotivodemissao, descricao, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.motivodemissao (codmotivodemissao, descricao, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10323.dat';

--
-- Data for Name: motorista; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motorista (codmotorista, codcidade, nome, endereco, complemento, cep, cpf, cnh, admissao, demissao, motivodemissao, carteiratrabalho, salario, validadecarteira, celular, pis, funcao, seriecarteira, tipomoeda, funcionario, dataatual, datanascimento, codcargo, fone, dataregistro, dataexportacao, liberado, salarioliquido, tituloeleitor, agencia, conta, banco, titular, codfilial, obs, rg, apelido, datafimexperiencia, fichapessoal, entrevistadesligamento, laudo, obsgerais, senha, datainclusao, tipoproducao, prontuario, codunidadeembarque, nomepai, nomemae, tamcalca, tamcamisa, tamcamiseta, tamsapato, tamblusa, percadiant, vladiant, vlsaldosalario, usuarioins, usuarioalt, usuariolib, dataferias, datafimexperiencia2, codexterno, cathabilitacao, periculosidade, estadocivil, nomeconjuge, codcidadenatural, limitecredito, coddepartamento, bairro, numero, comissaofrete, dataemissaorg, tammacacao, tambata, tambota, codbanco, permiteapontamento, pele, barba, bigode, cabelos, olhos, altura, peso, sinaisfisicos, orgaorg, receita, restricoes, zonaeleitoral, secaoeleitoral, tipoconta, nextel, porcinss, contrassistencial, valorseguro, cpftitularcc, nacionalidade, valordiaria, complementosalario, dataprimeiracnh, celular2, titularcnpjcpf, salariocarteira, obs2, exigeautgerrisco, bloqueadoadm, databloqueio, obsbloq, comissaoestadia, codmotoristager, codmotoristasup, codcidadecnh, sexo, operadoracel, codpessoamgp, statusmgp, numsegcnh, percadiantcompl, tipoenviosms, listaapp, tiposanguineo, datafimexperiencia3, escolaridade, email, complescolaridade, numsus, codmotivodemissao, finalidadecredito, enviaris, dataemissaocnh, codmotivobloqueio, usuariobloqueio, listafilportaria, adicionalnoturno, codnegocio, reservista, datareservista, dataexpctps, tipomotivodemissao, chavepix, qrcodepix, checklist, diastrocasenha, dataultsenha, codseguranca, tipoenviolink, tipochavepix, perccomapontamento, percadtofrete, senhainteg, statuscad, datavenccadastro, checklistmod, numrenachcnh, codfornecedor, codcliente, etnia) FROM stdin;
\.
COPY public.motorista (codmotorista, codcidade, nome, endereco, complemento, cep, cpf, cnh, admissao, demissao, motivodemissao, carteiratrabalho, salario, validadecarteira, celular, pis, funcao, seriecarteira, tipomoeda, funcionario, dataatual, datanascimento, codcargo, fone, dataregistro, dataexportacao, liberado, salarioliquido, tituloeleitor, agencia, conta, banco, titular, codfilial, obs, rg, apelido, datafimexperiencia, fichapessoal, entrevistadesligamento, laudo, obsgerais, senha, datainclusao, tipoproducao, prontuario, codunidadeembarque, nomepai, nomemae, tamcalca, tamcamisa, tamcamiseta, tamsapato, tamblusa, percadiant, vladiant, vlsaldosalario, usuarioins, usuarioalt, usuariolib, dataferias, datafimexperiencia2, codexterno, cathabilitacao, periculosidade, estadocivil, nomeconjuge, codcidadenatural, limitecredito, coddepartamento, bairro, numero, comissaofrete, dataemissaorg, tammacacao, tambata, tambota, codbanco, permiteapontamento, pele, barba, bigode, cabelos, olhos, altura, peso, sinaisfisicos, orgaorg, receita, restricoes, zonaeleitoral, secaoeleitoral, tipoconta, nextel, porcinss, contrassistencial, valorseguro, cpftitularcc, nacionalidade, valordiaria, complementosalario, dataprimeiracnh, celular2, titularcnpjcpf, salariocarteira, obs2, exigeautgerrisco, bloqueadoadm, databloqueio, obsbloq, comissaoestadia, codmotoristager, codmotoristasup, codcidadecnh, sexo, operadoracel, codpessoamgp, statusmgp, numsegcnh, percadiantcompl, tipoenviosms, listaapp, tiposanguineo, datafimexperiencia3, escolaridade, email, complescolaridade, numsus, codmotivodemissao, finalidadecredito, enviaris, dataemissaocnh, codmotivobloqueio, usuariobloqueio, listafilportaria, adicionalnoturno, codnegocio, reservista, datareservista, dataexpctps, tipomotivodemissao, chavepix, qrcodepix, checklist, diastrocasenha, dataultsenha, codseguranca, tipoenviolink, tipochavepix, perccomapontamento, percadtofrete, senhainteg, statuscad, datavenccadastro, checklistmod, numrenachcnh, codfornecedor, codcliente, etnia) FROM '$$PATH$$/10324.dat';

--
-- Data for Name: motoristaagenda; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motoristaagenda (codmotorista, codmotoristaagenda, codtipoagenda, data, datadigitacao, historico, dataproxagenda, usuarioins, usuarioalt, dataatual, datarealizado) FROM stdin;
\.
COPY public.motoristaagenda (codmotorista, codmotoristaagenda, codtipoagenda, data, datadigitacao, historico, dataproxagenda, usuarioins, usuarioalt, dataatual, datarealizado) FROM '$$PATH$$/10325.dat';

--
-- Data for Name: motoristacont; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motoristacont (codmotorista, nome, datanascimento, fone, celular, obs, codcargo, dataatual, codmotoristacont, usuarioins, usuarioalt, datainclusao, cpf, email, rg, orgaorg, certnascimento, codcidadenatural, sexo) FROM stdin;
\.
COPY public.motoristacont (codmotorista, nome, datanascimento, fone, celular, obs, codcargo, dataatual, codmotoristacont, usuarioins, usuarioalt, datainclusao, cpf, email, rg, orgaorg, certnascimento, codcidadenatural, sexo) FROM '$$PATH$$/10326.dat';

--
-- Data for Name: motoristaexame; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motoristaexame (codmotorista, descricao, dataefetuado, datavencimento, dataatual, obs, codexametreinamento, numero, codmotoristaexame, usuarioins, usuarioalt, datainclusao, dataeficacia, codfornecedor, situacao, usuariorealiz, datarealiz, usuariorevis, datarevis, codmotoristarealiz, codmotoristarevis, nota) FROM stdin;
\.
COPY public.motoristaexame (codmotorista, descricao, dataefetuado, datavencimento, dataatual, obs, codexametreinamento, numero, codmotoristaexame, usuarioins, usuarioalt, datainclusao, dataeficacia, codfornecedor, situacao, usuariorealiz, datarealiz, usuariorevis, datarevis, codmotoristarealiz, codmotoristarevis, nota) FROM '$$PATH$$/10327.dat';

--
-- Data for Name: motoristaferiado; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motoristaferiado (codmotoristaferiado, codmotorista, data, obs, proxdiautil, datadigitacao, usuarioins, usuarioalt, dataatual) FROM stdin;
\.
COPY public.motoristaferiado (codmotoristaferiado, codmotorista, data, obs, proxdiautil, datadigitacao, usuarioins, usuarioalt, dataatual) FROM '$$PATH$$/10328.dat';

--
-- Data for Name: motoristagerrisco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motoristagerrisco (codmotorista, codgerrisco, data, datavalidade, numliberacao, usuarioins, usuarioalt, dataatual, datainscricao, obs, liberado, codveiculo, codproprietario, status, tipo, usuariosolic, datasolic, codsolic, codmotoristagerrisco, datainclusao, numerocartao, numerocartao2, tipocartao, liberadoordemcar, codexterno, obscomp, numerocartaoadto, setor2, codmercadoria, valormercadoria, km, codcidadeorigem, codcidadedestino) FROM stdin;
\.
COPY public.motoristagerrisco (codmotorista, codgerrisco, data, datavalidade, numliberacao, usuarioins, usuarioalt, dataatual, datainscricao, obs, liberado, codveiculo, codproprietario, status, tipo, usuariosolic, datasolic, codsolic, codmotoristagerrisco, datainclusao, numerocartao, numerocartao2, tipocartao, liberadoordemcar, codexterno, obscomp, numerocartaoadto, setor2, codmercadoria, valormercadoria, km, codcidadeorigem, codcidadedestino) FROM '$$PATH$$/10329.dat';

--
-- Data for Name: motoristagerriscodesp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motoristagerriscodesp (codmotoristagerriscodesp, codmotoristagerrisco, codtipodesp, valor, numero, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.motoristagerriscodesp (codmotoristagerriscodesp, codmotoristagerrisco, codtipodesp, valor, numero, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10330.dat';

--
-- Data for Name: motoristalib; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motoristalib (codmotoristalib, codmotorista, datalib, usuariolib, obs, usuarioins, datadigitacao, usuarioalt, dataatual, liberado, codveiculo, codproprietario) FROM stdin;
\.
COPY public.motoristalib (codmotoristalib, codmotorista, datalib, usuariolib, obs, usuarioins, datadigitacao, usuarioalt, dataatual, liberado, codveiculo, codproprietario) FROM '$$PATH$$/10331.dat';

--
-- Data for Name: motoristalimite; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motoristalimite (codmotoristalimite, codmotorista, data, obs, limiteanterior, limitenovo, usuarioins, datadigitacao, usuarioalt, dataatual, metafat) FROM stdin;
\.
COPY public.motoristalimite (codmotoristalimite, codmotorista, data, obs, limiteanterior, limitenovo, usuarioins, datadigitacao, usuarioalt, dataatual, metafat) FROM '$$PATH$$/10332.dat';

--
-- Data for Name: motoristalog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motoristalog (codmotorista, data, codtipolog, descricao, obs, dataatual, usuarioins, usuarioalt, datafim, codmotoristalog, datainclusao, usuariosolic, datasolic, folga, codpessoalogmgp, diaria, km, codveiculo, codcidade) FROM stdin;
\.
COPY public.motoristalog (codmotorista, data, codtipolog, descricao, obs, dataatual, usuarioins, usuarioalt, datafim, codmotoristalog, datainclusao, usuariosolic, datasolic, folga, codpessoalogmgp, diaria, km, codveiculo, codcidade) FROM '$$PATH$$/10333.dat';

--
-- Data for Name: motoristarat; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motoristarat (codmotoristarat, codmotorista, codunidadeembarque, perc, valor, dataatual, datadigitacao, usuarioins, usuarioalt, codnegocio) FROM stdin;
\.
COPY public.motoristarat (codmotoristarat, codmotorista, codunidadeembarque, perc, valor, dataatual, datadigitacao, usuarioins, usuarioalt, codnegocio) FROM '$$PATH$$/10334.dat';

--
-- Data for Name: motoristaref; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motoristaref (codmotoristaref, codmotorista, tipo, nome, fone, endereco, codcidade, celular, obs, datadigitacao, dataatual, usuarioins, usuarioalt, cep, complemento, bairro, numero, status, nomecontato, tipocontato, codcargo, codvisitante) FROM stdin;
\.
COPY public.motoristaref (codmotoristaref, codmotorista, tipo, nome, fone, endereco, codcidade, celular, obs, datadigitacao, dataatual, usuarioins, usuarioalt, cep, complemento, bairro, numero, status, nomecontato, tipocontato, codcargo, codvisitante) FROM '$$PATH$$/10335.dat';

--
-- Data for Name: motoristasalev; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.motoristasalev (codmotoristasalev, codmotorista, codtipoevento, creditodebito, valortotal, valordescontado, valortaxa, data, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codfornecedor, serie, gerarcredito, despesa, tipofaturamento, diavencimento, codexterno, coditem, codtipoccempfunc, descricaores, codnegocio, codcfop, viagem, ved, especie, especial, codcliente, valorreembolso, coditemreceita) FROM stdin;
\.
COPY public.motoristasalev (codmotoristasalev, codmotorista, codtipoevento, creditodebito, valortotal, valordescontado, valortaxa, data, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codfornecedor, serie, gerarcredito, despesa, tipofaturamento, diavencimento, codexterno, coditem, codtipoccempfunc, descricaores, codnegocio, codcfop, viagem, ved, especie, especial, codcliente, valorreembolso, coditemreceita) FROM '$$PATH$$/10337.dat';

--
-- Data for Name: movitem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.movitem (codmovitem, coditem, data, datadigitacao, tipomov, quant, descricao, usuario, dataatual, dataexportacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.movitem (codmovitem, coditem, data, datadigitacao, tipomov, quant, descricao, usuario, dataatual, dataexportacao, usuarioins, usuarioalt) FROM '$$PATH$$/10338.dat';

--
-- Data for Name: multaorgao; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.multaorgao (codmultaorgao, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.multaorgao (codmultaorgao, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10339.dat';

--
-- Data for Name: nbs; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.nbs (codnbs, descricao, codclasstrib, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.nbs (codnbs, descricao, codclasstrib, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10546.dat';

--
-- Data for Name: negocio; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.negocio (codnegocio, descricao, dataatual, datadigitacao, usuarioins, usuarioalt, liberado) FROM stdin;
\.
COPY public.negocio (codnegocio, descricao, dataatual, datadigitacao, usuarioins, usuarioalt, liberado) FROM '$$PATH$$/10340.dat';

--
-- Data for Name: nota; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.nota (codfornecedor, numeronota, serie, codcondicao, codfilial, data, valor, atualizada, codfatura, nffatura, obs, datadigitacao, atualizadovista, despesa, dataatual, dataexportacao, codadiantamento, datavencimento, codveiculo, km, afaturar, codunidadenegocio, codunidadeembarque, pis, cofins, creditapiscofins, datafim, codcfop, especie, usuarioins, usuarioalt, valoriss, valoricms, valorimpsfed, codfaturaiss, codfaturaicms, codfaturaimpsfed, datainioficina, datafimoficina, vlcreditoicms, codordemcompra, codagrupador, historico, usuarioaut, dataaut, vlcontabil, vlicms, vloutrasicms, vlisentasicms, vlbaseicmssubsttrib, vlicmssubsttrib, vloutrasipi, vlisentasipi, vlipi, vlbaseiss, vliss, vloutrasiss, vlisentasiss, vlinssret, vlirrfret, vlpisret, vlcofinsret, vlcsllret, codfaturainss, codfaturapis, codfaturacofins, codfaturairrf, codfaturacsll, usuariosolicaut, vldifaliqicms, codmotorista, status, referente, obspagamento, dataexpfiscal, dataexpcontabil, codmotoristaini, codmotoristafim, valortot, datamotorista, chavenfe, xmlnfe, codmoeda, tempoexecucao, dataemissao, tipo, vlbaseicms, obsfiscal, box, faturafornecedor, exportafiscal, usuariosolicconf, datasolicconf, codnota, historico2, codcliente, numeronf, serienf, tiponf, nfetpamb, nfeversao, modelonf, obsentrega, obscorponf, valorseguro, valorfrete, numerotransp, freteporconta, codveiculotransp, qtdetransportada, pesobruto, pesoliquido, especiemerc, codemonitor, emonitorstatus, nfestatus, nfedatahoraenviolote, nfedatahorareclote, nfenreclote, nfenprot, nfemsgret, nfechavecontingencia, nfejustcompl, tiponfe, valordesccontabil, nfefusohorario, nfecrt, valoroutras, codtransportador, icmsretido, codsituacao, nfefusohorarioautor, codcfopobs, creditaicms, vfcpufdest, vicmsufdest, vicmsufremet, codfatpagicmsufdest, codordemcar, codorcvenda, codobsfiscal, codobsfiscal2, codfornecedorprod, vlicmsdeson, tpemis, idcsrt, dataprevfim, hashcsrt, respteccnpj, respteccontato, resptecemail, resptecfone, qrcodnfe, natfrete, natfretebc, indfinal, codmotivocanc, datacanc, usuariocanc, detcanc, codcoleta, codentrega, codveiculoacidente, expseguro, codgerriscoseg, cnpjseguradora, nomseguradora, numeroapolice, numeroseguro, numerosegurocanc, dataenvioseg, dataenviosegcanc, nfeindpresencial, marcavoltransp, checklist, prioridade, coddepartamento, usuariosolicitanteaut, usuariosolicitantecanc, optantesimples, qbcmonoret, valoricmsmonoret, codtipopagto, usuarioaudit, dataaudit, usuariosolicaudit, qbcmonoretcomb, vicmsmonoretcomb, placaaux, nomemotoristaaux, ufaux, rntcaux, tiponfedebito, tiponfecredito, basecalculoibscbs, valoribs, valordifibsuf, valordevtribibsuf, valoribsuf, valordifibscidade, valordevtribibscidade, valoribscidade, valordifcbs, valordevtribcbs, valorcbs, valorcredpresibs, valorcredpresibscondsus, valorcredprescbs, valorcredprescbscondsus, valoribsufcred, valoribscidadecred, valorcbscred, codfaturarecibscbs, quilowatthora, codfilialsetor) FROM stdin;
\.
COPY public.nota (codfornecedor, numeronota, serie, codcondicao, codfilial, data, valor, atualizada, codfatura, nffatura, obs, datadigitacao, atualizadovista, despesa, dataatual, dataexportacao, codadiantamento, datavencimento, codveiculo, km, afaturar, codunidadenegocio, codunidadeembarque, pis, cofins, creditapiscofins, datafim, codcfop, especie, usuarioins, usuarioalt, valoriss, valoricms, valorimpsfed, codfaturaiss, codfaturaicms, codfaturaimpsfed, datainioficina, datafimoficina, vlcreditoicms, codordemcompra, codagrupador, historico, usuarioaut, dataaut, vlcontabil, vlicms, vloutrasicms, vlisentasicms, vlbaseicmssubsttrib, vlicmssubsttrib, vloutrasipi, vlisentasipi, vlipi, vlbaseiss, vliss, vloutrasiss, vlisentasiss, vlinssret, vlirrfret, vlpisret, vlcofinsret, vlcsllret, codfaturainss, codfaturapis, codfaturacofins, codfaturairrf, codfaturacsll, usuariosolicaut, vldifaliqicms, codmotorista, status, referente, obspagamento, dataexpfiscal, dataexpcontabil, codmotoristaini, codmotoristafim, valortot, datamotorista, chavenfe, xmlnfe, codmoeda, tempoexecucao, dataemissao, tipo, vlbaseicms, obsfiscal, box, faturafornecedor, exportafiscal, usuariosolicconf, datasolicconf, codnota, historico2, codcliente, numeronf, serienf, tiponf, nfetpamb, nfeversao, modelonf, obsentrega, obscorponf, valorseguro, valorfrete, numerotransp, freteporconta, codveiculotransp, qtdetransportada, pesobruto, pesoliquido, especiemerc, codemonitor, emonitorstatus, nfestatus, nfedatahoraenviolote, nfedatahorareclote, nfenreclote, nfenprot, nfemsgret, nfechavecontingencia, nfejustcompl, tiponfe, valordesccontabil, nfefusohorario, nfecrt, valoroutras, codtransportador, icmsretido, codsituacao, nfefusohorarioautor, codcfopobs, creditaicms, vfcpufdest, vicmsufdest, vicmsufremet, codfatpagicmsufdest, codordemcar, codorcvenda, codobsfiscal, codobsfiscal2, codfornecedorprod, vlicmsdeson, tpemis, idcsrt, dataprevfim, hashcsrt, respteccnpj, respteccontato, resptecemail, resptecfone, qrcodnfe, natfrete, natfretebc, indfinal, codmotivocanc, datacanc, usuariocanc, detcanc, codcoleta, codentrega, codveiculoacidente, expseguro, codgerriscoseg, cnpjseguradora, nomseguradora, numeroapolice, numeroseguro, numerosegurocanc, dataenvioseg, dataenviosegcanc, nfeindpresencial, marcavoltransp, checklist, prioridade, coddepartamento, usuariosolicitanteaut, usuariosolicitantecanc, optantesimples, qbcmonoret, valoricmsmonoret, codtipopagto, usuarioaudit, dataaudit, usuariosolicaudit, qbcmonoretcomb, vicmsmonoretcomb, placaaux, nomemotoristaaux, ufaux, rntcaux, tiponfedebito, tiponfecredito, basecalculoibscbs, valoribs, valordifibsuf, valordevtribibsuf, valoribsuf, valordifibscidade, valordevtribibscidade, valoribscidade, valordifcbs, valordevtribcbs, valorcbs, valorcredpresibs, valorcredpresibscondsus, valorcredprescbs, valorcredprescbscondsus, valoribsufcred, valoribscidadecred, valorcbscred, codfaturarecibscbs, quilowatthora, codfilialsetor) FROM '$$PATH$$/10341.dat';

--
-- Data for Name: notaadiant; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.notaadiant (codfornecedor, numeronota, serie, codadiantamento, dataatual, datadigitacao, usuarioins, usuarioalt, codnota, codnotaadiant) FROM stdin;
\.
COPY public.notaadiant (codfornecedor, numeronota, serie, codadiantamento, dataatual, datadigitacao, usuarioins, usuarioalt, codnota, codnotaadiant) FROM '$$PATH$$/10342.dat';

--
-- Data for Name: notadev; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.notadev (codnotadev, codnota, chavenfe, obs, datadigitacao, dataatual, usuarioins, usuarioalt, codnotadevolvida) FROM stdin;
\.
COPY public.notadev (codnotadev, codnota, chavenfe, obs, datadigitacao, dataatual, usuarioins, usuarioalt, codnotadevolvida) FROM '$$PATH$$/10343.dat';

--
-- Data for Name: notaev; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.notaev (codnotaev, codnota, codtipoev, nseqevento, fusohorario, xcorrecao, codemonitor, emonitorstatus, evstatus, datahoraenviolote, datahorareclote, nprot, msgret, arqxmlass, usuarioins, usuarioalt, datains, dataalt, versaoeventonfe, grupoalterado, campoalterado, nroitemalterado, xconduso, codproprietario) FROM stdin;
\.
COPY public.notaev (codnotaev, codnota, codtipoev, nseqevento, fusohorario, xcorrecao, codemonitor, emonitorstatus, evstatus, datahoraenviolote, datahorareclote, nprot, msgret, arqxmlass, usuarioins, usuarioalt, datains, dataalt, versaoeventonfe, grupoalterado, campoalterado, nroitemalterado, xconduso, codproprietario) FROM '$$PATH$$/10344.dat';

--
-- Data for Name: notafilialsetor; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.notafilialsetor (codnotafilialsetor, codnota, codfilialsetor, obs, datains, usuarioins, dataalt, usuarioalt) FROM stdin;
\.
COPY public.notafilialsetor (codnotafilialsetor, codnota, codfilialsetor, obs, datains, usuarioins, dataalt, usuarioalt) FROM '$$PATH$$/10559.dat';

--
-- Data for Name: notalog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.notalog (codnotalog, codnota, codmotorista, codtiponotalog, dataini, datafim, kmini, kmfim, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codmotoristafim, obsfim) FROM stdin;
\.
COPY public.notalog (codnotalog, codnota, codmotorista, codtiponotalog, dataini, datafim, kmini, kmfim, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codmotoristafim, obsfim) FROM '$$PATH$$/10345.dat';

--
-- Data for Name: notaoco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.notaoco (codnotaoco, codnota, codtipoocorrencia, data, codtipojustificativa, obs, listacodinterno, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.notaoco (codnotaoco, codnota, codtipoocorrencia, data, codtipojustificativa, obs, listacodinterno, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10346.dat';

--
-- Data for Name: notastatus; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.notastatus (codnotastatus, numeronota, serie, codmotorista, codveiculo, status, datadigitacao, dataatual, usuarioins, usuarioalt, codfilial, codunidadeembarque, datainut, nprotinut, usuarioinut, obsinut, nfemsgret, codemonitor, versaonfe, emonitorstatus, codmotivocanc) FROM stdin;
\.
COPY public.notastatus (codnotastatus, numeronota, serie, codmotorista, codveiculo, status, datadigitacao, dataatual, usuarioins, usuarioalt, codfilial, codunidadeembarque, datainut, nprotinut, usuarioinut, obsinut, nfemsgret, codemonitor, versaonfe, emonitorstatus, codmotivocanc) FROM '$$PATH$$/10347.dat';

--
-- Data for Name: notaxml; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.notaxml (codnotaxml, codnota, chavenfe, cnpjcpf, nome, inscricaoestadual, data, valor, entradasaida, digval, sitnfe, sitconf, dhrecbto, nsu, xml, codfornecedor, numeronota, serie, status, statusemonitor, codemonitor, codempresa, usuarioins, datadigitacao, usuarioalt, dataatual, codfilial, obs, codcliente, clientecnpj, clienteie, clientenome, usuariocienciaop, datacienciaop, usuariodownload, datadownload, usuariodescop, datadescop, usuarioopnaoreal, dataopnaoreal, obsopnaoreal, tipoes, peso, destcnpj, destie, destnome, destendres, coddestinatario, entregacnpj, entregaie, entreganome, entregaendres, codentrega, placa, codveiculo, codproprietario, obsimp, novaobsnfe, statusimp, codordemcar, numeropedido, codfrete, codmotorista, checklist, mercadoria, codmercadoria, transpcnpj, transpnome, transpie, transpend, transpcodcidade) FROM stdin;
\.
COPY public.notaxml (codnotaxml, codnota, chavenfe, cnpjcpf, nome, inscricaoestadual, data, valor, entradasaida, digval, sitnfe, sitconf, dhrecbto, nsu, xml, codfornecedor, numeronota, serie, status, statusemonitor, codemonitor, codempresa, usuarioins, datadigitacao, usuarioalt, dataatual, codfilial, obs, codcliente, clientecnpj, clienteie, clientenome, usuariocienciaop, datacienciaop, usuariodownload, datadownload, usuariodescop, datadescop, usuarioopnaoreal, dataopnaoreal, obsopnaoreal, tipoes, peso, destcnpj, destie, destnome, destendres, coddestinatario, entregacnpj, entregaie, entreganome, entregaendres, codentrega, placa, codveiculo, codproprietario, obsimp, novaobsnfe, statusimp, codordemcar, numeropedido, codfrete, codmotorista, checklist, mercadoria, codmercadoria, transpcnpj, transpnome, transpie, transpend, transpcodcidade) FROM '$$PATH$$/10349.dat';

--
-- Data for Name: notaxmloco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.notaxmloco (codnotaxmloco, codnotaxml, status, codtipoocorrencia, data, codtipojustificativa, obs, campoaux1, campoaux2, bcampoaux1, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.notaxmloco (codnotaxmloco, codnotaxml, status, codtipoocorrencia, data, codtipojustificativa, obs, campoaux1, campoaux2, bcampoaux1, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10350.dat';

--
-- Data for Name: obsfiscal; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.obsfiscal (codobsfiscal, descricao, descricao2, usuarioins, usuarioalt, datadigitacao, dataatual, liberado, obscompleto, tipo, mercexportacao) FROM stdin;
\.
COPY public.obsfiscal (codobsfiscal, descricao, descricao2, usuarioins, usuarioalt, datadigitacao, dataatual, liberado, obscompleto, tipo, mercexportacao) FROM '$$PATH$$/10354.dat';

--
-- Data for Name: obsfiscalue; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.obsfiscalue (codobsfiscalue, codobsfiscal, codunidadeembarque, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.obsfiscalue (codobsfiscalue, codobsfiscal, codunidadeembarque, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10355.dat';

--
-- Data for Name: orcdespesa; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.orcdespesa (ano, mes, codunidadeembarque, coditem, valor, percfat, datadigitacao, dataatual, usuarioins, usuarioalt, codorcdespesa, codnegocio) FROM stdin;
\.
COPY public.orcdespesa (ano, mes, codunidadeembarque, coditem, valor, percfat, datadigitacao, dataatual, usuarioins, usuarioalt, codorcdespesa, codnegocio) FROM '$$PATH$$/10356.dat';

--
-- Data for Name: orcreceita; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.orcreceita (ano, mes, codunidadeembarque, valor, peso, datadigitacao, dataatual, usuarioins, usuarioalt, codorcreceita, codnegocio, coditem, vlmargembruta, vlmargemliq) FROM stdin;
\.
COPY public.orcreceita (ano, mes, codunidadeembarque, valor, peso, datadigitacao, dataatual, usuarioins, usuarioalt, codorcreceita, codnegocio, coditem, vlmargembruta, vlmargemliq) FROM '$$PATH$$/10357.dat';

--
-- Data for Name: orcvenda; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.orcvenda (codorcvenda, codcliente, codcondicao, codfilial, codmotorista, codmoeda, codunidadeembarque, data, obs, status, datavalidade, valorfretemot, fretepago, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.orcvenda (codorcvenda, codcliente, codcondicao, codfilial, codmotorista, codmoeda, codunidadeembarque, data, obs, status, datavalidade, valorfretemot, fretepago, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10358.dat';

--
-- Data for Name: ordemcar; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.ordemcar (codordemcar, numero, codfilial, codcliente, codremetente, coddestinatario, numeropedido, data, dataatual, datadigitacao, codcidadeorigem, codcidadedestino, codcoleta, codentrega, codveiculo, codmotorista, codmercadoria, usuarioins, usuarioalt, pesosaida, codunidadeembarque, precotonmotorista, obs, obs1, obs2, obs3, obs4, quantmercadoria, especiemercadoria, tipo, numeroviagem, codgerrisco, codconsignatario, cancelado, datacanc, usuariocanc, codrota, listacoddestinatario, pedidofrete, pedidotransf, pedidocliente2, codespeciemerc, kmini, emitida, codembarcador, impresso, motivocancelado, libgerriscoprop, tnfrete, contratopedido, ordemvenda, protocolo, parceiro, pesocubado, status, datavalidade, previsaochegada, numautgerrisco, dataenvgerrisco, codmotivocanc, codcontrato, codcoletasetor, codentregasetor, codordemcarant, numeroseguro, expseguro, codgerriscoseg, arqxml, percadiantmotorista, precotonadtomot, codfornecedoradiant, horainicarreg, horafimcarreg, statuslog, ordemcli, codcidadeorigem2, codcidadedestino2, codcidadetrocanota, codcoleta2, codentrega2, precotonempresa, freteempresa, fretemotorista, porccomissaoemb, vlcomissaoemb, codgerriscoped, codgerriscop, outrosdescontosmot2, codfrete, checklistpagto, valorapolice, adtointegracao, percadtointegracao, lavagem, abastecimentointerno, checklistrobosat, datafimviagem) FROM stdin;
\.
COPY public.ordemcar (codordemcar, numero, codfilial, codcliente, codremetente, coddestinatario, numeropedido, data, dataatual, datadigitacao, codcidadeorigem, codcidadedestino, codcoleta, codentrega, codveiculo, codmotorista, codmercadoria, usuarioins, usuarioalt, pesosaida, codunidadeembarque, precotonmotorista, obs, obs1, obs2, obs3, obs4, quantmercadoria, especiemercadoria, tipo, numeroviagem, codgerrisco, codconsignatario, cancelado, datacanc, usuariocanc, codrota, listacoddestinatario, pedidofrete, pedidotransf, pedidocliente2, codespeciemerc, kmini, emitida, codembarcador, impresso, motivocancelado, libgerriscoprop, tnfrete, contratopedido, ordemvenda, protocolo, parceiro, pesocubado, status, datavalidade, previsaochegada, numautgerrisco, dataenvgerrisco, codmotivocanc, codcontrato, codcoletasetor, codentregasetor, codordemcarant, numeroseguro, expseguro, codgerriscoseg, arqxml, percadiantmotorista, precotonadtomot, codfornecedoradiant, horainicarreg, horafimcarreg, statuslog, ordemcli, codcidadeorigem2, codcidadedestino2, codcidadetrocanota, codcoleta2, codentrega2, precotonempresa, freteempresa, fretemotorista, porccomissaoemb, vlcomissaoemb, codgerriscoped, codgerriscop, outrosdescontosmot2, codfrete, checklistpagto, valorapolice, adtointegracao, percadtointegracao, lavagem, abastecimentointerno, checklistrobosat, datafimviagem) FROM '$$PATH$$/10359.dat';

--
-- Data for Name: ordemcarlog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.ordemcarlog (codordemcarlog, codordemcar, data, status, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.ordemcarlog (codordemcarlog, codordemcar, data, status, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10360.dat';

--
-- Data for Name: ordemcaroco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.ordemcaroco (codordemcaroco, codordemcar, status, codtipoocorrencia, data, obs, codtipojustificativa, datadigitacao, usuarioins, usuarioalt, dataatual, protocolo, codgerrisco, campoaux1, campoaux2, bcampoaux1, codlogcom) FROM stdin;
\.
COPY public.ordemcaroco (codordemcaroco, codordemcar, status, codtipoocorrencia, data, obs, codtipojustificativa, datadigitacao, usuarioins, usuarioalt, dataatual, protocolo, codgerrisco, campoaux1, campoaux2, bcampoaux1, codlogcom) FROM '$$PATH$$/10361.dat';

--
-- Data for Name: ordemcarstatus; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.ordemcarstatus (codordemcarstatus, codfilial, numero, status, dataatual, usuarioins, usuarioalt, datadigitacao, codunidadeembarque) FROM stdin;
\.
COPY public.ordemcarstatus (codordemcarstatus, codfilial, numero, status, dataatual, usuarioins, usuarioalt, datadigitacao, codunidadeembarque) FROM '$$PATH$$/10362.dat';

--
-- Data for Name: ordemcompra; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.ordemcompra (codordemcompra, data, codfornecedor, codcondicao, datavencimento, codunidadeembarque, codfilial, obs, nffatura, usuarioins, usuarioalt, datadigitacao, dataatual, usuarioautorizou, finalizada, dataautorizacao, afaturar, despesa, codcot, prazoentrega, frete, usuariosolicaut, usuarioaut, dataaut, historico, tipo, codveiculo, codmotorista, km, cancelado, solitante, gerarcreddeb, vendedor, fonecontato, datapreventrega, usuariosaviso, codcontrato, tipocompra, codmotivocanc, datacanc, usuariocanc, detcanc, valorantescanc, obsautorizacao, codveiculoacidente, datavalidade, codcfop, codespeciedoc, coddepartamento, codespeciemerc, codcoleta, codfilialsetor) FROM stdin;
\.
COPY public.ordemcompra (codordemcompra, data, codfornecedor, codcondicao, datavencimento, codunidadeembarque, codfilial, obs, nffatura, usuarioins, usuarioalt, datadigitacao, dataatual, usuarioautorizou, finalizada, dataautorizacao, afaturar, despesa, codcot, prazoentrega, frete, usuariosolicaut, usuarioaut, dataaut, historico, tipo, codveiculo, codmotorista, km, cancelado, solitante, gerarcreddeb, vendedor, fonecontato, datapreventrega, usuariosaviso, codcontrato, tipocompra, codmotivocanc, datacanc, usuariocanc, detcanc, valorantescanc, obsautorizacao, codveiculoacidente, datavalidade, codcfop, codespeciedoc, coddepartamento, codespeciemerc, codcoleta, codfilialsetor) FROM '$$PATH$$/10363.dat';

--
-- Data for Name: ordemcompraadiant; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.ordemcompraadiant (codordemcompraadiant, codordemcompra, codmotorista, valor, obs, usuarioins, datadigitacao, usuarioalt, dataatual, datavencimento) FROM stdin;
\.
COPY public.ordemcompraadiant (codordemcompraadiant, codordemcompra, codmotorista, valor, obs, usuarioins, datadigitacao, usuarioalt, dataatual, datavencimento) FROM '$$PATH$$/10364.dat';

--
-- Data for Name: ordemcomprapedext; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.ordemcomprapedext (codordemcomprapedext, codordemcompra, numpedidoext, valor, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.ordemcomprapedext (codordemcomprapedext, codordemcompra, numpedidoext, valor, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10365.dat';

--
-- Data for Name: pais; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pais (codpais, nome, codexterno, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.pais (codpais, nome, codexterno, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10366.dat';

--
-- Data for Name: parametro; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.parametro (codoleodiesel, codproprietario, codgasolina, codcidadedef, codclientedef, valordiaria, verificaconhecimento, codfilialdef, verificanominal, intervaloacerto, verificaadiant, dataexportacao, chequeporfornecedor, gerenciamneto, gerenciamento, pis, cofins, impostorenda, valoruferms, codmudancacavalo, serie, comissao, abonomaximo, cpmf, codmotterdef, dirpadraoexportacao, dirpadraoimportacao, enviaemail, host, emailorig, nomeorig, emaildest, useridnosmtp, controlastatusconf, icmsembutido, prefixoarquivo, salariobase, codfilialfrota, codsupergrupofrota, matriz, taxainss, dirimportacaoext, direxportacaoext, tipoempresa, codcondicaoavista, codfornecedordescconc, codclientedescobtido, coditemjurospagos, coditemjurosrecebidos, coditemdescontoconc, coditemdescontoobtido, verificaext, tempoloopext, codfabricaext, taxairrf, valorisentoirrf, controlastatuscheque, taxaseguro, ipservidorftp, usuarioservidorftp, senhaservidorftp, codunidadeembarque, diretoriobancos, verificacnpjcpfcliente, ativaexpimp, intervaloexpimp, servidorftpexpimp, usuarioftpexpimp, senhaftpexpimp, diretorioftpexp, diretorioftpimp, valorisentoinss, codgasolina1, codoleodiesel1, taxamulta, taxajuros, diretoriofotos, taxasestsenat, taxairrf1, valordedirrf, valordedirrf1, valorirrf, valorirrf1, senhasmtp, diretoriofotosftp, usuariosatcenter, senhasatcenter, acrescimoprecovenda, autenticaservidorsmtp, permitedespesascarretas, codfornecedorfrota, importacontaspagar, importaviagemgeral, importapneus, valorbasemaxinss, valormaxinss, taxainssempresa, taxabasecalculoinss, taxabasecalculoirrf, valorminimoirrf, usaplanofinanceiro, coditemfpagarctrc, coditemfpagaradto, coditemfpagarfnc, verifcnpjcpfdupl, percmaxadiant, exigepedviag, exigesaldopedviag, exigenotafiscalviag, kmportariapneus, impressao, logogrande, datamaxima, manutprevdigdiesel, textocartacobranca, horasantecdtvenc, estoqueoffline, diasliberadofinanceiro, verificalimitemotorista, veriflimitecliente, exigelibdupp, exigeautnota, verifusuarioconta, verifusuariogrupo, taxacsll, exigeunidembnota, verifinscestcli, verifinscestfor, codveiculonaoinf, codcidadediversas, cargafracionada, seriemanif, pedidomanif, solicobsbaixacp, codtipoveicdiv, dataminima, coditemreceitacheque, versaocte, cteemailerro, cteemailret, verifusufilial, verifusuitemreceita, valorirrf2, valorirrf3, valorirrf4, valordedirrf2, valordedirrf3, valordedirrf4, taxairrf2, taxairrf3, taxairrf4, verifinscestprop, codgasolina2, codoleodiesel2, codgasolina3, codoleodiesel3, codgasolina4, codoleodiesel4, codgasolina5, codoleodiesel5, portasmtp, usarsmtpssl, codparametro, diretoriodocs, mdfeemailerro, mdfeemailret, servimap, useridnoimap, senhaimap, portaimap, usarimapssl, senhasmtp2, usuarioalt, dataatual, acertominimo, exigelibdupr, valordedinss, valormaxinss2, taxainss2, valordedinss2, valormaxinss3, taxainss3, valordedinss3, valormaxinss4, taxainss4, valordedinss4) FROM stdin;
\.
COPY public.parametro (codoleodiesel, codproprietario, codgasolina, codcidadedef, codclientedef, valordiaria, verificaconhecimento, codfilialdef, verificanominal, intervaloacerto, verificaadiant, dataexportacao, chequeporfornecedor, gerenciamneto, gerenciamento, pis, cofins, impostorenda, valoruferms, codmudancacavalo, serie, comissao, abonomaximo, cpmf, codmotterdef, dirpadraoexportacao, dirpadraoimportacao, enviaemail, host, emailorig, nomeorig, emaildest, useridnosmtp, controlastatusconf, icmsembutido, prefixoarquivo, salariobase, codfilialfrota, codsupergrupofrota, matriz, taxainss, dirimportacaoext, direxportacaoext, tipoempresa, codcondicaoavista, codfornecedordescconc, codclientedescobtido, coditemjurospagos, coditemjurosrecebidos, coditemdescontoconc, coditemdescontoobtido, verificaext, tempoloopext, codfabricaext, taxairrf, valorisentoirrf, controlastatuscheque, taxaseguro, ipservidorftp, usuarioservidorftp, senhaservidorftp, codunidadeembarque, diretoriobancos, verificacnpjcpfcliente, ativaexpimp, intervaloexpimp, servidorftpexpimp, usuarioftpexpimp, senhaftpexpimp, diretorioftpexp, diretorioftpimp, valorisentoinss, codgasolina1, codoleodiesel1, taxamulta, taxajuros, diretoriofotos, taxasestsenat, taxairrf1, valordedirrf, valordedirrf1, valorirrf, valorirrf1, senhasmtp, diretoriofotosftp, usuariosatcenter, senhasatcenter, acrescimoprecovenda, autenticaservidorsmtp, permitedespesascarretas, codfornecedorfrota, importacontaspagar, importaviagemgeral, importapneus, valorbasemaxinss, valormaxinss, taxainssempresa, taxabasecalculoinss, taxabasecalculoirrf, valorminimoirrf, usaplanofinanceiro, coditemfpagarctrc, coditemfpagaradto, coditemfpagarfnc, verifcnpjcpfdupl, percmaxadiant, exigepedviag, exigesaldopedviag, exigenotafiscalviag, kmportariapneus, impressao, logogrande, datamaxima, manutprevdigdiesel, textocartacobranca, horasantecdtvenc, estoqueoffline, diasliberadofinanceiro, verificalimitemotorista, veriflimitecliente, exigelibdupp, exigeautnota, verifusuarioconta, verifusuariogrupo, taxacsll, exigeunidembnota, verifinscestcli, verifinscestfor, codveiculonaoinf, codcidadediversas, cargafracionada, seriemanif, pedidomanif, solicobsbaixacp, codtipoveicdiv, dataminima, coditemreceitacheque, versaocte, cteemailerro, cteemailret, verifusufilial, verifusuitemreceita, valorirrf2, valorirrf3, valorirrf4, valordedirrf2, valordedirrf3, valordedirrf4, taxairrf2, taxairrf3, taxairrf4, verifinscestprop, codgasolina2, codoleodiesel2, codgasolina3, codoleodiesel3, codgasolina4, codoleodiesel4, codgasolina5, codoleodiesel5, portasmtp, usarsmtpssl, codparametro, diretoriodocs, mdfeemailerro, mdfeemailret, servimap, useridnoimap, senhaimap, portaimap, usarimapssl, senhasmtp2, usuarioalt, dataatual, acertominimo, exigelibdupr, valordedinss, valormaxinss2, taxainss2, valordedinss2, valormaxinss3, taxainss3, valordedinss3, valormaxinss4, taxainss4, valordedinss4) FROM '$$PATH$$/10367.dat';

--
-- Data for Name: parametroempresa; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.parametroempresa (descricao, tipo, valor, obs, usuarioalt, dataalt, codparametroempresa) FROM stdin;
\.
COPY public.parametroempresa (descricao, tipo, valor, obs, usuarioalt, dataalt, codparametroempresa) FROM '$$PATH$$/10368.dat';

--
-- Data for Name: pedido; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedido (numero, codcliente, coddestinatario, codremetente, codmercadoria, codfilial, codembarcador, precotonempresa, adiantamentoempresa, precotonmotorista, adiantamentomotorista, comissao, taxaquebra, quantidadequebra, tipodesconto, tipotolerancia, pagaicms, porcicms, totalpedido, precokgmercadoria, precotonagregado, icmsembutido, pedagioembutidofrete, precotonfiscal, numerocontrato, tempo, pesosaidamotorista, data, issembutido, codunidadeembarque, dataatual, percredvlicms, dataexportacao, liberado, toleranciaestadia, valorhoraestadia, quebraarmazem, quebranavio, codcidadeorigem, codcidadedestino, descontainsssaldomot, descontainsssaldo, finalizado, codcoleta, codentrega, calculainss, natureza, descsegurosaldomot, taxaseguro, obs, percredbaseicms, estadiapesochegada, calculairrf, calculasestsenat, descontaicmssaldoempresa, descquebrasaldoemp, precotonpedagio, obs1, obs2, pedidocliente, pedclientetransf, entradasaida, creditodebito, pedagioembfretemot, codconsignatario, obs3, obs4, obs5, obs6, obs7, pedagiocalceixo, taxaiss, especiemercadoria, codveiculo, codmotorista, numeroseguro, serie, usuarioins, usuarioalt, pedagioembffiscal, toleranciapesocheg, datadigitacao, diasfaturamento, valorrastreamento, descontaisssaldoemp, kmrodado, quantmercadoria, codcidaderef, fretepago, codprodutor, descsegurosaldo, outrosdescontosmot, baseicmsdireta, baseissdireta, descpissaldoemp, desccofinssaldoemp, desccsllsaldoemp, somarissfatsaldo, calculainssempresa, freteempresa, taxamercfrete, porcadvalor, cargadescarga, valorseccat, despesaextra, faturaicmsfinal, valorpedagio, valorentrega, codgerrisco, fretemotorista, pesominimo, kmterra, datacoleta, cargadescargaemb, balsaemb, rastreadoremb, codtiporastreamento, codpropredespacho, codcotfrete, contatocliente, tributaimpostos, expseguro, classificacaoembfreteemp, segurorctrc, usuariolib, datalib, precotonmotoristamax, codobsfiscal, taxaseguro2, descseguro2saldo, descseguro2saldomot, precotonempcomp, estadiaembutidafrete, precotonproprio, numeroconta, faturaautomatica, precotonterceiro, precotonmotpf, precokgmerc, precokgmercquebra, codtipopagto, precokgmercseg, nomeseguradora, numeroapolice, respseguro, resppedagio, tipopedagio, codfornecedor, venccontrpedagio, clientepagasaldomotorista, cddunidademedida, codunidademedida, permitefaturar, horacoleta, codtipocarroceria, numeronotafiscal, emailcte, faturapesochegada, codobsfiscal2, percmargemminpj, percmargemminpf, percmargemminfrota, percmargemminagregado, codespeciemerc, checklist, precotonpropriomax, precotonmotpfmax, precotonagregadomax, precotonagregmisto, precotonagregmistomax, cadencia, datafimcoleta, premioseguro, codclientecont, exigeautgerrisco, codrota, pedagioembbaseicms, margemmaxfrota, margemminfrota, margemminfrete, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, datalibmerc, cobrasegurocliente, prazodescarga, precotonicms, cnd, datavalidade, precotonclassificacao, cndtransp, validadecndtransp, valorhoraestadiamot, seccatembutidofrete, tipocte, retroagirestadia, exigeordemcar, tipofreteempresa, valorcontainer, respcontainer, numerocartaopedagio, percadmercsegurada, tipovalidacaoxmlnfe, valorbalsa, adtomot2, veiculoidademaxima, pagaiss, outrosdescontosmot2, mercadoriapaga, codcolenttrocanota, premioseguro2, enventregacte, envcoletacte, tpopecrepom, adiantamentomotorista2, porcadicquebra, codcoleta2, codentrega2, tipocalcclassif, pedidocliente2, codcfop, tipodata, baseicms, valoricms, tagpesonfe, codembarcadorcom, codorcvenda, porcbalsa, pagar, cnpjseguradora, codmotivocanc, prazominordemcar, numeropedidoorig, listacompprest, fvalorareceber, ftotalprest, tipocadencia, fbaseicms, fsaldoemp, codcontrato, codclienteop, codrotamanif, codcoletasetor, codentregasetor, tpmodal, codclienteopfis, sm_localorigem, sm_localdestino, sm_valores, sm_obs, sm_obs2, adiantagregado, codtipotransporteantt, percursocompl, checklistnfe, codgerriscooppf, codgerriscooppj, codgerriscopedpf, codgerriscopedpj, sm_transportadora, prepago, ordemcli, codcidadeorigem2, codcidadedestino2, codcidadetrocanota, emailctedest, obsordemcar, marcavoltransp, codrotasolicmonit, indaltodesemp, codfrete, numeropedidoant, indicepesoliq, fchecklistcte, taxaseguroproprio, taxaseguroagregado, taxaseguroagregmisto, codfornecedorfomento, codmotivofin, valorabast, percabast, checklistpagto, codcondicao, prazovencimento, permitepagarsaldofrota, taxairpj, codmoeda, codtiporecto, checklistrobosat, tipofretemotorista, obsfaturarec, codimposto, codimpostonfe, checklistdoc, codnbs) FROM stdin;
\.
COPY public.pedido (numero, codcliente, coddestinatario, codremetente, codmercadoria, codfilial, codembarcador, precotonempresa, adiantamentoempresa, precotonmotorista, adiantamentomotorista, comissao, taxaquebra, quantidadequebra, tipodesconto, tipotolerancia, pagaicms, porcicms, totalpedido, precokgmercadoria, precotonagregado, icmsembutido, pedagioembutidofrete, precotonfiscal, numerocontrato, tempo, pesosaidamotorista, data, issembutido, codunidadeembarque, dataatual, percredvlicms, dataexportacao, liberado, toleranciaestadia, valorhoraestadia, quebraarmazem, quebranavio, codcidadeorigem, codcidadedestino, descontainsssaldomot, descontainsssaldo, finalizado, codcoleta, codentrega, calculainss, natureza, descsegurosaldomot, taxaseguro, obs, percredbaseicms, estadiapesochegada, calculairrf, calculasestsenat, descontaicmssaldoempresa, descquebrasaldoemp, precotonpedagio, obs1, obs2, pedidocliente, pedclientetransf, entradasaida, creditodebito, pedagioembfretemot, codconsignatario, obs3, obs4, obs5, obs6, obs7, pedagiocalceixo, taxaiss, especiemercadoria, codveiculo, codmotorista, numeroseguro, serie, usuarioins, usuarioalt, pedagioembffiscal, toleranciapesocheg, datadigitacao, diasfaturamento, valorrastreamento, descontaisssaldoemp, kmrodado, quantmercadoria, codcidaderef, fretepago, codprodutor, descsegurosaldo, outrosdescontosmot, baseicmsdireta, baseissdireta, descpissaldoemp, desccofinssaldoemp, desccsllsaldoemp, somarissfatsaldo, calculainssempresa, freteempresa, taxamercfrete, porcadvalor, cargadescarga, valorseccat, despesaextra, faturaicmsfinal, valorpedagio, valorentrega, codgerrisco, fretemotorista, pesominimo, kmterra, datacoleta, cargadescargaemb, balsaemb, rastreadoremb, codtiporastreamento, codpropredespacho, codcotfrete, contatocliente, tributaimpostos, expseguro, classificacaoembfreteemp, segurorctrc, usuariolib, datalib, precotonmotoristamax, codobsfiscal, taxaseguro2, descseguro2saldo, descseguro2saldomot, precotonempcomp, estadiaembutidafrete, precotonproprio, numeroconta, faturaautomatica, precotonterceiro, precotonmotpf, precokgmerc, precokgmercquebra, codtipopagto, precokgmercseg, nomeseguradora, numeroapolice, respseguro, resppedagio, tipopedagio, codfornecedor, venccontrpedagio, clientepagasaldomotorista, cddunidademedida, codunidademedida, permitefaturar, horacoleta, codtipocarroceria, numeronotafiscal, emailcte, faturapesochegada, codobsfiscal2, percmargemminpj, percmargemminpf, percmargemminfrota, percmargemminagregado, codespeciemerc, checklist, precotonpropriomax, precotonmotpfmax, precotonagregadomax, precotonagregmisto, precotonagregmistomax, cadencia, datafimcoleta, premioseguro, codclientecont, exigeautgerrisco, codrota, pedagioembbaseicms, margemmaxfrota, margemminfrota, margemminfrete, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, datalibmerc, cobrasegurocliente, prazodescarga, precotonicms, cnd, datavalidade, precotonclassificacao, cndtransp, validadecndtransp, valorhoraestadiamot, seccatembutidofrete, tipocte, retroagirestadia, exigeordemcar, tipofreteempresa, valorcontainer, respcontainer, numerocartaopedagio, percadmercsegurada, tipovalidacaoxmlnfe, valorbalsa, adtomot2, veiculoidademaxima, pagaiss, outrosdescontosmot2, mercadoriapaga, codcolenttrocanota, premioseguro2, enventregacte, envcoletacte, tpopecrepom, adiantamentomotorista2, porcadicquebra, codcoleta2, codentrega2, tipocalcclassif, pedidocliente2, codcfop, tipodata, baseicms, valoricms, tagpesonfe, codembarcadorcom, codorcvenda, porcbalsa, pagar, cnpjseguradora, codmotivocanc, prazominordemcar, numeropedidoorig, listacompprest, fvalorareceber, ftotalprest, tipocadencia, fbaseicms, fsaldoemp, codcontrato, codclienteop, codrotamanif, codcoletasetor, codentregasetor, tpmodal, codclienteopfis, sm_localorigem, sm_localdestino, sm_valores, sm_obs, sm_obs2, adiantagregado, codtipotransporteantt, percursocompl, checklistnfe, codgerriscooppf, codgerriscooppj, codgerriscopedpf, codgerriscopedpj, sm_transportadora, prepago, ordemcli, codcidadeorigem2, codcidadedestino2, codcidadetrocanota, emailctedest, obsordemcar, marcavoltransp, codrotasolicmonit, indaltodesemp, codfrete, numeropedidoant, indicepesoliq, fchecklistcte, taxaseguroproprio, taxaseguroagregado, taxaseguroagregmisto, codfornecedorfomento, codmotivofin, valorabast, percabast, checklistpagto, codcondicao, prazovencimento, permitepagarsaldofrota, taxairpj, codmoeda, codtiporecto, checklistrobosat, tipofretemotorista, obsfaturarec, codimposto, codimpostonfe, checklistdoc, codnbs) FROM '$$PATH$$/10369.dat';

--
-- Data for Name: pedidodesp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedidodesp (codpedidodesp, numero, codtipodesp, obs, valorbase, valoracerto, embfreteemp, descontasaldomot, faturar, usuarioins, datadigitacao, usuarioalt, dataatual, basecalculo, porc, porc1, cst, pagar, descontasaldoemp, valorppt, percentual, codfornecedor, codcliente, listatipotransportador) FROM stdin;
\.
COPY public.pedidodesp (codpedidodesp, numero, codtipodesp, obs, valorbase, valoracerto, embfreteemp, descontasaldomot, faturar, usuarioins, datadigitacao, usuarioalt, dataatual, basecalculo, porc, porc1, cst, pagar, descontasaldoemp, valorppt, percentual, codfornecedor, codcliente, listatipotransportador) FROM '$$PATH$$/10370.dat';

--
-- Data for Name: pedidodest; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedidodest (codpedidodest, codmercadoria, coddestinatario, dataini, datafim, finalizado, totalpedido, obs, fazenda, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.pedidodest (codpedidodest, codmercadoria, coddestinatario, dataini, datafim, finalizado, totalpedido, obs, fazenda, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10371.dat';

--
-- Data for Name: pedidodoc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedidodoc (codpedidodoc, numero, tabela, codtipodoc, obrigatorio, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.pedidodoc (codpedidodoc, numero, tabela, codtipodoc, obrigatorio, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10372.dat';

--
-- Data for Name: pedidogrop; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedidogrop (codpedidogrop, codgerriscoop, numero, ordem, opcao, tipo, listaop, listaop1, apelido, descricao, filtrodefault, usuarioins, usuarioalt, datadigitacao, dataalt, filtrofixo, operacao, listatipoantt, veiculoproprio) FROM stdin;
\.
COPY public.pedidogrop (codpedidogrop, codgerriscoop, numero, ordem, opcao, tipo, listaop, listaop1, apelido, descricao, filtrodefault, usuarioins, usuarioalt, datadigitacao, dataalt, filtrofixo, operacao, listatipoantt, veiculoproprio) FROM '$$PATH$$/10373.dat';

--
-- Data for Name: pedidoitem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedidoitem (codpedidoitem, numero, coditem, obs, peso, quant, valorunit, usuarioins, datadigitacao, usuarioalt, dataatual, tolerancia, porcaliqicmssubstrib, porcpautaicms, porcredbaseicms, porcicms, csticms, cstpis, cstcofins, codcfop, codobsfiscal, codobsfiscal2, obsfiscal, pedidocliente, obsclassificacao, obsnfe, codfornecedorclassificacao, unidade, unidadetrib, cbenef, codimposto, codimpostonfe, codnbs) FROM stdin;
\.
COPY public.pedidoitem (codpedidoitem, numero, coditem, obs, peso, quant, valorunit, usuarioins, datadigitacao, usuarioalt, dataatual, tolerancia, porcaliqicmssubstrib, porcpautaicms, porcredbaseicms, porcicms, csticms, cstpis, cstcofins, codcfop, codobsfiscal, codobsfiscal2, obsfiscal, pedidocliente, obsclassificacao, obsnfe, codfornecedorclassificacao, unidade, unidadetrib, cbenef, codimposto, codimpostonfe, codnbs) FROM '$$PATH$$/10374.dat';

--
-- Data for Name: pedidolog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedidolog (numero, data, codtipoobs, usuarioins, usuarioalt, obs, pendente, dataatual, codpedidolog, datainclusao, totalpedido) FROM stdin;
\.
COPY public.pedidolog (numero, data, codtipoobs, usuarioins, usuarioalt, obs, pendente, dataatual, codpedidolog, datainclusao, totalpedido) FROM '$$PATH$$/10375.dat';

--
-- Data for Name: pedidomotorista; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedidomotorista (numero, codmotorista, valor, percentual, dataatual, codpedidomotorista, usuarioins, usuarioalt, datainclusao) FROM stdin;
\.
COPY public.pedidomotorista (numero, codmotorista, valor, percentual, dataatual, codpedidomotorista, usuarioins, usuarioalt, datainclusao) FROM '$$PATH$$/10376.dat';

--
-- Data for Name: pedidonota; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedidonota (numero, numeronota, serie, data, modelo, valor, peso, quantidade, codmercadoria, especiemercadoria, dataentrega, baseicms, valoricms, basesubsttrib, valorsubsttrib, codcfop, chavenfe, pinsuframa, datasaidanf, pesocubado, taxaseguro, valorseguro, codtipodoc, usuarioins, datadigitacao, usuarioalt, dataatual, codpedidonota) FROM stdin;
\.
COPY public.pedidonota (numero, numeronota, serie, data, modelo, valor, peso, quantidade, codmercadoria, especiemercadoria, dataentrega, baseicms, valoricms, basesubsttrib, valorsubsttrib, codcfop, chavenfe, pinsuframa, datasaidanf, pesocubado, taxaseguro, valorseguro, codtipodoc, usuarioins, datadigitacao, usuarioalt, dataatual, codpedidonota) FROM '$$PATH$$/10377.dat';

--
-- Data for Name: pedidorec; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedidorec (codpedidorec, numero, nome, listaue, listaun, listafil, alterar, utilizar, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.pedidorec (codpedidorec, numero, nome, listaue, listaun, listafil, alterar, utilizar, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10378.dat';

--
-- Data for Name: pedidorota; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedidorota (codpedidorota, numero, codrota, codfornecedor, codgerrisco, precotonpedagio, valorpedagio, datadigitacao, dataatual, usuarioins, usuarioalt, tipopedagio, codgerriscor) FROM stdin;
\.
COPY public.pedidorota (codpedidorota, numero, codrota, codfornecedor, codgerrisco, precotonpedagio, valorpedagio, datadigitacao, dataatual, usuarioins, usuarioalt, tipopedagio, codgerriscor) FROM '$$PATH$$/10379.dat';

--
-- Data for Name: pedidoval; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedidoval (codpedidoval, numero, datavalidade, tipodata, precotonpedagio, precotonempresa, toleranciaestadia, adiantamentoempresa, precokgmercadoria, precotonfiscal, valorhoraestadia, precotonmotorista, precotonmotpf, precotonproprio, precotonagregado, precotonagregmisto, adiantamentomotorista, adiantamentomotorista2, comissao, pesosaidamotorista, precotonmotoristamax, precotonmotpfmax, precotonpropriomax, precotonagregadomax, precotonagregmistomax, margemminfrota, margemmaxfrota, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, precotonclassificacao, precotonempcomp, usuarioins, usuarioalt, datadigitacao, dataalt, obs, precotonicms, adiantagregado, listatipocarroceria, listatipoveiculo, listaveiculo, freteempresa, taxaseguroproprio, taxaseguroagregado, taxaseguroagregmisto) FROM stdin;
\.
COPY public.pedidoval (codpedidoval, numero, datavalidade, tipodata, precotonpedagio, precotonempresa, toleranciaestadia, adiantamentoempresa, precokgmercadoria, precotonfiscal, valorhoraestadia, precotonmotorista, precotonmotpf, precotonproprio, precotonagregado, precotonagregmisto, adiantamentomotorista, adiantamentomotorista2, comissao, pesosaidamotorista, precotonmotoristamax, precotonmotpfmax, precotonpropriomax, precotonagregadomax, precotonagregmistomax, margemminfrota, margemmaxfrota, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, precotonclassificacao, precotonempcomp, usuarioins, usuarioalt, datadigitacao, dataalt, obs, precotonicms, adiantagregado, listatipocarroceria, listatipoveiculo, listaveiculo, freteempresa, taxaseguroproprio, taxaseguroagregado, taxaseguroagregmisto) FROM '$$PATH$$/10380.dat';

--
-- Data for Name: pedidovalmot; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pedidovalmot (codpedidovalmot, numero, datavalidade, tipodata, precotonmotorista, precotonmotpf, precotonproprio, precotonagregado, precotonagregmisto, adiantamentomotorista, adiantamentomotorista2, fretemotorista, precotonmotoristamax, precotonmotpfmax, precotonpropriomax, precotonagregadomax, precotonagregmistomax, listatipocarroceria, listatipocarroceria2, listatipoveiculo, listatipoveiculo2, listaveiculo, listaveiculo2, listaprop, listaprop2, listamot, listamot2, obs, usuarioins, usuarioalt, datadigitacao, dataalt, taxaseguroproprio, taxaseguroagregado, taxaseguroagregmisto) FROM stdin;
\.
COPY public.pedidovalmot (codpedidovalmot, numero, datavalidade, tipodata, precotonmotorista, precotonmotpf, precotonproprio, precotonagregado, precotonagregmisto, adiantamentomotorista, adiantamentomotorista2, fretemotorista, precotonmotoristamax, precotonmotpfmax, precotonpropriomax, precotonagregadomax, precotonagregmistomax, listatipocarroceria, listatipocarroceria2, listatipoveiculo, listatipoveiculo2, listaveiculo, listaveiculo2, listaprop, listaprop2, listamot, listamot2, obs, usuarioins, usuarioalt, datadigitacao, dataalt, taxaseguroproprio, taxaseguroagregado, taxaseguroagregmisto) FROM '$$PATH$$/10381.dat';

--
-- Data for Name: pessoaoco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pessoaoco (codpessoaoco, data, codtipopessoaoco, descricao, status, obs, lat, lon, tabela, chavetabela, cnpjcpf, inscricaoestadual, celular, codpessoaocows, codviagem, statusviagem, usuarioins, usuarioalt, datains, dataalt) FROM stdin;
\.
COPY public.pessoaoco (codpessoaoco, data, codtipopessoaoco, descricao, status, obs, lat, lon, tabela, chavetabela, cnpjcpf, inscricaoestadual, celular, codpessoaocows, codviagem, statusviagem, usuarioins, usuarioalt, datains, dataalt) FROM '$$PATH$$/10382.dat';

--
-- Data for Name: pneu; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pneu (codpneu, codveiculo, codmodelo, codfabricante, codlocal, descricao, notafiscal, datacompra, codfornecedor, datafimvida, obs, valor, codstatuspneu, dataatual, codtipoborracha, codpneufimvida, ano, numeroserie, lote, kmcorreto, medida, usuarioins, datadigitacao, usuarioalt, liberado, codinternovenda, codinternocompra, codmotoristafimvida) FROM stdin;
\.
COPY public.pneu (codpneu, codveiculo, codmodelo, codfabricante, codlocal, descricao, notafiscal, datacompra, codfornecedor, datafimvida, obs, valor, codstatuspneu, dataatual, codtipoborracha, codpneufimvida, ano, numeroserie, lote, kmcorreto, medida, usuarioins, datadigitacao, usuarioalt, liberado, codinternovenda, codinternocompra, codmotoristafimvida) FROM '$$PATH$$/10383.dat';

--
-- Data for Name: pneufimvida; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pneufimvida (codpneufimvida, descricao, dataatual, normal, liberado, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.pneufimvida (codpneufimvida, descricao, dataatual, normal, liberado, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10384.dat';

--
-- Data for Name: pneumov; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pneumov (codpneu, datamov, codtipoevento, codlocal, codveiculo, km, obs, valor, codcavalo, kmcavalo, dataatual, profundidadesulco, codtipoborracha, vida, profsulcoesq, profsulcodir, usuarioins, usuarioalt, datadigitacao, codfornecedor, numeronota, pressao, codpneumov, nomenclatura, codinterno, codstatuspneu, codfabricante, codmodelo, codmotoristaveic, kmlocalini, kmlocalfim, obslocal, profsulcoesqint, profsulcodirint) FROM stdin;
\.
COPY public.pneumov (codpneu, datamov, codtipoevento, codlocal, codveiculo, km, obs, valor, codcavalo, kmcavalo, dataatual, profundidadesulco, codtipoborracha, vida, profsulcoesq, profsulcodir, usuarioins, usuarioalt, datadigitacao, codfornecedor, numeronota, pressao, codpneumov, nomenclatura, codinterno, codstatuspneu, codfabricante, codmodelo, codmotoristaveic, kmlocalini, kmlocalfim, obslocal, profsulcoesqint, profsulcodirint) FROM '$$PATH$$/10385.dat';

--
-- Data for Name: pneumovmot; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pneumovmot (codpneumovmot, codpneu, codpneumov, datamov, codmotorista, tempo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.pneumovmot (codpneumovmot, codpneu, codpneumov, datamov, codmotorista, tempo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10386.dat';

--
-- Data for Name: posicao; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.posicao (codposicao, coddeposito, descricao, prateleira, lado, rua, capcarga, liberado, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.posicao (codposicao, coddeposito, descricao, prateleira, lado, rua, capcarga, liberado, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10387.dat';

--
-- Data for Name: processo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.processo (codprocesso, codcidade, codfilial, codforadvogado, nomeadvogado, codforautor, codforreu, natureza, numprocesso, vara, datadistribuicao, valorpleiteado, valoratualizado, obs, faseatual, dataatual, usuarioins, usuarioalt, codforadvogadoadv, encerrado, datafinal, codtipoprocesso, codforescritorio, nomeadvogadoadv, coddepartamento, datadigitacao, codmotorista, numeropasta, foneadvogado, emailadvogado, codcidadevara, datavencimentocontrato, codtiporisco, codfaseprocesso) FROM stdin;
\.
COPY public.processo (codprocesso, codcidade, codfilial, codforadvogado, nomeadvogado, codforautor, codforreu, natureza, numprocesso, vara, datadistribuicao, valorpleiteado, valoratualizado, obs, faseatual, dataatual, usuarioins, usuarioalt, codforadvogadoadv, encerrado, datafinal, codtipoprocesso, codforescritorio, nomeadvogadoadv, coddepartamento, datadigitacao, codmotorista, numeropasta, foneadvogado, emailadvogado, codcidadevara, datavencimentocontrato, codtiporisco, codfaseprocesso) FROM '$$PATH$$/10388.dat';

--
-- Data for Name: processolog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.processolog (codprocesso, data, fase, obs, realizado, dataatual, usuarioins, usuarioalt, datadigitacao, datacorreio, enviacorreio, codprocessolog, codfaseprocesso, valoratualizado, valorpleiteado) FROM stdin;
\.
COPY public.processolog (codprocesso, data, fase, obs, realizado, dataatual, usuarioins, usuarioalt, datadigitacao, datacorreio, enviacorreio, codprocessolog, codfaseprocesso, valoratualizado, valorpleiteado) FROM '$$PATH$$/10389.dat';

--
-- Data for Name: progfrete; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.progfrete (codprogfrete, codcliente, codremetente, codcoleta, coddestinatario, codentrega, codmercadoria, data, obs, status, dataalt, usuarioalt, datains, usuarioins, totalpeso, totalpesocubico, totalviagens, dataini, datafim, justificativa) FROM stdin;
\.
COPY public.progfrete (codprogfrete, codcliente, codremetente, codcoleta, coddestinatario, codentrega, codmercadoria, data, obs, status, dataalt, usuarioalt, datains, usuarioins, totalpeso, totalpesocubico, totalviagens, dataini, datafim, justificativa) FROM '$$PATH$$/10390.dat';

--
-- Data for Name: progfretedia; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.progfretedia (codprogfretedia, codprogfrete, data, peso, pesocubico, dataalt, usuarioalt, datains, usuarioins) FROM stdin;
\.
COPY public.progfretedia (codprogfretedia, codprogfrete, data, peso, pesocubico, dataalt, usuarioalt, datains, usuarioins) FROM '$$PATH$$/10391.dat';

--
-- Data for Name: progfreteped; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.progfreteped (codprogfreteped, codprogfrete, numeropedido, dataalt, usuarioalt, datains, usuarioins) FROM stdin;
\.
COPY public.progfreteped (codprogfreteped, codprogfrete, numeropedido, dataalt, usuarioalt, datains, usuarioins) FROM '$$PATH$$/10392.dat';

--
-- Data for Name: proprietario; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietario (codproprietario, nome, contato, endereco, complemento, cep, codcidade, inscricaoestadual, fone, fax, email, cgccpf, dataatual, liberadorequisicao, percacrescimo, dataexportacao, liberado, codcliente, codfornecedor, valordiesel, celular, senha, datainclusao, agregado, obs, codproprietarioprincipal, percfrete, percfretecontr, agencia, conta, banco, titular, cei, rg, nomepai, nomemae, usuarioins, usuarioalt, usuariolib, bairro, numero, tipotributacao, descsegurosaldomot, rntrc, restricoes, receita, codbanco, codarrendatario, datavencarrendatario, dataemissaorg, adtomotbloqueado, limitecredito, orgaorg, datanascimento, validaderntrc, titularcnpjcpf, obs2, contacontabil, dataultsenha, bloqueadoadm, databloqueio, obsbloq, email1, datavenccadastro, tipoconta, tipoantt, sexo, nacionalidade, operadoracel, finalidadecredito, statusrntrc, imprimecartafrete, tipoenvioxml, emailcte, codexterno, codfornpag, codcidadenatural, codtipoproprietario, vlinsssalario, enviaris, cnh, validadecarteira, cathabilitacao, codcidadecnh, dataprimeiracnh, dataemissaocnh, escolaridade, estadocivil, chlistopcoes, codmotivobloqueio, obsbloqueio, usuariobloqueio, taxaseguro, codgerriscoop, codgerriscoped, valoradto, percadto, obspagtoviag, filiallib, checklist, percagreg1, percagreg2, percagreg3, chavepix, qrcodepix, diastrocasenha, tipoenviolink, tipochavepix, senhainteg, natjur, datasitcad, statuscad, checklistpagto, percabast, codgerriscoabast, checklistmod, adiantamentomotorista, adiantamentomotorista2, validaderntrcbackup, etnia) FROM stdin;
\.
COPY public.proprietario (codproprietario, nome, contato, endereco, complemento, cep, codcidade, inscricaoestadual, fone, fax, email, cgccpf, dataatual, liberadorequisicao, percacrescimo, dataexportacao, liberado, codcliente, codfornecedor, valordiesel, celular, senha, datainclusao, agregado, obs, codproprietarioprincipal, percfrete, percfretecontr, agencia, conta, banco, titular, cei, rg, nomepai, nomemae, usuarioins, usuarioalt, usuariolib, bairro, numero, tipotributacao, descsegurosaldomot, rntrc, restricoes, receita, codbanco, codarrendatario, datavencarrendatario, dataemissaorg, adtomotbloqueado, limitecredito, orgaorg, datanascimento, validaderntrc, titularcnpjcpf, obs2, contacontabil, dataultsenha, bloqueadoadm, databloqueio, obsbloq, email1, datavenccadastro, tipoconta, tipoantt, sexo, nacionalidade, operadoracel, finalidadecredito, statusrntrc, imprimecartafrete, tipoenvioxml, emailcte, codexterno, codfornpag, codcidadenatural, codtipoproprietario, vlinsssalario, enviaris, cnh, validadecarteira, cathabilitacao, codcidadecnh, dataprimeiracnh, dataemissaocnh, escolaridade, estadocivil, chlistopcoes, codmotivobloqueio, obsbloqueio, usuariobloqueio, taxaseguro, codgerriscoop, codgerriscoped, valoradto, percadto, obspagtoviag, filiallib, checklist, percagreg1, percagreg2, percagreg3, chavepix, qrcodepix, diastrocasenha, tipoenviolink, tipochavepix, senhainteg, natjur, datasitcad, statuscad, checklistpagto, percabast, codgerriscoabast, checklistmod, adiantamentomotorista, adiantamentomotorista2, validaderntrcbackup, etnia) FROM '$$PATH$$/10393.dat';

--
-- Data for Name: proprietarioagenda; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietarioagenda (codproprietario, codproprietarioagenda, codtipoagenda, data, datadigitacao, historico, dataproxagenda, usuarioins, usuarioalt, dataatual, datarealizado) FROM stdin;
\.
COPY public.proprietarioagenda (codproprietario, codproprietarioagenda, codtipoagenda, data, datadigitacao, historico, dataproxagenda, usuarioins, usuarioalt, dataatual, datarealizado) FROM '$$PATH$$/10394.dat';

--
-- Data for Name: proprietariocc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietariocc (codproprietariocc, codproprietario, codbanco, agencia, conta, titular, titularcnpjcpf, finalidadecredito, liberado, padrao, tipoconta, chavepix, qrcodepix, usuarioins, usuarioalt, datadigitacao, dataatual, tipochavepix) FROM stdin;
\.
COPY public.proprietariocc (codproprietariocc, codproprietario, codbanco, agencia, conta, titular, titularcnpjcpf, finalidadecredito, liberado, padrao, tipoconta, chavepix, qrcodepix, usuarioins, usuarioalt, datadigitacao, dataatual, tipochavepix) FROM '$$PATH$$/10395.dat';

--
-- Data for Name: proprietariocodext; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietariocodext (codproprietariocodext, codproprietario, codfilial, codsistema, codexterno, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.proprietariocodext (codproprietariocodext, codproprietario, codfilial, codsistema, codexterno, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10396.dat';

--
-- Data for Name: proprietariocont; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietariocont (codproprietario, nome, datanascimento, fone, celular, obs, codcargo, dataatual, codproprietariocont, datainclusao, usuarioins, usuarioalt, cpf, email, rg, orgaorg) FROM stdin;
\.
COPY public.proprietariocont (codproprietario, nome, datanascimento, fone, celular, obs, codcargo, dataatual, codproprietariocont, datainclusao, usuarioins, usuarioalt, cpf, email, rg, orgaorg) FROM '$$PATH$$/10397.dat';

--
-- Data for Name: proprietariodesp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietariodesp (codproprietariodesp, codproprietario, codtipodesp, valor, codconhecimentodesp, codnotadesp, obs, data, usuarioins, datadigitacao, usuarioalt, dataatual, codveiculo, codmotorista) FROM stdin;
\.
COPY public.proprietariodesp (codproprietariodesp, codproprietario, codtipodesp, valor, codconhecimentodesp, codnotadesp, obs, data, usuarioins, datadigitacao, usuarioalt, dataatual, codveiculo, codmotorista) FROM '$$PATH$$/10398.dat';

--
-- Data for Name: proprietarioesocial; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietarioesocial (codproprietarioesocial, codproprietario, xmlenvio, xmlretorno, datarecebimento, protocolo, mensagemretorno, campoauxiliar1, campoauxiliar2, retificador, protocoloretificador, usuarioins, usuarioalt, datadigitacao, dataenvio, dataatual) FROM stdin;
\.
COPY public.proprietarioesocial (codproprietarioesocial, codproprietario, xmlenvio, xmlretorno, datarecebimento, protocolo, mensagemretorno, campoauxiliar1, campoauxiliar2, retificador, protocoloretificador, usuarioins, usuarioalt, datadigitacao, dataenvio, dataatual) FROM '$$PATH$$/10399.dat';

--
-- Data for Name: proprietarioesocialconhec; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietarioesocialconhec (codproprietarioesocialconhec, numero, codproprietarioesocial, fretemotoristasai, fretemotorista, baseinss, valorinss, baseirrf, valorirrf, usuarioins, usuarioalt, datadigitacao, dataenvio, dataatual, datarecebimento, valorsest, valorsenat) FROM stdin;
\.
COPY public.proprietarioesocialconhec (codproprietarioesocialconhec, numero, codproprietarioesocial, fretemotoristasai, fretemotorista, baseinss, valorinss, baseirrf, valorirrf, usuarioins, usuarioalt, datadigitacao, dataenvio, dataatual, datarecebimento, valorsest, valorsenat) FROM '$$PATH$$/10400.dat';

--
-- Data for Name: proprietariofiscal; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietariofiscal (codproprietariofiscal, codproprietario, dataini, tipotributacao, ceiinss, usuarioins, datains, usuarioalt, dataalt, tipoantt, obs) FROM stdin;
\.
COPY public.proprietariofiscal (codproprietariofiscal, codproprietario, dataini, tipotributacao, ceiinss, usuarioins, datains, usuarioalt, dataalt, tipoantt, obs) FROM '$$PATH$$/10401.dat';

--
-- Data for Name: proprietariogerrisco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietariogerrisco (codproprietario, codgerrisco, data, datavalidade, numliberacao, usuarioins, usuarioalt, dataatual, datainscricao, obs, liberado, codproprietariogerrisco, datainclusao, exigeautgerrisco, numerocartao, numerocartao2, tipocartao, codexterno, codmotoristacartao, status, numerocartaoadto) FROM stdin;
\.
COPY public.proprietariogerrisco (codproprietario, codgerrisco, data, datavalidade, numliberacao, usuarioins, usuarioalt, dataatual, datainscricao, obs, liberado, codproprietariogerrisco, datainclusao, exigeautgerrisco, numerocartao, numerocartao2, tipocartao, codexterno, codmotoristacartao, status, numerocartaoadto) FROM '$$PATH$$/10402.dat';

--
-- Data for Name: proprietariolib; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietariolib (codproprietariolib, codproprietario, datalib, liberado, usuariolib, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.proprietariolib (codproprietariolib, codproprietario, datalib, liberado, usuariolib, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10403.dat';

--
-- Data for Name: proprietarioref; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietarioref (codproprietarioref, codproprietario, tipo, nome, fone, endereco, codcidade, celular, obs, datadigitacao, dataatual, usuarioins, usuarioalt, status) FROM stdin;
\.
COPY public.proprietarioref (codproprietarioref, codproprietario, tipo, nome, fone, endereco, codcidade, celular, obs, datadigitacao, dataatual, usuarioins, usuarioalt, status) FROM '$$PATH$$/10404.dat';

--
-- Data for Name: proprietariosegv; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.proprietariosegv (codproprietariosegv, codproprietario, datainicio, precotonini, precotonfim, vlsegporeixo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.proprietariosegv (codproprietariosegv, codproprietario, datainicio, precotonini, precotonfim, vlsegporeixo, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10544.dat';

--
-- Data for Name: protocolofatura; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.protocolofatura (codprotocolofat, data, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.protocolofatura (codprotocolofat, data, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10406.dat';

--
-- Data for Name: questao; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.questao (codquestao, codquestionario, sequencia, codsubtopico, codtipoquestao, descricao, respostaobrig, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.questao (codquestao, codquestionario, sequencia, codsubtopico, codtipoquestao, descricao, respostaobrig, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10407.dat';

--
-- Data for Name: questionario; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.questionario (codquestionario, descricao, liberado, cliente, fornecedor, proprietario, motorista, veiculo, viagem, manifesto, usuarioins, datadigitacao, usuarioalt, dataatual, nota, os, mostraapp, versao, checklist, diasvalidade, codempresa) FROM stdin;
\.
COPY public.questionario (codquestionario, descricao, liberado, cliente, fornecedor, proprietario, motorista, veiculo, viagem, manifesto, usuarioins, datadigitacao, usuarioalt, dataatual, nota, os, mostraapp, versao, checklist, diasvalidade, codempresa) FROM '$$PATH$$/10408.dat';

--
-- Data for Name: questionariotab; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.questionariotab (codquestionariotab, codquestionario, nometabela, chavetabela, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.questionariotab (codquestionariotab, codquestionario, nometabela, chavetabela, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10409.dat';

--
-- Data for Name: questionariousuario; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.questionariousuario (codquestionariousuario, codquestionario, codcliente, codfornecedor, codproprietario, codmotorista, codveiculo, numero, codmanif, usuarioins, datadigitacao, usuarioalt, dataatual, codnota, dataquest, codmotoristaquest, obs, codauditoria, km, codcarreta, codcarreta2, codcarreta3, usuarioconf, dataconf, status, datavalidade, codseguranca, datacanc, usuariocanc, codempresa, protocolo) FROM stdin;
\.
COPY public.questionariousuario (codquestionariousuario, codquestionario, codcliente, codfornecedor, codproprietario, codmotorista, codveiculo, numero, codmanif, usuarioins, datadigitacao, usuarioalt, dataatual, codnota, dataquest, codmotoristaquest, obs, codauditoria, km, codcarreta, codcarreta2, codcarreta3, usuarioconf, dataconf, status, datavalidade, codseguranca, datacanc, usuariocanc, codempresa, protocolo) FROM '$$PATH$$/10410.dat';

--
-- Data for Name: recurso; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.recurso (codrecurso, codusuario, codmenuitem, acessar, inserir, alterar, remover, ordematalho, tituloatalho) FROM stdin;
\.
COPY public.recurso (codrecurso, codusuario, codmenuitem, acessar, inserir, alterar, remover, ordematalho, tituloatalho) FROM '$$PATH$$/10411.dat';

--
-- Data for Name: recursogrupousuario; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.recursogrupousuario (codrecursogrupousuario, codgrupousuario, codmenuitem, acessar, inserir, alterar, remover, ordematalho, tituloatalho) FROM stdin;
\.
COPY public.recursogrupousuario (codrecursogrupousuario, codgrupousuario, codmenuitem, acessar, inserir, alterar, remover, ordematalho, tituloatalho) FROM '$$PATH$$/10412.dat';

--
-- Data for Name: recursos; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.recursos (nome, menuitem, acessos) FROM stdin;
\.
COPY public.recursos (nome, menuitem, acessos) FROM '$$PATH$$/10413.dat';

--
-- Data for Name: recursosgrupousuario; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.recursosgrupousuario (nome, menuitem, acesso) FROM stdin;
\.
COPY public.recursosgrupousuario (nome, menuitem, acesso) FROM '$$PATH$$/10414.dat';

--
-- Data for Name: regiao; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.regiao (codregiao, descricao, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.regiao (codregiao, descricao, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10415.dat';

--
-- Data for Name: regiaocid; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.regiaocid (codregiaocid, codregiao, codcidade, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.regiaocid (codregiaocid, codregiao, codcidade, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10416.dat';

--
-- Data for Name: regiaocli; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.regiaocli (codregiaocli, codregiao, codcliente, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.regiaocli (codregiaocli, codregiao, codcliente, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10417.dat';

--
-- Data for Name: regiaoprop; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.regiaoprop (codregiaoprop, codregiao, codproprietario, enviaemail, enviasms, obs, usuarioins, datadigitacao, usuarioalt, dataatual, interesse) FROM stdin;
\.
COPY public.regiaoprop (codregiaoprop, codregiao, codproprietario, enviaemail, enviasms, obs, usuarioins, datadigitacao, usuarioalt, dataatual, interesse) FROM '$$PATH$$/10418.dat';

--
-- Data for Name: regrac; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.regrac (codregrac, descricao, lcampos, obs, status, usuarioins, datadigitacao, usuarioalt, dataatual, lcampos1, lcampos2) FROM stdin;
\.
COPY public.regrac (codregrac, descricao, lcampos, obs, status, usuarioins, datadigitacao, usuarioalt, dataatual, lcampos1, lcampos2) FROM '$$PATH$$/10419.dat';

--
-- Data for Name: regracdet; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.regracdet (codregracdet, codregrac, campo, percentual, codcontadeb, codcontacred, codconthist, complpadrao, obs, listaaux, codaux, usuarioins, datadigitacao, usuarioalt, dataatual, listaaux2) FROM stdin;
\.
COPY public.regracdet (codregracdet, codregrac, campo, percentual, codcontadeb, codcontacred, codconthist, complpadrao, obs, listaaux, codaux, usuarioins, datadigitacao, usuarioalt, dataatual, listaaux2) FROM '$$PATH$$/10420.dat';

--
-- Data for Name: req; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.req (codreq, codnota, data, numeronota, serie, codfornecedor, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.req (codreq, codnota, data, numeronota, serie, codfornecedor, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10421.dat';

--
-- Data for Name: resposta; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.resposta (codresposta, codquestao, sequencia, descricao, quebralinha, tipoobs, linobs, colobs, usuarioins, datadigitacao, usuarioalt, dataatual, coditem, checklist) FROM stdin;
\.
COPY public.resposta (codresposta, codquestao, sequencia, descricao, quebralinha, tipoobs, linobs, colobs, usuarioins, datadigitacao, usuarioalt, dataatual, coditem, checklist) FROM '$$PATH$$/10422.dat';

--
-- Data for Name: respostausuario; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.respostausuario (codrespostausuario, codquestionariousuario, codresposta, obs, usuarioins, datadigitacao, usuarioalt, dataatual, respdescricao, questaodescricao) FROM stdin;
\.
COPY public.respostausuario (codrespostausuario, codquestionariousuario, codresposta, obs, usuarioins, datadigitacao, usuarioalt, dataatual, respdescricao, questaodescricao) FROM '$$PATH$$/10423.dat';

--
-- Data for Name: romaneio; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.romaneio (codromaneio, data, codfilial, tipo, valor, codveiculo, tara, pesobrutocarreg, pesobrutodescarreg, codmotorista, dataentveic, datasaidaveic, dataatual, datadigitacao, usuarioins, usuarioalt, codvisitantelog, obs) FROM stdin;
\.
COPY public.romaneio (codromaneio, data, codfilial, tipo, valor, codveiculo, tara, pesobrutocarreg, pesobrutodescarreg, codmotorista, dataentveic, datasaidaveic, dataatual, datadigitacao, usuarioins, usuarioalt, codvisitantelog, obs) FROM '$$PATH$$/10424.dat';

--
-- Data for Name: romaneioitem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.romaneioitem (codromaneioitem, codromaneio, valor, codposicaoorig, codposicaodest, codcontrato, quantidade, coditem, coditemnotamov, coditemnotafat, dataatual, datadigitacao, usuarioins, usuarioalt, obs) FROM stdin;
\.
COPY public.romaneioitem (codromaneioitem, codromaneio, valor, codposicaoorig, codposicaodest, codcontrato, quantidade, coditem, coditemnotamov, coditemnotafat, dataatual, datadigitacao, usuarioins, usuarioalt, obs) FROM '$$PATH$$/10425.dat';

--
-- Data for Name: rota; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.rota (codrota, descricao, dataatual, datadigitacao, usuarioins, usuarioalt, liberado, kmprevisto, tempo, mediadesejada, mediaminima, mediamaxima, codexterno, codpercext, valorporeixo, obs, valorpedagio, descext, codcidadeorigem, codcidadedestino, codgerrisco, codexterno2) FROM stdin;
\.
COPY public.rota (codrota, descricao, dataatual, datadigitacao, usuarioins, usuarioalt, liberado, kmprevisto, tempo, mediadesejada, mediaminima, mediamaxima, codexterno, codpercext, valorporeixo, obs, valorpedagio, descext, codcidadeorigem, codcidadedestino, codgerrisco, codexterno2) FROM '$$PATH$$/10426.dat';

--
-- Data for Name: rotacidade; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.rotacidade (codrota, codrotacidade, ordem, codcidade, obs, km, jurisdicao, tipo, rodovia, valorpedagioeixo, datadigitacao, dataatual, usuarioins, usuarioalt, lat, lon, pracapedagio) FROM stdin;
\.
COPY public.rotacidade (codrota, codrotacidade, ordem, codcidade, obs, km, jurisdicao, tipo, rodovia, valorpedagioeixo, datadigitacao, dataatual, usuarioins, usuarioalt, lat, lon, pracapedagio) FROM '$$PATH$$/10427.dat';

--
-- Data for Name: rotagerrisco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.rotagerrisco (codrotagerrisco, codrota, codgerrisco, usuarioins, usuarioalt, datadigitacao, dataatual) FROM stdin;
\.
COPY public.rotagerrisco (codrotagerrisco, codrota, codgerrisco, usuarioins, usuarioalt, datadigitacao, dataatual) FROM '$$PATH$$/10428.dat';

--
-- Data for Name: safra; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.safra (codsafra, descricao, liberado, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.safra (codsafra, descricao, liberado, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10429.dat';

--
-- Data for Name: semaforo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.semaforo (codsemaforo, nometabela, chavetabela, obs, telafunc, status, dataalt, usuarioalt, datains, usuarioins, ipmaquina, idexe) FROM stdin;
\.
COPY public.semaforo (codsemaforo, nometabela, chavetabela, obs, telafunc, status, dataalt, usuarioalt, datains, usuarioins, ipmaquina, idexe) FROM '$$PATH$$/10430.dat';

--
-- Data for Name: semaforolog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.semaforolog (codsemaforolog, codsemaforo, obs, telafunc, status, datains, usuarioins, ipmaquina, idexe) FROM stdin;
\.
COPY public.semaforolog (codsemaforolog, codsemaforo, obs, telafunc, status, datains, usuarioins, ipmaquina, idexe) FROM '$$PATH$$/10431.dat';

--
-- Data for Name: sincsistemaext; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.sincsistemaext (codsincsistemaext, nometabela, chavetabela, sinc, datasinc, codsistema, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.sincsistemaext (codsincsistemaext, nometabela, chavetabela, sinc, datasinc, codsistema, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10432.dat';

--
-- Data for Name: sistemaext; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.sistemaext (codsistemaext, codexterno, codsistema, codcliente, codfornecedor, coditem, codmotorista, codproprietario, codfilial, codempresa, usuarioins, datadigitacao, usuarioalt, dataatual, codveiculo, codexterno2, nometabela, chavetabela) FROM stdin;
\.
COPY public.sistemaext (codsistemaext, codexterno, codsistema, codcliente, codfornecedor, coditem, codmotorista, codproprietario, codfilial, codempresa, usuarioins, datadigitacao, usuarioalt, dataatual, codveiculo, codexterno2, nometabela, chavetabela) FROM '$$PATH$$/10433.dat';

--
-- Data for Name: solcompra; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.solcompra (codsolcompra, data, codfilial, codunidadeembarque, codfornecedor, obs, usuarioins, datadigitacao, usuarioalt, dataatual, gerada, codmotorista, codnota, usuarioaut, dataaut, usuariosolicaut, codtipo, coddepartamento) FROM stdin;
\.
COPY public.solcompra (codsolcompra, data, codfilial, codunidadeembarque, codfornecedor, obs, usuarioins, datadigitacao, usuarioalt, dataatual, gerada, codmotorista, codnota, usuarioaut, dataaut, usuariosolicaut, codtipo, coddepartamento) FROM '$$PATH$$/10434.dat';

--
-- Data for Name: solcompraitem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.solcompraitem (codsolcompraitem, codsolcompra, coditem, quantidade, obs, ved, codveiculo, codmotorista, codcot, usuarioins, datadigitacao, usuarioalt, dataatual, coditemnota, km, coddepartamento, codcavalo) FROM stdin;
\.
COPY public.solcompraitem (codsolcompraitem, codsolcompra, coditem, quantidade, obs, ved, codveiculo, codmotorista, codcot, usuarioins, datadigitacao, usuarioalt, dataatual, coditemnota, km, coddepartamento, codcavalo) FROM '$$PATH$$/10435.dat';

--
-- Data for Name: spool; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.spool (codspool, chavetabela, nometabela, campochave, sequencia, jsonenvio, jsonretorno, status, tentativas, acao, urlenvio, usuarioins, usuarioalt, datains, dataalt) FROM stdin;
\.
COPY public.spool (codspool, chavetabela, nometabela, campochave, sequencia, jsonenvio, jsonretorno, status, tentativas, acao, urlenvio, usuarioins, usuarioalt, datains, dataalt) FROM '$$PATH$$/10436.dat';

--
-- Data for Name: statuspneu; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.statuspneu (codstatuspneu, descricao, dataatual, vida, liberado, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.statuspneu (codstatuspneu, descricao, dataatual, vida, liberado, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10437.dat';

--
-- Data for Name: subtopico; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.subtopico (codsubtopico, codtopico, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.subtopico (codsubtopico, codtopico, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10438.dat';

--
-- Data for Name: supergrupo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.supergrupo (codsupergrupo, descricao, dataatual, dataexportacao, liberado, usuarioins, usuarioalt, datadigitacao, ordem, codexterno) FROM stdin;
\.
COPY public.supergrupo (codsupergrupo, descricao, dataatual, dataexportacao, liberado, usuarioins, usuarioalt, datadigitacao, ordem, codexterno) FROM '$$PATH$$/10439.dat';

--
-- Data for Name: supergrupofinanceiro; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.supergrupofinanceiro (codsupergrupofinanceiro, descricao, dataatual, liberado, datadigitacao, usuarioins, usuarioalt, codmegagrupofinanceiro, ordem) FROM stdin;
\.
COPY public.supergrupofinanceiro (codsupergrupofinanceiro, descricao, dataatual, liberado, datadigitacao, usuarioins, usuarioalt, codmegagrupofinanceiro, ordem) FROM '$$PATH$$/10440.dat';

--
-- Data for Name: supergruporeceita; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.supergruporeceita (codsupergruporeceita, descricao, dataatual, dataexportacao, datainclusao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.supergruporeceita (codsupergruporeceita, descricao, dataatual, dataexportacao, datainclusao, usuarioins, usuarioalt) FROM '$$PATH$$/10441.dat';

--
-- Data for Name: tipoacaoaud; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoacaoaud (codtipoacaoaud, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.tipoacaoaud (codtipoacaoaud, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10442.dat';

--
-- Data for Name: tipoacidente; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoacidente (codtipoacidente, descricao, datadigitacao, dataatual, usuarioins, usuarioalt, valormotorista, pontos, liberado) FROM stdin;
\.
COPY public.tipoacidente (codtipoacidente, descricao, datadigitacao, dataatual, usuarioins, usuarioalt, valormotorista, pontos, liberado) FROM '$$PATH$$/10443.dat';

--
-- Data for Name: tipoborracha; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoborracha (codtipoborracha, descricao, dataatual, liberado, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.tipoborracha (codtipoborracha, descricao, dataatual, liberado, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10444.dat';

--
-- Data for Name: tipocarroceria; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipocarroceria (codtipocarroceria, descricao, dataatual, usuarioins, usuarioalt, datadigitacao, comprimento, altura, largura, peso, comprimentomax, alturamax, larguramax, pesomax, valordia, valorkm, quanteixos, valora, valorb, valorc, valord, valore, valorf, valorg, valorh, valori, valorj, valork, valorl, liberadocotacao) FROM stdin;
\.
COPY public.tipocarroceria (codtipocarroceria, descricao, dataatual, usuarioins, usuarioalt, datadigitacao, comprimento, altura, largura, peso, comprimentomax, alturamax, larguramax, pesomax, valordia, valorkm, quanteixos, valora, valorb, valorc, valord, valore, valorf, valorg, valorh, valori, valorj, valork, valorl, liberadocotacao) FROM '$$PATH$$/10445.dat';

--
-- Data for Name: tipoccempfunc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoccempfunc (codtipoccempfunc, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, codexterno, codcontacontabil) FROM stdin;
\.
COPY public.tipoccempfunc (codtipoccempfunc, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, codexterno, codcontacontabil) FROM '$$PATH$$/10446.dat';

--
-- Data for Name: tipocliente; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipocliente (codtipocliente, descricao, dataatual, usuarioins, usuarioalt, datadigitacao, maxanocavalo, maxanocarreta, codtipodescfiscal) FROM stdin;
\.
COPY public.tipocliente (codtipocliente, descricao, dataatual, usuarioins, usuarioalt, datadigitacao, maxanocavalo, maxanocarreta, codtipodescfiscal) FROM '$$PATH$$/10447.dat';

--
-- Data for Name: tipoclienteexame; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoclienteexame (codtipocliente, codexametreinamento, datadigitacao, dataatual, usuarioins, usuarioalt, codtipoclienteexame) FROM stdin;
\.
COPY public.tipoclienteexame (codtipocliente, codexametreinamento, datadigitacao, dataatual, usuarioins, usuarioalt, codtipoclienteexame) FROM '$$PATH$$/10448.dat';

--
-- Data for Name: tipoclienteop; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoclienteop (codtipoclienteop, descricao, usuarioins, usuarioalt, datadigitacao, dataatual) FROM stdin;
\.
COPY public.tipoclienteop (codtipoclienteop, descricao, usuarioins, usuarioalt, datadigitacao, dataatual) FROM '$$PATH$$/10449.dat';

--
-- Data for Name: tipocobranca; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipocobranca (codtipocobranca, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.tipocobranca (codtipocobranca, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10450.dat';

--
-- Data for Name: tipodesc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipodesc (codtipodesc, tipo, descricao, codexterno, campoaux, campoaux2, campoaux3, usuarioins, datains, usuarioalt, dataalt) FROM stdin;
\.
COPY public.tipodesc (codtipodesc, tipo, descricao, codexterno, campoaux, campoaux2, campoaux3, usuarioins, datains, usuarioalt, dataalt) FROM '$$PATH$$/10451.dat';

--
-- Data for Name: tipodescdet; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipodescdet (codtipodescdet, nometabela, chavetabela, codtipodesc, codexterno, usuarioins, datains, usuarioalt, dataalt, auxvalor, auxstring, auxinteger) FROM stdin;
\.
COPY public.tipodescdet (codtipodescdet, nometabela, chavetabela, codtipodesc, codexterno, usuarioins, datains, usuarioalt, dataalt, auxvalor, auxstring, auxinteger) FROM '$$PATH$$/10452.dat';

--
-- Data for Name: tipodesp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipodesp (codtipodesp, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, mostradacte, embfreteemp, faturar, cst, pagar, descontasaldomot, codcontacontabil, codconthist, descontasaldoemp, checklist, liberado) FROM stdin;
\.
COPY public.tipodesp (codtipodesp, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, mostradacte, embfreteemp, faturar, cst, pagar, descontasaldomot, codcontacontabil, codconthist, descontasaldoemp, checklist, liberado) FROM '$$PATH$$/10453.dat';

--
-- Data for Name: tipodoc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipodoc (codtipodoc, descricao, tipo, nomebasearq, dataatual, datadigitacao, usuarioins, usuarioalt, pasta, permiteassinaturadigital) FROM stdin;
\.
COPY public.tipodoc (codtipodoc, descricao, tipo, nomebasearq, dataatual, datadigitacao, usuarioins, usuarioalt, pasta, permiteassinaturadigital) FROM '$$PATH$$/10454.dat';

--
-- Data for Name: tipodocaud; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipodocaud (codtipodocaud, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.tipodocaud (codtipodocaud, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10455.dat';

--
-- Data for Name: tipodocaudus; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipodocaudus (codtipodocaudus, codtipodocaud, usuario, dataatual, datadigitacao, usuarioins, usuarioalt, tipoaviso) FROM stdin;
\.
COPY public.tipodocaudus (codtipodocaudus, codtipodocaud, usuario, dataatual, datadigitacao, usuarioins, usuarioalt, tipoaviso) FROM '$$PATH$$/10456.dat';

--
-- Data for Name: tipoequip; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoequip (codtipoequip, descricao, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.tipoequip (codtipoequip, descricao, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10457.dat';

--
-- Data for Name: tipoequiploc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoequiploc (codtipoequiploc, codtipoequip, descricao, datadigitacao, dataatual, usuarioins, usuarioalt, statusdestino) FROM stdin;
\.
COPY public.tipoequiploc (codtipoequiploc, codtipoequip, descricao, datadigitacao, dataatual, usuarioins, usuarioalt, statusdestino) FROM '$$PATH$$/10458.dat';

--
-- Data for Name: tipoequiplog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoequiplog (codtipoequiplog, codtipoequip, descricao, diasmanutprev, usuarioins, usuarioalt, datadigitacao, dataatual) FROM stdin;
\.
COPY public.tipoequiplog (codtipoequiplog, codtipoequip, descricao, diasmanutprev, usuarioins, usuarioalt, datadigitacao, dataatual) FROM '$$PATH$$/10459.dat';

--
-- Data for Name: tipoevento; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoevento (codtipoevento, descricao, codstatuspneu, dataatual, integracustokm, liberado, datadigitacao, usuarioins, usuarioalt, coditem, listalocallib, listalocallib2) FROM stdin;
\.
COPY public.tipoevento (codtipoevento, descricao, codstatuspneu, dataatual, integracustokm, liberado, datadigitacao, usuarioins, usuarioalt, coditem, listalocallib, listalocallib2) FROM '$$PATH$$/10460.dat';

--
-- Data for Name: tipofinanc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipofinanc (codtipofinanc, descricao, dataatual, usuarioins, usuarioalt, datadigitacao) FROM stdin;
\.
COPY public.tipofinanc (codtipofinanc, descricao, dataatual, usuarioins, usuarioalt, datadigitacao) FROM '$$PATH$$/10461.dat';

--
-- Data for Name: tipofornecedor; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipofornecedor (codtipofornecedor, descricao, dataatual, dataexportacao, liberado, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.tipofornecedor (codtipofornecedor, descricao, dataatual, dataexportacao, liberado, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10462.dat';

--
-- Data for Name: tipohistfat; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipohistfat (codtipohistfat, liberado, descricao, desccompleta, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.tipohistfat (codtipohistfat, liberado, descricao, desccompleta, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10463.dat';

--
-- Data for Name: tipojustificativa; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipojustificativa (codtipojustificativa, descricao, usuarioins, usuarioalt, dataatual, codexterno, datadigitacao, checklist) FROM stdin;
\.
COPY public.tipojustificativa (codtipojustificativa, descricao, usuarioins, usuarioalt, dataatual, codexterno, datadigitacao, checklist) FROM '$$PATH$$/10464.dat';

--
-- Data for Name: tipolicenca; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipolicenca (codtipolicenca, descricao, dataatual, usuarioins, usuarioalt, datadigitacao, liberado, tabela, validade) FROM stdin;
\.
COPY public.tipolicenca (codtipolicenca, descricao, dataatual, usuarioins, usuarioalt, datadigitacao, liberado, tabela, validade) FROM '$$PATH$$/10465.dat';

--
-- Data for Name: tipolicencaob; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipolicencaob (codtipolicencaob, codtipolicenca, codtipoveiculo, codmodelo, anofabricacao, anomodelo, obrigatoria, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.tipolicencaob (codtipolicencaob, codtipolicenca, codtipoveiculo, codmodelo, anofabricacao, anomodelo, obrigatoria, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10466.dat';

--
-- Data for Name: tipologmotorista; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipologmotorista (codtipologmotorista, descricao, usuarioins, datainclusao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.tipologmotorista (codtipologmotorista, descricao, usuarioins, datainclusao, usuarioalt, dataatual) FROM '$$PATH$$/10467.dat';

--
-- Data for Name: tipomulta; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipomulta (codtipomulta, descricao, codinfracao, codmultaorgao, baselegal, classificacao, pontos, usuarioins, datadigitacao, usuarioalt, dataatual, valor, tempenalidade, codfornecedor, checklist) FROM stdin;
\.
COPY public.tipomulta (codtipomulta, descricao, codinfracao, codmultaorgao, baselegal, classificacao, pontos, usuarioins, datadigitacao, usuarioalt, dataatual, valor, tempenalidade, codfornecedor, checklist) FROM '$$PATH$$/10468.dat';

--
-- Data for Name: tiponotalog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tiponotalog (codtiponotalog, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, periodicidade) FROM stdin;
\.
COPY public.tiponotalog (codtiponotalog, descricao, usuarioins, datadigitacao, usuarioalt, dataatual, periodicidade) FROM '$$PATH$$/10469.dat';

--
-- Data for Name: tipoobspedido; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoobspedido (codtipoobs, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.tipoobspedido (codtipoobs, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10470.dat';

--
-- Data for Name: tipoocorrencia; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoocorrencia (codtipoocorrencia, descricao, usuarioins, usuarioalt, dataatual, codexterno, datadigitacao, descricao2, codexterno2, checklist) FROM stdin;
\.
COPY public.tipoocorrencia (codtipoocorrencia, descricao, usuarioins, usuarioalt, dataatual, codexterno, datadigitacao, descricao2, codexterno2, checklist) FROM '$$PATH$$/10471.dat';

--
-- Data for Name: tipooperacao; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipooperacao (codtipooperacao, descricao, dataatual, usuarioins, usuarioalt, datadigitacao) FROM stdin;
\.
COPY public.tipooperacao (codtipooperacao, descricao, dataatual, usuarioins, usuarioalt, datadigitacao) FROM '$$PATH$$/10472.dat';

--
-- Data for Name: tipopagto; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipopagto (codtipopagto, descricao, dataatual, usuarioins, usuarioalt, datadigitacao) FROM stdin;
\.
COPY public.tipopagto (codtipopagto, descricao, dataatual, usuarioins, usuarioalt, datadigitacao) FROM '$$PATH$$/10473.dat';

--
-- Data for Name: tipopessoaoco; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipopessoaoco (codtipopessoaoco, descricao, usuarioins, usuarioalt, datains, dataalt) FROM stdin;
\.
COPY public.tipopessoaoco (codtipopessoaoco, descricao, usuarioins, usuarioalt, datains, dataalt) FROM '$$PATH$$/10474.dat';

--
-- Data for Name: tipoproprietario; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoproprietario (codtipoproprietario, descricao, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.tipoproprietario (codtipoproprietario, descricao, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10475.dat';

--
-- Data for Name: tipoquestao; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoquestao (codtipoquestao, descricao, tiposubquestao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.tipoquestao (codtipoquestao, descricao, tiposubquestao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10476.dat';

--
-- Data for Name: tiporastreador; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tiporastreador (codtiporastreador, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.tiporastreador (codtiporastreador, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10477.dat';

--
-- Data for Name: tiporastreamento; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tiporastreamento (codtiporastreamento, descricao, dataatual, liberado, rastreado, escolta, ramo, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.tiporastreamento (codtiporastreamento, descricao, dataatual, liberado, rastreado, escolta, ramo, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10478.dat';

--
-- Data for Name: tiporecto; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tiporecto (codtiporecto, descricao, dataatual, usuarioins, usuarioalt, diasadicionais, datadigitacao) FROM stdin;
\.
COPY public.tiporecto (codtiporecto, descricao, dataatual, usuarioins, usuarioalt, diasadicionais, datadigitacao) FROM '$$PATH$$/10479.dat';

--
-- Data for Name: tipotransporte; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipotransporte (codtipotransporte, descricao, dataatual, usuarioins, usuarioalt, datadigitacao, vlsublimiteseguro, ncm) FROM stdin;
\.
COPY public.tipotransporte (codtipotransporte, descricao, dataatual, usuarioins, usuarioalt, datadigitacao, vlsublimiteseguro, ncm) FROM '$$PATH$$/10480.dat';

--
-- Data for Name: tipoveiculo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tipoveiculo (codtipoveiculo, descricao, dataatual, dataexportacao, liberado, descricaomaior, usuarioins, datadigitacao, usuarioalt, qtdeixos) FROM stdin;
\.
COPY public.tipoveiculo (codtipoveiculo, descricao, dataatual, dataexportacao, liberado, descricaomaior, usuarioins, datadigitacao, usuarioalt, qtdeixos) FROM '$$PATH$$/10481.dat';

--
-- Data for Name: topico; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.topico (codtopico, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.topico (codtopico, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10482.dat';

--
-- Data for Name: transacao; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.transacao (codtransacao, numeroconta, data, valor, tipo, databaixa, descricao, codtransacao1, codtransacao2, usuarioins, usuarioalt, obs, dataatual, tipotrans, codcliente, codfornecedor, codmoeda, usuarioconf, dataconf, datadigitacao, codacertoproprietario, pendentedoc, obspendentedoc, conferido, dataenviobanco, usuarioenviobanco, codfaturarec, codcaixa, statusconsolidado, codcontrato, codmotivocanc, datacanc, usuariocanc, valorantescanc, detcanc, obscanc, codautenticacao, idintegracao, coderpexterno, tipopagamento) FROM stdin;
\.
COPY public.transacao (codtransacao, numeroconta, data, valor, tipo, databaixa, descricao, codtransacao1, codtransacao2, usuarioins, usuarioalt, obs, dataatual, tipotrans, codcliente, codfornecedor, codmoeda, usuarioconf, dataconf, datadigitacao, codacertoproprietario, pendentedoc, obspendentedoc, conferido, dataenviobanco, usuarioenviobanco, codfaturarec, codcaixa, statusconsolidado, codcontrato, codmotivocanc, datacanc, usuariocanc, valorantescanc, detcanc, obscanc, codautenticacao, idintegracao, coderpexterno, tipopagamento) FROM '$$PATH$$/10483.dat';

--
-- Data for Name: transacaoextrato; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.transacaoextrato (codtransacaoextrato, codextrato, codtransacao, status, usuariocanc, datacanc, obscanc, dataalt, usuarioalt, datains, usuarioins) FROM stdin;
\.
COPY public.transacaoextrato (codtransacaoextrato, codextrato, codtransacao, status, usuariocanc, datacanc, obscanc, dataalt, usuarioalt, datains, usuarioins) FROM '$$PATH$$/10484.dat';

--
-- Data for Name: transacoestemp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.transacoestemp (codtransacaotemp, data, numeroconta, descricao, numerodoc, valor, tipo, status, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.transacoestemp (codtransacaotemp, data, numeroconta, descricao, numerodoc, valor, tipo, status, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10485.dat';

--
-- Data for Name: txtcfg; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.txtcfg (codtxtcfg, nome, codtxtcfgtp, codexterno, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.txtcfg (codtxtcfg, nome, codtxtcfgtp, codexterno, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10486.dat';

--
-- Data for Name: txtcfgreg; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.txtcfgreg (codtxtcfgreg, codtxtcfg, codtiporeg, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.txtcfgreg (codtxtcfgreg, codtxtcfg, codtiporeg, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10487.dat';

--
-- Data for Name: txtcfgregtag; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.txtcfgregtag (codtxtcfgregtag, codtxtcfgreg, ordem, nometag, valortag, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.txtcfgregtag (codtxtcfgregtag, codtxtcfgreg, ordem, nometag, valortag, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10488.dat';

--
-- Data for Name: uf; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.uf (coduf, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.uf (coduf, descricao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10489.dat';

--
-- Data for Name: uforigdest; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.uforigdest (coduforigdest, uforigem, ufdestino, porcicms, porcredbaseicms, porcredvaloricms, codmercadoria, taxaseguro, usuarioins, usuarioalt, dataatual, codobsfiscal, porcicmsnaocontr, taxaseguro2, datainclusao, permitefreteretorno, porcicmsfp, ufspercurso, pagaicms) FROM stdin;
\.
COPY public.uforigdest (coduforigdest, uforigem, ufdestino, porcicms, porcredbaseicms, porcredvaloricms, codmercadoria, taxaseguro, usuarioins, usuarioalt, dataatual, codobsfiscal, porcicmsnaocontr, taxaseguro2, datainclusao, permitefreteretorno, porcicmsfp, ufspercurso, pagaicms) FROM '$$PATH$$/10490.dat';

--
-- Data for Name: uftaxa; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.uftaxa (uforig, ufdest, taxaseguro, porcicms, dataatual, datadigitacao, usuarioins, usuarioalt, coduftaxa) FROM stdin;
\.
COPY public.uftaxa (uforig, ufdest, taxaseguro, porcicms, dataatual, datadigitacao, usuarioins, usuarioalt, coduftaxa) FROM '$$PATH$$/10491.dat';

--
-- Data for Name: unidadeembarque; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.unidadeembarque (codunidadeembarque, descricao, dataatual, dataexportacao, liberado, codunidadenegocio, descsegurosaldomot, codfilial, taxaseguro, serie, endereco, codcidade, cep, fone, fax, email, embarcador, complemento, taxaiss, nomereduzido, utilizacte, emailcte, percmaxadiant, cnpj, inscricaoestadual, caminhobdcte, tpamb, versaodados, emailret, emailerro, rntrc, nomeseguradora, numeroapolice, respseguro, resppedagio, tipopedagio, codfornecedor, venccontrpedagio, versaocte, numero, usuarioins, datadigitacao, usuarioalt, tipo, percminlucro, percminlucrotercpf, percminlucroproprio, percminlucroagreg, bairro, margemmaxfrota, margemminfrota, margemminfrete, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, percfrota, utilizamdfe, emailmdfe, versaomdfe, tpemis, versaomodal, versaoeventocte, versaoeventomdfe, versaoeventonfe, mdfetpamb, obscartafrete1, obscartafrete2, obscartafrete3, enderecocob, complementocob, codcidadecob, cepcob, bairrocob, numerocob, fonecob, faxcob, limitediariocartao, inscricaomunicipal, obsseguro, verifsublimite, premioseguro2, percmaxadiant2, arqlogo, nfsecnae, nfsecodservico, nfsedescservico, nfseversao, nfseserie, nfsetpamb, codcidadenfse, descontaisssaldoemp, impcartafrete, obs, cnpjseguradora, cidadanfseus, cidadanfsepw, cidadanfsechave, obsordemcar, obsordemcompra, tpemisnfe, sm_localorigem, sm_localdestino, sm_valores, sm_obs, sm_obs2, listanegocio, nfsecodtributacao, codmotoristager, codmotoristasup, celular, tpemismdfe, sm_transportadora, checklist, taxaadm, taxaseguro2, codmotoristasup2, ctecrt, descsegurosaldo, codmotoristaencarregado, codunidadeembarqueprincipal, codgerrisco, senha, usuario, urlhomol, urlprod, token, tipohomologprod, campoaux1, campoaux2, campoaux3, campoaux4, campoaux5, campoaux6, campoaux7, codmotoristaencarregado2, codmotoristasup3, codnbs, valorapolice, validadeapolice) FROM stdin;
\.
COPY public.unidadeembarque (codunidadeembarque, descricao, dataatual, dataexportacao, liberado, codunidadenegocio, descsegurosaldomot, codfilial, taxaseguro, serie, endereco, codcidade, cep, fone, fax, email, embarcador, complemento, taxaiss, nomereduzido, utilizacte, emailcte, percmaxadiant, cnpj, inscricaoestadual, caminhobdcte, tpamb, versaodados, emailret, emailerro, rntrc, nomeseguradora, numeroapolice, respseguro, resppedagio, tipopedagio, codfornecedor, venccontrpedagio, versaocte, numero, usuarioins, datadigitacao, usuarioalt, tipo, percminlucro, percminlucrotercpf, percminlucroproprio, percminlucroagreg, bairro, margemmaxfrota, margemminfrota, margemminfrete, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, percfrota, utilizamdfe, emailmdfe, versaomdfe, tpemis, versaomodal, versaoeventocte, versaoeventomdfe, versaoeventonfe, mdfetpamb, obscartafrete1, obscartafrete2, obscartafrete3, enderecocob, complementocob, codcidadecob, cepcob, bairrocob, numerocob, fonecob, faxcob, limitediariocartao, inscricaomunicipal, obsseguro, verifsublimite, premioseguro2, percmaxadiant2, arqlogo, nfsecnae, nfsecodservico, nfsedescservico, nfseversao, nfseserie, nfsetpamb, codcidadenfse, descontaisssaldoemp, impcartafrete, obs, cnpjseguradora, cidadanfseus, cidadanfsepw, cidadanfsechave, obsordemcar, obsordemcompra, tpemisnfe, sm_localorigem, sm_localdestino, sm_valores, sm_obs, sm_obs2, listanegocio, nfsecodtributacao, codmotoristager, codmotoristasup, celular, tpemismdfe, sm_transportadora, checklist, taxaadm, taxaseguro2, codmotoristasup2, ctecrt, descsegurosaldo, codmotoristaencarregado, codunidadeembarqueprincipal, codgerrisco, senha, usuario, urlhomol, urlprod, token, tipohomologprod, campoaux1, campoaux2, campoaux3, campoaux4, campoaux5, campoaux6, campoaux7, codmotoristaencarregado2, codmotoristasup3, codnbs, valorapolice, validadeapolice) FROM '$$PATH$$/10492.dat';

--
-- Data for Name: unidadeembarquedesp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.unidadeembarquedesp (codunidadeembarquedesp, codunidadeembarque, codtipodesp, obs, codfornecedor, valor, valorppt, percentual, embfreteemp, descontasaldomot, faturar, pagar, descontasaldoemp, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.unidadeembarquedesp (codunidadeembarquedesp, codunidadeembarque, codtipodesp, obs, codfornecedor, valor, valorppt, percentual, embfreteemp, descontasaldomot, faturar, pagar, descontasaldoemp, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10493.dat';

--
-- Data for Name: unidadeembarquedoc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.unidadeembarquedoc (codunidadeembarquedoc, codunidadeembarque, tabela, codtipodoc, obrigatorio, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.unidadeembarquedoc (codunidadeembarquedoc, codunidadeembarque, tabela, codtipodoc, obrigatorio, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10494.dat';

--
-- Data for Name: unidadeembarquemarg; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.unidadeembarquemarg (codunidadeembarquemarg, codunidadeembarque, dataini, datafim, precotonempini, margemminfrota, margemminfrete, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.unidadeembarquemarg (codunidadeembarquemarg, codunidadeembarque, dataini, datafim, precotonempini, margemminfrota, margemminfrete, margemminpf, margemminpj, margemminagregado, margemminagregadomisto, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10495.dat';

--
-- Data for Name: unidadeembarquerat; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.unidadeembarquerat (codunidadeembarque, codunidadeembrat, data, percrateio, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codnegocio) FROM stdin;
\.
COPY public.unidadeembarquerat (codunidadeembarque, codunidadeembrat, data, percrateio, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codnegocio) FROM '$$PATH$$/10496.dat';

--
-- Data for Name: unidadeembarqueseg; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.unidadeembarqueseg (codunidadeembarqueseg, codunidadeembarque, precotonmotorista, taxaseguro, taxaseguro2, descsegurosaldomot, descsegurosaldomot2, obs, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.unidadeembarqueseg (codunidadeembarqueseg, codunidadeembarque, precotonmotorista, taxaseguro, taxaseguro2, descsegurosaldomot, descsegurosaldomot2, obs, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10497.dat';

--
-- Data for Name: unidadenegocio; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.unidadenegocio (codunidadenegocio, descricao, dataatual, dataexportacao, liberado, datadigitacao, usuarioins, usuarioalt, codmotoristager, codmotoristasup, checklist) FROM stdin;
\.
COPY public.unidadenegocio (codunidadenegocio, descricao, dataatual, dataexportacao, liberado, datadigitacao, usuarioins, usuarioalt, codmotoristager, codmotoristasup, checklist) FROM '$$PATH$$/10498.dat';

--
-- Data for Name: usuario; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuario (nome, senha, nomecompleto, privilegios, ueliberadas, codlingua, vlmaxpagtit, localpneulib, ueliberadas1, codcidade, codembarcador, tipofaturalib, datalimiterel, cargos, condpagto, valorajuste, nomegrupo, privilegios2, codunidadeembarque, privilegiossitesat, codusuario, usuarioefrete, senhaefrete, condpagto2, coddepartamento, emailnome, emailservidor, emailuserid, emailsenha, emailautentica, codmotorista, privilegios3, dataultsenha, tembp, senhabp, listatipofrete, ueliberadas2, ueliberadas3, valormaximofatura, pesosaidamaximo, acertopeso, statususuario, valormercadoriamax, tipoctelib, tipofornecedorlib, diastrocasenha, supervisor, tipofornecedorlib1, localpneulib1, datavalusprinc, tiponotaloglib, datadigitacao, dataatual, databloq, valormaxccempfunc, diaslimiterel, usacamera, seriesctelib, seriesnfelib, cargos2, diaslimitevencfat, usatelaatalhos, tipodesplib1, privilegios4, fusohorario, regiaolib, filtros, negociolib, examelib, tipofornecedorlib2, listatipoos, ueliberadas4, ueliberadas5, vlmaxcheque, listaitembloq, listaitembloq2, valormaxmerclic, datavalidade, kmmaximolic, checklist, vlmincheque, tipoordcompralib, acertoviagmin, acertoviagmax, abonoquebramax, tipofornecedorlib3, tipofornecedorlib4, tipoccempfunc, tipoccempfunc1, tipoccempfunc2, tipoccempfunc3, tipodocbloq, tipodocbloq1, tipodesplib2, tipodesplib3, questlib, diasmesanobloqcpos, uelibconhecmanif, uelibconhecmanif1, uelibconhecmanif2, uelibconhecmanif3, uelibconhecmanif4, uelibconhecmanif5, listacodbilayoutr, vlmaxos, valormaxconhecdesp, statuspneulib, statuspneulib1, valormaxlimitecliente, percmaxdescduprec, valormaxdescduprec, datamaxima, tipopagtolib, valormaxpagadpix, valormaxpagsdpix, valormaxpedpix, valormaxauditcp, listatipoocorrencia, filtrosgzip, valormaxlibparc, valoricmsmax, listaprivilegios) FROM stdin;
\.
COPY public.usuario (nome, senha, nomecompleto, privilegios, ueliberadas, codlingua, vlmaxpagtit, localpneulib, ueliberadas1, codcidade, codembarcador, tipofaturalib, datalimiterel, cargos, condpagto, valorajuste, nomegrupo, privilegios2, codunidadeembarque, privilegiossitesat, codusuario, usuarioefrete, senhaefrete, condpagto2, coddepartamento, emailnome, emailservidor, emailuserid, emailsenha, emailautentica, codmotorista, privilegios3, dataultsenha, tembp, senhabp, listatipofrete, ueliberadas2, ueliberadas3, valormaximofatura, pesosaidamaximo, acertopeso, statususuario, valormercadoriamax, tipoctelib, tipofornecedorlib, diastrocasenha, supervisor, tipofornecedorlib1, localpneulib1, datavalusprinc, tiponotaloglib, datadigitacao, dataatual, databloq, valormaxccempfunc, diaslimiterel, usacamera, seriesctelib, seriesnfelib, cargos2, diaslimitevencfat, usatelaatalhos, tipodesplib1, privilegios4, fusohorario, regiaolib, filtros, negociolib, examelib, tipofornecedorlib2, listatipoos, ueliberadas4, ueliberadas5, vlmaxcheque, listaitembloq, listaitembloq2, valormaxmerclic, datavalidade, kmmaximolic, checklist, vlmincheque, tipoordcompralib, acertoviagmin, acertoviagmax, abonoquebramax, tipofornecedorlib3, tipofornecedorlib4, tipoccempfunc, tipoccempfunc1, tipoccempfunc2, tipoccempfunc3, tipodocbloq, tipodocbloq1, tipodesplib2, tipodesplib3, questlib, diasmesanobloqcpos, uelibconhecmanif, uelibconhecmanif1, uelibconhecmanif2, uelibconhecmanif3, uelibconhecmanif4, uelibconhecmanif5, listacodbilayoutr, vlmaxos, valormaxconhecdesp, statuspneulib, statuspneulib1, valormaxlimitecliente, percmaxdescduprec, valormaxdescduprec, datamaxima, tipopagtolib, valormaxpagadpix, valormaxpagsdpix, valormaxpedpix, valormaxauditcp, listatipoocorrencia, filtrosgzip, valormaxlibparc, valoricmsmax, listaprivilegios) FROM '$$PATH$$/10499.dat';

--
-- Data for Name: usuariocampo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuariocampo (codusuariocampo, codusuario, nometabela, nomecampo, valormin, valormax, datains, usuarioins, dataalt, usuarioalt) FROM stdin;
\.
COPY public.usuariocampo (codusuariocampo, codusuario, nometabela, nomecampo, valormin, valormax, datains, usuarioins, dataalt, usuarioalt) FROM '$$PATH$$/10555.dat';

--
-- Data for Name: usuariocliente; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuariocliente (nome, codcliente, dataatual, usuarioins, usuarioalt, datadigitacao, codusuariocliente) FROM stdin;
\.
COPY public.usuariocliente (nome, codcliente, dataatual, usuarioins, usuarioalt, datadigitacao, codusuariocliente) FROM '$$PATH$$/10500.dat';

--
-- Data for Name: usuarioconfig; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuarioconfig (codusuarioconfig, nome, descricao, config) FROM stdin;
\.
COPY public.usuarioconfig (codusuarioconfig, nome, descricao, config) FROM '$$PATH$$/10501.dat';

--
-- Data for Name: usuarioconta; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuarioconta (nome, numeroconta, dataatual, usuarioins, usuarioalt, datadigitacao, codusuarioconta, datalimiteini, limitemaxpagdiario, limitemaxpagporhora) FROM stdin;
\.
COPY public.usuarioconta (nome, numeroconta, dataatual, usuarioins, usuarioalt, datadigitacao, codusuarioconta, datalimiteini, limitemaxpagdiario, limitemaxpagporhora) FROM '$$PATH$$/10502.dat';

--
-- Data for Name: usuariofav; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuariofav (nome, menu, obs, ordem, codusuariofav, tipo, codmenuitem) FROM stdin;
\.
COPY public.usuariofav (nome, menu, obs, ordem, codusuariofav, tipo, codmenuitem) FROM '$$PATH$$/10503.dat';

--
-- Data for Name: usuariofilial; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuariofilial (nome, codfilial, dataatual, usuarioins, usuarioalt, codusuariofilial, datainclusao) FROM stdin;
\.
COPY public.usuariofilial (nome, codfilial, dataatual, usuarioins, usuarioalt, codusuariofilial, datainclusao) FROM '$$PATH$$/10504.dat';

--
-- Data for Name: usuariogrupo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuariogrupo (nome, codgrupo, dataatual, usuarioins, usuarioalt, datadigitacao, codusuariogrupo) FROM stdin;
\.
COPY public.usuariogrupo (nome, codgrupo, dataatual, usuarioins, usuarioalt, datadigitacao, codusuariogrupo) FROM '$$PATH$$/10505.dat';

--
-- Data for Name: usuariohora; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuariohora (codusuariohora, codusuario, diasemana, horaini, horafim, datainivalid, datafimvalid, datadigitacao, dataatual, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.usuariohora (codusuariohora, codusuario, diasemana, horaini, horafim, datainivalid, datafimvalid, datadigitacao, dataatual, usuarioins, usuarioalt) FROM '$$PATH$$/10506.dat';

--
-- Data for Name: usuarioitemreceita; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuarioitemreceita (nome, coditemreceita, dataatual, usuarioins, usuarioalt, datadigitacao, codusuarioitemreceita) FROM stdin;
\.
COPY public.usuarioitemreceita (nome, coditemreceita, dataatual, usuarioins, usuarioalt, datadigitacao, codusuarioitemreceita) FROM '$$PATH$$/10507.dat';

--
-- Data for Name: usuariolog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuariolog (codusuariolog, nome, dataini, datafim, menuitem, obs) FROM stdin;
\.
COPY public.usuariolog (codusuariolog, nome, dataini, datafim, menuitem, obs) FROM '$$PATH$$/10508.dat';

--
-- Data for Name: usuarioopcartao; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuarioopcartao (codusuarioopcartao, usuario, codgerrisco, operacao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.usuarioopcartao (codusuarioopcartao, usuario, codgerrisco, operacao, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10509.dat';

--
-- Data for Name: usuarioper; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuarioper (codusuarioper, codusuario, status, dataini, datafim, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.usuarioper (codusuarioper, codusuario, status, dataini, datafim, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10510.dat';

--
-- Data for Name: usuarioproprietario; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuarioproprietario (codusuarioproprietario, codproprietario, nome, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.usuarioproprietario (codusuarioproprietario, codproprietario, nome, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10511.dat';

--
-- Data for Name: usuariosenhas; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuariosenhas (codusuariosenhas, codusuario, senhacrip, usuarioins, usuarioalt, datains, dataalt) FROM stdin;
\.
COPY public.usuariosenhas (codusuariosenhas, codusuario, senhacrip, usuarioins, usuarioalt, datains, dataalt) FROM '$$PATH$$/10512.dat';

--
-- Data for Name: usuariotipodesc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.usuariotipodesc (codusuariotipodesc, codusuario, codtipodesc) FROM stdin;
\.
COPY public.usuariotipodesc (codusuariotipodesc, codusuario, codtipodesc) FROM '$$PATH$$/10513.dat';

--
-- Data for Name: veiculo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculo (codveiculo, codproprietario, codtipoveiculo, placa, marca, cor, certificado, chassi, modelo, anofabricacao, anomodelo, placacarreta, marcacarreta, anocarreta, renavam, documento, chassicarreta, anomodcarreta, seguradora, apolice, vencimentoapolice, venda, compra, bancocontrato, ultimaparcela, datavenda, corcarreta, renavancarreta, modelocarreta, certifcarreta, placacarreta2, marcacarreta2, anocarreta2, chassicarreta2, anomodcarreta2, corcarreta2, renavancarreta2, modelocarreta2, certifcarreta2, dataatual, valoratual, taxadeprec, valorfaturamento, veiculoproprio, seguradoracarreta, apolicecarreta, vencapolicecarreta, cavalo, codcarreta, codmotorista, mediainversa, placacarreta3, marcacarreta3, anocarreta3, chassicarreta3, anomodcarreta3, corcarreta3, renavancarreta3, modelocarreta3, certifcarreta3, comissao, alienacao, alienacaocarreta, alienacaocarreta2, alienacaocarreta3, codcidade, codcidadecarreta, codcidadecarreta2, codcidadecarreta3, liberado, dataexportacao, quanteixos, primeiraparcela, valorparcela, incluirateio, seguradoraterc, apoliceterc, vencapoliceterc, obs, frota, codunidadeembarque, datacompra, kmlimiteinicial, codcarreta2, codcarreta3, datainclusao, numuve, terceiroeixo, bombainjetora, caixacambio, diferencial, datafimgarantia, numeromotor, mediamin, mediamax, numerocontrato, percfreteagregado, notafiscalcompra, vlaluguelemp, vlaluguelmot, vlkmemp, vlkmmot, usuarioins, usuarioalt, usuariolib, mediadesejada, tipocombustivel, dadosvenda, numeromct, captanquecomb, capacidadecarga, datavencdocumento, valorcompra, valorvenda, codcliente, codtipofinanc, veiccontratado, codtipocarroceria, compartimentos, codlocatario, listaequip, tipoplataforma, largura, comprimentototal, comprimentoutil, altura, obstecnicas, tara, codpropcarreta, codpropcarreta2, codpropcarreta3, restricoes, receita, localarquivocrv, localarquivoporteobrig, centrocusto, dataaquisicao, antt, codarrendatario, datavencarrendatario, codfornecedorcompra, obscompra, codclientevenda, codmodelo, codcor, numestepe, adtomotbloqueado, potenciamotor, datalicenca, bloqueiomanifestomanutprev, validaderntrc, tagpedagio, codbanco, obs2, codmodelocarreta, codmodelocarreta2, codmodelocarreta3, codcorcarreta, codcorcarreta2, codcorcarreta3, bloqueadoadm, databloqueio, obsbloq, quantestepes, quanteixoscar1, quanteixoscar2, quanteixoscar3, statusrntrc, statuspropriedade, liberadoordemcar, valorseguro, valorsegurocarreta, valorseguroterc, hodometroproprio, vlogultpos, vlogultstatus, vlogultped, datavendaefetiva, valorentrada, valorfinanciadobanco, celularcorporativo, datavenccadastro, rastreadorversao, codtiporastreador, valortabfipe, codmotorista2, usuariobloqueio, captanquearla, datavencccarreta, datavencccarreta2, datavencccarreta3, enviaris, codtipoveiculocarreta, codtipoveiculocarreta2, codtipoveiculocarreta3, codcamarafria, imprimecartafrete, codmotivobloqueio, listaimp, vllimitecomb, dataprevenda, codcarreta4, placacarreta4, marcacarreta4, anocarreta4, chassicarreta4, anomodcarreta4, corcarreta4, renavancarreta4, modelocarreta4, certifcarreta4, alienacaocarreta4, codcidadecarreta4, codpropcarreta4, codmodelocarreta4, codcorcarreta4, quanteixoscar4, datavencccarreta4, codtipoveiculocarreta4, obspagtoviag, codcontrato, checklist, codnegocio, apelido, codpropcertifcar2, codpropcertifcar3, codpropcertifcar4, codpropcertifcar, statuscad, codigofipe, dispvenda, metaviagem, checklistcanaisvenda, codmotoristavenda, validaderntrcbackup, codembarcador, tipotagpedagio) FROM stdin;
\.
COPY public.veiculo (codveiculo, codproprietario, codtipoveiculo, placa, marca, cor, certificado, chassi, modelo, anofabricacao, anomodelo, placacarreta, marcacarreta, anocarreta, renavam, documento, chassicarreta, anomodcarreta, seguradora, apolice, vencimentoapolice, venda, compra, bancocontrato, ultimaparcela, datavenda, corcarreta, renavancarreta, modelocarreta, certifcarreta, placacarreta2, marcacarreta2, anocarreta2, chassicarreta2, anomodcarreta2, corcarreta2, renavancarreta2, modelocarreta2, certifcarreta2, dataatual, valoratual, taxadeprec, valorfaturamento, veiculoproprio, seguradoracarreta, apolicecarreta, vencapolicecarreta, cavalo, codcarreta, codmotorista, mediainversa, placacarreta3, marcacarreta3, anocarreta3, chassicarreta3, anomodcarreta3, corcarreta3, renavancarreta3, modelocarreta3, certifcarreta3, comissao, alienacao, alienacaocarreta, alienacaocarreta2, alienacaocarreta3, codcidade, codcidadecarreta, codcidadecarreta2, codcidadecarreta3, liberado, dataexportacao, quanteixos, primeiraparcela, valorparcela, incluirateio, seguradoraterc, apoliceterc, vencapoliceterc, obs, frota, codunidadeembarque, datacompra, kmlimiteinicial, codcarreta2, codcarreta3, datainclusao, numuve, terceiroeixo, bombainjetora, caixacambio, diferencial, datafimgarantia, numeromotor, mediamin, mediamax, numerocontrato, percfreteagregado, notafiscalcompra, vlaluguelemp, vlaluguelmot, vlkmemp, vlkmmot, usuarioins, usuarioalt, usuariolib, mediadesejada, tipocombustivel, dadosvenda, numeromct, captanquecomb, capacidadecarga, datavencdocumento, valorcompra, valorvenda, codcliente, codtipofinanc, veiccontratado, codtipocarroceria, compartimentos, codlocatario, listaequip, tipoplataforma, largura, comprimentototal, comprimentoutil, altura, obstecnicas, tara, codpropcarreta, codpropcarreta2, codpropcarreta3, restricoes, receita, localarquivocrv, localarquivoporteobrig, centrocusto, dataaquisicao, antt, codarrendatario, datavencarrendatario, codfornecedorcompra, obscompra, codclientevenda, codmodelo, codcor, numestepe, adtomotbloqueado, potenciamotor, datalicenca, bloqueiomanifestomanutprev, validaderntrc, tagpedagio, codbanco, obs2, codmodelocarreta, codmodelocarreta2, codmodelocarreta3, codcorcarreta, codcorcarreta2, codcorcarreta3, bloqueadoadm, databloqueio, obsbloq, quantestepes, quanteixoscar1, quanteixoscar2, quanteixoscar3, statusrntrc, statuspropriedade, liberadoordemcar, valorseguro, valorsegurocarreta, valorseguroterc, hodometroproprio, vlogultpos, vlogultstatus, vlogultped, datavendaefetiva, valorentrada, valorfinanciadobanco, celularcorporativo, datavenccadastro, rastreadorversao, codtiporastreador, valortabfipe, codmotorista2, usuariobloqueio, captanquearla, datavencccarreta, datavencccarreta2, datavencccarreta3, enviaris, codtipoveiculocarreta, codtipoveiculocarreta2, codtipoveiculocarreta3, codcamarafria, imprimecartafrete, codmotivobloqueio, listaimp, vllimitecomb, dataprevenda, codcarreta4, placacarreta4, marcacarreta4, anocarreta4, chassicarreta4, anomodcarreta4, corcarreta4, renavancarreta4, modelocarreta4, certifcarreta4, alienacaocarreta4, codcidadecarreta4, codpropcarreta4, codmodelocarreta4, codcorcarreta4, quanteixoscar4, datavencccarreta4, codtipoveiculocarreta4, obspagtoviag, codcontrato, checklist, codnegocio, apelido, codpropcertifcar2, codpropcertifcar3, codpropcertifcar4, codpropcertifcar, statuscad, codigofipe, dispvenda, metaviagem, checklistcanaisvenda, codmotoristavenda, validaderntrcbackup, codembarcador, tipotagpedagio) FROM '$$PATH$$/10514.dat';

--
-- Data for Name: veiculoacidente; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculoacidente (codveiculoacidente, codveiculo, codmotorista, data, bo, codtipoacidente, local, avariascavalo, valorcavalo, placacarreta, avariascarreta, valorcarreta, codmercadoria, obsmercadoria, valormercadoria, obs, datadigitacao, dataatual, usuarioins, usuarioalt, codmanif, codadiantamento, codcidade, hora, status, valorsinistro, numeroacidente, codfaturarec, valormotorista, numeroseguradora, prejuizoestimado, valorindenizado, valorrecseg, valorarecseg, salvadorec, valorimpostos, freteindenizado, segurocobrado, segurodevido, impostosinternos, obsacidente, obsmot, parecertecnico, placacarreta2, placacarreta3, responsabilidade, gravidade, monta, codproprietarioterc, codmotoristaterc, velocidade, pontos, codtipoclienteop, procede, codnegocio, valorpos, valorlimpeza, valorfranquia, valorfretesinistrado, codfornecedor, pesomercadoriaavariada, especiemercadoriaavariada, quantidademercadoriaavariada, descontomot) FROM stdin;
\.
COPY public.veiculoacidente (codveiculoacidente, codveiculo, codmotorista, data, bo, codtipoacidente, local, avariascavalo, valorcavalo, placacarreta, avariascarreta, valorcarreta, codmercadoria, obsmercadoria, valormercadoria, obs, datadigitacao, dataatual, usuarioins, usuarioalt, codmanif, codadiantamento, codcidade, hora, status, valorsinistro, numeroacidente, codfaturarec, valormotorista, numeroseguradora, prejuizoestimado, valorindenizado, valorrecseg, valorarecseg, salvadorec, valorimpostos, freteindenizado, segurocobrado, segurodevido, impostosinternos, obsacidente, obsmot, parecertecnico, placacarreta2, placacarreta3, responsabilidade, gravidade, monta, codproprietarioterc, codmotoristaterc, velocidade, pontos, codtipoclienteop, procede, codnegocio, valorpos, valorlimpeza, valorfranquia, valorfretesinistrado, codfornecedor, pesomercadoriaavariada, especiemercadoriaavariada, quantidademercadoriaavariada, descontomot) FROM '$$PATH$$/10515.dat';

--
-- Data for Name: veiculoacidenteadiant; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculoacidenteadiant (codveiculoacidenteadiant, codveiculoacidente, codadiantamento, usuarioins, datadigitacao, usuarioalt, dataatual, codfatura) FROM stdin;
\.
COPY public.veiculoacidenteadiant (codveiculoacidenteadiant, codveiculoacidente, codadiantamento, usuarioins, datadigitacao, usuarioalt, dataatual, codfatura) FROM '$$PATH$$/10516.dat';

--
-- Data for Name: veiculoacidenteconh; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculoacidenteconh (codveiculoacidenteconh, codveiculoacidente, numero, usuarioins, datadigitacao, obs, dataatual, usuarioalt, codconhecimentoocorrencia) FROM stdin;
\.
COPY public.veiculoacidenteconh (codveiculoacidenteconh, codveiculoacidente, numero, usuarioins, datadigitacao, obs, dataatual, usuarioalt, codconhecimentoocorrencia) FROM '$$PATH$$/10517.dat';

--
-- Data for Name: veiculoacidentelog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculoacidentelog (codveiculoacidentelog, codveiculoacidente, data, obs, status, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.veiculoacidentelog (codveiculoacidentelog, codveiculoacidente, data, obs, status, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10518.dat';

--
-- Data for Name: veiculoaluguel; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculoaluguel (codveiculo, codfilial, dataini, vlaluguelempdia, vlaluguelmotdia, vlkmemp, vlkmmot, totdias, totkm, dataatual, diasuteis, datadigitacao, usuarioins, usuarioalt, codveiculoaluguel) FROM stdin;
\.
COPY public.veiculoaluguel (codveiculo, codfilial, dataini, vlaluguelempdia, vlaluguelmotdia, vlkmemp, vlkmmot, totdias, totkm, dataatual, diasuteis, datadigitacao, usuarioins, usuarioalt, codveiculoaluguel) FROM '$$PATH$$/10519.dat';

--
-- Data for Name: veiculocl; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculocl (codveiculocl, codveiculo, data, codmotorista, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codnota, tipo, status, km, codtipodescturno) FROM stdin;
\.
COPY public.veiculocl (codveiculocl, codveiculo, data, codmotorista, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codnota, tipo, status, km, codtipodescturno) FROM '$$PATH$$/10520.dat';

--
-- Data for Name: veiculoclitem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculoclitem (codveiculoclitem, codveiculocl, coditem, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codinterno, status, codrespostausuario) FROM stdin;
\.
COPY public.veiculoclitem (codveiculoclitem, codveiculocl, coditem, obs, usuarioins, datadigitacao, usuarioalt, dataatual, codinterno, status, codrespostausuario) FROM '$$PATH$$/10521.dat';

--
-- Data for Name: veiculocompart; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculocompart (codveiculocompart, codveiculo, numero, capacidade, lacre, multisetas, checklist, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.veiculocompart (codveiculocompart, codveiculo, numero, capacidade, lacre, multisetas, checklist, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10522.dat';

--
-- Data for Name: veiculoconj; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculoconj (codveiculoconj, descricao, codcarreta, codcarreta2, codcarreta3, codcarreta4, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.veiculoconj (codveiculoconj, descricao, codcarreta, codcarreta2, codcarreta3, codcarreta4, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10523.dat';

--
-- Data for Name: veiculocontrato; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculocontrato (codveiculocontrato, codveiculo, codfornecedor, numerocontrato, obs, dataini, datafim, valorparcela, kminicial, kmfinal, usuarioins, datadigitacao, usuarioalt, dataatual, codcontrato) FROM stdin;
\.
COPY public.veiculocontrato (codveiculocontrato, codveiculo, codfornecedor, numerocontrato, obs, dataini, datafim, valorparcela, kminicial, kmfinal, usuarioins, datadigitacao, usuarioalt, dataatual, codcontrato) FROM '$$PATH$$/10524.dat';

--
-- Data for Name: veiculoitem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculoitem (codveiculo, coditem, liberado, dataatual, usuarioins, usuarioalt, datadigitacao, codveiculoitem, ordem, kmpreventiva, diasmanutpreventiva) FROM stdin;
\.
COPY public.veiculoitem (codveiculo, coditem, liberado, dataatual, usuarioins, usuarioalt, datadigitacao, codveiculoitem, ordem, kmpreventiva, diasmanutpreventiva) FROM '$$PATH$$/10525.dat';

--
-- Data for Name: veiculoitemfer; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculoitemfer (codveiculoitemfer, codveiculo, coditem, data, quant, valorunit, obs, usuarioins, usuarioalt, datadigitacao, dataatual, codmotorista, mediamin, mediades, mediamax) FROM stdin;
\.
COPY public.veiculoitemfer (codveiculoitemfer, codveiculo, coditem, data, quant, valorunit, obs, usuarioins, usuarioalt, datadigitacao, dataatual, codmotorista, mediamin, mediades, mediamax) FROM '$$PATH$$/10526.dat';

--
-- Data for Name: veiculoitemp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculoitemp (codveiculoitemp, codveiculoitem, data, kmpreventiva, diasmanutpreventiva, obs, status, dataatual, datadigitacao, usuarioins, usuarioalt, codmotivo) FROM stdin;
\.
COPY public.veiculoitemp (codveiculoitemp, codveiculoitem, data, kmpreventiva, diasmanutpreventiva, obs, status, dataatual, datadigitacao, usuarioins, usuarioalt, codmotivo) FROM '$$PATH$$/10527.dat';

--
-- Data for Name: veiculolib; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculolib (codveiculo, codveiculolib, datalib, usuariolib, obs, usuarioins, datadigitacao, usuarioalt, dataatual, liberado, codmotorista, codproprietario) FROM stdin;
\.
COPY public.veiculolib (codveiculo, codveiculolib, datalib, usuariolib, obs, usuarioins, datadigitacao, usuarioalt, dataatual, liberado, codmotorista, codproprietario) FROM '$$PATH$$/10528.dat';

--
-- Data for Name: veiculolicensa; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculolicensa (codveiculo, codlicensa, dataini, datafim, dataatual, descricao, numero, estado, codtipolicenca, codmercadoria, codrota, codcidadeorigem, codcidadedestino, status, usuarioins, datadigitacao, usuarioalt, mercadoria, largura, altura, comprimento, pesocarga, excessotraz, valormercadoria, valormercadoriamax, km, kmmax, usuarioaut, dataaut, obs, numeropedido, codveiculolicensa, codmotorista, codproprietario, codtipotransporte) FROM stdin;
\.
COPY public.veiculolicensa (codveiculo, codlicensa, dataini, datafim, dataatual, descricao, numero, estado, codtipolicenca, codmercadoria, codrota, codcidadeorigem, codcidadedestino, status, usuarioins, datadigitacao, usuarioalt, mercadoria, largura, altura, comprimento, pesocarga, excessotraz, valormercadoria, valormercadoriamax, km, kmmax, usuarioaut, dataaut, obs, numeropedido, codveiculolicensa, codmotorista, codproprietario, codtipotransporte) FROM '$$PATH$$/10529.dat';

--
-- Data for Name: veiculolog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculolog (codveiculo, data, datadigitacao, codmotorista, local, coddestino, obs, codorigem, dataatual, status, usuarioins, usuarioalt, latitude, longitude, historico, numeropedido, numeroviagem, obs2, lat, lon, numeropedido2, numeropedido3, temposemmodificacao, codcidade, codrota, codveiculolog, kmrodado, tipo, tempoestimado, kmrota, kmpercorrido, ignicao, velocidade, codordemcar, km, horimetro, listaeventos) FROM stdin;
\.
COPY public.veiculolog (codveiculo, data, datadigitacao, codmotorista, local, coddestino, obs, codorigem, dataatual, status, usuarioins, usuarioalt, latitude, longitude, historico, numeropedido, numeroviagem, obs2, lat, lon, numeropedido2, numeropedido3, temposemmodificacao, codcidade, codrota, codveiculolog, kmrodado, tipo, tempoestimado, kmrota, kmpercorrido, ignicao, velocidade, codordemcar, km, horimetro, listaeventos) FROM '$$PATH$$/10530.dat';

--
-- Data for Name: veiculomot; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculomot (codveiculomot, codveiculo, codmotorista, datainivalid, datafimvalid, listadiasemana, horaini, horafim, obs, status, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.veiculomot (codveiculomot, codveiculo, codmotorista, datainivalid, datafimvalid, listadiasemana, horaini, horafim, obs, status, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10531.dat';

--
-- Data for Name: veiculomov; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculomov (codveiculo, data, codunidadeembarque, codtipotransporte, codtipooperacao, codcliente, km, mediamin, mediades, mediamax, usuarioins, usuarioalt, datadigitacao, dataatual, obs, codmotorista, status, codveiculomov, valorfaturamentodes, taxaadm, kmjornada, codcontrato, codnegocio, codtipoveiculo, codmotivo, metaviagem, condicaoveic, valorofertado, apelido, codembarcador) FROM stdin;
\.
COPY public.veiculomov (codveiculo, data, codunidadeembarque, codtipotransporte, codtipooperacao, codcliente, km, mediamin, mediades, mediamax, usuarioins, usuarioalt, datadigitacao, dataatual, obs, codmotorista, status, codveiculomov, valorfaturamentodes, taxaadm, kmjornada, codcontrato, codnegocio, codtipoveiculo, codmotivo, metaviagem, condicaoveic, valorofertado, apelido, codembarcador) FROM '$$PATH$$/10532.dat';

--
-- Data for Name: veiculomulta; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculomulta (codveiculomulta, codveiculo, codmotorista, data, codcidade, obs, usuarioins, datadigitacao, usuarioalt, dataatual, numero, status, local, dataemissao, datavencdefesa, datavencident, datapagamento, valormulta, valordescontado, codnota, codtipomulta, porcdesconto, tempenalidade, codfornecedor, datapostnotif, checklist, descontomot) FROM stdin;
\.
COPY public.veiculomulta (codveiculomulta, codveiculo, codmotorista, data, codcidade, obs, usuarioins, datadigitacao, usuarioalt, dataatual, numero, status, local, dataemissao, datavencdefesa, datavencident, datapagamento, valormulta, valordescontado, codnota, codtipomulta, porcdesconto, tempenalidade, codfornecedor, datapostnotif, checklist, descontomot) FROM '$$PATH$$/10533.dat';

--
-- Data for Name: veiculomultaadiant; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculomultaadiant (codveiculomultaadiant, codveiculomulta, codadiantamento, usuarioins, datadigitacao, usuarioalt, dataatual, codfatura) FROM stdin;
\.
COPY public.veiculomultaadiant (codveiculomultaadiant, codveiculomulta, codadiantamento, usuarioins, datadigitacao, usuarioalt, dataatual, codfatura) FROM '$$PATH$$/10534.dat';

--
-- Data for Name: veiculomultalog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculomultalog (codveiculomultalog, codveiculomulta, data, obs, status, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.veiculomultalog (codveiculomultalog, codveiculomulta, data, obs, status, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10535.dat';

--
-- Data for Name: veiculoprod; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculoprod (codveiculoprod, codveiculo, perccarregmin, perccarregmax, mediamin, mediamax, produtiv, liberado, usuarioins, usuarioalt, datadigitacao, dataatual, dataini, datafim) FROM stdin;
\.
COPY public.veiculoprod (codveiculoprod, codveiculo, perccarregmin, perccarregmax, mediamin, mediamax, produtiv, liberado, usuarioins, usuarioalt, datadigitacao, dataatual, dataini, datafim) FROM '$$PATH$$/10536.dat';

--
-- Data for Name: veiculoseguro; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.veiculoseguro (codveiculo, objeto, dataatual, dataini, datafim, seguradora, apolice, classebonus, franquia, danosmateriais, danoscorporais, danosmorais, mortepassageiro, invalidezpassageiro, obs, datadigitacao, usuarioins, usuarioalt, codveiculoseguro, valorseguro, codveiculoanterior) FROM stdin;
\.
COPY public.veiculoseguro (codveiculo, objeto, dataatual, dataini, datafim, seguradora, apolice, classebonus, franquia, danosmateriais, danoscorporais, danosmorais, mortepassageiro, invalidezpassageiro, obs, datadigitacao, usuarioins, usuarioalt, codveiculoseguro, valorseguro, codveiculoanterior) FROM '$$PATH$$/10537.dat';

--
-- Data for Name: viagem; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.viagem (codviagem, data, codmotorista, codviagemws, tabela, chavetabela, status, datainiprev, datafimprev, dataini, datafim, localorigem, latorigem, lonorigem, localdestino, latdestino, londestino, mostrainternetcliente, valores, obs, obs2, usuarioins, usuarioalt, datains, dataalt, transportadora) FROM stdin;
\.
COPY public.viagem (codviagem, data, codmotorista, codviagemws, tabela, chavetabela, status, datainiprev, datafimprev, dataini, datafim, localorigem, latorigem, lonorigem, localdestino, latdestino, londestino, mostrainternetcliente, valores, obs, obs2, usuarioins, usuarioalt, datains, dataalt, transportadora) FROM '$$PATH$$/10538.dat';

--
-- Data for Name: viagemdoc; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.viagemdoc (codviagemdoc, codviagem, chave, tipodoc, numero, serie, data, obs, usuarioins, usuarioalt, datains, dataalt, codviagemdocws) FROM stdin;
\.
COPY public.viagemdoc (codviagemdoc, codviagem, chave, tipodoc, numero, serie, data, obs, usuarioins, usuarioalt, datains, dataalt, codviagemdocws) FROM '$$PATH$$/10539.dat';

--
-- Data for Name: visitante; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitante (codvisitante, nome, cpf, endereco, numero, complemento, bairro, placa, modelo, nomeempresa, codcidade, fone, obs, usuarioins, datadigitacao, usuarioalt, dataatual, validade, cep, celular, liberado, rg, inscricaoestadual, codcargo) FROM stdin;
\.
COPY public.visitante (codvisitante, nome, cpf, endereco, numero, complemento, bairro, placa, modelo, nomeempresa, codcidade, fone, obs, usuarioins, datadigitacao, usuarioalt, dataatual, validade, cep, celular, liberado, rg, inscricaoestadual, codcargo) FROM '$$PATH$$/10540.dat';

--
-- Data for Name: visitantelog; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitantelog (codvisitantelog, codvisitante, dataent, datasaida, controle, obs, usuarioins, datadigitacao, usuarioalt, dataatual, validade, falarcom, codfilial, codfilialportariaent, codfilialportariasai, codveiculo, codcarreta, codcarreta2, codcarreta3, placa, modelo, placacarreta, placacarreta2, placacarreta3) FROM stdin;
\.
COPY public.visitantelog (codvisitantelog, codvisitante, dataent, datasaida, controle, obs, usuarioins, datadigitacao, usuarioalt, dataatual, validade, falarcom, codfilial, codfilialportariaent, codfilialportariasai, codveiculo, codcarreta, codcarreta2, codcarreta3, placa, modelo, placacarreta, placacarreta2, placacarreta3) FROM '$$PATH$$/10541.dat';

--
-- Data for Name: visitantelogmov; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.visitantelogmov (codvisitantelogmov, codvisitantelog, tipomov, data, peso, coddepositodoca, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM stdin;
\.
COPY public.visitantelogmov (codvisitantelogmov, codvisitantelog, tipomov, data, peso, coddepositodoca, obs, usuarioins, datadigitacao, usuarioalt, dataatual) FROM '$$PATH$$/10542.dat';

--
-- Data for Name: volume; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.volume (codvolume, id, codcliente, obs, codconhecimentoocorrencia, peso, quantidade, dataatual, datadigitacao, usuarioins, usuarioalt) FROM stdin;
\.
COPY public.volume (codvolume, id, codcliente, obs, codconhecimentoocorrencia, peso, quantidade, dataatual, datadigitacao, usuarioins, usuarioalt) FROM '$$PATH$$/10543.dat';

--
-- Name: codabast_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codabast_gen', 1, false);


--
-- Name: codacaoaud_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codacaoaud_gen', 1, false);


--
-- Name: codacertomot_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codacertomot_gen', 1, false);


--
-- Name: codacertopropdet_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codacertopropdet_gen', 1, false);


--
-- Name: codacertoproprietario_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codacertoproprietario_gen', 1, false);


--
-- Name: codadecliente_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codadecliente_gen', 1, false);


--
-- Name: codadiantamentodiaria_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codadiantamentodiaria_gen', 1, false);


--
-- Name: codadim_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codadim_gen', 1, false);


--
-- Name: codagenda_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codagenda_gen', 1, false);


--
-- Name: codagendatarefa_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codagendatarefa_gen', 1, false);


--
-- Name: codagendatarefalog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codagendatarefalog_gen', 1, false);


--
-- Name: codagendaus_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codagendaus_gen', 1, false);


--
-- Name: codapagado_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codapagado_gen', 1, false);


--
-- Name: codauditoria_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codauditoria_gen', 1, false);


--
-- Name: codauditoriadet_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codauditoriadet_gen', 1, false);


--
-- Name: codauditorialog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codauditorialog_gen', 1, false);


--
-- Name: codauditoriaus_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codauditoriaus_gen', 1, false);


--
-- Name: codbancooco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codbancooco_gen', 1, false);


--
-- Name: codbancotipopagto_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codbancotipopagto_gen', 1, false);


--
-- Name: codbidados_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codbidados_gen', 1, false);


--
-- Name: codbidadosr_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codbidadosr_gen', 1, false);


--
-- Name: codbilayout_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codbilayout_gen', 1, false);


--
-- Name: codbiproc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codbiproc_gen', 1, false);


--
-- Name: codbombacomb_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codbombacomb_gen', 1, false);


--
-- Name: codcaixa_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcaixa_gen', 1, false);


--
-- Name: codcargo_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcargo_gen', 1, false);


--
-- Name: codcargoexametreinamento_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcargoexametreinamento_gen', 1, false);


--
-- Name: codcarretamov_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcarretamov_gen', 1, false);


--
-- Name: codcfopnotaviagem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcfopnotaviagem_gen', 1, false);


--
-- Name: codche_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codche_gen', 1, false);


--
-- Name: codchecklist_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codchecklist_gen', 1, false);


--
-- Name: codchequerec_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codchequerec_gen', 1, false);


--
-- Name: codchequestatus_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codchequestatus_gen', 1, false);


--
-- Name: codchequestatuslog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codchequestatuslog_gen', 1, false);


--
-- Name: codcida_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcida_gen', 1, false);


--
-- Name: codcidadedist_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcidadedist_gen', 1, false);


--
-- Name: codclie_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclie_gen', 1, false);


--
-- Name: codclientecc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientecc_gen', 1, false);


--
-- Name: codclientechequerec_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientechequerec_gen', 1, false);


--
-- Name: codclientechequereccc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientechequereccc_gen', 1, false);


--
-- Name: codclienteclas_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclienteclas_gen', 1, false);


--
-- Name: codclientecnd_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientecnd_gen', 1, false);


--
-- Name: codclientecolent_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientecolent_gen', 1, false);


--
-- Name: codclientecom_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientecom_gen', 1, false);


--
-- Name: codclientecont_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientecont_gen', 1, false);


--
-- Name: codclientedesp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientedesp_gen', 1, false);


--
-- Name: codclientediavenc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientediavenc_gen', 1, false);


--
-- Name: codclientelimite_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientelimite_gen', 1, false);


--
-- Name: codclientemot_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientemot_gen', 1, false);


--
-- Name: codclienteop_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclienteop_gen', 1, false);


--
-- Name: codclienteopfis_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclienteopfis_gen', 1, false);


--
-- Name: codclienterefbanc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclienterefbanc_gen', 1, false);


--
-- Name: codclienterefcom_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclienterefcom_gen', 1, false);


--
-- Name: codclientetabfrete_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientetabfrete_gen', 1, false);


--
-- Name: codclientetempo_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codclientetempo_gen', 1, false);


--
-- Name: codcoletaentrega_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcoletaentrega_gen', 1, false);


--
-- Name: codcoletaentregacont_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcoletaentregacont_gen', 1, false);


--
-- Name: codcoletaentregamot_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcoletaentregamot_gen', 1, false);


--
-- Name: codcoletaentregasetor_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcoletaentregasetor_gen', 1, false);


--
-- Name: codcoletaentregaveic_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcoletaentregaveic_gen', 1, false);


--
-- Name: codcond_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcond_gen', 1, false);


--
-- Name: codconh_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconh_gen', 1, false);


--
-- Name: codconhecimentodesp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentodesp_gen', 1, false);


--
-- Name: codconhecimentodoc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentodoc_gen', 1, false);


--
-- Name: codconhecimentodocant_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentodocant_gen', 1, false);


--
-- Name: codconhecimentoevdet_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentoevdet_gen', 1, false);


--
-- Name: codconhecimentogrop_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentogrop_gen', 1, false);


--
-- Name: codconhecimentolog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentolog_gen', 1, false);


--
-- Name: codconhecimentomotorista_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentomotorista_gen', 1, false);


--
-- Name: codconhecimentonota_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentonota_gen', 1, false);


--
-- Name: codconhecimentonotacaixa_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentonotacaixa_gen', 1, false);


--
-- Name: codconhecimentonotadoc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentonotadoc_gen', 1, false);


--
-- Name: codconhecimentonotamerc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentonotamerc_gen', 1, false);


--
-- Name: codconhecimentoocolog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentoocolog_gen', 1, false);


--
-- Name: codconhecimentoocorrencia_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentoocorrencia_gen', 1, false);


--
-- Name: codconhecimentosolic_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentosolic_gen', 1, false);


--
-- Name: codconhecimentostatus_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentostatus_gen', 1, false);


--
-- Name: codconhecimentoxml_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentoxml_gen', 1, false);


--
-- Name: codconhecimentoxmloco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconhecimentoxmloco_gen', 1, false);


--
-- Name: codconsultalog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconsultalog_gen', 1, false);


--
-- Name: codconta_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconta_gen', 1, true);


--
-- Name: codcontaitem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcontaitem_gen', 1, false);


--
-- Name: codconthist_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codconthist_gen', 1, false);


--
-- Name: codcontlanc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcontlanc_gen', 1, false);


--
-- Name: codcontlancdet_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcontlancdet_gen', 1, false);


--
-- Name: codcontlancdetorig_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcontlancdetorig_gen', 1, false);


--
-- Name: codcontrato_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcontrato_gen', 1, false);


--
-- Name: codcontratoaj_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcontratoaj_gen', 1, false);


--
-- Name: codcontratocolent_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcontratocolent_gen', 1, false);


--
-- Name: codcontratodesp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcontratodesp_gen', 1, false);


--
-- Name: codcontratolib_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcontratolib_gen', 1, false);


--
-- Name: codcontratolog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcontratolog_gen', 1, false);


--
-- Name: codcontratoparc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcontratoparc_gen', 1, false);


--
-- Name: codcontratoval_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcontratoval_gen', 1, false);


--
-- Name: codcor_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcor_gen', 1, false);


--
-- Name: codcot_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcot_gen', 1, false);


--
-- Name: codcotfrete_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcotfrete_gen', 1, false);


--
-- Name: codcotfretelog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcotfretelog_gen', 1, false);


--
-- Name: codcotfretemerc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcotfretemerc_gen', 1, false);


--
-- Name: codcotfretemercpedido_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcotfretemercpedido_gen', 1, false);


--
-- Name: codcotfretetaxa_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcotfretetaxa_gen', 1, false);


--
-- Name: codcredencial_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codcredencial_gen', 1, false);


--
-- Name: codddr_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codddr_gen', 1, false);


--
-- Name: coddepartamento_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coddepartamento_gen', 1, false);


--
-- Name: coddeposito_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coddeposito_gen', 1, false);


--
-- Name: coddepositodoca_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coddepositodoca_gen', 1, false);


--
-- Name: coddocumento_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coddocumento_gen', 1, false);


--
-- Name: coddocumentooco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coddocumentooco_gen', 1, false);


--
-- Name: codduplicatapagar_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codduplicatapagar_gen', 1, false);


--
-- Name: codduplicatareceber_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codduplicatareceber_gen', 1, false);


--
-- Name: codduplordemcompra_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codduplordemcompra_gen', 1, false);


--
-- Name: codemba_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codemba_gen', 1, false);


--
-- Name: codembarcadorcont_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codembarcadorcont_gen', 1, false);


--
-- Name: codembarcadororc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codembarcadororc_gen', 1, false);


--
-- Name: codempresa_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codempresa_gen', 1, false);


--
-- Name: codempresas_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codempresas_gen', 1, false);


--
-- Name: codempresascom_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codempresascom_gen', 1, false);


--
-- Name: codempresascontacontabil_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codempresascontacontabil_gen', 1, false);


--
-- Name: codempresaspar_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codempresaspar_gen', 1, false);


--
-- Name: codequip_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codequip_gen', 1, false);


--
-- Name: codequiplog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codequiplog_gen', 1, false);


--
-- Name: coderpexterno_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coderpexterno_gen', 1, false);


--
-- Name: codespeciedoc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codespeciedoc_gen', 1, false);


--
-- Name: codespeciemerc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codespeciemerc_gen', 1, false);


--
-- Name: codestadiafaixa_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codestadiafaixa_gen', 1, false);


--
-- Name: codexametreinamento_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codexametreinamento_gen', 1, false);


--
-- Name: codexametreinamentodoc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codexametreinamentodoc_gen', 1, false);


--
-- Name: codexametreinamentoval_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codexametreinamentoval_gen', 1, false);


--
-- Name: codexp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codexp_gen', 1, false);


--
-- Name: codexpcampo_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codexpcampo_gen', 1, false);


--
-- Name: codexplog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codexplog_gen', 1, false);


--
-- Name: codextrato_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codextrato_gen', 1, false);


--
-- Name: codextratoofx_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codextratoofx_gen', 1, false);


--
-- Name: codfabricante_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfabricante_gen', 1, false);


--
-- Name: codfat_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfat_gen', 1, false);


--
-- Name: codfatn_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfatn_gen', 1, false);


--
-- Name: codfaturacompraaud_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfaturacompraaud_gen', 1, false);


--
-- Name: codfaturacompracon_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfaturacompracon_gen', 1, false);


--
-- Name: codfaturacompraoco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfaturacompraoco_gen', 1, false);


--
-- Name: codfaturalog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfaturalog_gen', 1, false);


--
-- Name: codfili_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfili_gen', 1, false);


--
-- Name: codfilialportaria_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfilialportaria_gen', 1, false);


--
-- Name: codfilialsalario_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfilialsalario_gen', 1, false);


--
-- Name: codfilialseg_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfilialseg_gen', 1, false);


--
-- Name: codfilialsegv_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfilialsegv_gen', 1, false);


--
-- Name: codfilialsetor_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfilialsetor_gen', 1, false);


--
-- Name: codfilialsped_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfilialsped_gen', 1, false);


--
-- Name: codfor_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfor_gen', 1, false);


--
-- Name: codfornecedoragenda_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfornecedoragenda_gen', 1, false);


--
-- Name: codfornecedorcc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfornecedorcc_gen', 1, false);


--
-- Name: codfornecedorcont_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfornecedorcont_gen', 1, false);


--
-- Name: codfornecedorfil_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfornecedorfil_gen', 1, false);


--
-- Name: codfornecedorfiscal_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfornecedorfiscal_gen', 1, false);


--
-- Name: codfornecedorpreco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfornecedorpreco_gen', 1, false);


--
-- Name: codfrete_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codfrete_gen', 1, false);


--
-- Name: codgerrisco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgerrisco_gen', 1, false);


--
-- Name: codgerriscocartao_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgerriscocartao_gen', 1, false);


--
-- Name: codgerriscodesp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgerriscodesp_gen', 1, false);


--
-- Name: codgerriscoop_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgerriscoop_gen', 1, false);


--
-- Name: codgerriscopgr_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgerriscopgr_gen', 1, false);


--
-- Name: codgerriscopgrmercadoria_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgerriscopgrmercadoria_gen', 1, false);


--
-- Name: codgerriscopgrtipotransp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgerriscopgrtipotransp_gen', 1, false);


--
-- Name: codgerriscor_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgerriscor_gen', 1, false);


--
-- Name: codgerriscordet_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgerriscordet_gen', 1, false);


--
-- Name: codgrui_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrui_gen', 1, false);


--
-- Name: codgrupoauditoria_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupoauditoria_gen', 1, false);


--
-- Name: codgrupoconta_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupoconta_gen', 1, false);


--
-- Name: codgrupof_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupof_gen', 1, false);


--
-- Name: codgrupofilial_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupofilial_gen', 1, false);


--
-- Name: codgrupomercadoria_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupomercadoria_gen', 1, false);


--
-- Name: codgrupomsg_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupomsg_gen', 1, false);


--
-- Name: codgrupomsgdet_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupomsgdet_gen', 1, false);


--
-- Name: codgrupoopcartao_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupoopcartao_gen', 1, false);


--
-- Name: codgrupor_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupor_gen', 1, false);


--
-- Name: codgrupousuario_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupousuario_gen', 1, false);


--
-- Name: codgrupousuariogr_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupousuariogr_gen', 1, false);


--
-- Name: codgrupousuariohora_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupousuariohora_gen', 1, false);


--
-- Name: codgrupousuariotipodesc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codgrupousuariotipodesc_gen', 1, false);


--
-- Name: codhipergrupofinanceiro_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codhipergrupofinanceiro_gen', 1, false);


--
-- Name: codimplayout_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codimplayout_gen', 1, false);


--
-- Name: codimplayoutlog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codimplayoutlog_gen', 1, false);


--
-- Name: codimplayoutus_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codimplayoutus_gen', 1, false);


--
-- Name: codimposto_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codimposto_gen', 1, false);


--
-- Name: codimpostocidade_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codimpostocidade_gen', 1, false);


--
-- Name: codimpostocidadevinc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codimpostocidadevinc_gen', 1, false);


--
-- Name: codimpostocontrib_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codimpostocontrib_gen', 1, false);


--
-- Name: codimpostocredpres_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codimpostocredpres_gen', 1, false);


--
-- Name: codimpostouf_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codimpostouf_gen', 1, false);


--
-- Name: codimpostoufvinc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codimpostoufvinc_gen', 1, false);


--
-- Name: coditemcfop_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemcfop_gen', 1, false);


--
-- Name: coditemcodalt_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemcodalt_gen', 1, false);


--
-- Name: coditemcot_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemcot_gen', 1, false);


--
-- Name: coditemf_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemf_gen', 1, false);


--
-- Name: coditemfilial_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemfilial_gen', 1, false);


--
-- Name: coditeminv_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditeminv_gen', 1, false);


--
-- Name: coditemnegocio_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemnegocio_gen', 1, false);


--
-- Name: coditemnotaclas_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemnotaclas_gen', 1, false);


--
-- Name: coditemnotalog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemnotalog_gen', 1, false);


--
-- Name: coditemnotamotorista_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemnotamotorista_gen', 1, false);


--
-- Name: coditemnotamotoristalog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemnotamotoristalog_gen', 1, false);


--
-- Name: coditemnotamov_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemnotamov_gen', 1, false);


--
-- Name: coditemnotaobs_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemnotaobs_gen', 1, false);


--
-- Name: coditemnotarem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemnotarem_gen', 1, false);


--
-- Name: coditemorcvenda_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemorcvenda_gen', 1, false);


--
-- Name: coditemordemcompra_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemordemcompra_gen', 1, false);


--
-- Name: coditemr_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemr_gen', 1, false);


--
-- Name: coditemrat_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemrat_gen', 1, false);


--
-- Name: coditemsim_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemsim_gen', 1, false);


--
-- Name: coditemsubitem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemsubitem_gen', 1, false);


--
-- Name: coditemtabncm_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemtabncm_gen', 1, false);


--
-- Name: coditemtipooperacao_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemtipooperacao_gen', 1, false);


--
-- Name: coditemtipoveiculo_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemtipoveiculo_gen', 1, false);


--
-- Name: coditemuf_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditemuf_gen', 1, false);


--
-- Name: codites_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codites_gen', 1, false);


--
-- Name: coditnota_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditnota_gen', 1, false);


--
-- Name: coditocompra_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coditocompra_gen', 1, false);


--
-- Name: codlicenca_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codlicenca_gen', 1, false);


--
-- Name: codlocal_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codlocal_gen', 1, false);


--
-- Name: codlog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codlog_gen', 192, true);


--
-- Name: codlogactiontime_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codlogactiontime_gen', 1, false);


--
-- Name: codlogcampo_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codlogcampo_gen', 1, false);


--
-- Name: codlogcom_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codlogcom_gen', 1, false);


--
-- Name: codmalotedoc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmalotedoc_gen', 1, false);


--
-- Name: codmanif_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmanif_gen', 1, false);


--
-- Name: codmanifchecklist_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmanifchecklist_gen', 1, false);


--
-- Name: codmanifconhecimento_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmanifconhecimento_gen', 1, false);


--
-- Name: codmanifdoc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmanifdoc_gen', 1, false);


--
-- Name: codmaniflog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmaniflog_gen', 1, false);


--
-- Name: codmanifnota_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmanifnota_gen', 1, false);


--
-- Name: codmanifoco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmanifoco_gen', 1, false);


--
-- Name: codmanifpag_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmanifpag_gen', 1, false);


--
-- Name: codmanifpagb_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmanifpagb_gen', 1, false);


--
-- Name: codmanifpagc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmanifpagc_gen', 1, false);


--
-- Name: codmanifpagp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmanifpagp_gen', 1, false);


--
-- Name: codmanifxml_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmanifxml_gen', 1, false);


--
-- Name: codmanifxmloco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmanifxmloco_gen', 1, false);


--
-- Name: codmarca_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmarca_gen', 1, false);


--
-- Name: codmegagrupofinanceiro_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmegagrupofinanceiro_gen', 1, false);


--
-- Name: codmensagem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmensagem_gen', 1, false);


--
-- Name: codmenuitem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmenuitem_gen', 1, false);


--
-- Name: codmenusup_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmenusup_gen', 1, false);


--
-- Name: codmerc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmerc_gen', 1, false);


--
-- Name: codmercadoriancm_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmercadoriancm_gen', 1, false);


--
-- Name: codmercadoriatipocar_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmercadoriatipocar_gen', 1, false);


--
-- Name: codmesanobloq_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmesanobloq_gen', 1, false);


--
-- Name: codmodelo_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmodelo_gen', 1, false);


--
-- Name: codmodeloveic_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmodeloveic_gen', 1, false);


--
-- Name: codmoeda_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmoeda_gen', 1, false);


--
-- Name: codmoedacot_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmoedacot_gen', 1, false);


--
-- Name: codmot_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmot_gen', 1, false);


--
-- Name: codmotivo_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotivo_gen', 1, false);


--
-- Name: codmotivobloqueio_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotivobloqueio_gen', 1, false);


--
-- Name: codmotivocanc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotivocanc_gen', 1, false);


--
-- Name: codmotivodemissao_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotivodemissao_gen', 1, false);


--
-- Name: codmotoristaagenda_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotoristaagenda_gen', 1, false);


--
-- Name: codmotoristacont_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotoristacont_gen', 1, false);


--
-- Name: codmotoristaexame_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotoristaexame_gen', 1, false);


--
-- Name: codmotoristaferiado_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotoristaferiado_gen', 1, false);


--
-- Name: codmotoristagerrisco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotoristagerrisco_gen', 1, false);


--
-- Name: codmotoristagerriscodesp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotoristagerriscodesp_gen', 1, false);


--
-- Name: codmotoristalib_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotoristalib_gen', 1, false);


--
-- Name: codmotoristalimite_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotoristalimite_gen', 1, false);


--
-- Name: codmotoristalog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotoristalog_gen', 1, false);


--
-- Name: codmotoristarat_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotoristarat_gen', 1, false);


--
-- Name: codmotoristasalev_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmotoristasalev_gen', 1, false);


--
-- Name: codmovitem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmovitem_gen', 1, false);


--
-- Name: codmultaorgao_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codmultaorgao_gen', 1, false);


--
-- Name: codnbs_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnbs_gen', 1, false);


--
-- Name: codnegocio_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnegocio_gen', 1, false);


--
-- Name: codnota_duplicatapagar_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnota_duplicatapagar_gen', 1, false);


--
-- Name: codnota_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnota_gen', 1, false);


--
-- Name: codnota_itemnota_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnota_itemnota_gen', 1, false);


--
-- Name: codnota_notaadiant_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnota_notaadiant_gen', 1, false);


--
-- Name: codnotaadiant_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnotaadiant_gen', 1, false);


--
-- Name: codnotadev_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnotadev_gen', 1, false);


--
-- Name: codnotafilialsetor_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnotafilialsetor_gen', 1, false);


--
-- Name: codnotalog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnotalog_gen', 1, false);


--
-- Name: codnotaoco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnotaoco_gen', 1, false);


--
-- Name: codnotaxml_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnotaxml_gen', 1, false);


--
-- Name: codnotaxmloco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codnotaxmloco_gen', 1, false);


--
-- Name: codobsfiscal_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codobsfiscal_gen', 1, false);


--
-- Name: codobsfiscalue_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codobsfiscalue_gen', 1, false);


--
-- Name: codorcdespesa_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codorcdespesa_gen', 1, false);


--
-- Name: codorcreceita_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codorcreceita_gen', 1, false);


--
-- Name: codorcvenda_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codorcvenda_gen', 1, false);


--
-- Name: codordemcar_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codordemcar_gen', 1, false);


--
-- Name: codordemcarlog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codordemcarlog_gen', 1, false);


--
-- Name: codordemcaroco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codordemcaroco_gen', 1, false);


--
-- Name: codordemcarstatus_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codordemcarstatus_gen', 1, false);


--
-- Name: codordemcompra_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codordemcompra_gen', 1, false);


--
-- Name: codordemcompraadiant_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codordemcompraadiant_gen', 1, false);


--
-- Name: codordemcomprapedext_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codordemcomprapedext_gen', 1, false);


--
-- Name: codpais_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpais_gen', 1, false);


--
-- Name: codparametro_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codparametro_gen', 1, false);


--
-- Name: codparametroempresa_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codparametroempresa_gen', 1, false);


--
-- Name: codpedi_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpedi_gen', 1, false);


--
-- Name: codpedidodesp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpedidodesp_gen', 1, false);


--
-- Name: codpedidodoc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpedidodoc_gen', 1, false);


--
-- Name: codpedidogrop_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpedidogrop_gen', 1, false);


--
-- Name: codpedidoitem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpedidoitem_gen', 1, false);


--
-- Name: codpedidolog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpedidolog_gen', 1, false);


--
-- Name: codpedidomotorista_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpedidomotorista_gen', 1, false);


--
-- Name: codpedidonota_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpedidonota_gen', 1, false);


--
-- Name: codpedidorec_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpedidorec_gen', 1, false);


--
-- Name: codpedidorota_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpedidorota_gen', 1, false);


--
-- Name: codpedidoval_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpedidoval_gen', 1, false);


--
-- Name: codpedidovalmot_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpedidovalmot_gen', 1, false);


--
-- Name: codpessoaoco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpessoaoco_gen', 1, false);


--
-- Name: codpneufimvida_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpneufimvida_gen', 1, false);


--
-- Name: codpneumov_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpneumov_gen', 1, false);


--
-- Name: codpneumovmot_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codpneumovmot_gen', 1, false);


--
-- Name: codposicao_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codposicao_gen', 1, false);


--
-- Name: codprocesso_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codprocesso_gen', 1, false);


--
-- Name: codprocessolog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codprocessolog_gen', 1, false);


--
-- Name: codprogfrete_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codprogfrete_gen', 1, false);


--
-- Name: codprogfretedia_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codprogfretedia_gen', 1, false);


--
-- Name: codprogfreteped_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codprogfreteped_gen', 1, false);


--
-- Name: codprop_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codprop_gen', 1, false);


--
-- Name: codproprietarioagenda_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codproprietarioagenda_gen', 1, false);


--
-- Name: codproprietariocc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codproprietariocc_gen', 1, false);


--
-- Name: codproprietariocodext_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codproprietariocodext_gen', 1, false);


--
-- Name: codproprietariocont_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codproprietariocont_gen', 1, false);


--
-- Name: codproprietariodesp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codproprietariodesp_gen', 1, false);


--
-- Name: codproprietarioesocial_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codproprietarioesocial_gen', 1, false);


--
-- Name: codproprietarioesocialconhec_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codproprietarioesocialconhec_gen', 1, false);


--
-- Name: codproprietariofiscal_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codproprietariofiscal_gen', 1, false);


--
-- Name: codproprietariogerrisco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codproprietariogerrisco_gen', 1, false);


--
-- Name: codproprietariolib_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codproprietariolib_gen', 1, false);


--
-- Name: codproprietariosegv_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codproprietariosegv_gen', 1, false);


--
-- Name: codprotocolofat_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codprotocolofat_gen', 1, false);


--
-- Name: codquestao_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codquestao_gen', 1, false);


--
-- Name: codquestionario_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codquestionario_gen', 1, false);


--
-- Name: codquestionariotab_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codquestionariotab_gen', 1, false);


--
-- Name: codquestionariousuario_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codquestionariousuario_gen', 1, false);


--
-- Name: codrecurso_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codrecurso_gen', 1, false);


--
-- Name: codrecursogrupousuario_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codrecursogrupousuario_gen', 1, false);


--
-- Name: codregiao_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codregiao_gen', 1, false);


--
-- Name: codregiaocid_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codregiaocid_gen', 1, false);


--
-- Name: codregiaocli_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codregiaocli_gen', 1, false);


--
-- Name: codregiaoprop_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codregiaoprop_gen', 1, false);


--
-- Name: codregrac_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codregrac_gen', 1, false);


--
-- Name: codregracdet_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codregracdet_gen', 1, false);


--
-- Name: codreq_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codreq_gen', 1, false);


--
-- Name: codresposta_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codresposta_gen', 1, false);


--
-- Name: codrespostausuario_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codrespostausuario_gen', 1, false);


--
-- Name: codromaneio_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codromaneio_gen', 1, false);


--
-- Name: codromaneioitem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codromaneioitem_gen', 1, false);


--
-- Name: codrota_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codrota_gen', 1, false);


--
-- Name: codrotacidade_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codrotacidade_gen', 1, false);


--
-- Name: codrotagerrisco_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codrotagerrisco_gen', 1, false);


--
-- Name: codsafra_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codsafra_gen', 1, false);


--
-- Name: codsemaforo_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codsemaforo_gen', 1, false);


--
-- Name: codsemaforolog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codsemaforolog_gen', 1, false);


--
-- Name: codsincsistemaext_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codsincsistemaext_gen', 1, false);


--
-- Name: codsistemaext_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codsistemaext_gen', 1, false);


--
-- Name: codsolcompra_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codsolcompra_gen', 1, false);


--
-- Name: codsolcompraitem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codsolcompraitem_gen', 1, false);


--
-- Name: codspool_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codspool_gen', 1, false);


--
-- Name: codstatuspneu_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codstatuspneu_gen', 1, false);


--
-- Name: codsubtopico_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codsubtopico_gen', 1, false);


--
-- Name: codsupergrupo_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codsupergrupo_gen', 1, false);


--
-- Name: codsupergrupof_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codsupergrupof_gen', 1, false);


--
-- Name: codsupergrupor_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codsupergrupor_gen', 1, false);


--
-- Name: codtipoacaoaud_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoacaoaud_gen', 1, false);


--
-- Name: codtipoacidente_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoacidente_gen', 1, false);


--
-- Name: codtipoborracha_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoborracha_gen', 1, false);


--
-- Name: codtipocarroceria_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipocarroceria_gen', 1, false);


--
-- Name: codtipoccempfunc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoccempfunc_gen', 1, false);


--
-- Name: codtipoccliente_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoccliente_gen', 1, false);


--
-- Name: codtipocliente_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipocliente_gen', 1, false);


--
-- Name: codtipoclienteexame_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoclienteexame_gen', 1, false);


--
-- Name: codtipoclienteop_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoclienteop_gen', 1, false);


--
-- Name: codtipocobranca_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipocobranca_gen', 1, false);


--
-- Name: codtipodesc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipodesc_gen', 1, false);


--
-- Name: codtipodescdet_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipodescdet_gen', 1, false);


--
-- Name: codtipodesp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipodesp_gen', 1, false);


--
-- Name: codtipodoc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipodoc_gen', 1, false);


--
-- Name: codtipodocaud_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipodocaud_gen', 1, false);


--
-- Name: codtipodocaudus_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipodocaudus_gen', 1, false);


--
-- Name: codtipoequip_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoequip_gen', 1, false);


--
-- Name: codtipoequiploc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoequiploc_gen', 1, false);


--
-- Name: codtipoequiplog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoequiplog_gen', 1, false);


--
-- Name: codtipoevento_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoevento_gen', 1, false);


--
-- Name: codtipof_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipof_gen', 1, false);


--
-- Name: codtipofinanc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipofinanc_gen', 1, false);


--
-- Name: codtipohistfat_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipohistfat_gen', 1, false);


--
-- Name: codtipojustificativa_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipojustificativa_gen', 1, false);


--
-- Name: codtipolicenca_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipolicenca_gen', 1, false);


--
-- Name: codtipolicensaob_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipolicensaob_gen', 1, false);


--
-- Name: codtipologmotorista_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipologmotorista_gen', 1, false);


--
-- Name: codtipomulta_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipomulta_gen', 1, false);


--
-- Name: codtiponotalog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtiponotalog_gen', 1, false);


--
-- Name: codtipoobs_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoobs_gen', 1, false);


--
-- Name: codtipoocorrencia_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoocorrencia_gen', 1, false);


--
-- Name: codtipooperacao_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipooperacao_gen', 1, false);


--
-- Name: codtipopagto_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipopagto_gen', 1, false);


--
-- Name: codtipoproprietario_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoproprietario_gen', 1, false);


--
-- Name: codtipoquestao_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipoquestao_gen', 1, false);


--
-- Name: codtiporastreador_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtiporastreador_gen', 1, false);


--
-- Name: codtiporastreamento_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtiporastreamento_gen', 1, false);


--
-- Name: codtiporecto_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtiporecto_gen', 1, false);


--
-- Name: codtipotransporte_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipotransporte_gen', 1, false);


--
-- Name: codtipv_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtipv_gen', 1, false);


--
-- Name: codtopico_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtopico_gen', 1, false);


--
-- Name: codtrab_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtrab_gen', 1, false);


--
-- Name: codtransacaoextrato_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtransacaoextrato_gen', 1, false);


--
-- Name: codtransacaotemp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtransacaotemp_gen', 1, false);


--
-- Name: codtxtcfg_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtxtcfg_gen', 1, false);


--
-- Name: codtxtcfgreg_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtxtcfgreg_gen', 1, false);


--
-- Name: codtxtcfgregtag_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codtxtcfgregtag_gen', 1, false);


--
-- Name: coduforigdest_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coduforigdest_gen', 1, false);


--
-- Name: coduftaxa_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.coduftaxa_gen', 1, false);


--
-- Name: codunidade_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codunidade_gen', 1, false);


--
-- Name: codunidadeembarquedesp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codunidadeembarquedesp_gen', 1, false);


--
-- Name: codunidadeembarquedoc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codunidadeembarquedoc_gen', 1, false);


--
-- Name: codunidadeembarquemarg_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codunidadeembarquemarg_gen', 1, false);


--
-- Name: codunidadeembarqueseg_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codunidadeembarqueseg_gen', 1, false);


--
-- Name: codunidadeembrat_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codunidadeembrat_gen', 1, false);


--
-- Name: codunnegocio_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codunnegocio_gen', 1, false);


--
-- Name: codusua_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusua_gen', 1, false);


--
-- Name: codusuario_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuario_gen', 1, false);


--
-- Name: codusuariocampo_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuariocampo_gen', 1, false);


--
-- Name: codusuariocliente_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuariocliente_gen', 1, false);


--
-- Name: codusuarioconfig_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuarioconfig_gen', 1, false);


--
-- Name: codusuarioconta_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuarioconta_gen', 1, false);


--
-- Name: codusuariofav_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuariofav_gen', 1, false);


--
-- Name: codusuariofilial_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuariofilial_gen', 1, false);


--
-- Name: codusuariogrupo_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuariogrupo_gen', 1, false);


--
-- Name: codusuariohora_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuariohora_gen', 1, false);


--
-- Name: codusuarioitemreceita_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuarioitemreceita_gen', 1, false);


--
-- Name: codusuariolog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuariolog_gen', 1, true);


--
-- Name: codusuarioopcartao_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuarioopcartao_gen', 1, false);


--
-- Name: codusuarioper_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuarioper_gen', 1, false);


--
-- Name: codusuarioproprietario_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuarioproprietario_gen', 1, false);


--
-- Name: codusuariosenhas_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuariosenhas_seq', 1, false);


--
-- Name: codusuariotipodesc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codusuariotipodesc_gen', 1, false);


--
-- Name: codveic_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveic_gen', 1, false);


--
-- Name: codveiccliente_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiccliente_gen', 1, false);


--
-- Name: codveiculoacidente_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculoacidente_gen', 1, false);


--
-- Name: codveiculoacidenteadiant_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculoacidenteadiant_gen', 1, false);


--
-- Name: codveiculoacidenteconh_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculoacidenteconh_gen', 1, false);


--
-- Name: codveiculoacidentelog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculoacidentelog_gen', 1, false);


--
-- Name: codveiculoaluguel_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculoaluguel_gen', 1, false);


--
-- Name: codveiculocl_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculocl_gen', 1, false);


--
-- Name: codveiculoclitem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculoclitem_gen', 1, false);


--
-- Name: codveiculocompart_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculocompart_gen', 1, false);


--
-- Name: codveiculoconj_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculoconj_gen', 1, false);


--
-- Name: codveiculocontrato_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculocontrato_gen', 1, false);


--
-- Name: codveiculoitem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculoitem_gen', 1, false);


--
-- Name: codveiculoitemfer_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculoitemfer_gen', 1, false);


--
-- Name: codveiculoitemp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculoitemp_gen', 1, false);


--
-- Name: codveiculolib_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculolib_gen', 1, false);


--
-- Name: codveiculolicensa_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculolicensa_gen', 1, false);


--
-- Name: codveiculolog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculolog_gen', 1, false);


--
-- Name: codveiculomot_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculomot_gen', 1, false);


--
-- Name: codveiculomov_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculomov_gen', 1, false);


--
-- Name: codveiculomulta_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculomulta_gen', 1, false);


--
-- Name: codveiculomultaadiant_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculomultaadiant_gen', 1, false);


--
-- Name: codveiculomultalog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculomultalog_gen', 1, false);


--
-- Name: codveiculoprod_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculoprod_gen', 1, false);


--
-- Name: codveiculoseguro_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codveiculoseguro_gen', 1, false);


--
-- Name: codviagem_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codviagem_gen', 1, false);


--
-- Name: codviagemdoc_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codviagemdoc_gen', 1, false);


--
-- Name: codvisitante_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codvisitante_gen', 1, false);


--
-- Name: codvisitantelog_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codvisitantelog_gen', 1, false);


--
-- Name: codvisitantelogmov_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codvisitantelogmov_gen', 1, false);


--
-- Name: codvolume_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.codvolume_gen', 1, false);


--
-- Name: gen_conhecimentoev; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.gen_conhecimentoev', 1, false);


--
-- Name: gen_manifev; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.gen_manifev', 1, false);


--
-- Name: gen_notaev; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.gen_notaev', 1, false);


--
-- Name: lotecte_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.lotecte_gen', 1, false);


--
-- Name: malote_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.malote_gen', 1, false);


--
-- Name: maloteenv_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.maloteenv_gen', 1, false);


--
-- Name: motoristaref_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.motoristaref_gen', 1, false);


--
-- Name: notastatus_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.notastatus_gen', 1, false);


--
-- Name: nsufastcred_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.nsufastcred_gen', 1, false);


--
-- Name: numeronotacp_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.numeronotacp_gen', 1, false);


--
-- Name: numeronotaos_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.numeronotaos_gen', 1, false);


--
-- Name: proprietarioref_gen; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.proprietarioref_gen', 1, false);


--
-- Name: abast abast_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.abast
    ADD CONSTRAINT abast_pkey PRIMARY KEY (codabast);


--
-- Name: acertopropdet acertopropdet_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acertopropdet
    ADD CONSTRAINT acertopropdet_pkey PRIMARY KEY (codacertopropdet);


--
-- Name: adecliente adecliente_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.adecliente
    ADD CONSTRAINT adecliente_pkey PRIMARY KEY (codadecliente);


--
-- Name: adiantamentodiaria adiantamentodiaria_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.adiantamentodiaria
    ADD CONSTRAINT adiantamentodiaria_pkey PRIMARY KEY (codadiantamentodiaria);


--
-- Name: agendatarefa agendatarefa_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.agendatarefa
    ADD CONSTRAINT agendatarefa_pkey PRIMARY KEY (codagendatarefa);


--
-- Name: auditoriadet auditoriadet_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auditoriadet
    ADD CONSTRAINT auditoriadet_pkey PRIMARY KEY (codauditoriadet);


--
-- Name: auditoriaus auditoriaus_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auditoriaus
    ADD CONSTRAINT auditoriaus_pkey PRIMARY KEY (codauditoriaus);


--
-- Name: bidados bidados_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bidados
    ADD CONSTRAINT bidados_pkey PRIMARY KEY (codbidados);


--
-- Name: bidadosr bidadosr_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bidadosr
    ADD CONSTRAINT bidadosr_pkey PRIMARY KEY (codbidadosr);


--
-- Name: bilayout bilayout_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bilayout
    ADD CONSTRAINT bilayout_pkey PRIMARY KEY (codbilayout);


--
-- Name: bilayoutr bilayoutr_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bilayoutr
    ADD CONSTRAINT bilayoutr_pkey PRIMARY KEY (codbilayoutr);


--
-- Name: biproc biproc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.biproc
    ADD CONSTRAINT biproc_pkey PRIMARY KEY (codbiproc);


--
-- Name: bombacomb bombacomb_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bombacomb
    ADD CONSTRAINT bombacomb_pkey PRIMARY KEY (codbombacomb);


--
-- Name: caixa caixa_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.caixa
    ADD CONSTRAINT caixa_pkey PRIMARY KEY (codcaixa);


--
-- Name: carretamov carretamov_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.carretamov
    ADD CONSTRAINT carretamov_pkey PRIMARY KEY (codcarretamov);


--
-- Name: cfopnotaviagem cfopnotaviagem_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cfopnotaviagem
    ADD CONSTRAINT cfopnotaviagem_pkey PRIMARY KEY (codcfopnotaviagem);


--
-- Name: chequestatus chequestatus_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.chequestatus
    ADD CONSTRAINT chequestatus_pkey PRIMARY KEY (codchequestatus);


--
-- Name: chequestatuslog chequestatuslog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.chequestatuslog
    ADD CONSTRAINT chequestatuslog_pkey PRIMARY KEY (codchequestatuslog);


--
-- Name: cidadedist cidadedist_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cidadedist
    ADD CONSTRAINT cidadedist_pkey PRIMARY KEY (codcidadedist);


--
-- Name: clienteagenda clienteagenda_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteagenda
    ADD CONSTRAINT clienteagenda_pkey PRIMARY KEY (codagenda);


--
-- Name: clienteclas clienteclas_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteclas
    ADD CONSTRAINT clienteclas_pkey PRIMARY KEY (codclienteclas);


--
-- Name: clientecolent clientecolent_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientecolent
    ADD CONSTRAINT clientecolent_pkey PRIMARY KEY (codclientecolent);


--
-- Name: clientecom clientecom_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientecom
    ADD CONSTRAINT clientecom_pkey PRIMARY KEY (codclientecom);


--
-- Name: clientecont clientecont_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientecont
    ADD CONSTRAINT clientecont_pkey PRIMARY KEY (codclientecont);


--
-- Name: clienteddr clienteddr_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteddr
    ADD CONSTRAINT clienteddr_pkey PRIMARY KEY (codddr);


--
-- Name: clientedesp clientedesp_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientedesp
    ADD CONSTRAINT clientedesp_pkey PRIMARY KEY (codclientedesp);


--
-- Name: clientediavenc clientediavenc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientediavenc
    ADD CONSTRAINT clientediavenc_pkey PRIMARY KEY (codclientediavenc);


--
-- Name: clientemot clientemot_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientemot
    ADD CONSTRAINT clientemot_pkey PRIMARY KEY (codclientemot);


--
-- Name: clienteop clienteop_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteop
    ADD CONSTRAINT clienteop_pkey PRIMARY KEY (codclienteop);


--
-- Name: clienteopfis clienteopfis_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteopfis
    ADD CONSTRAINT clienteopfis_pkey PRIMARY KEY (codclienteopfis);


--
-- Name: clienterefbanc clienterefbanc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienterefbanc
    ADD CONSTRAINT clienterefbanc_pkey PRIMARY KEY (codclienterefbanc);


--
-- Name: clienterefcom clienterefcom_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienterefcom
    ADD CONSTRAINT clienterefcom_pkey PRIMARY KEY (codclienterefcom);


--
-- Name: clientetempo clientetempo_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientetempo
    ADD CONSTRAINT clientetempo_pkey PRIMARY KEY (codclientetempo);


--
-- Name: coletaentregamot coletaentregamot_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.coletaentregamot
    ADD CONSTRAINT coletaentregamot_pkey PRIMARY KEY (codcoletaentregamot);


--
-- Name: coletaentregasetor coletaentregasetor_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.coletaentregasetor
    ADD CONSTRAINT coletaentregasetor_pkey PRIMARY KEY (codcoletaentregasetor);


--
-- Name: coletaentregaveic coletaentregaveic_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.coletaentregaveic
    ADD CONSTRAINT coletaentregaveic_pkey PRIMARY KEY (codcoletaentregaveic);


--
-- Name: conhecimentodoc conhecimentodoc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodoc
    ADD CONSTRAINT conhecimentodoc_pkey PRIMARY KEY (codconhecimentodoc);


--
-- Name: conhecimentogrop conhecimentogrop_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentogrop
    ADD CONSTRAINT conhecimentogrop_pkey PRIMARY KEY (codconhecimentogrop);


--
-- Name: conhecimentomotorista conhecimentomotorista_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentomotorista
    ADD CONSTRAINT conhecimentomotorista_pkey PRIMARY KEY (codconhecimentomotorista);


--
-- Name: conhecimentonota conhecimentonota_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentonota
    ADD CONSTRAINT conhecimentonota_pkey PRIMARY KEY (codconhecimentonota);


--
-- Name: conhecimentonotacaixa conhecimentonotacaixa_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentonotacaixa
    ADD CONSTRAINT conhecimentonotacaixa_pkey PRIMARY KEY (codconhecimentonotacaixa);


--
-- Name: conhecimentonotadoc conhecimentonotadoc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentonotadoc
    ADD CONSTRAINT conhecimentonotadoc_pkey PRIMARY KEY (codconhecimentonotadoc);


--
-- Name: conhecimentonotamerc conhecimentonotamerc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentonotamerc
    ADD CONSTRAINT conhecimentonotamerc_pkey PRIMARY KEY (codconhecimentonotamerc);


--
-- Name: conhecimentoocolog conhecimentoocolog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoocolog
    ADD CONSTRAINT conhecimentoocolog_pkey PRIMARY KEY (codconhecimentoocolog);


--
-- Name: conhecimentosolic conhecimentosolic_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentosolic
    ADD CONSTRAINT conhecimentosolic_pkey PRIMARY KEY (codconhecimentosolic);


--
-- Name: conhecimentostatus conhecimentostatus_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentostatus
    ADD CONSTRAINT conhecimentostatus_pkey PRIMARY KEY (codconhecimentostatus);


--
-- Name: conhecimentoxml conhecimentoxml_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoxml
    ADD CONSTRAINT conhecimentoxml_pkey PRIMARY KEY (codconhecimentoxml);


--
-- Name: conhecimentoxmloco conhecimentoxmloco_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoxmloco
    ADD CONSTRAINT conhecimentoxmloco_pkey PRIMARY KEY (codconhecimentoxmloco);


--
-- Name: contaitem contaitem_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contaitem
    ADD CONSTRAINT contaitem_pkey PRIMARY KEY (codcontaitem);


--
-- Name: contlancdetorig contlancdetorig_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contlancdetorig
    ADD CONSTRAINT contlancdetorig_pkey PRIMARY KEY (codcontlancdetorig);


--
-- Name: contratoaj contratoaj_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contratoaj
    ADD CONSTRAINT contratoaj_pkey PRIMARY KEY (codcontratoaj);


--
-- Name: contratocolent contratocolent_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contratocolent
    ADD CONSTRAINT contratocolent_pkey PRIMARY KEY (codcontratocolent);


--
-- Name: contratodesp contratodesp_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contratodesp
    ADD CONSTRAINT contratodesp_pkey PRIMARY KEY (codcontratodesp);


--
-- Name: contratolib contratolib_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contratolib
    ADD CONSTRAINT contratolib_pkey PRIMARY KEY (codcontratolib);


--
-- Name: contratolog contratolog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contratolog
    ADD CONSTRAINT contratolog_pkey PRIMARY KEY (codcontratolog);


--
-- Name: contratoparc contratoparc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contratoparc
    ADD CONSTRAINT contratoparc_pkey PRIMARY KEY (codcontratoparc);


--
-- Name: contratoval contratoval_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contratoval
    ADD CONSTRAINT contratoval_pkey PRIMARY KEY (codcontratoval);


--
-- Name: cotfretelog cotfretelog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cotfretelog
    ADD CONSTRAINT cotfretelog_pkey PRIMARY KEY (codcotfretelog);


--
-- Name: cotfretemerc cotfretemerc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cotfretemerc
    ADD CONSTRAINT cotfretemerc_pkey PRIMARY KEY (codcotfretemerc);


--
-- Name: cotfretemercpedido cotfretemercpedido_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cotfretemercpedido
    ADD CONSTRAINT cotfretemercpedido_pkey PRIMARY KEY (codcotfretemercpedido);


--
-- Name: credencial credencial_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.credencial
    ADD CONSTRAINT credencial_pkey PRIMARY KEY (codcredencial);


--
-- Name: databi databi_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.databi
    ADD CONSTRAINT databi_pkey PRIMARY KEY (coddatabi);


--
-- Name: deposito deposito_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.deposito
    ADD CONSTRAINT deposito_pkey PRIMARY KEY (coddeposito);


--
-- Name: depositodoca depositodoca_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.depositodoca
    ADD CONSTRAINT depositodoca_pkey PRIMARY KEY (coddepositodoca);


--
-- Name: documento documento_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.documento
    ADD CONSTRAINT documento_pkey PRIMARY KEY (coddocumento);


--
-- Name: duplicatapagar duplicatapagar_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.duplicatapagar
    ADD CONSTRAINT duplicatapagar_pkey PRIMARY KEY (codduplicatapagar);


--
-- Name: duplicatareceber duplicatareceber_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.duplicatareceber
    ADD CONSTRAINT duplicatareceber_pkey PRIMARY KEY (codduplicatareceber);


--
-- Name: duplordemcompra duplordemcompra_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.duplordemcompra
    ADD CONSTRAINT duplordemcompra_pkey PRIMARY KEY (codduplordemcompra);


--
-- Name: ediviagem ediviagem_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ediviagem
    ADD CONSTRAINT ediviagem_pkey PRIMARY KEY (codediviagem);


--
-- Name: embarcadorcont embarcadorcont_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.embarcadorcont
    ADD CONSTRAINT embarcadorcont_pkey PRIMARY KEY (codembarcadorcont);


--
-- Name: empresascom empresascom_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.empresascom
    ADD CONSTRAINT empresascom_pkey PRIMARY KEY (codempresascom);


--
-- Name: empresascontacontabil empresascontacontabil_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.empresascontacontabil
    ADD CONSTRAINT empresascontacontabil_pkey PRIMARY KEY (codempresacontacontabil);


--
-- Name: empresaspar empresaspar_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.empresaspar
    ADD CONSTRAINT empresaspar_pkey PRIMARY KEY (codempresaspar);


--
-- Name: estadiafaixa estadiafaixa_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.estadiafaixa
    ADD CONSTRAINT estadiafaixa_pkey PRIMARY KEY (codestadiafaixa);


--
-- Name: exametreinamentodoc exametreinamentodoc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exametreinamentodoc
    ADD CONSTRAINT exametreinamentodoc_pkey PRIMARY KEY (codexametreinamentodoc);


--
-- Name: exametreinamentoval exametreinamentoval_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exametreinamentoval
    ADD CONSTRAINT exametreinamentoval_pkey PRIMARY KEY (codexametreinamentoval);


--
-- Name: expcampo expcampo_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.expcampo
    ADD CONSTRAINT expcampo_pkey PRIMARY KEY (codexpcampo);


--
-- Name: explog explog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.explog
    ADD CONSTRAINT explog_pkey PRIMARY KEY (codexplog);


--
-- Name: extrato extrato_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.extrato
    ADD CONSTRAINT extrato_pkey PRIMARY KEY (codextrato);


--
-- Name: extratoofx extratoofx_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.extratoofx
    ADD CONSTRAINT extratoofx_pkey PRIMARY KEY (codextratoofx);


--
-- Name: faturacompraaud faturacompraaud_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.faturacompraaud
    ADD CONSTRAINT faturacompraaud_pkey PRIMARY KEY (codfaturacompraaud);


--
-- Name: faturacompracon faturacompracon_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.faturacompracon
    ADD CONSTRAINT faturacompracon_pkey PRIMARY KEY (codfaturacompracon);


--
-- Name: faturacompraoco faturacompraoco_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.faturacompraoco
    ADD CONSTRAINT faturacompraoco_pkey PRIMARY KEY (codfaturacompraoco);


--
-- Name: filialportaria filialportaria_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filialportaria
    ADD CONSTRAINT filialportaria_pkey PRIMARY KEY (codfilialportaria);


--
-- Name: filialsalario filialsalario_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filialsalario
    ADD CONSTRAINT filialsalario_pkey PRIMARY KEY (codfilialsalario);


--
-- Name: filialseg filialseg_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filialseg
    ADD CONSTRAINT filialseg_pkey PRIMARY KEY (codfilialseg);


--
-- Name: filialsegv filialsegv_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filialsegv
    ADD CONSTRAINT filialsegv_pkey PRIMARY KEY (codfilialsegv);


--
-- Name: filialsetor filialsetor_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filialsetor
    ADD CONSTRAINT filialsetor_pkey PRIMARY KEY (codfilialsetor);


--
-- Name: fornecedoragenda fornecedoragenda_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedoragenda
    ADD CONSTRAINT fornecedoragenda_pkey PRIMARY KEY (codagenda);


--
-- Name: fornecedorcont fornecedorcont_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedorcont
    ADD CONSTRAINT fornecedorcont_pkey PRIMARY KEY (codfornecedorcont);


--
-- Name: fornecedorfil fornecedorfil_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedorfil
    ADD CONSTRAINT fornecedorfil_pkey PRIMARY KEY (codfornecedorfil);


--
-- Name: fornecedorfiscal fornecedorfiscal_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedorfiscal
    ADD CONSTRAINT fornecedorfiscal_pkey PRIMARY KEY (codfornecedorfiscal);


--
-- Name: gerriscodesp gerriscodesp_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscodesp
    ADD CONSTRAINT gerriscodesp_pkey PRIMARY KEY (codgerriscodesp);


--
-- Name: gerriscoop gerriscoop_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscoop
    ADD CONSTRAINT gerriscoop_pkey PRIMARY KEY (codgerriscoop);


--
-- Name: gerriscopgr gerriscopgr_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscopgr
    ADD CONSTRAINT gerriscopgr_pkey PRIMARY KEY (codgerriscopgr);


--
-- Name: gerriscopgrmercadoria gerriscopgrmercadoria_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscopgrmercadoria
    ADD CONSTRAINT gerriscopgrmercadoria_pkey PRIMARY KEY (codgerriscopgrmercadoria);


--
-- Name: gerriscopgrtipotransporte gerriscopgrtipotransporte_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscopgrtipotransporte
    ADD CONSTRAINT gerriscopgrtipotransporte_pkey PRIMARY KEY (codgerriscopgrtipotransporte);


--
-- Name: gerriscor gerriscor_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscor
    ADD CONSTRAINT gerriscor_pkey PRIMARY KEY (codgerriscor);


--
-- Name: gerriscordet gerriscordet_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscordet
    ADD CONSTRAINT gerriscordet_pkey PRIMARY KEY (codgerriscordet);


--
-- Name: grupoconta grupoconta_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupoconta
    ADD CONSTRAINT grupoconta_pkey PRIMARY KEY (codgrupoconta);


--
-- Name: grupofilial grupofilial_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupofilial
    ADD CONSTRAINT grupofilial_pkey PRIMARY KEY (codgrupofilial);


--
-- Name: grupomercadoria grupomercadoria_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupomercadoria
    ADD CONSTRAINT grupomercadoria_pkey PRIMARY KEY (codgrupomercadoria);


--
-- Name: grupoopcartao grupoopcartao_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupoopcartao
    ADD CONSTRAINT grupoopcartao_pkey PRIMARY KEY (codgrupoopcartao);


--
-- Name: grupousuariogr grupousuariogr_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupousuariogr
    ADD CONSTRAINT grupousuariogr_pkey PRIMARY KEY (codgrupousuariogr);


--
-- Name: grupousuariohora grupousuariohora_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupousuariohora
    ADD CONSTRAINT grupousuariohora_pkey PRIMARY KEY (codgrupousuariohora);


--
-- Name: grupousuariotipodesc grupousuariotipodesc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupousuariotipodesc
    ADD CONSTRAINT grupousuariotipodesc_pkey PRIMARY KEY (codgrupousuariotipodesc);


--
-- Name: implayout implayout_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.implayout
    ADD CONSTRAINT implayout_pkey PRIMARY KEY (codimplayout);


--
-- Name: implayoutlog implayoutlog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.implayoutlog
    ADD CONSTRAINT implayoutlog_pkey PRIMARY KEY (codimplayoutlog);


--
-- Name: implayoutus implayoutus_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.implayoutus
    ADD CONSTRAINT implayoutus_pkey PRIMARY KEY (codimplayoutus);


--
-- Name: imposto imposto_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.imposto
    ADD CONSTRAINT imposto_pkey PRIMARY KEY (codimposto);


--
-- Name: impostocidade impostocidade_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostocidade
    ADD CONSTRAINT impostocidade_pkey PRIMARY KEY (codimpostocidade);


--
-- Name: impostocidadevinc impostocidadevinc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostocidadevinc
    ADD CONSTRAINT impostocidadevinc_pkey PRIMARY KEY (codimpostocidadevinc);


--
-- Name: impostocontrib impostocontrib_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostocontrib
    ADD CONSTRAINT impostocontrib_pkey PRIMARY KEY (codimpostocontrib);


--
-- Name: impostocredpres impostocredpres_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostocredpres
    ADD CONSTRAINT impostocredpres_pkey PRIMARY KEY (codimpostocredpres);


--
-- Name: impostouf impostouf_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostouf
    ADD CONSTRAINT impostouf_pkey PRIMARY KEY (codimpostouf);


--
-- Name: impostoufvinc impostoufvinc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostoufvinc
    ADD CONSTRAINT impostoufvinc_pkey PRIMARY KEY (codimpostoufvinc);


--
-- Name: fatura integ_10; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fatura
    ADD CONSTRAINT integ_10 PRIMARY KEY (codfatura);


--
-- Name: cargo integ_100; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cargo
    ADD CONSTRAINT integ_100 PRIMARY KEY (codcargo);


--
-- Name: apagado integ_105; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.apagado
    ADD CONSTRAINT integ_105 PRIMARY KEY (codapagado);


--
-- Name: auxabc integ_112; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auxabc
    ADD CONSTRAINT integ_112 PRIMARY KEY (codigo);


--
-- Name: itemnota integ_120; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT integ_120 PRIMARY KEY (codinterno);


--
-- Name: mesanobloq integ_123; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mesanobloq
    ADD CONSTRAINT integ_123 PRIMARY KEY (mes, ano);


--
-- Name: unidadenegocio integ_125; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadenegocio
    ADD CONSTRAINT integ_125 PRIMARY KEY (codunidadenegocio);


--
-- Name: fornecedorpreco integ_128; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedorpreco
    ADD CONSTRAINT integ_128 PRIMARY KEY (codfornecedorpreco);


--
-- Name: pedido integ_13; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT integ_13 PRIMARY KEY (numero);


--
-- Name: acertomotorista integ_130; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acertomotorista
    ADD CONSTRAINT integ_130 PRIMARY KEY (codacertomotorista);


--
-- Name: frete integ_135; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.frete
    ADD CONSTRAINT integ_135 PRIMARY KEY (codfrete);


--
-- Name: veiculolog integ_140; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculolog
    ADD CONSTRAINT integ_140 PRIMARY KEY (codveiculolog);


--
-- Name: pedidodest integ_145; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidodest
    ADD CONSTRAINT integ_145 PRIMARY KEY (codpedidodest);


--
-- Name: conhecimento integ_15; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT integ_15 PRIMARY KEY (numero);


--
-- Name: adiantamentostatus integ_160; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.adiantamentostatus
    ADD CONSTRAINT integ_160 PRIMARY KEY (numero);


--
-- Name: conta integ_17; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conta
    ADD CONSTRAINT integ_17 PRIMARY KEY (numeroconta);


--
-- Name: itemnotamotorista integ_177; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotamotorista
    ADD CONSTRAINT integ_177 PRIMARY KEY (coditemnotamotorista);


--
-- Name: cheque integ_18; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cheque
    ADD CONSTRAINT integ_18 PRIMARY KEY (codinterno);


--
-- Name: cfop integ_188; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cfop
    ADD CONSTRAINT integ_188 PRIMARY KEY (codcfop);


--
-- Name: supergrupofinanceiro integ_190; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.supergrupofinanceiro
    ADD CONSTRAINT integ_190 PRIMARY KEY (codsupergrupofinanceiro);


--
-- Name: grupofinanceiro integ_192; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupofinanceiro
    ADD CONSTRAINT integ_192 PRIMARY KEY (codgrupofinanceiro);


--
-- Name: itemfinanceiro integ_194; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemfinanceiro
    ADD CONSTRAINT integ_194 PRIMARY KEY (coditemfinanceiro);


--
-- Name: tipoborracha integ_196; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoborracha
    ADD CONSTRAINT integ_196 PRIMARY KEY (codtipoborracha);


--
-- Name: itemnotamotoristalog integ_204; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotamotoristalog
    ADD CONSTRAINT integ_204 PRIMARY KEY (coditemnotamotoristalog);


--
-- Name: motoristaexame integ_207; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristaexame
    ADD CONSTRAINT integ_207 PRIMARY KEY (codmotoristaexame);


--
-- Name: pneufimvida integ_209; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneufimvida
    ADD CONSTRAINT integ_209 PRIMARY KEY (codpneufimvida);


--
-- Name: ordemcompra integ_212; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcompra
    ADD CONSTRAINT integ_212 PRIMARY KEY (codordemcompra);


--
-- Name: tiporastreamento integ_232; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tiporastreamento
    ADD CONSTRAINT integ_232 PRIMARY KEY (codtiporastreamento);


--
-- Name: conhecimentolog integ_235; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentolog
    ADD CONSTRAINT integ_235 PRIMARY KEY (codconhecimentolog);


--
-- Name: processo integ_237; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.processo
    ADD CONSTRAINT integ_237 PRIMARY KEY (codprocesso);


--
-- Name: tipoveiculo integ_24; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoveiculo
    ADD CONSTRAINT integ_24 PRIMARY KEY (codtipoveiculo);


--
-- Name: tipotransporte integ_244; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipotransporte
    ADD CONSTRAINT integ_244 PRIMARY KEY (codtipotransporte);


--
-- Name: cot integ_246; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cot
    ADD CONSTRAINT integ_246 PRIMARY KEY (codcot);


--
-- Name: grupo integ_25; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupo
    ADD CONSTRAINT integ_25 PRIMARY KEY (codgrupo);


--
-- Name: tipopagto integ_257; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipopagto
    ADD CONSTRAINT integ_257 PRIMARY KEY (codtipopagto);


--
-- Name: notaadiant integ_262; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaadiant
    ADD CONSTRAINT integ_262 PRIMARY KEY (codnotaadiant);


--
-- Name: exametreinamento integ_264; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exametreinamento
    ADD CONSTRAINT integ_264 PRIMARY KEY (codexametreinamento);


--
-- Name: uforigdest integ_266; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.uforigdest
    ADD CONSTRAINT integ_266 PRIMARY KEY (coduforigdest);


--
-- Name: manif integ_268; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manif
    ADD CONSTRAINT integ_268 PRIMARY KEY (codmanif);


--
-- Name: item integ_27; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.item
    ADD CONSTRAINT integ_27 PRIMARY KEY (coditem);


--
-- Name: gerrisco integ_276; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerrisco
    ADD CONSTRAINT integ_276 PRIMARY KEY (codgerrisco);


--
-- Name: motoristagerrisco integ_279; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristagerrisco
    ADD CONSTRAINT integ_279 PRIMARY KEY (codmotoristagerrisco);


--
-- Name: fornecedor integ_28; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedor
    ADD CONSTRAINT integ_28 PRIMARY KEY (codfornecedor);


--
-- Name: proprietariogerrisco integ_282; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariogerrisco
    ADD CONSTRAINT integ_282 PRIMARY KEY (codproprietariogerrisco);


--
-- Name: tipoocorrencia integ_284; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoocorrencia
    ADD CONSTRAINT integ_284 PRIMARY KEY (codtipoocorrencia);


--
-- Name: conhecimentoocorrencia integ_288; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoocorrencia
    ADD CONSTRAINT integ_288 PRIMARY KEY (codconhecimentoocorrencia);


--
-- Name: departamento integ_290; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.departamento
    ADD CONSTRAINT integ_290 PRIMARY KEY (coddepartamento);


--
-- Name: tipofinanc integ_292; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipofinanc
    ADD CONSTRAINT integ_292 PRIMARY KEY (codtipofinanc);


--
-- Name: tipolicenca integ_294; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipolicenca
    ADD CONSTRAINT integ_294 PRIMARY KEY (codtipolicenca);


--
-- Name: tipocarroceria integ_296; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipocarroceria
    ADD CONSTRAINT integ_296 PRIMARY KEY (codtipocarroceria);


--
-- Name: tipocliente integ_298; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipocliente
    ADD CONSTRAINT integ_298 PRIMARY KEY (codtipocliente);


--
-- Name: cidade integ_3; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cidade
    ADD CONSTRAINT integ_3 PRIMARY KEY (codcidade);


--
-- Name: veiculoacidente integ_300; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoacidente
    ADD CONSTRAINT integ_300 PRIMARY KEY (codveiculoacidente);


--
-- Name: parametroempresa integ_302; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametroempresa
    ADD CONSTRAINT integ_302 PRIMARY KEY (descricao);


--
-- Name: nota integ_31; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nota
    ADD CONSTRAINT integ_31 PRIMARY KEY (codnota);


--
-- Name: rota integ_310; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rota
    ADD CONSTRAINT integ_310 PRIMARY KEY (codrota);


--
-- Name: cotfrete integ_317; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cotfrete
    ADD CONSTRAINT integ_317 PRIMARY KEY (codcotfrete);


--
-- Name: exp integ_325; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exp
    ADD CONSTRAINT integ_325 PRIMARY KEY (codexp);


--
-- Name: ordemcar integ_33; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT integ_33 PRIMARY KEY (codordemcar);


--
-- Name: imp integ_333; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.imp
    ADD CONSTRAINT integ_333 PRIMARY KEY (codimp);


--
-- Name: impcampo integ_336; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impcampo
    ADD CONSTRAINT integ_336 PRIMARY KEY (codimpcampo);


--
-- Name: tiporecto integ_338; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tiporecto
    ADD CONSTRAINT integ_338 PRIMARY KEY (codtiporecto);


--
-- Name: tipojustificativa integ_340; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipojustificativa
    ADD CONSTRAINT integ_340 PRIMARY KEY (codtipojustificativa);


--
-- Name: veiculoprod integ_342; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoprod
    ADD CONSTRAINT integ_342 PRIMARY KEY (codveiculoprod);


--
-- Name: tipooperacao integ_344; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipooperacao
    ADD CONSTRAINT integ_344 PRIMARY KEY (codtipooperacao);


--
-- Name: moeda integ_35; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.moeda
    ADD CONSTRAINT integ_35 PRIMARY KEY (codmoeda);


--
-- Name: veiculomov integ_350; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomov
    ADD CONSTRAINT integ_350 PRIMARY KEY (codveiculomov);


--
-- Name: tipoequip integ_352; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoequip
    ADD CONSTRAINT integ_352 PRIMARY KEY (codtipoequip);


--
-- Name: tipoequiploc integ_354; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoequiploc
    ADD CONSTRAINT integ_354 PRIMARY KEY (codtipoequiploc);


--
-- Name: equip integ_356; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.equip
    ADD CONSTRAINT integ_356 PRIMARY KEY (codequip);


--
-- Name: equiplog integ_358; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.equiplog
    ADD CONSTRAINT integ_358 PRIMARY KEY (codequiplog);


--
-- Name: tipodoc integ_360; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipodoc
    ADD CONSTRAINT integ_360 PRIMARY KEY (codtipodoc);


--
-- Name: obsfiscal integ_362; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.obsfiscal
    ADD CONSTRAINT integ_362 PRIMARY KEY (codobsfiscal);


--
-- Name: veiculoitemfer integ_364; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoitemfer
    ADD CONSTRAINT integ_364 PRIMARY KEY (codveiculoitemfer);


--
-- Name: banco integ_366; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.banco
    ADD CONSTRAINT integ_366 PRIMARY KEY (codbanco);


--
-- Name: bancotipopagto integ_368; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bancotipopagto
    ADD CONSTRAINT integ_368 PRIMARY KEY (codbancotipopagto);


--
-- Name: faturacompra integ_37; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.faturacompra
    ADD CONSTRAINT integ_37 PRIMARY KEY (codfatura);


--
-- Name: clientecc integ_370; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientecc
    ADD CONSTRAINT integ_370 PRIMARY KEY (codclientecc);


--
-- Name: motivobloqueio integ_372; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motivobloqueio
    ADD CONSTRAINT integ_372 PRIMARY KEY (codmotivobloqueio);


--
-- Name: clientechequerec integ_374; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientechequerec
    ADD CONSTRAINT integ_374 PRIMARY KEY (codclientechequerec);


--
-- Name: clientechequereccc integ_376; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientechequereccc
    ADD CONSTRAINT integ_376 PRIMARY KEY (codclientechequereccc);


--
-- Name: chequerec integ_378; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.chequerec
    ADD CONSTRAINT integ_378 PRIMARY KEY (codchequerec);


--
-- Name: transacao integ_38; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transacao
    ADD CONSTRAINT integ_38 PRIMARY KEY (codtransacao);


--
-- Name: motoristaref integ_380; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristaref
    ADD CONSTRAINT integ_380 PRIMARY KEY (codmotoristaref);


--
-- Name: ordemcarstatus integ_384; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcarstatus
    ADD CONSTRAINT integ_384 PRIMARY KEY (codordemcarstatus);


--
-- Name: motorista integ_39; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motorista
    ADD CONSTRAINT integ_39 PRIMARY KEY (codmotorista);


--
-- Name: proprietarioref integ_392; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietarioref
    ADD CONSTRAINT integ_392 PRIMARY KEY (codproprietarioref);


--
-- Name: malote integ_394; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.malote
    ADD CONSTRAINT integ_394 PRIMARY KEY (codmalote);


--
-- Name: maloteenv integ_396; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maloteenv
    ADD CONSTRAINT integ_396 PRIMARY KEY (codmaloteenv);


--
-- Name: notastatus integ_398; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notastatus
    ADD CONSTRAINT integ_398 PRIMARY KEY (codnotastatus);


--
-- Name: adiantamento integ_40; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.adiantamento
    ADD CONSTRAINT integ_40 PRIMARY KEY (codadiantamento);


--
-- Name: fornecedorcc integ_400; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedorcc
    ADD CONSTRAINT integ_400 PRIMARY KEY (codfornecedorcc);


--
-- Name: megagrupofinanceiro integ_405; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.megagrupofinanceiro
    ADD CONSTRAINT integ_405 PRIMARY KEY (codmegagrupofinanceiro);


--
-- Name: hipergrupofinanceiro integ_407; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.hipergrupofinanceiro
    ADD CONSTRAINT integ_407 PRIMARY KEY (codhipergrupofinanceiro);


--
-- Name: embarcador integ_41; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.embarcador
    ADD CONSTRAINT integ_41 PRIMARY KEY (codembarcador);


--
-- Name: transacoestemp integ_412; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transacoestemp
    ADD CONSTRAINT integ_412 PRIMARY KEY (codtransacaotemp);


--
-- Name: campo integ_414; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campo
    ADD CONSTRAINT integ_414 PRIMARY KEY (codcampo);


--
-- Name: cor integ_416; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cor
    ADD CONSTRAINT integ_416 PRIMARY KEY (codcor);


--
-- Name: marca integ_418; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.marca
    ADD CONSTRAINT integ_418 PRIMARY KEY (codmarca);


--
-- Name: proprietario integ_42; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietario
    ADD CONSTRAINT integ_42 PRIMARY KEY (codproprietario);


--
-- Name: modeloveic integ_420; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.modeloveic
    ADD CONSTRAINT integ_420 PRIMARY KEY (codmodelo);


--
-- Name: contacontabil integ_422; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contacontabil
    ADD CONSTRAINT integ_422 PRIMARY KEY (codcontacontabil);


--
-- Name: tipoobspedido integ_425; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoobspedido
    ADD CONSTRAINT integ_425 PRIMARY KEY (codtipoobs);


--
-- Name: topico integ_426; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.topico
    ADD CONSTRAINT integ_426 PRIMARY KEY (codtopico);


--
-- Name: subtopico integ_427; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.subtopico
    ADD CONSTRAINT integ_427 PRIMARY KEY (codsubtopico);


--
-- Name: tipoquestao integ_428; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoquestao
    ADD CONSTRAINT integ_428 PRIMARY KEY (codtipoquestao);


--
-- Name: questionario integ_429; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questionario
    ADD CONSTRAINT integ_429 PRIMARY KEY (codquestionario);


--
-- Name: veiculo integ_43; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT integ_43 PRIMARY KEY (codveiculo);


--
-- Name: questao integ_430; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questao
    ADD CONSTRAINT integ_430 PRIMARY KEY (codquestao);


--
-- Name: resposta integ_431; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resposta
    ADD CONSTRAINT integ_431 PRIMARY KEY (codresposta);


--
-- Name: questionariousuario integ_432; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questionariousuario
    ADD CONSTRAINT integ_432 PRIMARY KEY (codquestionariousuario);


--
-- Name: respostausuario integ_433; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.respostausuario
    ADD CONSTRAINT integ_433 PRIMARY KEY (codrespostausuario);


--
-- Name: protocolofatura integ_434; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.protocolofatura
    ADD CONSTRAINT integ_434 PRIMARY KEY (codprotocolofat);


--
-- Name: agenda integ_435; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.agenda
    ADD CONSTRAINT integ_435 PRIMARY KEY (codagenda);


--
-- Name: grupousuario integ_437; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupousuario
    ADD CONSTRAINT integ_437 PRIMARY KEY (nome);


--
-- Name: clienteveiculo integ_439; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteveiculo
    ADD CONSTRAINT integ_439 PRIMARY KEY (codveiccliente);


--
-- Name: mercadoria integ_44; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mercadoria
    ADD CONSTRAINT integ_44 PRIMARY KEY (codmercadoria);


--
-- Name: itemnotalog integ_440; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotalog
    ADD CONSTRAINT integ_440 PRIMARY KEY (coditemnotalog);


--
-- Name: conhecimentodocant integ_441; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodocant
    ADD CONSTRAINT integ_441 PRIMARY KEY (codconhecimentodocant);


--
-- Name: tipodocaud integ_443; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipodocaud
    ADD CONSTRAINT integ_443 PRIMARY KEY (codtipodocaud);


--
-- Name: tipoacaoaud integ_445; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoacaoaud
    ADD CONSTRAINT integ_445 PRIMARY KEY (codtipoacaoaud);


--
-- Name: auditoria integ_447; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auditoria
    ADD CONSTRAINT integ_447 PRIMARY KEY (codauditoria);


--
-- Name: empresa integ_45; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.empresa
    ADD CONSTRAINT integ_45 PRIMARY KEY (codempresa);


--
-- Name: acaoaud integ_455; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acaoaud
    ADD CONSTRAINT integ_455 PRIMARY KEY (codacaoaud);


--
-- Name: auditorialog integ_460; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auditorialog
    ADD CONSTRAINT integ_460 PRIMARY KEY (codauditorialog);


--
-- Name: itemnotarem integ_463; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotarem
    ADD CONSTRAINT integ_463 PRIMARY KEY (coditemnotarem);


--
-- Name: pais integ_464; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pais
    ADD CONSTRAINT integ_464 PRIMARY KEY (codpais);


--
-- Name: visitante integ_465; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitante
    ADD CONSTRAINT integ_465 PRIMARY KEY (codvisitante);


--
-- Name: ordemcompraadiant integ_466; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcompraadiant
    ADD CONSTRAINT integ_466 PRIMARY KEY (codordemcompraadiant);


--
-- Name: recursosgrupousuario integ_469; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recursosgrupousuario
    ADD CONSTRAINT integ_469 PRIMARY KEY (nome, menuitem);


--
-- Name: supergrupo integ_47; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.supergrupo
    ADD CONSTRAINT integ_47 PRIMARY KEY (codsupergrupo);


--
-- Name: especiemerc integ_471; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.especiemerc
    ADD CONSTRAINT integ_471 PRIMARY KEY (codespeciemerc);


--
-- Name: veiculoacidenteconh integ_473; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoacidenteconh
    ADD CONSTRAINT integ_473 PRIMARY KEY (codveiculoacidenteconh);


--
-- Name: usuariolog integ_475; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariolog
    ADD CONSTRAINT integ_475 PRIMARY KEY (codusuariolog);


--
-- Name: menusup integ_477; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.menusup
    ADD CONSTRAINT integ_477 PRIMARY KEY (codmenusup);


--
-- Name: menuitem integ_479; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.menuitem
    ADD CONSTRAINT integ_479 PRIMARY KEY (codmenuitem);


--
-- Name: recurso integ_483; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recurso
    ADD CONSTRAINT integ_483 PRIMARY KEY (codrecurso);


--
-- Name: grupoauditoria integ_486; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupoauditoria
    ADD CONSTRAINT integ_486 PRIMARY KEY (codgrupoauditoria);


--
-- Name: local integ_49; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.local
    ADD CONSTRAINT integ_49 PRIMARY KEY (codlocal);


--
-- Name: veiculomulta integ_496; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomulta
    ADD CONSTRAINT integ_496 PRIMARY KEY (codveiculomulta);


--
-- Name: tipoccempfunc integ_497; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoccempfunc
    ADD CONSTRAINT integ_497 PRIMARY KEY (codtipoccempfunc);


--
-- Name: coletaentregacont integ_498; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.coletaentregacont
    ADD CONSTRAINT integ_498 PRIMARY KEY (codcoletaentregacont);


--
-- Name: tipologmotorista integ_499; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipologmotorista
    ADD CONSTRAINT integ_499 PRIMARY KEY (codtipologmotorista);


--
-- Name: cotfretetaxa integ_500; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cotfretetaxa
    ADD CONSTRAINT integ_500 PRIMARY KEY (codcotfretetaxa);


--
-- Name: embarcadororc integ_501; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.embarcadororc
    ADD CONSTRAINT integ_501 PRIMARY KEY (codembarcadororc);


--
-- Name: itemsim integ_503; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemsim
    ADD CONSTRAINT integ_503 PRIMARY KEY (coditemsim);


--
-- Name: cargoexametreinamento integ_504; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cargoexametreinamento
    ADD CONSTRAINT integ_504 PRIMARY KEY (codcargoexametreinamento);


--
-- Name: veiculoacidenteadiant integ_505; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoacidenteadiant
    ADD CONSTRAINT integ_505 PRIMARY KEY (codveiculoacidenteadiant);


--
-- Name: obsfiscalue integ_506; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.obsfiscalue
    ADD CONSTRAINT integ_506 PRIMARY KEY (codobsfiscalue);


--
-- Name: veiculocl integ_507; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculocl
    ADD CONSTRAINT integ_507 PRIMARY KEY (codveiculocl);


--
-- Name: veiculoclitem integ_508; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoclitem
    ADD CONSTRAINT integ_508 PRIMARY KEY (codveiculoclitem);


--
-- Name: mercadoriatipocar integ_509; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mercadoriatipocar
    ADD CONSTRAINT integ_509 PRIMARY KEY (codmercadoriatipocar);


--
-- Name: tipoevento integ_51; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoevento
    ADD CONSTRAINT integ_51 PRIMARY KEY (codtipoevento);


--
-- Name: tipoacidente integ_510; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoacidente
    ADD CONSTRAINT integ_510 PRIMARY KEY (codtipoacidente);


--
-- Name: usuarioproprietario integ_512; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuarioproprietario
    ADD CONSTRAINT integ_512 PRIMARY KEY (codusuarioproprietario);


--
-- Name: proprietarioagenda integ_513; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietarioagenda
    ADD CONSTRAINT integ_513 PRIMARY KEY (codproprietarioagenda);


--
-- Name: motoristaagenda integ_514; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristaagenda
    ADD CONSTRAINT integ_514 PRIMARY KEY (codmotoristaagenda);


--
-- Name: manifev integ_516; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifev
    ADD CONSTRAINT integ_516 PRIMARY KEY (codmanifev);


--
-- Name: conhecimentoev integ_525; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoev
    ADD CONSTRAINT integ_525 PRIMARY KEY (codconhecimentoev);


--
-- Name: clientecnd integ_528; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientecnd
    ADD CONSTRAINT integ_528 PRIMARY KEY (codclientecnd);


--
-- Name: modelo integ_53; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.modelo
    ADD CONSTRAINT integ_53 PRIMARY KEY (codmodelo);


--
-- Name: notaev integ_531; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaev
    ADD CONSTRAINT integ_531 PRIMARY KEY (codnotaev);


--
-- Name: conthist integ_533; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conthist
    ADD CONSTRAINT integ_533 PRIMARY KEY (codconthist);


--
-- Name: contlanc integ_535; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contlanc
    ADD CONSTRAINT integ_535 PRIMARY KEY (codcontlanc);


--
-- Name: contlancdet integ_537; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contlancdet
    ADD CONSTRAINT integ_537 PRIMARY KEY (codcontlancdet);


--
-- Name: acertoproprietario integ_538; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acertoproprietario
    ADD CONSTRAINT integ_538 PRIMARY KEY (codacertoproprietario);


--
-- Name: grupomsg integ_539; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupomsg
    ADD CONSTRAINT integ_539 PRIMARY KEY (codgrupomsg);


--
-- Name: grupomsgdet integ_540; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupomsgdet
    ADD CONSTRAINT integ_540 PRIMARY KEY (codgrupomsgdet);


--
-- Name: veiculoacidentelog integ_541; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoacidentelog
    ADD CONSTRAINT integ_541 PRIMARY KEY (codveiculoacidentelog);


--
-- Name: consultalog integ_542; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.consultalog
    ADD CONSTRAINT integ_542 PRIMARY KEY (codconsultalog);


--
-- Name: veiculocontrato integ_543; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculocontrato
    ADD CONSTRAINT integ_543 PRIMARY KEY (codveiculocontrato);


--
-- Name: pneumovmot integ_544; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneumovmot
    ADD CONSTRAINT integ_544 PRIMARY KEY (codpneumovmot);


--
-- Name: faturalog integ_545; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.faturalog
    ADD CONSTRAINT integ_545 PRIMARY KEY (codfaturalog);


--
-- Name: motoristasalev integ_546; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristasalev
    ADD CONSTRAINT integ_546 PRIMARY KEY (codmotoristasalev);


--
-- Name: clientelimite integ_547; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientelimite
    ADD CONSTRAINT integ_547 PRIMARY KEY (codclientelimite);


--
-- Name: clientetabfrete integ_548; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientetabfrete
    ADD CONSTRAINT integ_548 PRIMARY KEY (codclientetabfrete);


--
-- Name: ordemcarlog integ_549; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcarlog
    ADD CONSTRAINT integ_549 PRIMARY KEY (codordemcarlog);


--
-- Name: fabricante integ_55; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fabricante
    ADD CONSTRAINT integ_55 PRIMARY KEY (codfabricante);


--
-- Name: itemcfop integ_550; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemcfop
    ADD CONSTRAINT integ_550 PRIMARY KEY (coditemcfop);


--
-- Name: tipocobranca integ_551; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipocobranca
    ADD CONSTRAINT integ_551 PRIMARY KEY (codtipocobranca);


--
-- Name: gerriscocartao integ_552; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscocartao
    ADD CONSTRAINT integ_552 PRIMARY KEY (codgerriscocartao);


--
-- Name: filialsped integ_553; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filialsped
    ADD CONSTRAINT integ_553 PRIMARY KEY (codfilialsped);


--
-- Name: motoristaferiado integ_554; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristaferiado
    ADD CONSTRAINT integ_554 PRIMARY KEY (codmotoristaferiado);


--
-- Name: notaxml integ_555; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxml
    ADD CONSTRAINT integ_555 PRIMARY KEY (codnotaxml);


--
-- Name: conhecimentoevdet integ_556; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoevdet
    ADD CONSTRAINT integ_556 PRIMARY KEY (codconhecimentoevdet);


--
-- Name: pneu integ_56; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneu
    ADD CONSTRAINT integ_56 PRIMARY KEY (codpneu);


--
-- Name: especiedoc integ_588; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.especiedoc
    ADD CONSTRAINT integ_588 PRIMARY KEY (codespeciedoc);


--
-- Name: statuspneu integ_60; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.statuspneu
    ADD CONSTRAINT integ_60 PRIMARY KEY (codstatuspneu);


--
-- Name: req integ_600; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.req
    ADD CONSTRAINT integ_600 PRIMARY KEY (codreq);


--
-- Name: usuarioopcartao integ_601; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuarioopcartao
    ADD CONSTRAINT integ_601 PRIMARY KEY (codusuarioopcartao);


--
-- Name: itemcodalt integ_602; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemcodalt
    ADD CONSTRAINT integ_602 PRIMARY KEY (coditemcodalt);


--
-- Name: tiponotalog integ_603; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tiponotalog
    ADD CONSTRAINT integ_603 PRIMARY KEY (codtiponotalog);


--
-- Name: notalog integ_604; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notalog
    ADD CONSTRAINT integ_604 PRIMARY KEY (codnotalog);


--
-- Name: sistemaext integ_605; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sistemaext
    ADD CONSTRAINT integ_605 PRIMARY KEY (codsistemaext);


--
-- Name: multaorgao integ_606; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.multaorgao
    ADD CONSTRAINT integ_606 PRIMARY KEY (codmultaorgao);


--
-- Name: tipomulta integ_607; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipomulta
    ADD CONSTRAINT integ_607 PRIMARY KEY (codtipomulta);


--
-- Name: veiculomultaadiant integ_608; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomultaadiant
    ADD CONSTRAINT integ_608 PRIMARY KEY (codveiculomultaadiant);


--
-- Name: veiculomultalog integ_609; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomultalog
    ADD CONSTRAINT integ_609 PRIMARY KEY (codveiculomultalog);


--
-- Name: motoristalimite integ_610; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristalimite
    ADD CONSTRAINT integ_610 PRIMARY KEY (codmotoristalimite);


--
-- Name: txtcfg integ_611; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.txtcfg
    ADD CONSTRAINT integ_611 PRIMARY KEY (codtxtcfg);


--
-- Name: txtcfgreg integ_612; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.txtcfgreg
    ADD CONSTRAINT integ_612 PRIMARY KEY (codtxtcfgreg);


--
-- Name: txtcfgregtag integ_613; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.txtcfgregtag
    ADD CONSTRAINT integ_613 PRIMARY KEY (codtxtcfgregtag);


--
-- Name: tiporastreador integ_614; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tiporastreador
    ADD CONSTRAINT integ_614 PRIMARY KEY (codtiporastreador);


--
-- Name: malotedoc integ_615; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.malotedoc
    ADD CONSTRAINT integ_615 PRIMARY KEY (codmalotedoc);


--
-- Name: conhecimentodesp integ_616; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodesp
    ADD CONSTRAINT integ_616 PRIMARY KEY (codconhecimentodesp);


--
-- Name: tipodesp integ_617; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipodesp
    ADD CONSTRAINT integ_617 PRIMARY KEY (codtipodesp);


--
-- Name: tipolicencaob integ_619; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipolicencaob
    ADD CONSTRAINT integ_619 PRIMARY KEY (codtipolicencaob);


--
-- Name: itemtipoveiculo integ_621; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemtipoveiculo
    ADD CONSTRAINT integ_621 PRIMARY KEY (coditemtipoveiculo);


--
-- Name: bancooco integ_623; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bancooco
    ADD CONSTRAINT integ_623 PRIMARY KEY (codbancooco);


--
-- Name: solcompra integ_625; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.solcompra
    ADD CONSTRAINT integ_625 PRIMARY KEY (codsolcompra);


--
-- Name: solcompraitem integ_627; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.solcompraitem
    ADD CONSTRAINT integ_627 PRIMARY KEY (codsolcompraitem);


--
-- Name: conhecimentoadic integ_629; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoadic
    ADD CONSTRAINT integ_629 PRIMARY KEY (numero);


--
-- Name: recursos integ_69; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recursos
    ADD CONSTRAINT integ_69 PRIMARY KEY (nome, menuitem);


--
-- Name: filial integ_7; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filial
    ADD CONSTRAINT integ_7 PRIMARY KEY (codfilial);


--
-- Name: feriado integ_73; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.feriado
    ADD CONSTRAINT integ_73 PRIMARY KEY (data);


--
-- Name: supergruporeceita integ_76; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.supergruporeceita
    ADD CONSTRAINT integ_76 PRIMARY KEY (codsupergruporeceita);


--
-- Name: gruporeceita integ_78; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gruporeceita
    ADD CONSTRAINT integ_78 PRIMARY KEY (codgruporeceita);


--
-- Name: condpag integ_8; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.condpag
    ADD CONSTRAINT integ_8 PRIMARY KEY (codcondicao);


--
-- Name: itemreceita integ_80; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemreceita
    ADD CONSTRAINT integ_80 PRIMARY KEY (coditemreceita);


--
-- Name: coletaentrega integ_82; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.coletaentrega
    ADD CONSTRAINT integ_82 PRIMARY KEY (codcoletaentrega);


--
-- Name: tipofornecedor integ_84; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipofornecedor
    ADD CONSTRAINT integ_84 PRIMARY KEY (codtipofornecedor);


--
-- Name: unidadeembarque integ_86; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarque
    ADD CONSTRAINT integ_86 PRIMARY KEY (codunidadeembarque);


--
-- Name: empresas integ_87; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.empresas
    ADD CONSTRAINT integ_87 PRIMARY KEY (codempresa);


--
-- Name: movitem integ_89; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.movitem
    ADD CONSTRAINT integ_89 PRIMARY KEY (codmovitem);


--
-- Name: cliente integ_9; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cliente
    ADD CONSTRAINT integ_9 PRIMARY KEY (codcliente);


--
-- Name: itemcot itemcot_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemcot
    ADD CONSTRAINT itemcot_pkey PRIMARY KEY (coditemcot);


--
-- Name: itemfilial itemfilial_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemfilial
    ADD CONSTRAINT itemfilial_pkey PRIMARY KEY (coditemfilial);


--
-- Name: iteminv iteminv_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iteminv
    ADD CONSTRAINT iteminv_pkey PRIMARY KEY (coditeminv);


--
-- Name: itemnegocio itemnegocio_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnegocio
    ADD CONSTRAINT itemnegocio_pkey PRIMARY KEY (coditemnegocio);


--
-- Name: itemnotaclas itemnotaclas_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotaclas
    ADD CONSTRAINT itemnotaclas_pkey PRIMARY KEY (coditemnotaclas);


--
-- Name: itemnotamov itemnotamov_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotamov
    ADD CONSTRAINT itemnotamov_pkey PRIMARY KEY (coditemnotamov);


--
-- Name: itemnotaobs itemnotaobs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotaobs
    ADD CONSTRAINT itemnotaobs_pkey PRIMARY KEY (coditemnotaobs);


--
-- Name: itemorcvenda itemorcvenda_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemorcvenda
    ADD CONSTRAINT itemorcvenda_pkey PRIMARY KEY (coditemorcvenda);


--
-- Name: itemordemcompra itemordemcompra_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemordemcompra
    ADD CONSTRAINT itemordemcompra_pkey PRIMARY KEY (coditemordemcompra);


--
-- Name: itemrat itemrat_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemrat
    ADD CONSTRAINT itemrat_pkey PRIMARY KEY (coditemrat);


--
-- Name: itemsubitem itemsubitem_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemsubitem
    ADD CONSTRAINT itemsubitem_pkey PRIMARY KEY (coditemsubitem);


--
-- Name: itemtabncm itemtabncm_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemtabncm
    ADD CONSTRAINT itemtabncm_pkey PRIMARY KEY (coditemtabncm);


--
-- Name: itemtipooperacao itemtipooperacao_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemtipooperacao
    ADD CONSTRAINT itemtipooperacao_pkey PRIMARY KEY (coditemtipooperacao);


--
-- Name: itemuf itemuf_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemuf
    ADD CONSTRAINT itemuf_pkey PRIMARY KEY (coditemuf);


--
-- Name: licenca licenca_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.licenca
    ADD CONSTRAINT licenca_pkey PRIMARY KEY (codlicenca);


--
-- Name: log log_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.log
    ADD CONSTRAINT log_pkey PRIMARY KEY (codlog);


--
-- Name: logactiontime logactiontime_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.logactiontime
    ADD CONSTRAINT logactiontime_pkey PRIMARY KEY (codlogactiontime);


--
-- Name: logcampo logcampo_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.logcampo
    ADD CONSTRAINT logcampo_pkey PRIMARY KEY (codlogcampo);


--
-- Name: logcom logcom_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.logcom
    ADD CONSTRAINT logcom_pkey PRIMARY KEY (codlogcom);


--
-- Name: manifchecklist manifchecklist_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifchecklist
    ADD CONSTRAINT manifchecklist_pkey PRIMARY KEY (codmanifchecklist);


--
-- Name: manifconhecimento manifconhecimento_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifconhecimento
    ADD CONSTRAINT manifconhecimento_pkey PRIMARY KEY (codmanifconhecimento);


--
-- Name: manifdoc manifdoc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifdoc
    ADD CONSTRAINT manifdoc_pkey PRIMARY KEY (codmanifdoc);


--
-- Name: maniflog maniflog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.maniflog
    ADD CONSTRAINT maniflog_pkey PRIMARY KEY (codmaniflog);


--
-- Name: manifnota manifnota_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifnota
    ADD CONSTRAINT manifnota_pkey PRIMARY KEY (codmanifnota);


--
-- Name: manifoco manifoco_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifoco
    ADD CONSTRAINT manifoco_pkey PRIMARY KEY (codmanifoco);


--
-- Name: manifpag manifpag_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifpag
    ADD CONSTRAINT manifpag_pkey PRIMARY KEY (codmanifpag);


--
-- Name: manifpagb manifpagb_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifpagb
    ADD CONSTRAINT manifpagb_pkey PRIMARY KEY (codmanifpagb);


--
-- Name: manifpagc manifpagc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifpagc
    ADD CONSTRAINT manifpagc_pkey PRIMARY KEY (codmanifpagc);


--
-- Name: manifpagp manifpagp_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifpagp
    ADD CONSTRAINT manifpagp_pkey PRIMARY KEY (codmanifpagp);


--
-- Name: manifxml manifxml_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifxml
    ADD CONSTRAINT manifxml_pkey PRIMARY KEY (codmanifxml);


--
-- Name: manifxmloco manifxmloco_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifxmloco
    ADD CONSTRAINT manifxmloco_pkey PRIMARY KEY (codmanifxmloco);


--
-- Name: mensagem mensagem_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mensagem
    ADD CONSTRAINT mensagem_pkey PRIMARY KEY (codmensagem);


--
-- Name: mercadoriancm mercadoriancm_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mercadoriancm
    ADD CONSTRAINT mercadoriancm_pkey PRIMARY KEY (codmercadoriancm);


--
-- Name: moedacot moedacot_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.moedacot
    ADD CONSTRAINT moedacot_pkey PRIMARY KEY (codmoedacot);


--
-- Name: motivo motivo_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motivo
    ADD CONSTRAINT motivo_pkey PRIMARY KEY (codmotivo);


--
-- Name: motivocanc motivocanc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motivocanc
    ADD CONSTRAINT motivocanc_pkey PRIMARY KEY (codmotivocanc);


--
-- Name: motivodemissao motivodemissao_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motivodemissao
    ADD CONSTRAINT motivodemissao_pkey PRIMARY KEY (codmotivodemissao);


--
-- Name: motoristacont motoristacont_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristacont
    ADD CONSTRAINT motoristacont_pkey PRIMARY KEY (codmotoristacont);


--
-- Name: motoristagerriscodesp motoristagerriscodesp_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristagerriscodesp
    ADD CONSTRAINT motoristagerriscodesp_pkey PRIMARY KEY (codmotoristagerriscodesp);


--
-- Name: motoristalib motoristalib_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristalib
    ADD CONSTRAINT motoristalib_pkey PRIMARY KEY (codmotoristalib);


--
-- Name: motoristalog motoristalog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristalog
    ADD CONSTRAINT motoristalog_pkey PRIMARY KEY (codmotoristalog);


--
-- Name: motoristarat motoristarat_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristarat
    ADD CONSTRAINT motoristarat_pkey PRIMARY KEY (codmotoristarat);


--
-- Name: nbs nbs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nbs
    ADD CONSTRAINT nbs_pkey PRIMARY KEY (codnbs);


--
-- Name: negocio negocio_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.negocio
    ADD CONSTRAINT negocio_pkey PRIMARY KEY (codnegocio);


--
-- Name: notadev notadev_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notadev
    ADD CONSTRAINT notadev_pkey PRIMARY KEY (codnotadev);


--
-- Name: notafilialsetor notafilialsetor_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notafilialsetor
    ADD CONSTRAINT notafilialsetor_pkey PRIMARY KEY (codnotafilialsetor);


--
-- Name: notaoco notaoco_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaoco
    ADD CONSTRAINT notaoco_pkey PRIMARY KEY (codnotaoco);


--
-- Name: notaxmloco notaxmloco_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxmloco
    ADD CONSTRAINT notaxmloco_pkey PRIMARY KEY (codnotaxmloco);


--
-- Name: orcdespesa orcdespesa_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.orcdespesa
    ADD CONSTRAINT orcdespesa_pkey PRIMARY KEY (codorcdespesa);


--
-- Name: orcreceita orcreceita_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.orcreceita
    ADD CONSTRAINT orcreceita_pkey PRIMARY KEY (codorcreceita);


--
-- Name: orcvenda orcvenda_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.orcvenda
    ADD CONSTRAINT orcvenda_pkey PRIMARY KEY (codorcvenda);


--
-- Name: ordemcaroco ordemcaroco_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcaroco
    ADD CONSTRAINT ordemcaroco_pkey PRIMARY KEY (codordemcaroco);


--
-- Name: ordemcomprapedext ordemcomprapedext_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcomprapedext
    ADD CONSTRAINT ordemcomprapedext_pkey PRIMARY KEY (codordemcomprapedext);


--
-- Name: parametro parametro_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_pkey PRIMARY KEY (codparametro);


--
-- Name: pedidodesp pedidodesp_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidodesp
    ADD CONSTRAINT pedidodesp_pkey PRIMARY KEY (codpedidodesp);


--
-- Name: pedidodoc pedidodoc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidodoc
    ADD CONSTRAINT pedidodoc_pkey PRIMARY KEY (codpedidodoc);


--
-- Name: pedidogrop pedidogrop_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidogrop
    ADD CONSTRAINT pedidogrop_pkey PRIMARY KEY (codpedidogrop);


--
-- Name: pedidoitem pedidoitem_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidoitem
    ADD CONSTRAINT pedidoitem_pkey PRIMARY KEY (codpedidoitem);


--
-- Name: pedidolog pedidolog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidolog
    ADD CONSTRAINT pedidolog_pkey PRIMARY KEY (codpedidolog);


--
-- Name: pedidomotorista pedidomotorista_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidomotorista
    ADD CONSTRAINT pedidomotorista_pkey PRIMARY KEY (codpedidomotorista);


--
-- Name: pedidonota pedidonota_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidonota
    ADD CONSTRAINT pedidonota_pkey PRIMARY KEY (codpedidonota);


--
-- Name: pedidorec pedidorec_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidorec
    ADD CONSTRAINT pedidorec_pkey PRIMARY KEY (codpedidorec);


--
-- Name: pedidorota pedidorota_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidorota
    ADD CONSTRAINT pedidorota_pkey PRIMARY KEY (codpedidorota);


--
-- Name: pedidoval pedidoval_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidoval
    ADD CONSTRAINT pedidoval_pkey PRIMARY KEY (codpedidoval);


--
-- Name: pedidovalmot pedidovalmot_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidovalmot
    ADD CONSTRAINT pedidovalmot_pkey PRIMARY KEY (codpedidovalmot);


--
-- Name: pessoaoco pessoaoco_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pessoaoco
    ADD CONSTRAINT pessoaoco_pkey PRIMARY KEY (codpessoaoco);


--
-- Name: agendatarefalog pk_agendatarefalog; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.agendatarefalog
    ADD CONSTRAINT pk_agendatarefalog PRIMARY KEY (codagendatarefalog);


--
-- Name: atendimento_temp pk_atendimento_temp; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.atendimento_temp
    ADD CONSTRAINT pk_atendimento_temp PRIMARY KEY (seq_atend_temp);


--
-- Name: bombas pk_bombas; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bombas
    ADD CONSTRAINT pk_bombas PRIMARY KEY (cod_bomba, cod_bico_bomba);


--
-- Name: contrato pk_contrato_codcontrato; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contrato
    ADD CONSTRAINT pk_contrato_codcontrato PRIMARY KEY (codcontrato);


--
-- Name: documentooco pk_documentooco; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.documentooco
    ADD CONSTRAINT pk_documentooco PRIMARY KEY (coddocumentooco);


--
-- Name: frentistas pk_frentistas; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.frentistas
    ADD CONSTRAINT pk_frentistas PRIMARY KEY (cod_frentista);


--
-- Name: usuario pk_usuario; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuario
    ADD CONSTRAINT pk_usuario PRIMARY KEY (codusuario);


--
-- Name: pneumov pneumov_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneumov
    ADD CONSTRAINT pneumov_pkey PRIMARY KEY (codpneumov);


--
-- Name: posicao posicao_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.posicao
    ADD CONSTRAINT posicao_pkey PRIMARY KEY (codposicao);


--
-- Name: processolog processolog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.processolog
    ADD CONSTRAINT processolog_pkey PRIMARY KEY (codprocessolog);


--
-- Name: progfrete progfrete_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.progfrete
    ADD CONSTRAINT progfrete_pkey PRIMARY KEY (codprogfrete);


--
-- Name: progfretedia progfretedia_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.progfretedia
    ADD CONSTRAINT progfretedia_pkey PRIMARY KEY (codprogfretedia);


--
-- Name: progfreteped progfreteped_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.progfreteped
    ADD CONSTRAINT progfreteped_pkey PRIMARY KEY (codprogfreteped);


--
-- Name: proprietariocc proprietariocc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariocc
    ADD CONSTRAINT proprietariocc_pkey PRIMARY KEY (codproprietariocc);


--
-- Name: proprietariocodext proprietariocodext_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariocodext
    ADD CONSTRAINT proprietariocodext_pkey PRIMARY KEY (codproprietariocodext);


--
-- Name: proprietariocont proprietariocont_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariocont
    ADD CONSTRAINT proprietariocont_pkey PRIMARY KEY (codproprietariocont);


--
-- Name: proprietariodesp proprietariodesp_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariodesp
    ADD CONSTRAINT proprietariodesp_pkey PRIMARY KEY (codproprietariodesp);


--
-- Name: proprietarioesocial proprietarioesocial_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietarioesocial
    ADD CONSTRAINT proprietarioesocial_pkey PRIMARY KEY (codproprietarioesocial);


--
-- Name: proprietarioesocialconhec proprietarioesocialconhec_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietarioesocialconhec
    ADD CONSTRAINT proprietarioesocialconhec_pkey PRIMARY KEY (codproprietarioesocialconhec);


--
-- Name: proprietariofiscal proprietariofiscal_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariofiscal
    ADD CONSTRAINT proprietariofiscal_pkey PRIMARY KEY (codproprietariofiscal);


--
-- Name: proprietariolib proprietariolib_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariolib
    ADD CONSTRAINT proprietariolib_pkey PRIMARY KEY (codproprietariolib);


--
-- Name: proprietariosegv proprietariosegv_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariosegv
    ADD CONSTRAINT proprietariosegv_pkey PRIMARY KEY (codproprietariosegv);


--
-- Name: questionariotab questionariotab_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questionariotab
    ADD CONSTRAINT questionariotab_pkey PRIMARY KEY (codquestionariotab);


--
-- Name: recursogrupousuario recursogrupousuario_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.recursogrupousuario
    ADD CONSTRAINT recursogrupousuario_pkey PRIMARY KEY (codrecursogrupousuario);


--
-- Name: regiao regiao_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.regiao
    ADD CONSTRAINT regiao_pkey PRIMARY KEY (codregiao);


--
-- Name: regiaocid regiaocid_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.regiaocid
    ADD CONSTRAINT regiaocid_pkey PRIMARY KEY (codregiaocid);


--
-- Name: regiaocli regiaocli_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.regiaocli
    ADD CONSTRAINT regiaocli_pkey PRIMARY KEY (codregiaocli);


--
-- Name: regiaoprop regiaoprop_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.regiaoprop
    ADD CONSTRAINT regiaoprop_pkey PRIMARY KEY (codregiaoprop);


--
-- Name: regrac regrac_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.regrac
    ADD CONSTRAINT regrac_pkey PRIMARY KEY (codregrac);


--
-- Name: regracdet regracdet_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.regracdet
    ADD CONSTRAINT regracdet_pkey PRIMARY KEY (codregracdet);


--
-- Name: romaneio romaneio_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.romaneio
    ADD CONSTRAINT romaneio_pkey PRIMARY KEY (codromaneio);


--
-- Name: romaneioitem romaneioitem_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.romaneioitem
    ADD CONSTRAINT romaneioitem_pkey PRIMARY KEY (codromaneioitem);


--
-- Name: rotacidade rotacidade_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rotacidade
    ADD CONSTRAINT rotacidade_pkey PRIMARY KEY (codrotacidade);


--
-- Name: rotagerrisco rotagerrisco_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.rotagerrisco
    ADD CONSTRAINT rotagerrisco_pkey PRIMARY KEY (codrotagerrisco);


--
-- Name: safra safra_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.safra
    ADD CONSTRAINT safra_pkey PRIMARY KEY (codsafra);


--
-- Name: semaforo semaforo_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.semaforo
    ADD CONSTRAINT semaforo_pkey PRIMARY KEY (codsemaforo);


--
-- Name: semaforolog semaforolog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.semaforolog
    ADD CONSTRAINT semaforolog_pkey PRIMARY KEY (codsemaforolog);


--
-- Name: sincsistemaext sincsistemaext_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sincsistemaext
    ADD CONSTRAINT sincsistemaext_pkey PRIMARY KEY (codsincsistemaext);


--
-- Name: spool spool_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.spool
    ADD CONSTRAINT spool_pkey PRIMARY KEY (codspool);


--
-- Name: tipoclienteexame tipoclienteexame_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoclienteexame
    ADD CONSTRAINT tipoclienteexame_pkey PRIMARY KEY (codtipoclienteexame);


--
-- Name: tipoclienteop tipoclienteop_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoclienteop
    ADD CONSTRAINT tipoclienteop_pkey PRIMARY KEY (codtipoclienteop);


--
-- Name: tipodesc tipodesc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipodesc
    ADD CONSTRAINT tipodesc_pkey PRIMARY KEY (codtipodesc);


--
-- Name: tipodescdet tipodescdet_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipodescdet
    ADD CONSTRAINT tipodescdet_pkey PRIMARY KEY (codtipodescdet);


--
-- Name: tipodocaudus tipodocaudus_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipodocaudus
    ADD CONSTRAINT tipodocaudus_pkey PRIMARY KEY (codtipodocaudus);


--
-- Name: tipoequiplog tipoequiplog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoequiplog
    ADD CONSTRAINT tipoequiplog_pkey PRIMARY KEY (codtipoequiplog);


--
-- Name: tipohistfat tipohistfat_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipohistfat
    ADD CONSTRAINT tipohistfat_pkey PRIMARY KEY (codtipohistfat);


--
-- Name: tipopessoaoco tipopessoaoco_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipopessoaoco
    ADD CONSTRAINT tipopessoaoco_pkey PRIMARY KEY (codtipopessoaoco);


--
-- Name: tipoproprietario tipoproprietario_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoproprietario
    ADD CONSTRAINT tipoproprietario_pkey PRIMARY KEY (codtipoproprietario);


--
-- Name: transacaoextrato transacaoextrato_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transacaoextrato
    ADD CONSTRAINT transacaoextrato_pkey PRIMARY KEY (codtransacaoextrato);


--
-- Name: uf uf_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.uf
    ADD CONSTRAINT uf_pkey PRIMARY KEY (coduf);


--
-- Name: uftaxa uftaxa_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.uftaxa
    ADD CONSTRAINT uftaxa_pkey PRIMARY KEY (coduftaxa);


--
-- Name: unidadeembarquedesp unidadeembarquedesp_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarquedesp
    ADD CONSTRAINT unidadeembarquedesp_pkey PRIMARY KEY (codunidadeembarquedesp);


--
-- Name: unidadeembarquedoc unidadeembarquedoc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarquedoc
    ADD CONSTRAINT unidadeembarquedoc_pkey PRIMARY KEY (codunidadeembarquedoc);


--
-- Name: unidadeembarquemarg unidadeembarquemarg_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarquemarg
    ADD CONSTRAINT unidadeembarquemarg_pkey PRIMARY KEY (codunidadeembarquemarg);


--
-- Name: unidadeembarquerat unidadeembarquerat_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarquerat
    ADD CONSTRAINT unidadeembarquerat_pkey PRIMARY KEY (codunidadeembrat);


--
-- Name: unidadeembarqueseg unidadeembarqueseg_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarqueseg
    ADD CONSTRAINT unidadeembarqueseg_pkey PRIMARY KEY (codunidadeembarqueseg);


--
-- Name: usuariocampo usuariocampo_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariocampo
    ADD CONSTRAINT usuariocampo_pkey PRIMARY KEY (codusuariocampo);


--
-- Name: usuariocliente usuariocliente_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariocliente
    ADD CONSTRAINT usuariocliente_pkey PRIMARY KEY (codusuariocliente);


--
-- Name: usuarioconfig usuarioconfig_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuarioconfig
    ADD CONSTRAINT usuarioconfig_pkey PRIMARY KEY (codusuarioconfig);


--
-- Name: usuarioconta usuarioconta_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuarioconta
    ADD CONSTRAINT usuarioconta_pkey PRIMARY KEY (codusuarioconta);


--
-- Name: usuariofav usuariofav_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariofav
    ADD CONSTRAINT usuariofav_pkey PRIMARY KEY (codusuariofav);


--
-- Name: usuariofilial usuariofilial_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariofilial
    ADD CONSTRAINT usuariofilial_pkey PRIMARY KEY (codusuariofilial);


--
-- Name: usuariogrupo usuariogrupo_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariogrupo
    ADD CONSTRAINT usuariogrupo_pkey PRIMARY KEY (codusuariogrupo);


--
-- Name: usuariohora usuariohora_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariohora
    ADD CONSTRAINT usuariohora_pkey PRIMARY KEY (codusuariohora);


--
-- Name: usuarioitemreceita usuarioitemreceita_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuarioitemreceita
    ADD CONSTRAINT usuarioitemreceita_pkey PRIMARY KEY (codusuarioitemreceita);


--
-- Name: usuarioper usuarioper_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuarioper
    ADD CONSTRAINT usuarioper_pkey PRIMARY KEY (codusuarioper);


--
-- Name: usuariosenhas usuariosenhas_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariosenhas
    ADD CONSTRAINT usuariosenhas_pkey PRIMARY KEY (codusuariosenhas);


--
-- Name: usuariotipodesc usuariotipodesc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariotipodesc
    ADD CONSTRAINT usuariotipodesc_pkey PRIMARY KEY (codusuariotipodesc);


--
-- Name: veiculoaluguel veiculoaluguel_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoaluguel
    ADD CONSTRAINT veiculoaluguel_pkey PRIMARY KEY (codveiculoaluguel);


--
-- Name: veiculocompart veiculocompart_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculocompart
    ADD CONSTRAINT veiculocompart_pkey PRIMARY KEY (codveiculocompart);


--
-- Name: veiculoconj veiculoconj_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoconj
    ADD CONSTRAINT veiculoconj_pkey PRIMARY KEY (codveiculoconj);


--
-- Name: veiculoitem veiculoitem_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoitem
    ADD CONSTRAINT veiculoitem_pkey PRIMARY KEY (codveiculoitem);


--
-- Name: veiculoitemp veiculoitemp_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoitemp
    ADD CONSTRAINT veiculoitemp_pkey PRIMARY KEY (codveiculoitemp);


--
-- Name: veiculolib veiculolib_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculolib
    ADD CONSTRAINT veiculolib_pkey PRIMARY KEY (codveiculolib);


--
-- Name: veiculolicensa veiculolicensa_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculolicensa
    ADD CONSTRAINT veiculolicensa_pkey PRIMARY KEY (codveiculolicensa);


--
-- Name: veiculomot veiculomot_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomot
    ADD CONSTRAINT veiculomot_pkey PRIMARY KEY (codveiculomot);


--
-- Name: veiculoseguro veiculoseguro_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoseguro
    ADD CONSTRAINT veiculoseguro_pkey PRIMARY KEY (codveiculoseguro);


--
-- Name: viagem viagem_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.viagem
    ADD CONSTRAINT viagem_pkey PRIMARY KEY (codviagem);


--
-- Name: viagemdoc viagemdoc_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.viagemdoc
    ADD CONSTRAINT viagemdoc_pkey PRIMARY KEY (codviagemdoc);


--
-- Name: visitantelog visitantelog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitantelog
    ADD CONSTRAINT visitantelog_pkey PRIMARY KEY (codvisitantelog);


--
-- Name: visitantelogmov visitantelogmov_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitantelogmov
    ADD CONSTRAINT visitantelogmov_pkey PRIMARY KEY (codvisitantelogmov);


--
-- Name: volume volume_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.volume
    ADD CONSTRAINT volume_pkey PRIMARY KEY (codvolume);


--
-- Name: abastbomba; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX abastbomba ON public.abast USING btree (codfilial, codbomba, registro);


--
-- Name: abastdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX abastdata ON public.abast USING btree (codfilial, data);


--
-- Name: abastfilnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX abastfilnota ON public.abast USING btree (codfilial, codnota);


--
-- Name: abastitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX abastitem ON public.abast USING btree (coditem, data);


--
-- Name: abastmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX abastmot ON public.abast USING btree (codmotorista);


--
-- Name: abastnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX abastnota ON public.abast USING btree (codnota);


--
-- Name: abastregistro; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX abastregistro ON public.abast USING btree (codfilial, registro, data);


--
-- Name: abastveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX abastveiculo ON public.abast USING btree (codveiculo);


--
-- Name: acaoaudcodaud; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acaoaudcodaud ON public.acaoaud USING btree (codauditoria);


--
-- Name: acertomotoristacodad; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertomotoristacodad ON public.acertomotorista USING btree (codadiantamento);


--
-- Name: acertomotoristacodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertomotoristacodnota ON public.acertomotorista USING btree (codnota);


--
-- Name: acertomotoristacodnotad; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertomotoristacodnotad ON public.acertomotorista USING btree (codnotadiaria);


--
-- Name: acertomotoristacodnotat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertomotoristacodnotat ON public.acertomotorista USING btree (codnotatempo);


--
-- Name: acertomotoristadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertomotoristadata ON public.acertomotorista USING btree (data);


--
-- Name: acertomotoristadataat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertomotoristadataat ON public.acertomotorista USING btree (dataatual);


--
-- Name: acertomotoristadatadig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertomotoristadatadig ON public.acertomotorista USING btree (datadigitacao);


--
-- Name: acertomotoristadataini; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertomotoristadataini ON public.acertomotorista USING btree (dataini);


--
-- Name: acertomotoristamot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertomotoristamot ON public.acertomotorista USING btree (codmotorista);


--
-- Name: acertomotoristausins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertomotoristausins ON public.acertomotorista USING btree (usuarioins);


--
-- Name: acertopropdetac; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertopropdetac ON public.acertopropdet USING btree (codacertoproprietario, tipo, chavetabela);


--
-- Name: acertopropdetchave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertopropdetchave ON public.acertopropdet USING btree (chavetabela, tipo, codacertoproprietario);


--
-- Name: acertopropdettipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertopropdettipo ON public.acertopropdet USING btree (tipo, chavetabela, codacertoproprietario);


--
-- Name: acertopropropcodprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acertopropropcodprop ON public.acertoproprietario USING btree (codproprietario);


--
-- Name: adeclicnpjdataini_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX adeclicnpjdataini_idx ON public.adecliente USING btree (cnpjraiz, datainiade);


--
-- Name: adecliente_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX adecliente_idx ON public.adecliente USING btree (codcliente, numeroade);


--
-- Name: adiantamentocodacertomotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX adiantamentocodacertomotorista ON public.adiantamento USING btree (codacertomotorista, codmotorista);


--
-- Name: adiantamentocodfat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX adiantamentocodfat ON public.adiantamento USING btree (codfatura);


--
-- Name: adiantamentocodmotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX adiantamentocodmotorista ON public.adiantamento USING btree (codmotorista, data);


--
-- Name: adiantamentodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX adiantamentodata ON public.adiantamento USING btree (data);


--
-- Name: adiantamentodataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX adiantamentodataatual ON public.adiantamento USING btree (dataatual);


--
-- Name: adiantamentodatadigitacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX adiantamentodatadigitacao ON public.adiantamento USING btree (datadigitacao);


--
-- Name: adiantamentodiariacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX adiantamentodiariacod ON public.adiantamentodiaria USING btree (codadiantamentodiaria);


--
-- Name: adiantamentonumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX adiantamentonumero ON public.adiantamento USING btree (numero);


--
-- Name: adiantamentostatusmotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX adiantamentostatusmotorista ON public.adiantamentostatus USING btree (codmotorista, numero);


--
-- Name: adiantamentotransacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX adiantamentotransacao ON public.adiantamento USING btree (codtransacao);


--
-- Name: adiantusaut; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX adiantusaut ON public.adiantamento USING btree (usuarioaut);


--
-- Name: agendacodagendaagrup; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX agendacodagendaagrup ON public.agenda USING btree (codagendaagrup);


--
-- Name: agendadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX agendadata ON public.agenda USING btree (data);


--
-- Name: agendatarefalib; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX agendatarefalib ON public.agendatarefa USING btree (liberado DESC);


--
-- Name: agendatarefalogcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX agendatarefalogcod ON public.agendatarefalog USING btree (codagendatarefa, datalog);


--
-- Name: agendatarefalogdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX agendatarefalogdata ON public.agendatarefalog USING btree (datalog, codagendatarefa, processo);


--
-- Name: agendatarefalogproc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX agendatarefalogproc ON public.agendatarefalog USING btree (processo, datalog);


--
-- Name: agendatarefaperiod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX agendatarefaperiod ON public.agendatarefa USING btree (periodicidade);


--
-- Name: agendatarefaprocesso; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX agendatarefaprocesso ON public.agendatarefa USING btree (processo);


--
-- Name: agendatarefatdoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX agendatarefatdoc ON public.agendatarefa USING btree (codtipodocaud);


--
-- Name: agendausuario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX agendausuario ON public.agenda USING btree (usuario);


--
-- Name: apagadodataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX apagadodataatual ON public.apagado USING btree (dataatual);


--
-- Name: apagadonometabela; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX apagadonometabela ON public.apagado USING btree (nometabela);


--
-- Name: auditoriaaud; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auditoriaaud ON public.auditoriaus USING btree (codauditoria, usuario);


--
-- Name: auditoriacodmotresp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auditoriacodmotresp ON public.auditoria USING btree (codmotoristaresp);


--
-- Name: auditoriadetaud; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auditoriadetaud ON public.auditoriadet USING btree (codauditoria);


--
-- Name: auditorialogcodaud; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auditorialogcodaud ON public.auditorialog USING btree (codauditoria);


--
-- Name: auditoriausresp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auditoriausresp ON public.auditoria USING btree (usuarioresp);


--
-- Name: auditoriausuario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auditoriausuario ON public.auditoriaus USING btree (usuario, codauditoria);


--
-- Name: bancodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX bancodescricao ON public.banco USING btree (descricao);


--
-- Name: bancotipopagtobanco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX bancotipopagtobanco ON public.bancotipopagto USING btree (codbanco, codtipopagto);


--
-- Name: bidadosl; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX bidadosl ON public.bidados USING btree (codlayout, id);


--
-- Name: bidadosl2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX bidadosl2 ON public.bidados USING btree (id, codlayout);


--
-- Name: bidadosrchint; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX bidadosrchint ON public.bidadosr USING btree (codbilayoutr, valorchaveint, data);


--
-- Name: bidadosrchstr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX bidadosrchstr ON public.bidadosr USING btree (codbilayoutr, valorchavestr, data);


--
-- Name: bidadosrdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX bidadosrdata ON public.bidadosr USING btree (codbilayoutr, data);


--
-- Name: bilayoutl; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX bilayoutl ON public.bilayout USING btree (codlayout);


--
-- Name: bilayoutrcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX bilayoutrcod ON public.bilayoutr USING btree (codbilayoutr);


--
-- Name: biprocnomechave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX biprocnomechave ON public.biproc USING btree (nometabela, chavetabela);


--
-- Name: bombacombb; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX bombacombb ON public.bombacomb USING btree (codfilial, codbomba);


--
-- Name: campotelacampo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX campotelacampo ON public.campo USING btree (codcampo, tela);


--
-- Name: campotelacampo1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX campotelacampo1 ON public.campo USING btree (tela, campo, codcampo);


--
-- Name: cargodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cargodescricao ON public.cargo USING btree (descricao);


--
-- Name: carretamovcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX carretamovcod ON public.carretamov USING btree (codcarretamov);


--
-- Name: carretamovdatafim; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX carretamovdatafim ON public.carretamov USING btree (codveiculo, datafim, codcavalo);


--
-- Name: carretamovdataini; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX carretamovdataini ON public.carretamov USING btree (codveiculo, dataini, codcavalo);


--
-- Name: cfopnotaviagem_nota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cfopnotaviagem_nota ON public.cfopnotaviagem USING btree (nometabela, chavetabela, cfopnota);


--
-- Name: cfopnotaviagem_tabela; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cfopnotaviagem_tabela ON public.cfopnotaviagem USING btree (nometabela, chavetabela);


--
-- Name: chequecodtransacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequecodtransacao ON public.cheque USING btree (codtransacao);


--
-- Name: chequecontanumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequecontanumero ON public.cheque USING btree (numeroconta, numerocheque);


--
-- Name: chequedata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequedata ON public.cheque USING btree (dataemissao);


--
-- Name: chequeemitido; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequeemitido ON public.cheque USING btree (emitido);


--
-- Name: chequenumeroconta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequenumeroconta ON public.cheque USING btree (numerocheque, numeroconta);


--
-- Name: chequereccli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequereccli ON public.chequerec USING btree (codcliente);


--
-- Name: chequereccodfatreparc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequereccodfatreparc ON public.chequerec USING btree (codfaturareparc);


--
-- Name: chequereccontachequerec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequereccontachequerec ON public.chequerec USING btree (codcontachequerec);


--
-- Name: chequerecnumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerecnumero ON public.chequerec USING btree (numerocheque);


--
-- Name: chequerectransdep1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectransdep1 ON public.chequerec USING btree (codtransacaodep1);


--
-- Name: chequerectransdep1cx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectransdep1cx ON public.chequerec USING btree (codtransacaodep1cx);


--
-- Name: chequerectransdep2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectransdep2 ON public.chequerec USING btree (codtransacaodep2);


--
-- Name: chequerectransdep2cx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectransdep2cx ON public.chequerec USING btree (codtransacaodep2cx);


--
-- Name: chequerectransdep3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectransdep3 ON public.chequerec USING btree (codtransacaodep3);


--
-- Name: chequerectransdep3cx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectransdep3cx ON public.chequerec USING btree (codtransacaodep3cx);


--
-- Name: chequerectransdev1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectransdev1 ON public.chequerec USING btree (codtransacaodev1);


--
-- Name: chequerectransdev1cx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectransdev1cx ON public.chequerec USING btree (codtransacaodev1cx);


--
-- Name: chequerectransdev2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectransdev2 ON public.chequerec USING btree (codtransacaodev2);


--
-- Name: chequerectransdev2cx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectransdev2cx ON public.chequerec USING btree (codtransacaodev2cx);


--
-- Name: chequerectransdev3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectransdev3 ON public.chequerec USING btree (codtransacaodev3);


--
-- Name: chequerectransdev3cx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectransdev3cx ON public.chequerec USING btree (codtransacaodev3cx);


--
-- Name: chequerectranssus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectranssus ON public.chequerec USING btree (codtransacaosustado);


--
-- Name: chequerectranssuscx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequerectranssuscx ON public.chequerec USING btree (codtransacaosustadocx);


--
-- Name: chequestatuscod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX chequestatuscod ON public.chequestatus USING btree (codchequestatus);


--
-- Name: chequestatusdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequestatusdata ON public.chequestatus USING btree (numeroconta, dataatual, numerocheque);


--
-- Name: chequestatususresp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chequestatususresp ON public.chequestatus USING btree (usuarioresp, numeroconta, numerocheque);


--
-- Name: chstatuslog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chstatuslog ON public.chequestatuslog USING btree (codchequestatus);


--
-- Name: chstatuslogdtdig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chstatuslogdtdig ON public.chequestatuslog USING btree (datadigitacao);


--
-- Name: chstatuslogus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chstatuslogus ON public.chequestatuslog USING btree (usuarioins);


--
-- Name: cidadecodunidadeembarque; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cidadecodunidadeembarque ON public.cidade USING btree (codunidadeembarque);


--
-- Name: cidadedataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cidadedataatual ON public.cidade USING btree (dataatual);


--
-- Name: cidadedistcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX cidadedistcod ON public.cidadedist USING btree (codcidadedist);


--
-- Name: cidadedistdataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cidadedistdataatual ON public.cidadedist USING btree (dataatual, codcidade, codcidadedest);


--
-- Name: cidadenome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cidadenome ON public.cidade USING btree (nome);


--
-- Name: ciot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ciot ON public.conhecimento USING btree (ciot);


--
-- Name: cliccgccpflibie; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cliccgccpflibie ON public.cliente USING btree (cgccpf, liberado, inscricaoestadual);


--
-- Name: cliedesp_cli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cliedesp_cli ON public.clientedesp USING btree (codcliente, data, codtipodesp);


--
-- Name: cliedesp_tipodesp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cliedesp_tipodesp ON public.clientedesp USING btree (codtipodesp, codcliente, data);


--
-- Name: clienteagendacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clienteagendacod ON public.clienteagenda USING btree (codagenda);


--
-- Name: clienteagendadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clienteagendadata ON public.clienteagenda USING btree (data, codcliente);


--
-- Name: clientecccli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX clientecccli ON public.clientecc USING btree (codcliente, codbanco, agencia, conta);


--
-- Name: clientecgccpf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientecgccpf ON public.cliente USING btree (cgccpf);


--
-- Name: clientechequereccccli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientechequereccccli ON public.clientechequereccc USING btree (codclientechequerec, codbanco, agencia, conta);


--
-- Name: clientechequereccnpjcpf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientechequereccnpjcpf ON public.clientechequerec USING btree (cnpjcpf);


--
-- Name: clientechequerecnome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientechequerecnome ON public.clientechequerec USING btree (nome);


--
-- Name: clienteclascodcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clienteclascodcli ON public.clienteclas USING btree (codcliente, data, codmercadoria);


--
-- Name: clienteclascodmerc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clienteclascodmerc ON public.clienteclas USING btree (codmercadoria);


--
-- Name: clientecolentce; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientecolentce ON public.clientecolent USING btree (codcoletaentrega, codcliente);


--
-- Name: clientecolentcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientecolentcli ON public.clientecolent USING btree (codcliente, codcoletaentrega);


--
-- Name: clientecontcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX clientecontcod ON public.clientecont USING btree (codclientecont);


--
-- Name: clientedataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientedataatual ON public.cliente USING btree (dataatual);


--
-- Name: clienteddrcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clienteddrcod ON public.clienteddr USING btree (codddr);


--
-- Name: clientediavencporcliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientediavencporcliente ON public.clientediavenc USING btree (codcliente);


--
-- Name: clienteie; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clienteie ON public.cliente USING btree (inscricaoestadual);


--
-- Name: clientelimitecodcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientelimitecodcli ON public.clientelimite USING btree (codcliente);


--
-- Name: clientelimitedata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientelimitedata ON public.clientelimite USING btree (data, codcliente);


--
-- Name: clientelimiteusu; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientelimiteusu ON public.clientelimite USING btree (usuarioins, data, codcliente);


--
-- Name: clientemotcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientemotcli ON public.clientemot USING btree (codcliente);


--
-- Name: clientemotcliprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientemotcliprop ON public.clientemot USING btree (codcliente, codproprietario);


--
-- Name: clientemotmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientemotmot ON public.clientemot USING btree (codmotorista);


--
-- Name: clientemotprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientemotprop ON public.clientemot USING btree (codproprietario);


--
-- Name: clientenome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientenome ON public.cliente USING btree (nome);


--
-- Name: clienteopcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clienteopcli ON public.clienteop USING btree (codcliente);


--
-- Name: clienteopfiscli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clienteopfiscli ON public.clienteopfis USING btree (codcliente, descricao);


--
-- Name: clienteoptipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clienteoptipo ON public.clienteop USING btree (codtipoclienteop, codclienteop);


--
-- Name: clienteprinc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clienteprinc ON public.cliente USING btree (codclienteprincipal);


--
-- Name: clienterefbanccod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX clienterefbanccod ON public.clienterefbanc USING btree (codclienterefbanc);


--
-- Name: clienterefcomcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX clienterefcomcod ON public.clienterefcom USING btree (codclienterefcom);


--
-- Name: clientetabfretecodcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientetabfretecodcli ON public.clientetabfrete USING btree (codcliente);


--
-- Name: clientetabfretecodregra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientetabfretecodregra ON public.clientetabfrete USING btree (codregra, ordem);


--
-- Name: clientetempocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientetempocod ON public.clientetempo USING btree (codclientetempo);


--
-- Name: clientetempocodcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientetempocodcli ON public.clientetempo USING btree (codcliente);


--
-- Name: clientetempodest; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientetempodest ON public.clientetempo USING btree (codcliente, codcidadedestino);


--
-- Name: clientetempoorig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX clientetempoorig ON public.clientetempo USING btree (codcliente, codcidadeorigem);


--
-- Name: codcargo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codcargo ON public.cargoexametreinamento USING btree (codcargo);


--
-- Name: codcargoexametreinamento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codcargoexametreinamento ON public.cargoexametreinamento USING btree (codcargoexametreinamento);


--
-- Name: codclientecom; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codclientecom ON public.clientecom USING btree (codcliente, codclientecom);


--
-- Name: coddata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX coddata ON public.cot USING btree (data);


--
-- Name: codempcontacontabil_id_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX codempcontacontabil_id_idx ON public.empresascontacontabil USING btree (codempresa, codcontacontabil, nometabela, chavetabela);


--
-- Name: codempempresascom; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codempempresascom ON public.empresascom USING btree (codempresa);


--
-- Name: coderpexterno_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX coderpexterno_idx ON public.transacao USING btree (coderpexterno) WHERE (coderpexterno IS NOT NULL);


--
-- Name: codexametreinamento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codexametreinamento ON public.cargoexametreinamento USING btree (codexametreinamento);


--
-- Name: codfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codfilial ON public.cot USING btree (codfilial);


--
-- Name: codgerriscoopconhecimento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codgerriscoopconhecimento ON public.conhecimentogrop USING btree (codgerriscoop);


--
-- Name: codgerriscooppedido; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codgerriscooppedido ON public.pedidogrop USING btree (codgerriscoop);


--
-- Name: coditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX coditem ON public.itemsim USING btree (coditem);


--
-- Name: coditemsim; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX coditemsim ON public.itemsim USING btree (coditemsim);


--
-- Name: coditemsimilar; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX coditemsimilar ON public.itemsim USING btree (coditemsimilar);


--
-- Name: codmaldoccodadiant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codmaldoccodadiant ON public.malotedoc USING btree (codadiantamento);


--
-- Name: codmaldoccodcheque; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codmaldoccodcheque ON public.malotedoc USING btree (codcheque);


--
-- Name: codmaldoccodmal; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codmaldoccodmal ON public.malotedoc USING btree (codmalote);


--
-- Name: codmaldoccodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codmaldoccodnota ON public.malotedoc USING btree (codnota);


--
-- Name: codmaldocnumeroconh; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codmaldocnumeroconh ON public.malotedoc USING btree (numero);


--
-- Name: codprogfretedata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codprogfretedata ON public.progfretedia USING btree (codprogfrete, data);


--
-- Name: codprogfreteped; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX codprogfreteped ON public.progfreteped USING btree (codprogfrete, numeropedido);


--
-- Name: codpropesocialnumero_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX codpropesocialnumero_idx ON public.proprietarioesocialconhec USING btree (codproprietarioesocial, numero);


--
-- Name: colentccnpjcpfie; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX colentccnpjcpfie ON public.coletaentrega USING btree (cnpjcpf, inscricaoestadual, liberado);


--
-- Name: colentcid; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX colentcid ON public.coletaentrega USING btree (codcidade, descricao);


--
-- Name: colentfaz; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX colentfaz ON public.coletaentrega USING btree (nomefazenda);


--
-- Name: colentmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX colentmot ON public.coletaentregamot USING btree (codmotorista);


--
-- Name: colentmotprinc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX colentmotprinc ON public.coletaentregamot USING btree (codcoletaentrega);


--
-- Name: colentprod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX colentprod ON public.coletaentrega USING btree (nomeprodutor);


--
-- Name: colentsetordesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX colentsetordesc ON public.coletaentregasetor USING btree (descricao, codcoletaentrega);


--
-- Name: colentsetorprinc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX colentsetorprinc ON public.coletaentregasetor USING btree (codcoletaentrega);


--
-- Name: colentveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX colentveic ON public.coletaentregaveic USING btree (codveiculo);


--
-- Name: colentveicprinc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX colentveicprinc ON public.coletaentregaveic USING btree (codcoletaentrega);


--
-- Name: coletaentregacnpjcpf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX coletaentregacnpjcpf ON public.coletaentrega USING btree (cnpjcpf);


--
-- Name: coletaentregacontcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX coletaentregacontcod ON public.coletaentregacont USING btree (codcoletaentrega);


--
-- Name: coletaentregadataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX coletaentregadataatual ON public.coletaentrega USING btree (dataatual);


--
-- Name: coletaentregadescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX coletaentregadescricao ON public.coletaentrega USING btree (descricao);


--
-- Name: coletaentregaie; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX coletaentregaie ON public.coletaentrega USING btree (inscricaoestadual);


--
-- Name: condpagdataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX condpagdataatual ON public.condpag USING btree (dataatual);


--
-- Name: condpagprazo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX condpagprazo ON public.condpag USING btree (prazo);


--
-- Name: confcartafrete; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX confcartafrete ON public.conhecimento USING btree (cartafrete);


--
-- Name: confdatavencadiant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX confdatavencadiant ON public.conhecimento USING btree (datavencadiant, codfornecedoradiant);


--
-- Name: confdatavencclas; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX confdatavencclas ON public.conhecimento USING btree (dtvencclassificacao, codfornecedorclassificacao);


--
-- Name: confdatavencicms; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX confdatavencicms ON public.conhecimento USING btree (dtvencicms, codfornecedoricms);


--
-- Name: confdatavencsaldo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX confdatavencsaldo ON public.conhecimento USING btree (dtvencsaldo, codfornecedorsaldo);


--
-- Name: confnumpedagio; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX confnumpedagio ON public.conhecimento USING btree (numeropedagio);


--
-- Name: conhadic_nfsecodem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhadic_nfsecodem ON public.conhecimentoadic USING btree (nfsecodemonitor);


--
-- Name: conhadic_nfsecodemc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhadic_nfsecodemc ON public.conhecimentoadic USING btree (nfsecodemonitorcanc);


--
-- Name: conhadic_nfsenumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhadic_nfsenumero ON public.conhecimentoadic USING btree (nfsenumero);


--
-- Name: conhadic_nfserps; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhadic_nfserps ON public.conhecimentoadic USING btree (nfserps);


--
-- Name: conhadic_nfserpsd; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhadic_nfserpsd ON public.conhecimentoadic USING btree (nfserps DESC);


--
-- Name: conhdespcadfatnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhdespcadfatnota ON public.conhecimentodesp USING btree (codfaturacompra);


--
-- Name: conhdespcodfat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhdespcodfat ON public.conhecimentodesp USING btree (codfatura);


--
-- Name: conhdespdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhdespdata ON public.conhecimentodesp USING btree (data);


--
-- Name: conhdespnum; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhdespnum ON public.conhecimentodesp USING btree (numero);


--
-- Name: conhdesptpdespdt; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhdesptpdespdt ON public.conhecimentodesp USING btree (codtipodesp, data);


--
-- Name: conhdesptpdespnum; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhdesptpdespnum ON public.conhecimentodesp USING btree (codtipodesp, numero);


--
-- Name: conheadic_numeroviagemsimpl_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheadic_numeroviagemsimpl_idx ON public.conhecimentoadic USING btree (numeroviagemsimpl);


--
-- Name: conhecadicdtchegadiant2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecadicdtchegadiant2 ON public.conhecimentoadic USING btree (datachegouadiant2);


--
-- Name: conhecadicdtchegest; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecadicdtchegest ON public.conhecimentoadic USING btree (datachegouestadia);


--
-- Name: conhecadicdtchegicms; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecadicdtchegicms ON public.conhecimentoadic USING btree (datachegouicms);


--
-- Name: conheccartafrete; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccartafrete ON public.conhecimento USING btree (cartafrete);


--
-- Name: conheccodacertoprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodacertoprop ON public.conhecimento USING btree (codacertoproprietario);


--
-- Name: conheccodconsig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodconsig ON public.conhecimento USING btree (codconsignatario);


--
-- Name: conheccodconsignatario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodconsignatario ON public.conhecimento USING btree (codconsignatario);


--
-- Name: conheccodfatpagabast; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagabast ON public.conhecimentoadic USING btree (codfatpagabast);


--
-- Name: conheccodfatpagadiant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagadiant ON public.conhecimento USING btree (codfatpagadiant);


--
-- Name: conheccodfatpagadto2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagadto2 ON public.conhecimento USING btree (codfatpagadto2);


--
-- Name: conheccodfatpagbalsa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagbalsa ON public.conhecimento USING btree (codfatpagbalsa);


--
-- Name: conheccodfatpagclass; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagclass ON public.conhecimento USING btree (codfatpagclassif);


--
-- Name: conheccodfatpagestadia; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagestadia ON public.conhecimento USING btree (codfatpagestadia);


--
-- Name: conheccodfatpagicms; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagicms ON public.conhecimento USING btree (codfatpagicms);


--
-- Name: conheccodfatpagicmsantec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagicmsantec ON public.conhecimento USING btree (codfatpagicmsantec);


--
-- Name: conheccodfatpaginss; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpaginss ON public.conhecimento USING btree (codfatpaginss);


--
-- Name: conheccodfatpaginssemp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpaginssemp ON public.conhecimento USING btree (codfatpaginssemp);


--
-- Name: conheccodfatpagirrf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagirrf ON public.conhecimento USING btree (codfatpagirrf);


--
-- Name: conheccodfatpagiss; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagiss ON public.conhecimento USING btree (codfatpagiss);


--
-- Name: conheccodfatpagpedagio; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagpedagio ON public.conhecimento USING btree (codfatpagpedagio);


--
-- Name: conheccodfatpagquebra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagquebra ON public.conhecimento USING btree (codfatpagquebra);


--
-- Name: conheccodfatpagsaldo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagsaldo ON public.conhecimento USING btree (codfatpagsaldo);


--
-- Name: conheccodfatpagseg2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagseg2 ON public.conhecimento USING btree (codfatpagseg2);


--
-- Name: conheccodfatpagsestsenat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatpagsestsenat ON public.conhecimento USING btree (codfatpagsestsenat);


--
-- Name: conheccodfatquebraseg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodfatquebraseg ON public.conhecimento USING btree (codfaturaquebraseg);


--
-- Name: conheccodunidemb; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conheccodunidemb ON public.conhecimento USING btree (codunidadeembarque, data);


--
-- Name: conhecctefilserie; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX conhecctefilserie ON public.conhecimento USING btree (numeroconhecimento, codfilial, serie) WHERE ((data >= '2021-09-01 00:00:00'::timestamp without time zone) AND ((numeroconhecimento IS NOT NULL) AND ((numeroconhecimento)::integer > 0)) AND ((serie)::text ~ '^[0-9]+$'::text) AND ((codemonitor IS NULL) OR ((codemonitor)::integer <> '-1'::integer)));


--
-- Name: conhecdataviagemmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdataviagemmot ON public.conhecimento USING btree (dataviagemmotorista);


--
-- Name: conhecdataviagemmot1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdataviagemmot1 ON public.conhecimento USING btree (dataviagemmotorista);


--
-- Name: conhecdespcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdespcli ON public.conhecimentodesp USING btree (codcliente);


--
-- Name: conhecdespcontr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdespcontr ON public.conhecimentodesp USING btree (codcontrato);


--
-- Name: conhecdespfor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdespfor ON public.conhecimentodesp USING btree (codfornecedor);


--
-- Name: conhecdigestadia; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdigestadia ON public.conhecimento USING btree (datadigiestadia);


--
-- Name: conhecdoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdoc ON public.conhecimentodoc USING btree (numero, codtipodoc);


--
-- Name: conhecdocantnum; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdocantnum ON public.conhecimentodocant USING btree (numero, numerodoc, serie);


--
-- Name: conhecdocantnumdoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdocantnumdoc ON public.conhecimentodocant USING btree (numerodoc, serie, numero);


--
-- Name: conhecdoccf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdoccf ON public.conhecimento USING btree (enviadoccf DESC);


--
-- Name: conhecdoctp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdoctp ON public.conhecimentodoc USING btree (codtipodoc, numero);


--
-- Name: conhecdtchegadiant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdtchegadiant ON public.conhecimento USING btree (datachegouadiant);


--
-- Name: conhecdtchegsaldo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecdtchegsaldo ON public.conhecimento USING btree (datachegousaldo);


--
-- Name: conhecimentoadiccidadenfse; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoadiccidadenfse ON public.conhecimentoadic USING btree (codcidadenfse);


--
-- Name: conhecimentoadicidabast; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoadicidabast ON public.conhecimentoadic USING btree (idabast) WHERE (idabast IS NOT NULL);


--
-- Name: conhecimentoadicnfselote; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoadicnfselote ON public.conhecimentoadic USING btree (nfseloteenv);


--
-- Name: conhecimentoadicnumcompraabast; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoadicnumcompraabast ON public.conhecimentoadic USING btree (numcompraabast) WHERE (numcompraabast IS NOT NULL);


--
-- Name: conhecimentocfdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocfdesc ON public.conhecimento USING btree (cartafrete DESC, numero DESC);


--
-- Name: conhecimentoclipdtransf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoclipdtransf ON public.conhecimento USING btree (pedidotransf, codcliente, ctestatus, ordemcli) WHERE (pedidotransf IS NOT NULL);


--
-- Name: conhecimentocodacertomotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodacertomotorista ON public.conhecimento USING btree (codacertomotorista);


--
-- Name: conhecimentocodagrupador; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodagrupador ON public.conhecimento USING btree (codagrupador);


--
-- Name: conhecimentocodcliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodcliente ON public.conhecimento USING btree (codcliente, data);


--
-- Name: conhecimentocoddestinatario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocoddestinatario ON public.conhecimento USING btree (coddestinatario, data);


--
-- Name: conhecimentocodemonitor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodemonitor ON public.conhecimento USING btree (codemonitor);


--
-- Name: conhecimentocodfatadiant2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodfatadiant2 ON public.conhecimento USING btree (codfaturaadiantemp2);


--
-- Name: conhecimentocodfatsaldocomp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodfatsaldocomp ON public.conhecimento USING btree (codfaturasaldocomp);


--
-- Name: conhecimentocodfaturaadiantamen; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodfaturaadiantamen ON public.conhecimento USING btree (codfaturaadiantamento);


--
-- Name: conhecimentocodfaturaclassifica; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodfaturaclassifica ON public.conhecimento USING btree (codfaturaclassificacao);


--
-- Name: conhecimentocodfaturaentrega; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodfaturaentrega ON public.conhecimento USING btree (codfaturaentrega);


--
-- Name: conhecimentocodfaturaestadia; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodfaturaestadia ON public.conhecimento USING btree (codfaturaestadia);


--
-- Name: conhecimentocodfaturaicms; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodfaturaicms ON public.conhecimento USING btree (codfaturaicms);


--
-- Name: conhecimentocodfaturapedagio; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodfaturapedagio ON public.conhecimento USING btree (codfaturapedagio);


--
-- Name: conhecimentocodfaturasaldo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodfaturasaldo ON public.conhecimento USING btree (codfaturasaldo);


--
-- Name: conhecimentocodfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodfilial ON public.conhecimento USING btree (codfilial, data);


--
-- Name: conhecimentocodfrete; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodfrete ON public.conhecimento USING btree (codfrete);


--
-- Name: conhecimentocodmercadoria; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodmercadoria ON public.conhecimento USING btree (codmercadoria, data);


--
-- Name: conhecimentocodmotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodmotorista ON public.conhecimento USING btree (codmotorista, data);


--
-- Name: conhecimentocodprodutor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodprodutor ON public.conhecimento USING btree (codprodutor, data);


--
-- Name: conhecimentocodproprietario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodproprietario ON public.conhecimento USING btree (codproprietario);


--
-- Name: conhecimentocodremetente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodremetente ON public.conhecimento USING btree (codremetente, data);


--
-- Name: conhecimentocodveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocodveiculo ON public.conhecimento USING btree (codveiculo, data);


--
-- Name: conhecimentocontr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentocontr ON public.conhecimento USING btree (codcontrato);


--
-- Name: conhecimentoctechave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoctechave ON public.conhecimento USING btree (ctechave);


--
-- Name: conhecimentoctestatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoctestatus ON public.conhecimento USING btree (codfilial, serie, ctestatus);


--
-- Name: conhecimentoctrcdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoctrcdesc ON public.conhecimento USING btree (numeroconhecimento DESC, codfilial DESC, serie DESC, numero DESC);


--
-- Name: conhecimentodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentodata ON public.conhecimento USING btree (data);


--
-- Name: conhecimentodataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentodataatual ON public.conhecimento USING btree (dataatual);


--
-- Name: conhecimentodatadigitacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentodatadigitacao ON public.conhecimento USING btree (datadigitacao);


--
-- Name: conhecimentodocantcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX conhecimentodocantcod ON public.conhecimentodocant USING btree (codconhecimentodocant);


--
-- Name: conhecimentoemonitorstatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoemonitorstatus ON public.conhecimento USING btree (emonitorstatus, codunidadeembarque);


--
-- Name: conhecimentoevcodem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoevcodem ON public.conhecimentoev USING btree (codemonitor);


--
-- Name: conhecimentoevdetcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoevdetcod ON public.conhecimentoevdet USING btree (codconhecimentoev);


--
-- Name: conhecimentoevnumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoevnumero ON public.conhecimentoev USING btree (numero);


--
-- Name: conhecimentofatentadto; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentofatentadto ON public.conhecimento USING btree (codfaturaentadto);


--
-- Name: conhecimentofatentsaldo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentofatentsaldo ON public.conhecimento USING btree (codfaturaentsaldo);


--
-- Name: conhecimentogrop_gr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentogrop_gr ON public.conhecimentogrop USING btree (numero, codgerriscoop);


--
-- Name: conhecimentohorafimdescarga; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentohorafimdescarga ON public.conhecimento USING btree (horafimdescarga);


--
-- Name: conhecimentologcodcidade; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentologcodcidade ON public.conhecimentolog USING btree (codcidade, numero);


--
-- Name: conhecimentologcodfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentologcodfilial ON public.conhecimentolog USING btree (codfilial, numero, data);


--
-- Name: conhecimentologcodmanif; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentologcodmanif ON public.conhecimentolog USING btree (codmanif, numero, data);


--
-- Name: conhecimentologcodue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentologcodue ON public.conhecimentolog USING btree (codunidadeembarque, numero, data);


--
-- Name: conhecimentologcodveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentologcodveiculo ON public.conhecimentolog USING btree (codveiculo, numero);


--
-- Name: conhecimentologdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX conhecimentologdata ON public.conhecimentolog USING btree (data, numero);


--
-- Name: conhecimentomotoristacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX conhecimentomotoristacod ON public.conhecimentomotorista USING btree (codconhecimentomotorista);


--
-- Name: conhecimentomotoristamot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX conhecimentomotoristamot ON public.conhecimentomotorista USING btree (codmotorista, numero);


--
-- Name: conhecimentonotacaixa_nota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentonotacaixa_nota ON public.conhecimentonotacaixa USING btree (codconhecimentonota);


--
-- Name: conhecimentonotachavenfe; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentonotachavenfe ON public.conhecimentonota USING btree (chavenfe, numeronota, serie);


--
-- Name: conhecimentonotacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX conhecimentonotacod ON public.conhecimentonota USING btree (codconhecimentonota);


--
-- Name: conhecimentonotafiscal; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentonotafiscal ON public.conhecimento USING btree (numeronotafiscal);


--
-- Name: conhecimentonotanf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentonotanf ON public.conhecimentonota USING btree (numeronota, numero);


--
-- Name: conhecimentonumautgr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentonumautgr ON public.conhecimento USING btree (numautgerrisco);


--
-- Name: conhecimentonumctrcbase; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentonumctrcbase ON public.conhecimento USING btree (numeroctrcbase);


--
-- Name: conhecimentonumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentonumero ON public.conhecimento USING btree (numeroconhecimento);


--
-- Name: conhecimentonumeropedido; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentonumeropedido ON public.conhecimento USING btree (numeropedido);


--
-- Name: conhecimentonumpedagio; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentonumpedagio ON public.conhecimento USING btree (numeropedagio);


--
-- Name: conhecimentonumviagant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentonumviagant ON public.conhecimento USING btree (numeroviagant);


--
-- Name: conhecimentooccli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentooccli ON public.conhecimento USING btree (ordemcli);


--
-- Name: conhecimentoocoaux1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoocoaux1 ON public.conhecimentoocorrencia USING btree (numero, codtipoocorrencia, campoaux1) WHERE (campoaux1 IS NOT NULL);


--
-- Name: conhecimentoocologdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoocologdata ON public.conhecimentoocolog USING btree (data);


--
-- Name: conhecimentoocologoco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoocologoco ON public.conhecimentoocolog USING btree (codconhecimentoocorrencia);


--
-- Name: conhecimentooconumtipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentooconumtipo ON public.conhecimentoocorrencia USING btree (numero, codtipoocorrencia);


--
-- Name: conhecimentoocorrenciacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX conhecimentoocorrenciacod ON public.conhecimentoocorrencia USING btree (codconhecimentoocorrencia);


--
-- Name: conhecimentoocorrenciadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoocorrenciadata ON public.conhecimentoocorrencia USING btree (data, numero);


--
-- Name: conhecimentoocorrenciatipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX conhecimentoocorrenciatipo ON public.conhecimentoocorrencia USING btree (codtipoocorrencia, numero, data);


--
-- Name: conhecimentoordemcar; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoordemcar ON public.conhecimento USING btree (codordemcar);


--
-- Name: conhecimentopdfrete; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentopdfrete ON public.conhecimento USING btree (pedidofrete);


--
-- Name: conhecimentopedidotransf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentopedidotransf ON public.conhecimento USING btree (pedidotransf);


--
-- Name: conhecimentoprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoprop ON public.conhecimento USING btree (codproprietario, codfilial, data);


--
-- Name: conhecimentoprox; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoprox ON public.conhecimento USING btree (codfilial, serie, numeroconhecimento DESC);


--
-- Name: conhecimentostatuscod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentostatuscod ON public.conhecimentostatus USING btree (codconhecimentostatus);


--
-- Name: conhecimentostatusdataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentostatusdataatual ON public.conhecimentostatus USING btree (dataatual, numero, serie, codfilial);


--
-- Name: conhecimentostatusfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX conhecimentostatusfilial ON public.conhecimentostatus USING btree (codfilial, numero, serie);


--
-- Name: conhecimentostatusue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentostatusue ON public.conhecimentostatus USING btree (codunidadeembarque, numero, serie, codfilial);


--
-- Name: conhecimentoxmlchave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlchave ON public.conhecimentoxml USING btree (chavecte);


--
-- Name: conhecimentoxmlcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlcli ON public.conhecimentoxml USING btree (nomecliente);


--
-- Name: conhecimentoxmlcnpjcpfemit; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlcnpjcpfemit ON public.conhecimentoxml USING btree (cnpjcpfemit);


--
-- Name: conhecimentoxmlcodcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlcodcli ON public.conhecimentoxml USING btree (codcliente);


--
-- Name: conhecimentoxmlcodemonitor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlcodemonitor ON public.conhecimentoxml USING btree (codemonitor, codconhecimentoxml);


--
-- Name: conhecimentoxmlcodfor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlcodfor ON public.conhecimentoxml USING btree (codfornecedoremit);


--
-- Name: conhecimentoxmldata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmldata ON public.conhecimentoxml USING btree (data);


--
-- Name: conhecimentoxmlemit; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlemit ON public.conhecimentoxml USING btree (nomeemit);


--
-- Name: conhecimentoxmlfil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlfil ON public.conhecimentoxml USING btree (codfilial);


--
-- Name: conhecimentoxmlnumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlnumero ON public.conhecimentoxml USING btree (numero);


--
-- Name: conhecimentoxmlnumerocte; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlnumerocte ON public.conhecimentoxml USING btree (numerocte);


--
-- Name: conhecimentoxmlococonhec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlococonhec ON public.conhecimentoxmloco USING btree (codconhecimentoxml);


--
-- Name: conhecimentoxmlocodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlocodata ON public.conhecimentoxmloco USING btree (data, codconhecimentoxml);


--
-- Name: conhecimentoxmlocotipojus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlocotipojus ON public.conhecimentoxmloco USING btree (codtipojustificativa, data, codconhecimentoxml);


--
-- Name: conhecimentoxmlocotipooco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlocotipooco ON public.conhecimentoxmloco USING btree (codtipoocorrencia, data, codconhecimentoxml);


--
-- Name: conhecimentoxmlsitconf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlsitconf ON public.conhecimentoxml USING btree (sitconf, codconhecimentoxml);


--
-- Name: conhecimentoxmlstatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecimentoxmlstatus ON public.conhecimentoxml USING btree (status);


--
-- Name: conhecnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecnota ON public.conhecimentonotamerc USING btree (codconhecimentonota);


--
-- Name: conhecnotachavenfe2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecnotachavenfe2 ON public.conhecimentonota USING btree (chavenfe, numero);


--
-- Name: conhecnotacodfatent; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecnotacodfatent ON public.conhecimentonota USING btree (codfaturaent, numeronota, numero);


--
-- Name: conhecnotacodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecnotacodnota ON public.conhecimentonota USING btree (codnota);


--
-- Name: conhecnotadoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecnotadoc ON public.conhecimentonotadoc USING btree (codconhecimentonota, codtipodoc);


--
-- Name: conhecnotadoctp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecnotadoctp ON public.conhecimentonotadoc USING btree (codtipodoc, codconhecimentonota);


--
-- Name: conhecnotamerc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecnotamerc ON public.conhecimentonotamerc USING btree (codmercadoria);


--
-- Name: conhecnotapag; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecnotapag ON public.conhecimentodesp USING btree (codnotapag, numero);


--
-- Name: conhecnotarec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecnotarec ON public.conhecimentodesp USING btree (codnotarec, numero);


--
-- Name: conhecocococodad; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecocococodad ON public.conhecimentoocorrencia USING btree (codadiantamento);


--
-- Name: conhecococodev; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecococodev ON public.conhecimentoocorrencia USING btree (codconhecimentoev);


--
-- Name: conhecococodfataduit; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecococodfataduit ON public.conhecimentoocorrencia USING btree (codfaturacompraaud);


--
-- Name: conhecococodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecococodnota ON public.conhecimentoocorrencia USING btree (codconhecimentonota);


--
-- Name: conhecococofatrec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecococofatrec ON public.conhecimentoocorrencia USING btree (codfaturarec);


--
-- Name: conhecocologstatusdata_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecocologstatusdata_idx ON public.conhecimentoocolog USING btree (status, data);


--
-- Name: conhecocorrencia_protocolo_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecocorrencia_protocolo_idx ON public.conhecimentoocorrencia USING btree (protocolo) WHERE (protocolo IS NOT NULL);


--
-- Name: conhecpedcli2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecpedcli2 ON public.conhecimento USING btree (pedidocliente2, numero, data);


--
-- Name: conhecsol; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecsol ON public.conhecimentosolic USING btree (numero, data);


--
-- Name: conhecsolf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecsolf ON public.conhecimentosolic USING btree (codfornecedor, numero);


--
-- Name: conhecsolfcnpjcpf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecsolfcnpjcpf ON public.conhecimentosolic USING btree (cnpjcpffornecedor, numero);


--
-- Name: conhecusuarioins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecusuarioins ON public.conhecimento USING btree (usuarioins, ctedataloteenv);


--
-- Name: conhecverifcfad; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecverifcfad ON public.conhecimento USING btree (codverifcfad);


--
-- Name: conhecverifcfad2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecverifcfad2 ON public.conhecimento USING btree (codverifcfad2);


--
-- Name: conhecverifcfsd; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conhecverifcfsd ON public.conhecimento USING btree (codverifcfsd);


--
-- Name: conhecxmlfilchave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX conhecxmlfilchave ON public.conhecimentoxml USING btree (chavecte, codfilial) WHERE (data >= '2022-01-06 00:00:00'::timestamp without time zone);


--
-- Name: conslogcodcliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conslogcodcliente ON public.consultalog USING btree (codcliente);


--
-- Name: conslogcodconhecnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conslogcodconhecnota ON public.consultalog USING btree (codconhecimentonota);


--
-- Name: conslogcodfornecedor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conslogcodfornecedor ON public.consultalog USING btree (codfornecedor);


--
-- Name: conslogcodmotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conslogcodmotorista ON public.consultalog USING btree (codmotorista);


--
-- Name: conslogcodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conslogcodnota ON public.consultalog USING btree (codnota);


--
-- Name: conslogcodproprietario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conslogcodproprietario ON public.consultalog USING btree (codproprietario);


--
-- Name: conslogcodveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conslogcodveiculo ON public.consultalog USING btree (codveiculo);


--
-- Name: conslogdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conslogdata ON public.consultalog USING btree (data);


--
-- Name: conslognumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conslognumero ON public.consultalog USING btree (numero);


--
-- Name: conslognumeropedido; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conslognumeropedido ON public.consultalog USING btree (numeropedido);


--
-- Name: conslogtela; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conslogtela ON public.consultalog USING btree (tela);


--
-- Name: conslogusuins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conslogusuins ON public.consultalog USING btree (usuarioins);


--
-- Name: consultaloglic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX consultaloglic ON public.consultalog USING btree (codveiculolicensa);


--
-- Name: contacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contacod ON public.conta USING btree (codconta);


--
-- Name: contacontabilcodconta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX contacontabilcodconta ON public.contacontabil USING btree (codcontacontabil);


--
-- Name: contacontabilcodemp_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contacontabilcodemp_idx ON public.empresascontacontabil USING btree (codcontacontabil, codempresa);


--
-- Name: contacontabilcontacomp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contacontabilcontacomp ON public.contacontabil USING btree (numcontacompleto);


--
-- Name: contacontabildesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contacontabildesc ON public.contacontabil USING btree (descricao);


--
-- Name: contaitemconta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contaitemconta ON public.contaitem USING btree (codconta, coditem);


--
-- Name: conthistdescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX conthistdescricao ON public.conthist USING btree (descricao);


--
-- Name: contlancdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contlancdata ON public.contlanc USING btree (data);


--
-- Name: contlancdescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contlancdescricao ON public.contlanc USING btree (descricao);


--
-- Name: contlancdetcred; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contlancdetcred ON public.contlancdet USING btree (codcontacred);


--
-- Name: contlancdetdeb; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contlancdetdeb ON public.contlancdet USING btree (codcontadeb);


--
-- Name: contlancdetdescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contlancdetdescricao ON public.contlancdet USING btree (descricao);


--
-- Name: contlancdethist; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contlancdethist ON public.contlancdet USING btree (codconthist);


--
-- Name: contlancdetorigdet; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contlancdetorigdet ON public.contlancdetorig USING btree (codcontlancdet);


--
-- Name: contlancdetorigregra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contlancdetorigregra ON public.contlancdetorig USING btree (codregracdet);


--
-- Name: contlancdetorigtab; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contlancdetorigtab ON public.contlancdetorig USING btree (tabela, chave, valor);


--
-- Name: contlancdetregra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contlancdetregra ON public.contlancdet USING btree (codregracdet);


--
-- Name: contlancusexp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contlancusexp ON public.contlanc USING btree (usuarioexp, dataexp);


--
-- Name: contratoajcont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratoajcont ON public.contratoaj USING btree (codcontrato);


--
-- Name: contratoajdtdig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratoajdtdig ON public.contratoaj USING btree (datadigitacao);


--
-- Name: contratocece; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratocece ON public.contratocolent USING btree (codcoletaentrega, codcontrato);


--
-- Name: contratoceceset; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratoceceset ON public.contratocolent USING btree (codcoletaentregasetor, codcontrato);


--
-- Name: contratocecont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratocecont ON public.contratocolent USING btree (codcontrato, codcoletaentrega);


--
-- Name: contratocli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratocli ON public.contrato USING btree (codcliente);


--
-- Name: contratocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratocod ON public.contrato USING btree (codcontrato);


--
-- Name: contratodataini; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratodataini ON public.contrato USING btree (datainicio);


--
-- Name: contratodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratodesc ON public.contrato USING btree (descricao);


--
-- Name: contratodespcont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratodespcont ON public.contratodesp USING btree (codcontrato);


--
-- Name: contratodespfor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratodespfor ON public.contratodesp USING btree (codfornecedor);


--
-- Name: contratodesptp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratodesptp ON public.contratodesp USING btree (codtipodesp);


--
-- Name: contratodtins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratodtins ON public.contrato USING btree (datadigitacao);


--
-- Name: contratofil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratofil ON public.contrato USING btree (codfilial);


--
-- Name: contratoitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratoitem ON public.contrato USING btree (coditem);


--
-- Name: contratolibcont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratolibcont ON public.contratolib USING btree (codcontrato, codcontratocompra);


--
-- Name: contratolibcontc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratolibcontc ON public.contratolib USING btree (codcontratocompra);


--
-- Name: contratologcont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratologcont ON public.contratolog USING btree (codcontrato, data);


--
-- Name: contratologdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratologdata ON public.contratolog USING btree (data, codcontrato);


--
-- Name: contratomerc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratomerc ON public.contrato USING btree (codmercadoria);


--
-- Name: contratoparccont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratoparccont ON public.contratoparc USING btree (codcontrato);


--
-- Name: contratoparcfatpag; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratoparcfatpag ON public.contratoparc USING btree (codfaturapag);


--
-- Name: contratoparcfatrec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratoparcfatrec ON public.contratoparc USING btree (codfaturarec);


--
-- Name: contratosafra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratosafra ON public.contrato USING btree (codsafra);


--
-- Name: contratoue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratoue ON public.contrato USING btree (codunidadeembarque);


--
-- Name: contratousins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratousins ON public.contrato USING btree (usuarioins);


--
-- Name: contratovaldata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratovaldata ON public.contratoval USING btree (codcontrato, datavalidade);


--
-- Name: contratovend; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX contratovend ON public.contrato USING btree (codfornecedorvend);


--
-- Name: cordesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cordesc ON public.cor USING btree (descricao);


--
-- Name: cotdatadigitacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cotdatadigitacao ON public.cot USING btree (datadigitacao);


--
-- Name: cotfretecodcliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cotfretecodcliente ON public.cotfrete USING btree (codcliente);


--
-- Name: cotfretedata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cotfretedata ON public.cotfrete USING btree (data);


--
-- Name: cotfreteembarcador; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cotfreteembarcador ON public.cotfrete USING btree (codembarcador);


--
-- Name: cotfretefilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cotfretefilial ON public.cotfrete USING btree (codfilial);


--
-- Name: cotfretelogcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cotfretelogcod ON public.cotfretelog USING btree (codcotfretelog);


--
-- Name: cotfretelogcodcf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cotfretelogcodcf ON public.cotfretelog USING btree (codcotfrete);


--
-- Name: cotfretelogdatacodcf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cotfretelogdatacodcf ON public.cotfretelog USING btree (data, codcotfrete);


--
-- Name: cotfretemerccod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cotfretemerccod ON public.cotfretemerc USING btree (codcotfretemerc);


--
-- Name: cotfretemerccodveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cotfretemerccodveiculo ON public.cotfretemerc USING btree (codveiculo, codcotfrete);


--
-- Name: cotfretemercpedidocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX cotfretemercpedidocod ON public.cotfretemercpedido USING btree (codcotfretemercpedido);


--
-- Name: cotfretetaxapk; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX cotfretetaxapk ON public.cotfretetaxa USING btree (codcotfretetaxa);


--
-- Name: databidata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX databidata ON public.databi USING btree (data);


--
-- Name: datacodprogfrete; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX datacodprogfrete ON public.progfretedia USING btree (data, codprogfrete);


--
-- Name: datamotnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX datamotnota ON public.nota USING btree (datamotorista, codfornecedor, numeronota, serie);


--
-- Name: departamentodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX departamentodescricao ON public.departamento USING btree (descricao);


--
-- Name: depositodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX depositodesc ON public.deposito USING btree (descricao);


--
-- Name: depositodocadep; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX depositodocadep ON public.depositodoca USING btree (coddeposito, coddepositodoca);


--
-- Name: depositodocadesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX depositodocadesc ON public.depositodoca USING btree (descricao);


--
-- Name: depositofil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX depositofil ON public.deposito USING btree (codfilial, descricao);


--
-- Name: descricaomotdemissao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX descricaomotdemissao ON public.motivodemissao USING btree (descricao);


--
-- Name: desctipohist; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX desctipohist ON public.tipohistfat USING btree (descricao);


--
-- Name: desctipoprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX desctipoprop ON public.tipoproprietario USING btree (descricao);


--
-- Name: documentoarq; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX documentoarq ON public.documento USING btree (nomearq);


--
-- Name: documentocodtipodoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX documentocodtipodoc ON public.documento USING btree (codtipodoc, nometabela, chavetabela);


--
-- Name: documentodtins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX documentodtins ON public.documento USING btree (datadigitacao, usuarioins);


--
-- Name: documentoid; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX documentoid ON public.documento USING btree (iddoc);


--
-- Name: documentooco_data_doc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX documentooco_data_doc ON public.documentooco USING btree (data, coddocumento);


--
-- Name: documentooco_doc_data; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX documentooco_doc_data ON public.documentooco USING btree (coddocumento, data);


--
-- Name: documentooco_doc_tipo_data; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX documentooco_doc_tipo_data ON public.documentooco USING btree (coddocumento, codtipoocorrencia, data);


--
-- Name: documentooco_protocolo_doc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX documentooco_protocolo_doc ON public.documentooco USING btree (protocolo, coddocumento);


--
-- Name: documentooco_tipo_data; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX documentooco_tipo_data ON public.documentooco USING btree (codtipoocorrencia, data);


--
-- Name: documentotab; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX documentotab ON public.documento USING btree (nometabela, chavetabela, codtipodoc);


--
-- Name: documentousins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX documentousins ON public.documento USING btree (usuarioins, datadigitacao);


--
-- Name: duplicatapagar_codfatura; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatapagar_codfatura ON public.duplicatapagar USING btree (codfatura);


--
-- Name: duplicatapagar_codnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatapagar_codnota ON public.duplicatapagar USING btree (codnota);


--
-- Name: duplicatapagarcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX duplicatapagarcod ON public.duplicatapagar USING btree (codduplicatapagar);


--
-- Name: duplicatapagarcodint; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatapagarcodint ON public.duplicatapagar USING btree (codinterno);


--
-- Name: duplicatapagarcx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatapagarcx ON public.duplicatapagar USING btree (codcaixa, codfornecedor, numeronota, serie, parcela);


--
-- Name: duplicatapagarcx2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatapagarcx2 ON public.duplicatapagar USING btree (codcaixa);


--
-- Name: duplicatapagardataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatapagardataatual ON public.duplicatapagar USING btree (dataatual, codfornecedor, numeronota, serie, parcela);


--
-- Name: duplicatapagardatapagamento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatapagardatapagamento ON public.duplicatapagar USING btree (datapagamento, codfornecedor, numeronota, serie, parcela);


--
-- Name: duplicatapagardatavencimento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX duplicatapagardatavencimento ON public.duplicatapagar USING btree (datavencimento, codfornecedor, numeronota, serie, parcela);


--
-- Name: duplicatapagarnumeronota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX duplicatapagarnumeronota ON public.duplicatapagar USING btree (numeronota, serie, codfornecedor, parcela);


--
-- Name: duplicatapagartrans; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatapagartrans ON public.duplicatapagar USING btree (codtransacao, datavencimento, codfornecedor, numeronota, serie, parcela);


--
-- Name: duplicatapagartransacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatapagartransacao ON public.duplicatapagar USING btree (codtransacao, codfornecedor, numeronota, serie, parcela);


--
-- Name: duplicatarecebercod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX duplicatarecebercod ON public.duplicatareceber USING btree (codduplicatareceber);


--
-- Name: duplicatarecebercodtransacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatarecebercodtransacao ON public.duplicatareceber USING btree (codtransacao, codfatura, parcela);


--
-- Name: duplicatarecebercx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatarecebercx ON public.duplicatareceber USING btree (codcaixa, codfatura, parcela);


--
-- Name: duplicatarecebercx2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatarecebercx2 ON public.duplicatareceber USING btree (codcaixa, codduplicatareceber);


--
-- Name: duplicatareceberdataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duplicatareceberdataatual ON public.duplicatareceber USING btree (dataatual, codfatura, parcela);


--
-- Name: duplicatareceberdatavencimento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX duplicatareceberdatavencimento ON public.duplicatareceber USING btree (datavencimento, codfatura, parcela);


--
-- Name: duplordemcompracod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX duplordemcompracod ON public.duplordemcompra USING btree (codduplordemcompra);


--
-- Name: duppcodacertoprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duppcodacertoprop ON public.duplicatapagar USING btree (codacertoproprietario, codfornecedor, numeronota, serie, parcela);


--
-- Name: duppcodforsantec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duppcodforsantec ON public.duplicatapagar USING btree (codfornecedorsaldoantec, codfornecedor, numeronota, serie, parcela);


--
-- Name: duppcodforsantec2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duppcodforsantec2 ON public.duplicatapagar USING btree (codfornecedorsaldoantec, codnota);


--
-- Name: duprcodacertoprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duprcodacertoprop ON public.duplicatareceber USING btree (codacertoproprietario, codfatura, parcela);


--
-- Name: duprcodclisantec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duprcodclisantec ON public.duplicatareceber USING btree (codclientesaldoantec, codfatura, parcela);


--
-- Name: duprdatacred; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duprdatacred ON public.duplicatareceber USING btree (datacredito, codfatura, parcela);


--
-- Name: dupreccodforfom; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX dupreccodforfom ON public.duplicatareceber USING btree (codfornecedorfomento);


--
-- Name: duprtransdepantec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX duprtransdepantec ON public.duplicatareceber USING btree (codtransacaodepantec, codfatura, parcela);


--
-- Name: ediviagemciddest; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ediviagemciddest ON public.ediviagem USING btree (codcidadedestino, data);


--
-- Name: ediviagemcidorig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ediviagemcidorig ON public.ediviagem USING btree (codcidadeorigem, data);


--
-- Name: ediviagemcliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ediviagemcliente ON public.ediviagem USING btree (codcliente, numconhec, data);


--
-- Name: ediviagemcol; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ediviagemcol ON public.ediviagem USING btree (codcoleta, data);


--
-- Name: ediviagemdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ediviagemdata ON public.ediviagem USING btree (data);


--
-- Name: ediviagement; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ediviagement ON public.ediviagem USING btree (codentrega, data);


--
-- Name: ediviagemmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ediviagemmot ON public.ediviagem USING btree (codmotorista, data);


--
-- Name: ediviagempainel; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ediviagempainel ON public.ediviagem USING btree (codproprietario, codediviagem, data);


--
-- Name: ediviagemprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ediviagemprop ON public.ediviagem USING btree (codproprietario, data);


--
-- Name: ediviagemveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ediviagemveic ON public.ediviagem USING btree (codveiculo, data);


--
-- Name: embarcadorcontcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX embarcadorcontcod ON public.embarcadorcont USING btree (codembarcadorcont);


--
-- Name: embarcadordataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX embarcadordataatual ON public.embarcador USING btree (dataatual);


--
-- Name: embarcadornome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX embarcadornome ON public.embarcador USING btree (nome);


--
-- Name: embarcadororcemb; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX embarcadororcemb ON public.embarcadororc USING btree (codembarcador, datainicial);


--
-- Name: embarcadororcpk; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX embarcadororcpk ON public.embarcadororc USING btree (codembarcadororc);


--
-- Name: empcontatabelachave_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX empcontatabelachave_idx ON public.empresascontacontabil USING btree (nometabela, chavetabela);


--
-- Name: empresasnome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX empresasnome ON public.empresa USING btree (nome, codempresa);


--
-- Name: empresasparcodemp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX empresasparcodemp ON public.empresaspar USING btree (codempresa, descricao);


--
-- Name: empresaspardesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX empresaspardesc ON public.empresaspar USING btree (descricao);


--
-- Name: equipdescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX equipdescricao ON public.equip USING btree (descricao);


--
-- Name: equipfornecedor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX equipfornecedor ON public.equip USING btree (codfornecedor);


--
-- Name: equiplogcodequip; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX equiplogcodequip ON public.equiplog USING btree (codequip, codequiplog, data);


--
-- Name: equiplogcodinterno; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX equiplogcodinterno ON public.equiplog USING btree (codinterno, codequip, data);


--
-- Name: equiplogcodue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX equiplogcodue ON public.equiplog USING btree (codunidadeembarque, codequiplog, data);


--
-- Name: equiplogcodveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX equiplogcodveiculo ON public.equiplog USING btree (codveiculo, data);


--
-- Name: equiplogtipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX equiplogtipo ON public.equiplog USING btree (codtipoequiplog);


--
-- Name: equiptipoequip; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX equiptipoequip ON public.equip USING btree (codtipoequip);


--
-- Name: especiemercdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX especiemercdesc ON public.especiemerc USING btree (descricao);


--
-- Name: estadiafaixa_data; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX estadiafaixa_data ON public.estadiafaixa USING btree (nometabela, chavetabela, data, horas);


--
-- Name: estadiafaixa_horas; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX estadiafaixa_horas ON public.estadiafaixa USING btree (nometabela, chavetabela, horas, data);


--
-- Name: estadiafaixa_tabela; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX estadiafaixa_tabela ON public.estadiafaixa USING btree (nometabela, chavetabela);


--
-- Name: exametreinamentodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX exametreinamentodescricao ON public.exametreinamento USING btree (descricao);


--
-- Name: exametreinamentodocet; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX exametreinamentodocet ON public.exametreinamentodoc USING btree (codexametreinamento);


--
-- Name: exametreinamentovalet; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX exametreinamentovalet ON public.exametreinamentoval USING btree (codexametreinamento);


--
-- Name: expcampocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX expcampocod ON public.expcampo USING btree (codexpcampo);


--
-- Name: explogcoddatadig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX explogcoddatadig ON public.explog USING btree (codexp, datadigitacao);


--
-- Name: explogcodusins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX explogcodusins ON public.explog USING btree (codexp, usuarioins);


--
-- Name: explogdatadig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX explogdatadig ON public.explog USING btree (datadigitacao);


--
-- Name: explogexp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX explogexp ON public.explog USING btree (codexp);


--
-- Name: explogusins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX explogusins ON public.explog USING btree (usuarioins);


--
-- Name: expnome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX expnome ON public.exp USING btree (nome);


--
-- Name: extratocanc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX extratocanc ON public.extrato USING btree (usuariocanc, datacanc);


--
-- Name: extratocancdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX extratocancdata ON public.extrato USING btree (datacanc, usuariocanc);


--
-- Name: extratoconta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX extratoconta ON public.extrato USING btree (codextrato, numeroconta);


--
-- Name: extratocontadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX extratocontadata ON public.extrato USING btree (numeroconta, data);


--
-- Name: extratonomeusinsdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX extratonomeusinsdata ON public.extrato USING btree (usuarioins, data);


--
-- Name: extratonumcontanumdoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX extratonumcontanumdoc ON public.extrato USING btree (numeroconta, numdoc);


--
-- Name: extratoofxcanc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX extratoofxcanc ON public.extratoofx USING btree (usuariocanc, datacanc);


--
-- Name: extratoofxcancdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX extratoofxcancdata ON public.extratoofx USING btree (datacanc, usuariocanc);


--
-- Name: extratoofxcontadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX extratoofxcontadata ON public.extratoofx USING btree (numeroconta, data);


--
-- Name: extratoofxnomedataconta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX extratoofxnomedataconta ON public.extratoofx USING btree (data, numeroconta);


--
-- Name: fabricantedescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fabricantedescricao ON public.fabricante USING btree (descricao);


--
-- Name: fatcfinalizada; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fatcfinalizada ON public.faturacompra USING btree (data, atualizadovista);


--
-- Name: fatfinalizada; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fatfinalizada ON public.fatura USING btree (data, atualizada);


--
-- Name: fatrecnotaitemveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fatrecnotaitemveic ON public.itemnota USING btree (codfaturareceber, codnota, coditem, codveiculo, codinterno);


--
-- Name: faturacodacid; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacodacid ON public.fatura USING btree (codveiculoacidente, data);


--
-- Name: faturacodadiant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacodadiant ON public.fatura USING btree (codadiantamento, data);


--
-- Name: faturacodcav; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacodcav ON public.fatura USING btree (codcavalo, data);


--
-- Name: faturacodmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacodmot ON public.fatura USING btree (codmotorista, data);


--
-- Name: faturacodprotocolo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacodprotocolo ON public.fatura USING btree (codprotocolofat);


--
-- Name: faturacodveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacodveic ON public.fatura USING btree (codveiculo, data);


--
-- Name: faturacompraaudcodad; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompraaudcodad ON public.faturacompraaud USING btree (codadiantamento);


--
-- Name: faturacompraauddata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompraauddata ON public.faturacompraaud USING btree (data);


--
-- Name: faturacompraaudfat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompraaudfat ON public.faturacompraaud USING btree (codfatura);


--
-- Name: faturacompraaudfatrec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompraaudfatrec ON public.faturacompraaud USING btree (codfaturarec);


--
-- Name: faturacompraaudus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompraaudus ON public.faturacompraaud USING btree (usuarioins);


--
-- Name: faturacompraconfat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompraconfat ON public.faturacompracon USING btree (codfatura, numero, pagando);


--
-- Name: faturacompracont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompracont ON public.faturacompra USING btree (codcontrato);


--
-- Name: faturacompraconviag; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompraconviag ON public.faturacompracon USING btree (numero, pagando, codfatura);


--
-- Name: faturacompradataat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompradataat ON public.faturacompra USING btree (dataatual);


--
-- Name: faturacompradataaudit_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompradataaudit_idx ON public.faturacompra USING btree (dataaudit, usuarioaudit);


--
-- Name: faturacompranf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompranf ON public.faturacompra USING btree (numeronf);


--
-- Name: faturacompranumeronf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompranumeronf ON public.faturacompra USING btree (codfornecedor, numeronf, serienf);


--
-- Name: faturacompraoco_fatcompra_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompraoco_fatcompra_idx ON public.faturacompraoco USING btree (codfaturacompra);


--
-- Name: faturacompraoco_tpoco_fat_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacompraoco_tpoco_fat_idx ON public.faturacompraoco USING btree (codtipoocorrencia, codfaturacompra);


--
-- Name: faturacomprausuarioaudit_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacomprausuarioaudit_idx ON public.faturacompra USING btree (usuarioaudit, dataaudit);


--
-- Name: faturacont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturacont ON public.fatura USING btree (codcontrato);


--
-- Name: faturadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturadata ON public.fatura USING btree (data);


--
-- Name: faturadataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturadataatual ON public.fatura USING btree (dataatual);


--
-- Name: faturalogcodfat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturalogcodfat ON public.faturalog USING btree (codfatura);


--
-- Name: faturalogdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturalogdata ON public.faturalog USING btree (data, codfatura);


--
-- Name: faturaneg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturaneg ON public.fatura USING btree (codnegocio, coditemreceita);


--
-- Name: faturanumfat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturanumfat ON public.fatura USING btree (numfatura);


--
-- Name: faturanumpost; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturanumpost ON public.fatura USING btree (numeropostagem);


--
-- Name: faturarec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX faturarec ON public.fatura USING btree (coditemreceita);


--
-- Name: filialcgccpf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX filialcgccpf ON public.filial USING btree (cgccpf, liberado);


--
-- Name: filialdataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX filialdataatual ON public.filial USING btree (dataatual);


--
-- Name: filialemp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX filialemp ON public.filial USING btree (codempresa);


--
-- Name: filialnome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX filialnome ON public.filial USING btree (nome);


--
-- Name: filialportariadesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX filialportariadesc ON public.filialportaria USING btree (descricao);


--
-- Name: filialportariafil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX filialportariafil ON public.filialportaria USING btree (codfilial, descricao);


--
-- Name: filialsegcodfildatavencapolice; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX filialsegcodfildatavencapolice ON public.filialseg USING btree (codfilial, datavencapolice);


--
-- Name: filialsegcodfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX filialsegcodfilial ON public.filialseg USING btree (codfilial);


--
-- Name: filialsegvcodfil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX filialsegvcodfil ON public.filialsegv USING btree (codfilial);


--
-- Name: filialsegvcodfilini; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX filialsegvcodfilini ON public.filialsegv USING btree (codfilial, datainicio);


--
-- Name: filialspedcodfil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX filialspedcodfil ON public.filialsped USING btree (codfilial);


--
-- Name: filialspeddata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX filialspeddata ON public.filialsped USING btree (data);


--
-- Name: fornagendadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornagendadata ON public.fornecedoragenda USING btree (data, codfornecedor);


--
-- Name: fornecedoragendacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedoragendacod ON public.fornecedoragenda USING btree (codagenda);


--
-- Name: fornecedorccfor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX fornecedorccfor ON public.fornecedorcc USING btree (codfornecedor, codbanco, agencia, conta);


--
-- Name: fornecedorcgccpf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedorcgccpf ON public.fornecedor USING btree (cgccpf);


--
-- Name: fornecedorcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedorcli ON public.fornecedor USING btree (codcliente);


--
-- Name: fornecedorcodfornprinc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedorcodfornprinc ON public.fornecedor USING btree (codfornecedorprincipal);


--
-- Name: fornecedorcodtipocobr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedorcodtipocobr ON public.fornecedor USING btree (codtipocobranca);


--
-- Name: fornecedorcontcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX fornecedorcontcod ON public.fornecedorcont USING btree (codfornecedorcont);


--
-- Name: fornecedordataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedordataatual ON public.fornecedor USING btree (dataatual);


--
-- Name: fornecedorfilcodfor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedorfilcodfor ON public.fornecedorfil USING btree (codfornecedor);


--
-- Name: fornecedorfilcodue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedorfilcodue ON public.fornecedorfil USING btree (codunidadeembarque, codfornecedor);


--
-- Name: fornecedorfiscal_forn; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedorfiscal_forn ON public.fornecedorfiscal USING btree (codfornecedor);


--
-- Name: fornecedorie; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedorie ON public.fornecedor USING btree (inscricaoestadual);


--
-- Name: fornecedornome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedornome ON public.fornecedor USING btree (nome);


--
-- Name: fornecedorprecocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX fornecedorprecocod ON public.fornecedorpreco USING btree (codfornecedorpreco);


--
-- Name: fornecedorprecocodext; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedorprecocodext ON public.fornecedorpreco USING btree (codfornecedor, coditemexterno, datainicio);


--
-- Name: fornecedorprecocodf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornecedorprecocodf ON public.fornecedorpreco USING btree (codfornecedor, coditemfornecedor, datainicio);


--
-- Name: fornpis; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fornpis ON public.fornecedor USING btree (pis);


--
-- Name: fretecodcliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX fretecodcliente ON public.frete USING btree (codcliente, codmercadoria);


--
-- Name: gerriscocartaocodfil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gerriscocartaocodfil ON public.gerriscocartao USING btree (codfilial, codunidadeembarque);


--
-- Name: gerriscocartaocodgerrisco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gerriscocartaocodgerrisco ON public.gerriscocartao USING btree (codgerrisco);


--
-- Name: gerriscocartaonumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gerriscocartaonumero ON public.gerriscocartao USING btree (numero, status);


--
-- Name: gerriscodespgr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gerriscodespgr ON public.gerriscodesp USING btree (codgerrisco, codtipodesp);


--
-- Name: gerriscodesptp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gerriscodesptp ON public.gerriscodesp USING btree (codtipodesp, codgerrisco);


--
-- Name: gerriscoempresascom; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gerriscoempresascom ON public.empresascom USING btree (codgerrisco);


--
-- Name: gerriscomotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gerriscomotorista ON public.motoristagerrisco USING btree (codgerrisco, codmotorista, data);


--
-- Name: gerrisconome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gerrisconome ON public.gerrisco USING btree (nome);


--
-- Name: gerriscopgr_gerrisco_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gerriscopgr_gerrisco_idx ON public.gerriscopgr USING btree (codgerrisco);


--
-- Name: gerriscopgrmercadoria_id_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX gerriscopgrmercadoria_id_idx ON public.gerriscopgrmercadoria USING btree (codgerriscopgr, codmercadoria);


--
-- Name: gerriscopgrtipotransp_id_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX gerriscopgrtipotransp_id_idx ON public.gerriscopgrtipotransporte USING btree (codgerriscopgr, codtipotransporte);


--
-- Name: gerriscoporop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gerriscoporop ON public.gerriscoop USING btree (codgerrisco);


--
-- Name: gerriscoproprietario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX gerriscoproprietario ON public.proprietariogerrisco USING btree (codgerrisco, codproprietario, data);


--
-- Name: gerriscordgr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gerriscordgr ON public.gerriscordet USING btree (codgerriscor, descricao);


--
-- Name: gerriscorgr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gerriscorgr ON public.gerriscor USING btree (codgerrisco, descricao);


--
-- Name: grupocontacodgrupousuario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupocontacodgrupousuario ON public.grupoconta USING btree (codgrupousuario, numeroconta);


--
-- Name: grupocontanumeroconta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupocontanumeroconta ON public.grupoconta USING btree (numeroconta, codgrupousuario);


--
-- Name: grupodataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupodataatual ON public.grupo USING btree (dataatual);


--
-- Name: grupodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupodescricao ON public.grupo USING btree (descricao);


--
-- Name: grupofilialgr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupofilialgr ON public.grupofilial USING btree (codgrupousuario, codfilial);


--
-- Name: grupofinanceirodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupofinanceirodescricao ON public.grupofinanceiro USING btree (descricao);


--
-- Name: grupomercadoriadesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupomercadoriadesc ON public.grupomercadoria USING btree (descricao);


--
-- Name: grupomsgdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupomsgdesc ON public.grupomsg USING btree (descricao);


--
-- Name: grupomsgdetcodgrupo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupomsgdetcodgrupo ON public.grupomsgdet USING btree (codgrupomsg);


--
-- Name: grupoopcartaocodgerrisco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupoopcartaocodgerrisco ON public.grupoopcartao USING btree (codgerrisco, codgrupousuario);


--
-- Name: grupoopcartaogr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupoopcartaogr ON public.grupoopcartao USING btree (codgrupousuario, codgerrisco);


--
-- Name: gruporeceitadescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gruporeceitadescricao ON public.gruporeceita USING btree (descricao);


--
-- Name: grupousuariocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX grupousuariocod ON public.grupousuario USING btree (codgrupousuario);


--
-- Name: grupousuariogrcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupousuariogrcod ON public.grupousuariogr USING btree (codgrupousuario, codgrupo);


--
-- Name: grupousuariogrcodgr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX grupousuariogrcodgr ON public.grupousuariogr USING btree (codgrupo, codgrupousuario);


--
-- Name: grupousuariotipodesc_cods; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX grupousuariotipodesc_cods ON public.grupousuariotipodesc USING btree (codgrupousuario, codtipodesc);


--
-- Name: hgfdescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX hgfdescricao ON public.hipergrupofinanceiro USING btree (descricao);


--
-- Name: idx_conhecimentolog_coddepto; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_conhecimentolog_coddepto ON public.conhecimentolog USING btree (coddepartamento, numero);


--
-- Name: idx_conhecimentolog_codtipodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_conhecimentolog_codtipodesc ON public.conhecimentolog USING btree (codtipodesc, numero);


--
-- Name: idx_conhecimentolog_codueant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_conhecimentolog_codueant ON public.conhecimentolog USING btree (codunidadeembarqueant, numero);


--
-- Name: idx_credencial_tabela_usuario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_credencial_tabela_usuario ON public.credencial USING btree (nometabela, usuario);


--
-- Name: idx_credencial_token; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_credencial_token ON public.credencial USING btree (token);


--
-- Name: idx_credencial_usuario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_credencial_usuario ON public.credencial USING btree (usuario);


--
-- Name: idx_filialsetor_codfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_filialsetor_codfilial ON public.filialsetor USING btree (codfilial, descricao);


--
-- Name: idx_grupoauditoriacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX idx_grupoauditoriacod ON public.grupoauditoria USING btree (codgrupoauditoria);


--
-- Name: idx_impcidadevinc_codimpcidade; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_impcidadevinc_codimpcidade ON public.impostocidadevinc USING btree (codimpostocidade, codcidade);


--
-- Name: idx_imposto_cst_codclasstrib; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX idx_imposto_cst_codclasstrib ON public.imposto USING btree (cst, codclasstrib);


--
-- Name: idx_impostocidade_codimposto; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_impostocidade_codimposto ON public.impostocidade USING btree (codimposto, dataini, datafim);


--
-- Name: idx_impostocontrib_codimposto; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_impostocontrib_codimposto ON public.impostocontrib USING btree (codimposto, dataini, datafim);


--
-- Name: idx_impostocredpres_codimposto; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_impostocredpres_codimposto ON public.impostocredpres USING btree (codimposto, dataini, datafim);


--
-- Name: idx_impostouf_codimposto; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_impostouf_codimposto ON public.impostouf USING btree (codimposto, dataini, datafim);


--
-- Name: idx_impostoufvinc_codimpostouf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_impostoufvinc_codimpostouf ON public.impostoufvinc USING btree (codimpostouf, coduf);


--
-- Name: idx_nbs_codclasstrib; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_nbs_codclasstrib ON public.nbs USING btree (codclasstrib);


--
-- Name: idx_nota_filialsetor_nota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_nota_filialsetor_nota ON public.nota USING btree (codfilialsetor, codnota);


--
-- Name: idx_notafilialsetor_nota_filial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_notafilialsetor_nota_filial ON public.notafilialsetor USING btree (codfilialsetor, codnota);


--
-- Name: idx_notaosaberta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_notaosaberta ON public.nota USING btree (codveiculo, serie, codfornecedor, data DESC) WHERE (usuariocanc IS NULL);


--
-- Name: idx_usuariocampo_regra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_usuariocampo_regra ON public.usuariocampo USING btree (codusuario, nometabela, nomecampo);


--
-- Name: idx_veiculomov_codembarcador; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_veiculomov_codembarcador ON public.veiculomov USING btree (codembarcador, data, codveiculo);


--
-- Name: impcampocodinstalacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX impcampocodinstalacao ON public.impcampo USING btree (codimp, campo);


--
-- Name: impcodinstalacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX impcodinstalacao ON public.imp USING btree (codinstalacao, codimp);


--
-- Name: implayoutimp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX implayoutimp ON public.implayout USING btree (codimp, codimplayout);


--
-- Name: implayoutlogimp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX implayoutlogimp ON public.implayoutlog USING btree (codimplayout, datains);


--
-- Name: implayoutusimp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX implayoutusimp ON public.implayoutus USING btree (codimplayout, nome, datains);


--
-- Name: itemcfopcoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemcfopcoditem ON public.itemcfop USING btree (coditem);


--
-- Name: itemcodaltcodalt; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemcodaltcodalt ON public.itemcodalt USING btree (codalternativo, coditem);


--
-- Name: itemcodaltcoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemcodaltcoditem ON public.itemcodalt USING btree (coditem, codalternativo);


--
-- Name: itemcoditembaixar; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemcoditembaixar ON public.item USING btree (coditembaixar);


--
-- Name: itemcoditemfinanceiro; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemcoditemfinanceiro ON public.item USING btree (coditemfinanceiro);


--
-- Name: itemcodmerc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemcodmerc ON public.item USING btree (codmercadoria);


--
-- Name: itemcotcoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemcotcoditem ON public.itemcot USING btree (coditem, codcot, coditemcot);


--
-- Name: itemdataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemdataatual ON public.item USING btree (dataatual);


--
-- Name: itemfilialcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX itemfilialcod ON public.itemfilial USING btree (coditemfilial);


--
-- Name: itemfilialpos; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemfilialpos ON public.itemfilial USING btree (codfilial, codposicao, coditem);


--
-- Name: itemfinanceirodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemfinanceirodescricao ON public.itemfinanceiro USING btree (descricao);


--
-- Name: iteminvcodfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iteminvcodfilial ON public.iteminv USING btree (codfilial, coditem);


--
-- Name: iteminvcoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iteminvcoditem ON public.iteminv USING btree (coditem, codfilial);


--
-- Name: iteminvcodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iteminvcodnota ON public.iteminv USING btree (codnota, coditem, codfilial);


--
-- Name: iteminvpos; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iteminvpos ON public.iteminv USING btree (codposicao, coditem);


--
-- Name: iteminvusuario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX iteminvusuario ON public.iteminv USING btree (usuarioins, coditem);


--
-- Name: itemncm; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemncm ON public.item USING btree (ncm);


--
-- Name: itemncmcoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemncmcoditem ON public.itemtabncm USING btree (coditem, ncm);


--
-- Name: itemncmcodneg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemncmcodneg ON public.itemtabncm USING btree (ncm, coditem);


--
-- Name: itemneg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemneg ON public.item USING btree (codnegocio);


--
-- Name: itemnegociocoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnegociocoditem ON public.itemnegocio USING btree (coditem, codnegocio);


--
-- Name: itemnegociocodneg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnegociocodneg ON public.itemnegocio USING btree (codnegocio, coditem);


--
-- Name: itemnota_codnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnota_codnota ON public.itemnota USING btree (codnota);


--
-- Name: itemnota_codnota2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnota_codnota2 ON public.itemnota USING btree (codnota);


--
-- Name: itemnota_peditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnota_peditem ON public.itemnota USING btree (codpedidoitem, codnota);


--
-- Name: itemnotaclasdtins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotaclasdtins ON public.itemnotaclas USING btree (datadigitacao);


--
-- Name: itemnotaclasfor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotaclasfor ON public.itemnotaclas USING btree (codfornecedor);


--
-- Name: itemnotaclasit; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotaclasit ON public.itemnotaclas USING btree (codinterno);


--
-- Name: itemnotaclasusins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotaclasusins ON public.itemnotaclas USING btree (usuarioins);


--
-- Name: itemnotacodacertomotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodacertomotorista ON public.itemnota USING btree (codacertomotorista, codfornecedor, numeronota, serie);


--
-- Name: itemnotacodacertomotorista2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodacertomotorista2 ON public.itemnota USING btree (codacertomotorista, codnota);


--
-- Name: itemnotacodacertoprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodacertoprop ON public.itemnota USING btree (codacertoproprietario, codnota);


--
-- Name: itemnotacodacid; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodacid ON public.itemnota USING btree (codveiculoacidente, codinterno);


--
-- Name: itemnotacodcavalo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodcavalo ON public.itemnota USING btree (codcavalo, coditem, codfornecedor, numeronota, serie);


--
-- Name: itemnotacodcavalo2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodcavalo2 ON public.itemnota USING btree (codcavalo, coditem, codnota);


--
-- Name: itemnotacodfaturarec2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodfaturarec2 ON public.itemnota USING btree (codfaturareceber, codnota);


--
-- Name: itemnotacodfaturareceber; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodfaturareceber ON public.itemnota USING btree (codfaturareceber, codfornecedor, numeronota, serie, coditem, codveiculo);


--
-- Name: itemnotacodint; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodint ON public.itemnota USING btree (codinterno, codfornecedor, numeronota, serie, coditem);


--
-- Name: itemnotacodinterno; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodinterno ON public.itemnota USING btree (codfornecedor, numeronota, serie);


--
-- Name: itemnotacodintpk; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodintpk ON public.itemnota USING btree (codinterno);


--
-- Name: itemnotacoditem2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacoditem2 ON public.itemnota USING btree (coditem, codnota);


--
-- Name: itemnotacoditembaixar2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacoditembaixar2 ON public.itemnota USING btree (coditembaixar, codnota);


--
-- Name: itemnotacoditoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacoditoc ON public.itemnota USING btree (coditemordemcompra, codnota);


--
-- Name: itemnotacodmotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodmotorista ON public.itemnota USING btree (codmotorista, codfornecedor, numeronota, serie, coditem, codveiculo);


--
-- Name: itemnotacodmotorista2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodmotorista2 ON public.itemnota USING btree (codmotorista, codnota);


--
-- Name: itemnotacodproc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodproc ON public.itemnota USING btree (codprocesso);


--
-- Name: itemnotacodprop2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodprop2 ON public.itemnota USING btree (codproprietario, codnota);


--
-- Name: itemnotacodproprietario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodproprietario ON public.itemnota USING btree (codproprietario, codfornecedor, numeronota, serie);


--
-- Name: itemnotacodreq; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodreq ON public.itemnota USING btree (codreq, codnota);


--
-- Name: itemnotacodserv; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodserv ON public.itemnota USING btree (codinternoservico);


--
-- Name: itemnotacodue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodue ON public.itemnota USING btree (codunidadeembarque, coditem, codveiculo, codmotorista);


--
-- Name: itemnotacodveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacodveic ON public.itemnota USING btree (codveiculo, coditem);


--
-- Name: itemnotacontr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotacontr ON public.itemnota USING btree (codcontrato);


--
-- Name: itemnotadataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotadataatual ON public.itemnota USING btree (dataatual, codfornecedor, numeronota, serie, coditem, codveiculo);


--
-- Name: itemnotadatadig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotadatadig ON public.itemnota USING btree (datadigitacao, codfornecedor, numeronota, serie, coditem, codveiculo);


--
-- Name: itemnotadataprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotadataprop ON public.itemnota USING btree (codproprietario, dataacertoprop);


--
-- Name: itemnotalogcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotalogcod ON public.itemnotalog USING btree (coditemnotalog);


--
-- Name: itemnotamotlogmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamotlogmot ON public.itemnotamotoristalog USING btree (codmotorista, datahorafim);


--
-- Name: itemnotamotorista_coditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamotorista_coditem ON public.itemnotamotorista USING btree (coditem);


--
-- Name: itemnotamotorista_codnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamotorista_codnota ON public.itemnotamotorista USING btree (codnota);


--
-- Name: itemnotamotoristalog_codint; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamotoristalog_codint ON public.itemnotamotoristalog USING btree (codinterno);


--
-- Name: itemnotamotoristalog_coditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamotoristalog_coditem ON public.itemnotamotoristalog USING btree (coditem);


--
-- Name: itemnotamotoristalog_codnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamotoristalog_codnota ON public.itemnotamotoristalog USING btree (codnota);


--
-- Name: itemnotamotoristalog_codnota2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamotoristalog_codnota2 ON public.itemnotamotoristalog USING btree (codnota);


--
-- Name: itemnotamotoristamot2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamotoristamot2 ON public.itemnotamotorista USING btree (codmotorista, codnota);


--
-- Name: itemnotamotoristamot3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamotoristamot3 ON public.itemnotamotorista USING btree (codmotorista, codinterno);


--
-- Name: itemnotamovdtins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamovdtins ON public.itemnotamov USING btree (datadigitacao);


--
-- Name: itemnotamovitmov; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamovitmov ON public.itemnotamov USING btree (coditemnotamovent);


--
-- Name: itemnotamovitn; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamovitn ON public.itemnotamov USING btree (codinterno, coditemnotamov);


--
-- Name: itemnotamovusins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotamovusins ON public.itemnotamov USING btree (usuarioins);


--
-- Name: itemnotaneg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotaneg ON public.itemnota USING btree (codnegocio, coditem);


--
-- Name: itemnotaneg2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotaneg2 ON public.itemnota USING btree (coditem, codnegocio);


--
-- Name: itemnotanumnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotanumnota ON public.itemnota USING btree (numeronota, serie, codfornecedor, codnota);


--
-- Name: itemnotaobsitemnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotaobsitemnota ON public.itemnotaobs USING btree (codinterno);


--
-- Name: itemnotaremcodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemnotaremcodnota ON public.itemnotarem USING btree (codnota, coditem);


--
-- Name: itemoccodacid; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemoccodacid ON public.itemordemcompra USING btree (codveiculoacidente, coditemordemcompra);


--
-- Name: itemorcvendacoditemorcvenda; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemorcvendacoditemorcvenda ON public.itemorcvenda USING btree (coditem, codorcvenda);


--
-- Name: itemorcvendacodorcvendaitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemorcvendacodorcvendaitem ON public.itemorcvenda USING btree (codorcvenda, coditem);


--
-- Name: itemordemcompracod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX itemordemcompracod ON public.itemordemcompra USING btree (coditemordemcompra);


--
-- Name: itemordemcompracoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemordemcompracoditem ON public.itemordemcompra USING btree (coditem, codordemcompra, codinterno);


--
-- Name: itemordemcompracodveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemordemcompracodveiculo ON public.itemordemcompra USING btree (codveiculo, codordemcompra, codinterno);


--
-- Name: itemordemcompraneg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemordemcompraneg ON public.itemordemcompra USING btree (codnegocio, coditem);


--
-- Name: itempos; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itempos ON public.item USING btree (codposicao, descricao);


--
-- Name: itemratcoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemratcoditem ON public.itemrat USING btree (coditem, codunidadeembarque);


--
-- Name: itemratcodue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemratcodue ON public.itemrat USING btree (codunidadeembarque, coditem);


--
-- Name: itemreceitadescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemreceitadescricao ON public.itemreceita USING btree (descricao);


--
-- Name: itemsubitemcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX itemsubitemcod ON public.itemsubitem USING btree (coditemsubitem);


--
-- Name: itemsubitemcodsub; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemsubitemcodsub ON public.itemsubitem USING btree (codsubitem, coditem);


--
-- Name: itemtipooperacaocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX itemtipooperacaocod ON public.itemtipooperacao USING btree (coditemtipooperacao);


--
-- Name: itemuforigdest; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX itemuforigdest ON public.itemuf USING btree (coditem, uforig, ufdest);


--
-- Name: liccodtabela; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX liccodtabela ON public.licenca USING btree (codtabela);


--
-- Name: licdataini; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX licdataini ON public.licenca USING btree (dataini, codtabela);


--
-- Name: lictab; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX lictab ON public.licenca USING btree (codtabela, tabela);


--
-- Name: lictabela; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX lictabela ON public.licenca USING btree (tabela, codtabela);


--
-- Name: lictipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX lictipo ON public.licenca USING btree (codtipolicenca, codtabela);


--
-- Name: localdescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX localdescricao ON public.local USING btree (descricao);


--
-- Name: logactiontime_nomereduzempresa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logactiontime_nomereduzempresa ON public.logactiontime USING btree (nomereduzempresa, dhini, dhfim, servidor, classe);


--
-- Name: logactiontime_periodo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logactiontime_periodo ON public.logactiontime USING btree (dhini, dhfim, nomereduzempresa, classe);


--
-- Name: logactiontime_periodo2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logactiontime_periodo2 ON public.logactiontime USING btree (dhini, dhfim, servidor, nomereduzempresa, classe);


--
-- Name: logactiontime_servidor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logactiontime_servidor ON public.logactiontime USING btree (servidor, dhini, dhfim, nomereduzempresa, classe);


--
-- Name: logcampolog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logcampolog ON public.logcampo USING btree (codlog, liberado, campo);


--
-- Name: logcampolog1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logcampolog1 ON public.logcampo USING btree (codlog, campo);


--
-- Name: logcomdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logcomdata ON public.logcom USING btree (datalog);


--
-- Name: logcomdatadig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logcomdatadig ON public.logcom USING btree (datadigitacao, usuarioins);


--
-- Name: logcomdatadigtab; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logcomdatadigtab ON public.logcom USING btree (datadigitacao, tabela, chavetabela, usuarioins);


--
-- Name: logcomgerriscotabeladata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logcomgerriscotabeladata ON public.logcom USING btree (codgerrisco, tabela, chavetabela, datalog);


--
-- Name: logcomgrusu; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logcomgrusu ON public.logcom USING btree (codgerrisco, usuarioins, datadigitacao);


--
-- Name: logcomtabeladata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logcomtabeladata ON public.logcom USING btree (tabela, chavetabela, datalog);


--
-- Name: logdatanome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logdatanome ON public.log USING btree (data, nome, arquivo, tipo);


--
-- Name: lognomedata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX lognomedata ON public.log USING btree (nome, data, arquivo, tipo);


--
-- Name: logus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX logus ON public.log USING btree (nome, tabela, data);


--
-- Name: mainfxmlfilchave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX mainfxmlfilchave ON public.manifxml USING btree (chavemdfe, codfilial) WHERE (data >= '2022-01-06 00:00:00'::timestamp without time zone);


--
-- Name: malotecheg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX malotecheg ON public.malote USING btree (datachegada);


--
-- Name: maloteenvmal; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX maloteenvmal ON public.maloteenv USING btree (codmalote);


--
-- Name: manifchecklistcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX manifchecklistcod ON public.manifchecklist USING btree (codmanifchecklist);


--
-- Name: manifcldata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifcldata ON public.manifchecklist USING btree (data, codmanif);


--
-- Name: manifclnumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifclnumero ON public.manifchecklist USING btree (numero, codmanif);


--
-- Name: manifcodem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifcodem ON public.manif USING btree (codemonitor);


--
-- Name: manifcodemonitor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifcodemonitor ON public.manif USING btree (codemonitor);


--
-- Name: manifcodfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifcodfilial ON public.manif USING btree (codfilial);


--
-- Name: manifcodmotdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifcodmotdata ON public.manif USING btree (codmotorista, data);


--
-- Name: manifcodmotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifcodmotorista ON public.manif USING btree (codmotorista);


--
-- Name: manifcodunidadeembarque; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifcodunidadeembarque ON public.manif USING btree (codunidadeembarque);


--
-- Name: manifcodveicdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifcodveicdata ON public.manif USING btree (codveiculo, data);


--
-- Name: manifcodveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifcodveiculo ON public.manif USING btree (codveiculo);


--
-- Name: manifconhecimentocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX manifconhecimentocod ON public.manifconhecimento USING btree (codmanifconhecimento);


--
-- Name: manifconhecimentonumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX manifconhecimentonumero ON public.manifconhecimento USING btree (numero, codmanif);


--
-- Name: manifdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifdata ON public.manif USING btree (data);


--
-- Name: manifdatadigitacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifdatadigitacao ON public.manif USING btree (datadigitacao);


--
-- Name: manifdestino; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifdestino ON public.manif USING btree (codcidadedestino, codveiculo);


--
-- Name: manifdocmanif; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifdocmanif ON public.manifdoc USING btree (codmanif, codtipodoc);


--
-- Name: manifdoctp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifdoctp ON public.manifdoc USING btree (codtipodoc, codmanif);


--
-- Name: manifevcodem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifevcodem ON public.manifev USING btree (codemonitor);


--
-- Name: manifevcodmanif; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifevcodmanif ON public.manifev USING btree (codmanif);


--
-- Name: maniflogcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX maniflogcod ON public.maniflog USING btree (codmaniflog);


--
-- Name: maniflogcodfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX maniflogcodfilial ON public.maniflog USING btree (codfilial, data, codmanif);


--
-- Name: maniflogcodunidadeemb; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX maniflogcodunidadeemb ON public.maniflog USING btree (codunidadeembarque, data, codmanif);


--
-- Name: maniflogdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX maniflogdata ON public.maniflog USING btree (data, codmanif);


--
-- Name: manifmdfe; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifmdfe ON public.manif USING btree (numeromdfe);


--
-- Name: manifmdfechave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifmdfechave ON public.manif USING btree (mdfechave);


--
-- Name: manifmdfefilserie; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX manifmdfefilserie ON public.manif USING btree (numeromdfe, codfilial, seriemdfe) WHERE ((data >= '2021-09-01 00:00:00'::timestamp without time zone) AND ((numeromdfe IS NOT NULL) AND ((numeromdfe)::integer > 0)));


--
-- Name: manifnotacodmanif; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifnotacodmanif ON public.manifnota USING btree (codmanif);


--
-- Name: manifnotacodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifnotacodnota ON public.manifnota USING btree (codnota);


--
-- Name: manifnotanumnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifnotanumnota ON public.manifnota USING btree (chavenfe);


--
-- Name: manifnumeroviagmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifnumeroviagmot ON public.manif USING btree (numeroviagmot);


--
-- Name: manifocodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifocodata ON public.manifoco USING btree (data, codmanif);


--
-- Name: manifocomanif; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifocomanif ON public.manifoco USING btree (codmanif);


--
-- Name: manifocotipojus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifocotipojus ON public.manifoco USING btree (codtipojustificativa, data, codmanif);


--
-- Name: manifocotipooco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifocotipooco ON public.manifoco USING btree (codtipoocorrencia, data, codmanif);


--
-- Name: maniforigem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX maniforigem ON public.manif USING btree (codcidadeorigem, codveiculo);


--
-- Name: manifpagbbco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifpagbbco ON public.manifpagb USING btree (codbanco, codmanifpag);


--
-- Name: manifpagbfk; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifpagbfk ON public.manifpagb USING btree (codmanifpag);


--
-- Name: manifpagbipef; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifpagbipef ON public.manifpagb USING btree (cnpjipef, codmanifpag);


--
-- Name: manifpagcfk; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifpagcfk ON public.manifpagc USING btree (codmanifpag);


--
-- Name: manifpagev; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifpagev ON public.manifpag USING btree (codmanifev);


--
-- Name: manifpagfk; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifpagfk ON public.manifpag USING btree (codmanif, codmanifev);


--
-- Name: manifpagpfk; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifpagpfk ON public.manifpagp USING btree (codmanifpag);


--
-- Name: manifprox; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifprox ON public.manif USING btree (codfilial, seriemdfe, numeromdfe DESC);


--
-- Name: manifxmlchave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmlchave ON public.manifxml USING btree (chavemdfe);


--
-- Name: manifxmlcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmlcli ON public.manifxml USING btree (nome);


--
-- Name: manifxmlcnpjcpf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmlcnpjcpf ON public.manifxml USING btree (cnpjcpf);


--
-- Name: manifxmlcodcliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmlcodcliente ON public.manifxml USING btree (codcliente);


--
-- Name: manifxmldata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmldata ON public.manifxml USING btree (data);


--
-- Name: manifxmlfil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmlfil ON public.manifxml USING btree (codfilial);


--
-- Name: manifxmlnumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmlnumero ON public.manifxml USING btree (numero);


--
-- Name: manifxmlnumeromdfe; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmlnumeromdfe ON public.manifxml USING btree (numeromdfe);


--
-- Name: manifxmlocodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmlocodata ON public.manifxmloco USING btree (data, codmanifxml);


--
-- Name: manifxmlocomanif; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmlocomanif ON public.manifxmloco USING btree (codmanifxml);


--
-- Name: manifxmlocotipojus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmlocotipojus ON public.manifxmloco USING btree (codtipojustificativa, data, codmanifxml);


--
-- Name: manifxmlocotipooco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmlocotipooco ON public.manifxmloco USING btree (codtipoocorrencia, data, codmanifxml);


--
-- Name: manifxmlstatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX manifxmlstatus ON public.manifxml USING btree (status);


--
-- Name: marcadesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX marcadesc ON public.marca USING btree (descricao);


--
-- Name: mensagemcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX mensagemcod ON public.mensagem USING btree (codmensagem);


--
-- Name: mensagemdestino; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX mensagemdestino ON public.mensagem USING btree (usuariodestino, data, usuarioorigem);


--
-- Name: mensagemmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mensagemmot ON public.mensagem USING btree (codmotorista, data);


--
-- Name: mensagempes; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mensagempes ON public.mensagem USING btree (codpessoaoco, data);


--
-- Name: mensagemveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mensagemveic ON public.mensagem USING btree (codveiculo, usuarioorigem, usuariodestino, data);


--
-- Name: mensagemveic1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mensagemveic1 ON public.mensagem USING btree (codveiculo, usuarioorigem, usuariodestino, data);


--
-- Name: mercadoriadataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mercadoriadataatual ON public.mercadoria USING btree (dataatual);


--
-- Name: mercadoriadescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mercadoriadescricao ON public.mercadoria USING btree (descricao);


--
-- Name: mercadoriagrupo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mercadoriagrupo ON public.mercadoria USING btree (codgrupomercadoria, descricao);


--
-- Name: mercadoriancmind; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mercadoriancmind ON public.mercadoria USING btree (ncm);


--
-- Name: mercadoriatipocarcodmerc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mercadoriatipocarcodmerc ON public.mercadoriatipocar USING btree (codmercadoria);


--
-- Name: merctpcarcodtpcarroceria; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX merctpcarcodtpcarroceria ON public.mercadoriatipocar USING btree (codtipocarroceria);


--
-- Name: mesanobloqcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX mesanobloqcod ON public.mesanobloq USING btree (codmesanobloq);


--
-- Name: mgfcodhipergrupofinanc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mgfcodhipergrupofinanc ON public.megagrupofinanceiro USING btree (codhipergrupofinanceiro);


--
-- Name: mgfdescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX mgfdescricao ON public.megagrupofinanceiro USING btree (descricao);


--
-- Name: modelodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX modelodescricao ON public.modelo USING btree (descricao);


--
-- Name: modeloveicdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX modeloveicdesc ON public.modeloveic USING btree (descricao);


--
-- Name: modeloveicmarca; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX modeloveicmarca ON public.modeloveic USING btree (codmarca, descricao);


--
-- Name: moedacotcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX moedacotcod ON public.moedacot USING btree (codmoedacot);


--
-- Name: motgerriscodesp_motgerrisco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motgerriscodesp_motgerrisco ON public.motoristagerriscodesp USING btree (codmotoristagerrisco, codtipodesp);


--
-- Name: motgerriscodesp_numero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motgerriscodesp_numero ON public.motoristagerriscodesp USING btree (numero);


--
-- Name: motgerriscodesp_tipodesp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motgerriscodesp_tipodesp ON public.motoristagerriscodesp USING btree (codtipodesp, codmotoristagerrisco);


--
-- Name: motgerriscoveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motgerriscoveic ON public.motoristagerrisco USING btree (codveiculo, codmotorista, codgerrisco);


--
-- Name: motivobloqueiodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motivobloqueiodesc ON public.motivobloqueio USING btree (descricao);


--
-- Name: motivocancdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motivocancdesc ON public.motivocanc USING btree (descricao);


--
-- Name: motivocanctab; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motivocanctab ON public.motivocanc USING btree (codtabela, descricao);


--
-- Name: motivodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motivodesc ON public.motivo USING btree (descricao);


--
-- Name: motlogcodtipolog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motlogcodtipolog ON public.motoristalog USING btree (codmotorista, codtipolog);


--
-- Name: motlogdataf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motlogdataf ON public.motoristalog USING btree (datafim, codmotorista);


--
-- Name: motlogdatafim; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motlogdatafim ON public.motoristalog USING btree (codmotorista, datafim);


--
-- Name: motoristaagendadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristaagendadata ON public.motoristaagenda USING btree (data, codmotorista);


--
-- Name: motoristacontcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX motoristacontcod ON public.motoristacont USING btree (codmotoristacont);


--
-- Name: motoristacpf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristacpf ON public.motorista USING btree (cpf);


--
-- Name: motoristadataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristadataatual ON public.motorista USING btree (dataatual);


--
-- Name: motoristaexamecod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX motoristaexamecod ON public.motoristaexame USING btree (codmotoristaexame);


--
-- Name: motoristaferiadocodmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristaferiadocodmot ON public.motoristaferiado USING btree (codmotorista, data);


--
-- Name: motoristaferiadodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristaferiadodata ON public.motoristaferiado USING btree (data);


--
-- Name: motoristafunc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristafunc ON public.motorista USING btree (funcionario, nome);


--
-- Name: motoristagerriscocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX motoristagerriscocod ON public.motoristagerrisco USING btree (codmotoristagerrisco);


--
-- Name: motoristagerriscodveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristagerriscodveic ON public.motoristagerrisco USING btree (codveiculo, codgerrisco);


--
-- Name: motoristalib2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristalib2 ON public.motoristalib USING btree (datalib, usuariolib);


--
-- Name: motoristalimitecodmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristalimitecodmot ON public.motoristalimite USING btree (codmotorista);


--
-- Name: motoristalimitedata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristalimitedata ON public.motoristalimite USING btree (data, codmotorista);


--
-- Name: motoristalimiteusu; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristalimiteusu ON public.motoristalimite USING btree (usuarioins, data, codmotorista);


--
-- Name: motoristalogcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX motoristalogcod ON public.motoristalog USING btree (codmotoristalog);


--
-- Name: motoristalogdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX motoristalogdata ON public.motoristalog USING btree (data, codmotorista);


--
-- Name: motoristanome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristanome ON public.motorista USING btree (nome);


--
-- Name: motoristapis; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristapis ON public.motorista USING btree (pis, liberado);


--
-- Name: motoristapiscod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristapiscod ON public.motorista USING btree (pis);


--
-- Name: motoristaratcodmotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristaratcodmotorista ON public.motoristarat USING btree (codmotorista, codunidadeembarque, codmotoristarat);


--
-- Name: motoristaratcodue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristaratcodue ON public.motoristarat USING btree (codunidadeembarque, codmotorista, codmotoristarat);


--
-- Name: motoristarefcodmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristarefcodmot ON public.motoristaref USING btree (codmotorista);


--
-- Name: motoristasalevcodexterno; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristasalevcodexterno ON public.motoristasalev USING btree (codexterno, codmotorista);


--
-- Name: motoristasalevcodforn; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristasalevcodforn ON public.motoristasalev USING btree (codfornecedor, codmotorista);


--
-- Name: motoristasalevcoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristasalevcoditem ON public.motoristasalev USING btree (coditem, codmotorista);


--
-- Name: motoristasalevcodmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristasalevcodmot ON public.motoristasalev USING btree (codmotorista);


--
-- Name: motoristasalevdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristasalevdata ON public.motoristasalev USING btree (data, codmotorista);


--
-- Name: motoristasalevmottipoev; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristasalevmottipoev ON public.motoristasalev USING btree (codmotorista, codtipoevento, data);


--
-- Name: motoristasalevtipoevdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX motoristasalevtipoevdata ON public.motoristasalev USING btree (codtipoevento, data, codmotorista);


--
-- Name: movitemcoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX movitemcoditem ON public.movitem USING btree (coditem, data);


--
-- Name: movitemdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX movitemdata ON public.movitem USING btree (data, coditem);


--
-- Name: multaorgaodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX multaorgaodesc ON public.multaorgao USING btree (descricao);


--
-- Name: negociodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX negociodesc ON public.negocio USING btree (descricao);


--
-- Name: notaadiant_codnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaadiant_codnota ON public.notaadiant USING btree (codnota);


--
-- Name: notaadiant_codnota2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaadiant_codnota2 ON public.notaadiant USING btree (codnota, codadiantamento);


--
-- Name: notaadiantcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX notaadiantcod ON public.notaadiant USING btree (codnotaadiant);


--
-- Name: notaadiantcodadiant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX notaadiantcodadiant ON public.notaadiant USING btree (codadiantamento, codfornecedor, numeronota, serie);


--
-- Name: notaadiantcodadnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaadiantcodadnota ON public.notaadiant USING btree (codadiantamento, codnota);


--
-- Name: notacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX notacod ON public.nota USING btree (codnota);


--
-- Name: notacodadiantamento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodadiantamento ON public.nota USING btree (codadiantamento, codfornecedor, numeronota, serie);


--
-- Name: notacodagrupador; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodagrupador ON public.nota USING btree (codagrupador, codfornecedor, numeronota, serie);


--
-- Name: notacodagrupador2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodagrupador2 ON public.nota USING btree (codagrupador);


--
-- Name: notacodagrupadordesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodagrupadordesc ON public.nota USING btree (codagrupador DESC);


--
-- Name: notacodcliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodcliente ON public.nota USING btree (codcliente, data);


--
-- Name: notacodemonitor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodemonitor ON public.nota USING btree (codemonitor);


--
-- Name: notacodfatpagicms; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodfatpagicms ON public.nota USING btree (codfatpagicmsufdest);


--
-- Name: notacodfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodfilial ON public.nota USING btree (codfilial, data, codfornecedor, numeronota, serie);


--
-- Name: notacodfilial2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodfilial2 ON public.nota USING btree (codfilial, data);


--
-- Name: notacodfilialdig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodfilialdig ON public.nota USING btree (codfilial, datadigitacao, codfornecedor, numeronota, serie);


--
-- Name: notacodfilialdig2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodfilialdig2 ON public.nota USING btree (codfilial, datadigitacao);


--
-- Name: notacodfornecedor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodfornecedor ON public.nota USING btree (codfornecedor, data, numeronota, serie);


--
-- Name: notacodfornecedor2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodfornecedor2 ON public.nota USING btree (codfornecedor, data);


--
-- Name: notacodunidadeembarque; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodunidadeembarque ON public.nota USING btree (codunidadeembarque, data, codfornecedor, numeronota, serie);


--
-- Name: notacodunidadeembarque2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodunidadeembarque2 ON public.nota USING btree (codunidadeembarque, data);


--
-- Name: notacodveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodveic ON public.nota USING btree (datafimoficina, codveiculo, serie, numeronota, codfornecedor);


--
-- Name: notacodveic12; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodveic12 ON public.nota USING btree (datafimoficina, codveiculo, serie);


--
-- Name: notacodveic2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodveic2 ON public.nota USING btree (datafimoficina, codveiculo, serie);


--
-- Name: notacodveicdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notacodveicdata ON public.nota USING btree (codveiculo, data, serie);


--
-- Name: notadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadata ON public.nota USING btree (data, codfornecedor, numeronota, serie);


--
-- Name: notadataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadataatual ON public.nota USING btree (dataatual, codfornecedor, numeronota, serie);


--
-- Name: notadataaudit_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadataaudit_idx ON public.nota USING btree (dataaudit, usuarioaudit);


--
-- Name: notadatacodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadatacodnota ON public.nota USING btree (data);


--
-- Name: notadatadigitacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadatadigitacao ON public.nota USING btree (datadigitacao, codfornecedor, numeronota, serie);


--
-- Name: notadatadigitacao2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadatadigitacao2 ON public.nota USING btree (datadigitacao);


--
-- Name: notadataemi; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadataemi ON public.nota USING btree (dataemissao);


--
-- Name: notadatafim; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadatafim ON public.nota USING btree (datafim, codfilial, codfornecedor, numeronota, serie);


--
-- Name: notadatafim2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadatafim2 ON public.nota USING btree (datafim, serie, codfilial);


--
-- Name: notadatafimoficina; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadatafimoficina ON public.nota USING btree (datafimoficina, numeronota, codfornecedor, serie);


--
-- Name: notadatafimoficina2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadatafimoficina2 ON public.nota USING btree (datafimoficina);


--
-- Name: notadatamotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadatamotorista ON public.nota USING btree (datamotorista, numeronota, codfornecedor, serie);


--
-- Name: notadatamotorista2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadatamotorista2 ON public.nota USING btree (datamotorista);


--
-- Name: notadev_nota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadev_nota ON public.notadev USING btree (codnota);


--
-- Name: notadevchave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notadevchave ON public.notadev USING btree (chavenfe, codnota);


--
-- Name: notaemstatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaemstatus ON public.nota USING btree (emonitorstatus, codfilial);


--
-- Name: notaevcodem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaevcodem ON public.notaev USING btree (codemonitor);


--
-- Name: notaevcodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaevcodnota ON public.notaev USING btree (codnota);


--
-- Name: notafatura; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notafatura ON public.nota USING btree (codfatura, codfornecedor, numeronota, serie);


--
-- Name: notafaturacofins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notafaturacofins ON public.nota USING btree (codfaturacofins);


--
-- Name: notafaturacsll; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notafaturacsll ON public.nota USING btree (codfaturacsll);


--
-- Name: notafaturaicms; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notafaturaicms ON public.nota USING btree (codfaturaicms);


--
-- Name: notafaturaimpsfed; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notafaturaimpsfed ON public.nota USING btree (codfaturaimpsfed);


--
-- Name: notafaturainss; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notafaturainss ON public.nota USING btree (codfaturainss);


--
-- Name: notafaturairrf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notafaturairrf ON public.nota USING btree (codfaturairrf);


--
-- Name: notafaturaiss; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notafaturaiss ON public.nota USING btree (codfaturaiss);


--
-- Name: notafaturapis; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notafaturapis ON public.nota USING btree (codfaturapis);


--
-- Name: notafilnumnf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notafilnumnf ON public.nota USING btree (codfilial, numeronf, serienf);


--
-- Name: notafilserienf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notafilserienf ON public.nota USING btree (codfilial, serienf, nfestatus);


--
-- Name: notafinalizada; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notafinalizada ON public.nota USING btree (data, atualizada);


--
-- Name: notalogcodmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notalogcodmot ON public.notalog USING btree (codmotorista);


--
-- Name: notalogcodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notalogcodnota ON public.notalog USING btree (codnota);


--
-- Name: notalogcodtiponotalog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notalogcodtiponotalog ON public.notalog USING btree (codtiponotalog);


--
-- Name: notalogdatafim; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notalogdatafim ON public.notalog USING btree (datafim);


--
-- Name: notalogfimtipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notalogfimtipo ON public.notalog USING btree (codtiponotalog, datafim);


--
-- Name: notanfechave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notanfechave ON public.nota USING btree (chavenfe);


--
-- Name: notanfefilserie; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX notanfefilserie ON public.nota USING btree (numeronf, codfilial, serienf) WHERE ((numeronf IS NOT NULL) AND ((numeronf)::integer > 0));


--
-- Name: notanfeprox; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notanfeprox ON public.nota USING btree (codfilial, serienf, numeronf DESC);


--
-- Name: notanumeronf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notanumeronf ON public.nota USING btree (numeronf, serienf);


--
-- Name: notanumeronotadesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notanumeronotadesc ON public.nota USING btree (numeronota DESC, codfornecedor DESC, serie DESC);


--
-- Name: notanumeroprox; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notanumeroprox ON public.nota USING btree (codfornecedor, serie, numeronota DESC);


--
-- Name: notanumeroprox2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notanumeroprox2 ON public.nota USING btree (codfornecedor, numeronota DESC);


--
-- Name: notaocodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaocodata ON public.notaoco USING btree (data, codnota);


--
-- Name: notaoconota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaoconota ON public.notaoco USING btree (codnota);


--
-- Name: notaocotipojus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaocotipojus ON public.notaoco USING btree (codtipojustificativa, data, codnota);


--
-- Name: notaocotipooco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaocotipooco ON public.notaoco USING btree (codtipoocorrencia, data, codnota);


--
-- Name: notaorc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaorc ON public.nota USING btree (codorcvenda);


--
-- Name: notaordemcar; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaordemcar ON public.nota USING btree (codordemcar);


--
-- Name: notaordemcompra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaordemcompra ON public.nota USING btree (codordemcompra);


--
-- Name: notaordemcompra2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaordemcompra2 ON public.nota USING btree (codordemcompra);


--
-- Name: notastatuscodmotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notastatuscodmotorista ON public.notastatus USING btree (codmotorista, numeronota, serie);


--
-- Name: notastatusnumeronota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notastatusnumeronota ON public.notastatus USING btree (numeronota, serie);


--
-- Name: notatiponfe; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notatiponfe ON public.nota USING btree (tiponfe, codfornecedor, numeronota, serie);


--
-- Name: notausuarioaudit_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notausuarioaudit_idx ON public.nota USING btree (usuarioaudit, dataaudit);


--
-- Name: notaxmlchave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlchave ON public.notaxml USING btree (chavenfe, codnota);


--
-- Name: notaxmlcnpjcpf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlcnpjcpf ON public.notaxml USING btree (cnpjcpf);


--
-- Name: notaxmlcodcliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlcodcliente ON public.notaxml USING btree (codcliente);


--
-- Name: notaxmlcodemonitor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlcodemonitor ON public.notaxml USING btree (codemonitor);


--
-- Name: notaxmlcodemp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlcodemp ON public.notaxml USING btree (codempresa, data);


--
-- Name: notaxmlcodfor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlcodfor ON public.notaxml USING btree (codfornecedor, numeronota, serie);


--
-- Name: notaxmlcodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlcodnota ON public.notaxml USING btree (codnota);


--
-- Name: notaxmldata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmldata ON public.notaxml USING btree (data);


--
-- Name: notaxmlfil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlfil ON public.notaxml USING btree (codfilial);


--
-- Name: notaxmlfilchave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX notaxmlfilchave ON public.notaxml USING btree (chavenfe, codfilial) WHERE (data >= '2022-01-06 00:00:00'::timestamp without time zone);


--
-- Name: notaxmlfor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlfor ON public.notaxml USING btree (nome);


--
-- Name: notaxmlocodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlocodata ON public.notaxmloco USING btree (data, codnotaxml);


--
-- Name: notaxmloconota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmloconota ON public.notaxmloco USING btree (codnotaxml);


--
-- Name: notaxmlocotipojus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlocotipojus ON public.notaxmloco USING btree (codtipojustificativa, data, codnotaxml);


--
-- Name: notaxmlocotipooco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlocotipooco ON public.notaxmloco USING btree (codtipoocorrencia, data, codnotaxml);


--
-- Name: notaxmlsitconf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlsitconf ON public.notaxml USING btree (sitconf);


--
-- Name: notaxmlsitnfe; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlsitnfe ON public.notaxml USING btree (sitnfe);


--
-- Name: notaxmlstatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX notaxmlstatus ON public.notaxml USING btree (status);


--
-- Name: numerocodpropesocial_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX numerocodpropesocial_idx ON public.proprietarioesocialconhec USING btree (numero, codproprietarioesocial);


--
-- Name: numviagopcartao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX numviagopcartao ON public.conhecimento USING btree (numviagopcartao);


--
-- Name: obsfiscaldescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX obsfiscaldescricao ON public.obsfiscal USING btree (descricao);


--
-- Name: orcdespesaano; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orcdespesaano ON public.orcdespesa USING btree (ano, mes, codunidadeembarque, coditem);


--
-- Name: orcdespesacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX orcdespesacod ON public.orcdespesa USING btree (codorcdespesa);


--
-- Name: orcdespesaitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orcdespesaitem ON public.orcdespesa USING btree (coditem, ano, mes, codunidadeembarque);


--
-- Name: orcdespesaneg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orcdespesaneg ON public.orcdespesa USING btree (codnegocio, coditem);


--
-- Name: orcdespesaunidemb; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orcdespesaunidemb ON public.orcdespesa USING btree (codunidadeembarque, coditem, ano, mes);


--
-- Name: orcreceitaano; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orcreceitaano ON public.orcreceita USING btree (ano, mes, codunidadeembarque);


--
-- Name: orcreceitacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX orcreceitacod ON public.orcreceita USING btree (codorcreceita);


--
-- Name: orcreceitaneg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orcreceitaneg ON public.orcreceita USING btree (codnegocio);


--
-- Name: orcreceitaunidemb; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orcreceitaunidemb ON public.orcreceita USING btree (codunidadeembarque, ano, mes);


--
-- Name: orcvendacodcliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orcvendacodcliente ON public.orcvenda USING btree (codcliente);


--
-- Name: orcvendacodfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orcvendacodfilial ON public.orcvenda USING btree (codfilial);


--
-- Name: orcvendacodunidadeembarque; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orcvendacodunidadeembarque ON public.orcvenda USING btree (codunidadeembarque);


--
-- Name: orcvendadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orcvendadata ON public.orcvenda USING btree (data);


--
-- Name: ordcompraadiant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordcompraadiant ON public.ordemcompraadiant USING btree (codordemcompraadiant, codmotorista);


--
-- Name: ordcompraadiantod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordcompraadiantod ON public.ordemcompraadiant USING btree (codordemcompraadiant, codordemcompra);


--
-- Name: ordcomprapednum; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordcomprapednum ON public.ordemcomprapedext USING btree (numpedidoext);


--
-- Name: ordcomprapedoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordcomprapedoc ON public.ordemcomprapedext USING btree (codordemcompra, numpedidoext);


--
-- Name: ordemcarant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarant ON public.ordemcar USING btree (codordemcarant);


--
-- Name: ordemcarcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarcli ON public.ordemcar USING btree (codcliente, codveiculo, data, pedidofrete);


--
-- Name: ordemcarcli2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarcli2 ON public.ordemcar USING btree (datadigitacao, usuarioins);


--
-- Name: ordemcarcodcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarcodcli ON public.ordemcar USING btree (codcliente);


--
-- Name: ordemcarcodmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarcodmot ON public.ordemcar USING btree (codmotorista);


--
-- Name: ordemcarcodue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarcodue ON public.ordemcar USING btree (codunidadeembarque);


--
-- Name: ordemcarcodveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarcodveic ON public.ordemcar USING btree (codveiculo);


--
-- Name: ordemcarcontr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarcontr ON public.ordemcar USING btree (codcontrato);


--
-- Name: ordemcardata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcardata ON public.ordemcar USING btree (data);


--
-- Name: ordemcardataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcardataatual ON public.ordemcar USING btree (dataatual);


--
-- Name: ordemcargerrisco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcargerrisco ON public.ordemcar USING btree (numautgerrisco);


--
-- Name: ordemcarlogcodordem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarlogcodordem ON public.ordemcarlog USING btree (codordemcar);


--
-- Name: ordemcarlogdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarlogdata ON public.ordemcarlog USING btree (data, codordemcar);


--
-- Name: ordemcarnumdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarnumdesc ON public.ordemcar USING btree (numero DESC, codordemcar DESC);


--
-- Name: ordemcarnumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarnumero ON public.ordemcar USING btree (numero, codfilial);


--
-- Name: ordemcarococodoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarococodoc ON public.ordemcaroco USING btree (codordemcar);


--
-- Name: ordemcarocodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarocodata ON public.ordemcaroco USING btree (data, codordemcar);


--
-- Name: ordemcarocotipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarocotipo ON public.ordemcaroco USING btree (codtipoocorrencia, codordemcar);


--
-- Name: ordemcarpedido; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarpedido ON public.ordemcar USING btree (numeropedido);


--
-- Name: ordemcarstatusnumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcarstatusnumero ON public.ordemcarstatus USING btree (numero);


--
-- Name: ordemcompracodfornecedor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcompracodfornecedor ON public.ordemcompra USING btree (codfornecedor);


--
-- Name: ordemcompracontr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcompracontr ON public.ordemcompra USING btree (codcontrato);


--
-- Name: ordemcompracotacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcompracotacao ON public.ordemcompra USING btree (codcot);


--
-- Name: ordemcompradata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ordemcompradata ON public.ordemcompra USING btree (data);


--
-- Name: paisnome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX paisnome ON public.pais USING btree (nome);


--
-- Name: parametrocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX parametrocod ON public.parametro USING btree (codparametro);


--
-- Name: parametroempresacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX parametroempresacod ON public.parametroempresa USING btree (codparametroempresa);


--
-- Name: pedcodprogfrete; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedcodprogfrete ON public.progfreteped USING btree (numeropedido, codprogfrete);


--
-- Name: pedidocli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidocli ON public.pedido USING btree (codcliente);


--
-- Name: pedidocodprodutor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidocodprodutor ON public.pedido USING btree (codprodutor);


--
-- Name: pedidocontr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidocontr ON public.pedido USING btree (codcontrato);


--
-- Name: pedidodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidodata ON public.pedido USING btree (data);


--
-- Name: pedidodataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidodataatual ON public.pedido USING btree (dataatual);


--
-- Name: pedidodataval; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidodataval ON public.pedidoval USING btree (numero, datavalidade);


--
-- Name: pedidodesp_numero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidodesp_numero ON public.pedidodesp USING btree (numero);


--
-- Name: pedidodesp_tipodesp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidodesp_tipodesp ON public.pedidodesp USING btree (codtipodesp);


--
-- Name: pedidodestcoddestinatario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidodestcoddestinatario ON public.pedidodest USING btree (coddestinatario);


--
-- Name: pedidodocped; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidodocped ON public.pedidodoc USING btree (numero, codtipodoc);


--
-- Name: pedidodocpeddoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidodocpeddoc ON public.pedidodoc USING btree (codtipodoc, numero);


--
-- Name: pedidofdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidofdata ON public.pedido USING btree (finalizado, data);


--
-- Name: pedidofil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidofil ON public.pedido USING btree (codfilial);


--
-- Name: pedidogrop_gr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidogrop_gr ON public.pedidogrop USING btree (numero, codgerriscoop);


--
-- Name: pedidoitem_coditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidoitem_coditem ON public.pedidoitem USING btree (coditem);


--
-- Name: pedidoitem_numero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidoitem_numero ON public.pedidoitem USING btree (numero, coditem);


--
-- Name: pedidologcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pedidologcod ON public.pedidolog USING btree (codpedidolog);


--
-- Name: pedidologdataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pedidologdataatual ON public.pedidolog USING btree (data, numero);


--
-- Name: pedidomotoristacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pedidomotoristacod ON public.pedidomotorista USING btree (codpedidomotorista);


--
-- Name: pedidonf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidonf ON public.pedido USING btree (numeronotafiscal);


--
-- Name: pedidonotacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pedidonotacod ON public.pedidonota USING btree (codpedidonota);


--
-- Name: pedidoorc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidoorc ON public.pedido USING btree (codorcvenda);


--
-- Name: pedidorec_numero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidorec_numero ON public.pedidorec USING btree (numero, nome);


--
-- Name: pedidorec_usu; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidorec_usu ON public.pedidorec USING btree (nome, numero);


--
-- Name: pedidorota_rota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidorota_rota ON public.pedidorota USING btree (codrota);


--
-- Name: pedidorotafor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidorotafor ON public.pedidorota USING btree (codfornecedor);


--
-- Name: pedidorotagerrisco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidorotagerrisco ON public.pedidorota USING btree (codgerrisco);


--
-- Name: pedidorotaped; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidorotaped ON public.pedidorota USING btree (numero);


--
-- Name: pedidoue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidoue ON public.pedido USING btree (codunidadeembarque);


--
-- Name: pedidovalmotdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedidovalmotdata ON public.pedidovalmot USING btree (numero, datavalidade);


--
-- Name: pedval_codpedidoval; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pedval_codpedidoval ON public.pedidoval USING btree (numero);


--
-- Name: peiddodatadig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX peiddodatadig ON public.pedido USING btree (datadigitacao);


--
-- Name: pessoaoco_viag; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pessoaoco_viag ON public.pessoaoco USING btree (codviagem, data, status);


--
-- Name: pessoaococodws; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pessoaococodws ON public.pessoaoco USING btree (codpessoaocows);


--
-- Name: pessoaocodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pessoaocodata ON public.pessoaoco USING btree (data, status);


--
-- Name: pessoaocodtalt; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pessoaocodtalt ON public.pessoaoco USING btree (dataalt, usuarioalt);


--
-- Name: pessoaocodtins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pessoaocodtins ON public.pessoaoco USING btree (datains, usuarioins);


--
-- Name: pessoaocopes; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pessoaocopes ON public.pessoaoco USING btree (cnpjcpf, inscricaoestadual, celular);


--
-- Name: pessoaocostatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pessoaocostatus ON public.pessoaoco USING btree (status, data);


--
-- Name: pessoaocotab; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pessoaocotab ON public.pessoaoco USING btree (tabela, chavetabela, status, data);


--
-- Name: pessoaocotipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pessoaocotipo ON public.pessoaoco USING btree (codtipopessoaoco, data, status);


--
-- Name: pessoaocousins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pessoaocousins ON public.pessoaoco USING btree (usuarioins, datains);


--
-- Name: pkadiantamento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkadiantamento ON public.adiantamento USING btree (codadiantamento);


--
-- Name: pkbancooco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pkbancooco ON public.bancooco USING btree (codbanco, codoco);


--
-- Name: pkcheque; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkcheque ON public.cheque USING btree (codinterno);


--
-- Name: pkcidade; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkcidade ON public.cidade USING btree (codcidade);


--
-- Name: pkcliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkcliente ON public.cliente USING btree (codcliente);


--
-- Name: pkclientelimite; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pkclientelimite ON public.cliente USING btree (limitecredito);


--
-- Name: pkcondpag; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkcondpag ON public.condpag USING btree (codcondicao);


--
-- Name: pkconhecimento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkconhecimento ON public.conhecimento USING btree (numero);


--
-- Name: pkconhecimentoadic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pkconhecimentoadic ON public.conhecimentoadic USING btree (numero);


--
-- Name: pkconta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkconta ON public.conta USING btree (numeroconta);


--
-- Name: pkduplicatapagar; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkduplicatapagar ON public.duplicatapagar USING btree (codfornecedor, numeronota, serie, parcela);


--
-- Name: pkduplicatareceber; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkduplicatareceber ON public.duplicatareceber USING btree (codfatura, parcela);


--
-- Name: pkembarcador; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkembarcador ON public.embarcador USING btree (codembarcador);


--
-- Name: pkempresa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkempresa ON public.empresa USING btree (codempresa);


--
-- Name: pkempresas; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkempresas ON public.empresas USING btree (codempresa);


--
-- Name: pkfatura; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkfatura ON public.fatura USING btree (codfatura);


--
-- Name: pkfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkfilial ON public.filial USING btree (codfilial);


--
-- Name: pkfornecedor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkfornecedor ON public.fornecedor USING btree (codfornecedor);


--
-- Name: pkgrupo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkgrupo ON public.grupo USING btree (codgrupo);


--
-- Name: pkitemnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkitemnota ON public.itemnota USING btree (codfornecedor, numeronota, serie, coditem, codveiculo, codinterno);


--
-- Name: pkitemnotarem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pkitemnotarem ON public.itemnotarem USING btree (coditemnotarem, coditem);


--
-- Name: pkmercadoria; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkmercadoria ON public.mercadoria USING btree (codmercadoria);


--
-- Name: pkmotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkmotorista ON public.motorista USING btree (codmotorista);


--
-- Name: pkmotoristalib; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pkmotoristalib ON public.motoristalib USING btree (codmotorista);


--
-- Name: pknota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pknota ON public.nota USING btree (codfornecedor, numeronota, serie);


--
-- Name: pkobsfiscalue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pkobsfiscalue ON public.obsfiscalue USING btree (codobsfiscal);


--
-- Name: pkordemcarstatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pkordemcarstatus ON public.ordemcar USING btree (status);


--
-- Name: pkpedido; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkpedido ON public.pedido USING btree (numero);


--
-- Name: pkpneuveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pkpneuveiculo ON public.pneu USING btree (codveiculo);


--
-- Name: pkproprietario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkproprietario ON public.proprietario USING btree (codproprietario);


--
-- Name: pkrecursos; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pkrecursos ON public.recursos USING btree (nome, menuitem);


--
-- Name: pksolcompra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pksolcompra ON public.solcompra USING btree (data);


--
-- Name: pksolcompraitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pksolcompraitem ON public.solcompraitem USING btree (codsolcompra);


--
-- Name: pktipolicencaob; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pktipolicencaob ON public.tipolicencaob USING btree (codtipolicenca);


--
-- Name: pktipoveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pktipoveiculo ON public.tipoveiculo USING btree (codtipoveiculo);


--
-- Name: pktransacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pktransacao ON public.transacao USING btree (codtransacao);


--
-- Name: pkveiculocl; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pkveiculocl ON public.veiculocl USING btree (codveiculocl);


--
-- Name: pkveiculoclitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pkveiculoclitem ON public.veiculoclitem USING btree (codveiculoclitem);


--
-- Name: pkveiculolib; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pkveiculolib ON public.veiculolib USING btree (datalib, usuariolib);


--
-- Name: pmovcodinterno; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pmovcodinterno ON public.pneumov USING btree (codinterno, codpneu);


--
-- Name: pneucodpneud; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneucodpneud ON public.pneu USING btree (codpneu DESC);


--
-- Name: pneucompra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneucompra ON public.pneu USING btree (codinternocompra);


--
-- Name: pneudatacompra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneudatacompra ON public.pneu USING btree (datacompra);


--
-- Name: pneudatafimvida; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneudatafimvida ON public.pneu USING btree (datafimvida);


--
-- Name: pneufabricante; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneufabricante ON public.pneu USING btree (codfabricante);


--
-- Name: pneufornecedor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneufornecedor ON public.pneu USING btree (codfornecedor);


--
-- Name: pneulocal; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneulocal ON public.pneu USING btree (codlocal);


--
-- Name: pneumodelo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneumodelo ON public.pneu USING btree (codmodelo);


--
-- Name: pneumot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneumot ON public.pneu USING btree (codmotoristafimvida);


--
-- Name: pneumovcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pneumovcod ON public.pneumov USING btree (codpneumov);


--
-- Name: pneumovdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pneumovdata ON public.pneumov USING btree (datamov, codpneu);


--
-- Name: pneumovevento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pneumovevento ON public.pneumov USING btree (codtipoevento, datamov, codpneu);


--
-- Name: pneumovlocal; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX pneumovlocal ON public.pneumov USING btree (codlocal, datamov, codpneu);


--
-- Name: pneumovmotcodmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneumovmotcodmot ON public.pneumovmot USING btree (codmotorista, datamov);


--
-- Name: pneumovmotcodpneu; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneumovmotcodpneu ON public.pneumovmot USING btree (codpneu, datamov);


--
-- Name: pneumovmotcodpneumov; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneumovmotcodpneumov ON public.pneumovmot USING btree (codpneumov);


--
-- Name: pneumovmotdatamov; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneumovmotdatamov ON public.pneumovmot USING btree (datamov);


--
-- Name: pneumovveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneumovveiculo ON public.pneumov USING btree (codveiculo, datamov, codpneu);


--
-- Name: pneunotafiscal; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneunotafiscal ON public.pneu USING btree (notafiscal);


--
-- Name: pneuvenda; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX pneuvenda ON public.pneu USING btree (codinternovenda);


--
-- Name: posicaodep; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX posicaodep ON public.posicao USING btree (coddeposito, codposicao);


--
-- Name: posicaodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX posicaodesc ON public.posicao USING btree (descricao);


--
-- Name: processocodcidade; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX processocodcidade ON public.processo USING btree (codcidade);


--
-- Name: processocodfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX processocodfilial ON public.processo USING btree (codfilial);


--
-- Name: processocodforadvogado; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX processocodforadvogado ON public.processo USING btree (codforadvogado);


--
-- Name: processofat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX processofat ON public.fatura USING btree (codprocesso);


--
-- Name: processologcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX processologcod ON public.processolog USING btree (codprocessolog);


--
-- Name: processologdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX processologdata ON public.processolog USING btree (data, codprocesso);


--
-- Name: progfreteclidata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX progfreteclidata ON public.progfrete USING btree (codcliente, data);


--
-- Name: progfretecoldata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX progfretecoldata ON public.progfrete USING btree (codcoleta, data);


--
-- Name: progfretedatacli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX progfretedatacli ON public.progfrete USING btree (data, codcliente);


--
-- Name: progfretedestdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX progfretedestdata ON public.progfrete USING btree (coddestinatario, data);


--
-- Name: progfreteentdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX progfreteentdata ON public.progfrete USING btree (codentrega, data);


--
-- Name: progfretemercdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX progfretemercdata ON public.progfrete USING btree (codmercadoria, data);


--
-- Name: progfreteremdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX progfreteremdata ON public.progfrete USING btree (codremetente, data);


--
-- Name: propantt; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX propantt ON public.proprietario USING btree (rntrc);


--
-- Name: propcliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX propcliente ON public.proprietario USING btree (codcliente);


--
-- Name: propcliente2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX propcliente2 ON public.proprietario USING btree (codcliente);


--
-- Name: propdesp_conhecdesp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX propdesp_conhecdesp ON public.proprietariodesp USING btree (codconhecimentodesp, codproprietario);


--
-- Name: propdesp_notadesp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX propdesp_notadesp ON public.proprietariodesp USING btree (codnotadesp, codproprietario);


--
-- Name: propdesp_prop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX propdesp_prop ON public.proprietariodesp USING btree (codproprietario, data, codtipodesp);


--
-- Name: propdesp_tipodesp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX propdesp_tipodesp ON public.proprietariodesp USING btree (codtipodesp, codproprietario, data);


--
-- Name: propesocialcodpropesocialcodprop_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX propesocialcodpropesocialcodprop_idx ON public.proprietarioesocial USING btree (codproprietario, dataenvio);


--
-- Name: propesocialdataenviocodproprietario_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX propesocialdataenviocodproprietario_idx ON public.proprietarioesocial USING btree (dataenvio, codproprietario);


--
-- Name: propesocialprotocolo_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX propesocialprotocolo_idx ON public.proprietarioesocial USING btree (protocolo);


--
-- Name: proplib; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proplib ON public.proprietariolib USING btree (codproprietario, codproprietariolib);


--
-- Name: proplib2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proplib2 ON public.proprietariolib USING btree (datalib, usuariolib, codproprietariolib);


--
-- Name: proprietarioagendadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proprietarioagendadata ON public.proprietarioagenda USING btree (data, codproprietario);


--
-- Name: proprietarioccp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX proprietarioccp ON public.proprietariocc USING btree (codproprietario, codbanco, agencia, conta);


--
-- Name: proprietariocgccpf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proprietariocgccpf ON public.proprietario USING btree (cgccpf);


--
-- Name: proprietariocodextcodprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proprietariocodextcodprop ON public.proprietariocodext USING btree (codproprietario, codfilial, codsistema);


--
-- Name: proprietariocodextcodsis; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proprietariocodextcodsis ON public.proprietariocodext USING btree (codsistema, codproprietario, codfilial);


--
-- Name: proprietariocontcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX proprietariocontcod ON public.proprietariocont USING btree (codproprietariocont);


--
-- Name: proprietariodataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proprietariodataatual ON public.proprietario USING btree (dataatual);


--
-- Name: proprietariofiscal_prop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proprietariofiscal_prop ON public.proprietariofiscal USING btree (codproprietario, dataini);


--
-- Name: proprietariogerriscocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX proprietariogerriscocod ON public.proprietariogerrisco USING btree (codproprietariogerrisco);


--
-- Name: proprietarioie; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proprietarioie ON public.proprietario USING btree (inscricaoestadual);


--
-- Name: proprietarionome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proprietarionome ON public.proprietario USING btree (nome);


--
-- Name: proprietariopiscod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proprietariopiscod ON public.proprietario USING btree (cei);


--
-- Name: proprietarioprinc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proprietarioprinc ON public.proprietario USING btree (codproprietarioprincipal);


--
-- Name: proprietariorefcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proprietariorefcod ON public.proprietarioref USING btree (codproprietario);


--
-- Name: proprietariosegv_codpropini; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX proprietariosegv_codpropini ON public.proprietariosegv USING btree (codproprietario, datainicio);


--
-- Name: questaocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questaocod ON public.questao USING btree (codquestao);


--
-- Name: questaocodquestionario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questaocodquestionario ON public.questao USING btree (codquestionario);


--
-- Name: questaosubtopico; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questaosubtopico ON public.questao USING btree (codsubtopico);


--
-- Name: questaotipoquestao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questaotipoquestao ON public.questao USING btree (codtipoquestao);


--
-- Name: questionariocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questionariocod ON public.questionario USING btree (codquestionario);


--
-- Name: questionariodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questionariodesc ON public.questionario USING btree (descricao);


--
-- Name: questtabquest; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questtabquest ON public.questionariotab USING btree (codquestionario, nometabela, chavetabela);


--
-- Name: questtabtabela; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questtabtabela ON public.questionariotab USING btree (nometabela, chavetabela, codquestionario);


--
-- Name: questusuariocliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questusuariocliente ON public.questionariousuario USING btree (codcliente);


--
-- Name: questusuariocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questusuariocod ON public.questionariousuario USING btree (codquestionariousuario);


--
-- Name: questusuarioforn; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questusuarioforn ON public.questionariousuario USING btree (codfornecedor);


--
-- Name: questusuariomanif; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questusuariomanif ON public.questionariousuario USING btree (codmanif);


--
-- Name: questusuariomot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questusuariomot ON public.questionariousuario USING btree (codmotorista);


--
-- Name: questusuarioprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questusuarioprop ON public.questionariousuario USING btree (codproprietario);


--
-- Name: questusuarioquest; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questusuarioquest ON public.questionariousuario USING btree (codquestionario);


--
-- Name: questusuarioveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questusuarioveic ON public.questionariousuario USING btree (codveiculo);


--
-- Name: questusuarioviagem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questusuarioviagem ON public.questionariousuario USING btree (numero);


--
-- Name: questusuconf; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questusuconf ON public.questionariousuario USING btree (usuarioconf);


--
-- Name: questusumotquest; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questusumotquest ON public.questionariousuario USING btree (codmotoristaquest);


--
-- Name: questusunota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX questusunota ON public.questionariousuario USING btree (codnota);


--
-- Name: rdb$foreign201; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign201" ON public.auditoria USING btree (codtipodocaud);


--
-- Name: rdb$foreign202; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign202" ON public.auditoria USING btree (codcliente);


--
-- Name: rdb$foreign203; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign203" ON public.auditoria USING btree (codproprietario);


--
-- Name: rdb$foreign204; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign204" ON public.auditoria USING btree (codmotorista);


--
-- Name: rdb$foreign205; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign205" ON public.auditoria USING btree (codfornecedor);


--
-- Name: rdb$foreign206; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign206" ON public.auditoria USING btree (coddepartamento);


--
-- Name: rdb$foreign208; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign208" ON public.acaoaud USING btree (codauditoria);


--
-- Name: rdb$foreign209; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign209" ON public.acaoaud USING btree (codtipoacaoaud);


--
-- Name: rdb$foreign211; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign211" ON public.auditorialog USING btree (codauditoria);


--
-- Name: rdb$foreign233; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign233" ON public.menuitem USING btree (codmenusup);


--
-- Name: rdb$foreign235; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign235" ON public.recurso USING btree (codmenuitem);


--
-- Name: rdb$foreign259; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign259" ON public.manifev USING btree (codmanif);


--
-- Name: rdb$foreign261; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign261" ON public.conhecimentoev USING btree (numero);


--
-- Name: rdb$foreign29; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign29" ON public.grupo USING btree (codsupergrupo);


--
-- Name: rdb$foreign30; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign30" ON public.cidadedist USING btree (codcidade);


--
-- Name: rdb$foreign31; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign31" ON public.filial USING btree (codcidade);


--
-- Name: rdb$foreign32; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign32" ON public.cliente USING btree (codcidade);


--
-- Name: rdb$foreign33; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign33" ON public.fatura USING btree (codfilial);


--
-- Name: rdb$foreign34; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign34" ON public.fatura USING btree (codcondicao);


--
-- Name: rdb$foreign35; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign35" ON public.fatura USING btree (codcliente);


--
-- Name: rdb$foreign36; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign36" ON public.duplicatareceber USING btree (codfatura);


--
-- Name: rdb$foreign37; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign37" ON public.cheque USING btree (numeroconta);


--
-- Name: rdb$foreign39; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign39" ON public.item USING btree (codtipoveiculo);


--
-- Name: rdb$foreign40; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign40" ON public.item USING btree (codgrupo);


--
-- Name: rdb$foreign41; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign41" ON public.fornecedor USING btree (codcidade);


--
-- Name: rdb$foreign42; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign42" ON public.nota USING btree (codfilial);


--
-- Name: rdb$foreign43; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign43" ON public.nota USING btree (codcondicao);


--
-- Name: rdb$foreign44; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign44" ON public.nota USING btree (codfornecedor);


--
-- Name: rdb$foreign45; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign45" ON public.itemnota USING btree (coditem);


--
-- Name: rdb$foreign47; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign47" ON public.faturacompra USING btree (codfilial);


--
-- Name: rdb$foreign48; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign48" ON public.faturacompra USING btree (codfornecedor);


--
-- Name: rdb$foreign49; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign49" ON public.faturacompra USING btree (codcondicao);


--
-- Name: rdb$foreign50; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign50" ON public.transacao USING btree (numeroconta);


--
-- Name: rdb$foreign51; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign51" ON public.motorista USING btree (codcidade);


--
-- Name: rdb$foreign52; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign52" ON public.adiantamento USING btree (codfilial);


--
-- Name: rdb$foreign53; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign53" ON public.adiantamento USING btree (codmotorista);


--
-- Name: rdb$foreign54; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign54" ON public.adiantamento USING btree (codfornecedor);


--
-- Name: rdb$foreign55; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign55" ON public.embarcador USING btree (codcidade);


--
-- Name: rdb$foreign56; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign56" ON public.proprietario USING btree (codcidade);


--
-- Name: rdb$foreign57; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign57" ON public.veiculo USING btree (codproprietario);


--
-- Name: rdb$foreign58; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign58" ON public.veiculo USING btree (codtipoveiculo);


--
-- Name: rdb$foreign60; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign60" ON public.pneu USING btree (codveiculo);


--
-- Name: rdb$foreign61; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign61" ON public.pneu USING btree (codmodelo);


--
-- Name: rdb$foreign62; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign62" ON public.pneu USING btree (codfabricante);


--
-- Name: rdb$foreign63; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign63" ON public.pneu USING btree (codlocal);


--
-- Name: rdb$foreign64; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign64" ON public.pneumov USING btree (codtipoevento);


--
-- Name: rdb$foreign65; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign65" ON public.pneumov USING btree (codpneu);


--
-- Name: rdb$foreign66; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign66" ON public.fornecedor USING btree (codtipofornecedor);


--
-- Name: rdb$foreign68; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign68" ON public.recursos USING btree (nome);


--
-- Name: rdb$foreign69; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign69" ON public.pneu USING btree (codstatuspneu);


--
-- Name: rdb$foreign70; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign70" ON public.tipoevento USING btree (codstatuspneu);


--
-- Name: rdb$foreign72; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign72" ON public.carretamov USING btree (codveiculo);


--
-- Name: rdb$foreign77; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign77" ON public.gruporeceita USING btree (codsupergruporeceita);


--
-- Name: rdb$foreign78; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign78" ON public.itemreceita USING btree (codgruporeceita);


--
-- Name: rdb$foreign79; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign79" ON public.fatura USING btree (coditemreceita);


--
-- Name: rdb$foreign80; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX "rdb$foreign80" ON public.movitem USING btree (coditem);


--
-- Name: rdb$primary141; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary141" ON public.clientetempo USING btree (codcliente, codclientetempo);


--
-- Name: rdb$primary174; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary174" ON public.transacoestemp USING btree (codtransacaotemp);


--
-- Name: rdb$primary175; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary175" ON public.campo USING btree (codcampo);


--
-- Name: rdb$primary176; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary176" ON public.cor USING btree (codcor);


--
-- Name: rdb$primary177; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary177" ON public.marca USING btree (codmarca);


--
-- Name: rdb$primary178; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary178" ON public.modeloveic USING btree (codmodelo);


--
-- Name: rdb$primary180; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary180" ON public.usuariofav USING btree (nome, menu);


--
-- Name: rdb$primary182; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary182" ON public.topico USING btree (codtopico);


--
-- Name: rdb$primary183; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary183" ON public.subtopico USING btree (codsubtopico);


--
-- Name: rdb$primary184; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary184" ON public.tipoquestao USING btree (codtipoquestao);


--
-- Name: rdb$primary185; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary185" ON public.questionario USING btree (codquestionario);


--
-- Name: rdb$primary186; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary186" ON public.questao USING btree (codquestao);


--
-- Name: rdb$primary187; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary187" ON public.resposta USING btree (codresposta);


--
-- Name: rdb$primary188; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary188" ON public.questionariousuario USING btree (codquestionariousuario);


--
-- Name: rdb$primary189; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary189" ON public.respostausuario USING btree (codrespostausuario);


--
-- Name: rdb$primary198; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary198" ON public.tipodocaud USING btree (codtipodocaud);


--
-- Name: rdb$primary199; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary199" ON public.tipoacaoaud USING btree (codtipoacaoaud);


--
-- Name: rdb$primary200; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary200" ON public.auditoria USING btree (codauditoria);


--
-- Name: rdb$primary207; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary207" ON public.acaoaud USING btree (codacaoaud);


--
-- Name: rdb$primary210; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary210" ON public.auditorialog USING btree (codauditorialog);


--
-- Name: rdb$primary213; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary213" ON public.especiedoc USING btree (codespeciedoc);


--
-- Name: rdb$primary214; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary214" ON public.pais USING btree (codpais);


--
-- Name: rdb$primary220; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary220" ON public.protocolofatura USING btree (codprotocolofat);


--
-- Name: rdb$primary221; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary221" ON public.agenda USING btree (codagenda);


--
-- Name: rdb$primary222; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary222" ON public.grupousuario USING btree (nome);


--
-- Name: rdb$primary224; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary224" ON public.visitante USING btree (codvisitante);


--
-- Name: rdb$primary226; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary226" ON public.recursosgrupousuario USING btree (nome, menuitem);


--
-- Name: rdb$primary228; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary228" ON public.especiemerc USING btree (codespeciemerc);


--
-- Name: rdb$primary231; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary231" ON public.menusup USING btree (codmenusup);


--
-- Name: rdb$primary232; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary232" ON public.menuitem USING btree (codmenuitem);


--
-- Name: rdb$primary234; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary234" ON public.recurso USING btree (codrecurso);


--
-- Name: rdb$primary241; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary241" ON public.tipologmotorista USING btree (codtipologmotorista);


--
-- Name: rdb$primary246; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary246" ON public.veiculoacidenteadiant USING btree (codveiculoacidenteadiant);


--
-- Name: rdb$primary247; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary247" ON public.obsfiscalue USING btree (codobsfiscalue);


--
-- Name: rdb$primary250; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary250" ON public.mercadoriatipocar USING btree (codmercadoriatipocar);


--
-- Name: rdb$primary251; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary251" ON public.tipoacidente USING btree (codtipoacidente);


--
-- Name: rdb$primary253; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary253" ON public.itemnotarem USING btree (coditemnotarem);


--
-- Name: rdb$primary254; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary254" ON public.ordemcompraadiant USING btree (codordemcompraadiant);


--
-- Name: rdb$primary255; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary255" ON public.usuarioproprietario USING btree (codusuarioproprietario);


--
-- Name: rdb$primary256; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary256" ON public.proprietarioagenda USING btree (codproprietarioagenda);


--
-- Name: rdb$primary257; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary257" ON public.motoristaagenda USING btree (codmotoristaagenda);


--
-- Name: rdb$primary258; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary258" ON public.manifev USING btree (codmanifev);


--
-- Name: rdb$primary260; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary260" ON public.conhecimentoev USING btree (codconhecimentoev);


--
-- Name: rdb$primary262; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary262" ON public.clientecnd USING btree (codclientecnd);


--
-- Name: rdb$primary263; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary263" ON public.veiculocontrato USING btree (codveiculocontrato);


--
-- Name: rdb$primary264; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary264" ON public.pneumovmot USING btree (codpneumovmot);


--
-- Name: rdb$primary265; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary265" ON public.faturalog USING btree (codfaturalog);


--
-- Name: rdb$primary266; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary266" ON public.grupomsg USING btree (codgrupomsg);


--
-- Name: rdb$primary267; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary267" ON public.grupomsgdet USING btree (codgrupomsgdet);


--
-- Name: rdb$primary268; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary268" ON public.veiculoacidentelog USING btree (codveiculoacidentelog);


--
-- Name: rdb$primary269; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary269" ON public.consultalog USING btree (codconsultalog);


--
-- Name: rdb$primary270; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary270" ON public.acertoproprietario USING btree (codacertoproprietario);


--
-- Name: rdb$primary271; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary271" ON public.notaev USING btree (codnotaev);


--
-- Name: rdb$primary272; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary272" ON public.conthist USING btree (codconthist);


--
-- Name: rdb$primary273; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary273" ON public.contlanc USING btree (codcontlanc);


--
-- Name: rdb$primary274; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary274" ON public.contlancdet USING btree (codcontlancdet);


--
-- Name: rdb$primary275; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary275" ON public.motoristasalev USING btree (codmotoristasalev);


--
-- Name: rdb$primary276; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary276" ON public.clientelimite USING btree (codclientelimite);


--
-- Name: rdb$primary277; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary277" ON public.clientetabfrete USING btree (codclientetabfrete);


--
-- Name: rdb$primary278; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary278" ON public.ordemcarlog USING btree (codordemcarlog);


--
-- Name: rdb$primary279; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary279" ON public.itemcfop USING btree (coditemcfop);


--
-- Name: rdb$primary280; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary280" ON public.tipocobranca USING btree (codtipocobranca);


--
-- Name: rdb$primary281; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary281" ON public.gerriscocartao USING btree (codgerriscocartao);


--
-- Name: rdb$primary282; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary282" ON public.filialsped USING btree (codfilialsped);


--
-- Name: rdb$primary283; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary283" ON public.motoristaferiado USING btree (codmotoristaferiado);


--
-- Name: rdb$primary284; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary284" ON public.notaxml USING btree (codnotaxml);


--
-- Name: rdb$primary285; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary285" ON public.conhecimentoevdet USING btree (codconhecimentoevdet);


--
-- Name: rdb$primary286; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary286" ON public.conhecimentonotamerc USING btree (codconhecimentonotamerc, codconhecimentonota);


--
-- Name: rdb$primary287; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary287" ON public.req USING btree (codreq);


--
-- Name: rdb$primary288; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary288" ON public.usuarioopcartao USING btree (codusuarioopcartao);


--
-- Name: rdb$primary289; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary289" ON public.itemcodalt USING btree (coditemcodalt);


--
-- Name: rdb$primary290; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary290" ON public.tiponotalog USING btree (codtiponotalog);


--
-- Name: rdb$primary291; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary291" ON public.notalog USING btree (codnotalog);


--
-- Name: rdb$primary292; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary292" ON public.sistemaext USING btree (codsistemaext);


--
-- Name: rdb$primary293; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary293" ON public.multaorgao USING btree (codmultaorgao);


--
-- Name: rdb$primary294; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary294" ON public.tipomulta USING btree (codtipomulta);


--
-- Name: rdb$primary295; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary295" ON public.veiculomultaadiant USING btree (codveiculomultaadiant);


--
-- Name: rdb$primary296; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary296" ON public.veiculomultalog USING btree (codveiculomultalog);


--
-- Name: rdb$primary297; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary297" ON public.motoristalimite USING btree (codmotoristalimite);


--
-- Name: rdb$primary298; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary298" ON public.txtcfg USING btree (codtxtcfg);


--
-- Name: rdb$primary299; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary299" ON public.txtcfgreg USING btree (codtxtcfgreg);


--
-- Name: rdb$primary300; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary300" ON public.txtcfgregtag USING btree (codtxtcfgregtag);


--
-- Name: rdb$primary302; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary302" ON public.tiporastreador USING btree (codtiporastreador);


--
-- Name: rdb$primary303; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary303" ON public.malotedoc USING btree (codmalotedoc);


--
-- Name: rdb$primary304; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary304" ON public.conhecimentodesp USING btree (codconhecimentodesp);


--
-- Name: rdb$primary305; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary305" ON public.tipodesp USING btree (codtipodesp);


--
-- Name: rdb$primary306; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary306" ON public.tipolicencaob USING btree (codtipolicencaob);


--
-- Name: rdb$primary307; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary307" ON public.itemtipoveiculo USING btree (coditemtipoveiculo);


--
-- Name: rdb$primary308; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary308" ON public.bancooco USING btree (codbancooco);


--
-- Name: rdb$primary309; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary309" ON public.solcompra USING btree (codsolcompra);


--
-- Name: rdb$primary310; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary310" ON public.solcompraitem USING btree (codsolcompraitem);


--
-- Name: rdb$primary313; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary313" ON public.regiaocid USING btree (codregiaocid);


--
-- Name: rdb$primary314; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary314" ON public.regiaocli USING btree (codregiaocli);


--
-- Name: rdb$primary315; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary315" ON public.conhecimentoocolog USING btree (codconhecimentoocolog);


--
-- Name: rdb$primary316; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary316" ON public.recursogrupousuario USING btree (codrecursogrupousuario);


--
-- Name: rdb$primary317; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary317" ON public.manifnota USING btree (codmanifnota);


--
-- Name: rdb$primary318; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary318" ON public.pedidorota USING btree (codpedidorota);


--
-- Name: rdb$primary319; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary319" ON public.notadev USING btree (codnotadev);


--
-- Name: rdb$primary320; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary320" ON public.unidadeembarquemarg USING btree (codunidadeembarquemarg);


--
-- Name: rdb$primary321; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary321" ON public.usuariohora USING btree (codusuariohora);


--
-- Name: rdb$primary322; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary322" ON public.clientediavenc USING btree (codclientediavenc);


--
-- Name: rdb$primary323; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary323" ON public.caixa USING btree (codcaixa);


--
-- Name: rdb$primary324; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary324" ON public.motivodemissao USING btree (codmotivodemissao);


--
-- Name: rdb$primary325; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary325" ON public.itemuf USING btree (coditemuf);


--
-- Name: rdb$primary326; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary326" ON public.coletaentregaveic USING btree (codcoletaentregaveic);


--
-- Name: rdb$primary327; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary327" ON public.coletaentregamot USING btree (codcoletaentregamot);


--
-- Name: rdb$primary328; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary328" ON public.tipoproprietario USING btree (codtipoproprietario);


--
-- Name: rdb$primary329; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary329" ON public.tipohistfat USING btree (codtipohistfat);


--
-- Name: rdb$primary330; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary330" ON public.logcom USING btree (codlogcom);


--
-- Name: rdb$primary331; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary331" ON public.empresascom USING btree (codempresascom);


--
-- Name: rdb$primary332; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary332" ON public.pedidoval USING btree (codpedidoval);


--
-- Name: rdb$primary333; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary333" ON public.gerriscoop USING btree (codgerriscoop);


--
-- Name: rdb$primary334; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary334" ON public.pedidogrop USING btree (codpedidogrop);


--
-- Name: rdb$primary335; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary335" ON public.conhecimentogrop USING btree (codconhecimentogrop);


--
-- Name: rdb$primary336; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary336" ON public.pedidodesp USING btree (codpedidodesp);


--
-- Name: rdb$primary337; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary337" ON public.pedidoitem USING btree (codpedidoitem);


--
-- Name: rdb$primary338; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary338" ON public.motoristagerriscodesp USING btree (codmotoristagerriscodesp);


--
-- Name: rdb$primary46; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary46" ON public.mesanobloq USING btree (mes, ano);


--
-- Name: rdb$primary57; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary57" ON public.orcreceita USING btree (ano, mes, codunidadeembarque);


--
-- Name: rdb$primary58; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX "rdb$primary58" ON public.orcdespesa USING btree (ano, mes, codunidadeembarque, coditem);


--
-- Name: recursocodusuariocodmenuitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX recursocodusuariocodmenuitem ON public.recurso USING btree (codusuario, codmenuitem);


--
-- Name: recursogrupousuariofk; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX recursogrupousuariofk ON public.recursogrupousuario USING btree (codgrupousuario, codmenuitem);


--
-- Name: recursosmenuitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX recursosmenuitem ON public.recursos USING btree (menuitem, nome);


--
-- Name: regiaocidcid; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regiaocidcid ON public.regiaocid USING btree (codcidade, codregiao);


--
-- Name: regiaocidreg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regiaocidreg ON public.regiaocid USING btree (codregiao, codcidade);


--
-- Name: regiaoclicli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regiaoclicli ON public.regiaocli USING btree (codcliente, codregiao);


--
-- Name: regiaoclireg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regiaoclireg ON public.regiaocli USING btree (codregiao, codcliente);


--
-- Name: regiaocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regiaocod ON public.regiao USING btree (codregiao);


--
-- Name: regiaodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regiaodesc ON public.regiao USING btree (descricao);


--
-- Name: regiaopropprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regiaopropprop ON public.regiaoprop USING btree (codproprietario, codregiao);


--
-- Name: regiaopropreg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regiaopropreg ON public.regiaoprop USING btree (codregiao, codproprietario);


--
-- Name: regracdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regracdesc ON public.regrac USING btree (descricao);


--
-- Name: regracdetcred; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regracdetcred ON public.regracdet USING btree (codcontacred);


--
-- Name: regracdetdeb; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regracdetdeb ON public.regracdet USING btree (codcontadeb);


--
-- Name: regracdethist; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regracdethist ON public.regracdet USING btree (codconthist);


--
-- Name: regracdetregra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX regracdetregra ON public.regracdet USING btree (codregrac, campo);


--
-- Name: reqcodnota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX reqcodnota ON public.req USING btree (codnota, codreq);


--
-- Name: reqdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX reqdata ON public.req USING btree (data, codreq);


--
-- Name: respostacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX respostacod ON public.resposta USING btree (codresposta);


--
-- Name: respostacodquestao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX respostacodquestao ON public.resposta USING btree (codquestao);


--
-- Name: respostausuariocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX respostausuariocod ON public.respostausuario USING btree (codrespostausuario);


--
-- Name: respostausuarioquestusu; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX respostausuarioquestusu ON public.respostausuario USING btree (codquestionariousuario);


--
-- Name: respostausuarioresp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX respostausuarioresp ON public.respostausuario USING btree (codresposta);


--
-- Name: romaneiodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneiodata ON public.romaneio USING btree (data);


--
-- Name: romaneiodtins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneiodtins ON public.romaneio USING btree (datadigitacao);


--
-- Name: romaneiofil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneiofil ON public.romaneio USING btree (codfilial, data);


--
-- Name: romaneioitcont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneioitcont ON public.romaneioitem USING btree (codcontrato);


--
-- Name: romaneioitdtins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneioitdtins ON public.romaneioitem USING btree (datadigitacao);


--
-- Name: romaneioititem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneioititem ON public.romaneioitem USING btree (coditem);


--
-- Name: romaneioitmov; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneioitmov ON public.romaneioitem USING btree (coditemnotamov);


--
-- Name: romaneioitpd; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneioitpd ON public.romaneioitem USING btree (codposicaodest);


--
-- Name: romaneioitpo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneioitpo ON public.romaneioitem USING btree (codposicaoorig);


--
-- Name: romaneioitr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneioitr ON public.romaneioitem USING btree (codromaneio);


--
-- Name: romaneioitusins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneioitusins ON public.romaneioitem USING btree (usuarioins);


--
-- Name: romaneiomot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneiomot ON public.romaneio USING btree (codmotorista, data);


--
-- Name: romaneiousins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneiousins ON public.romaneio USING btree (usuarioins);


--
-- Name: romaneioveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneioveic ON public.romaneio USING btree (codveiculo, data);


--
-- Name: romaneiovislog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX romaneiovislog ON public.romaneio USING btree (codvisitantelog);


--
-- Name: rotacidadecod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rotacidadecod ON public.rotacidade USING btree (codrotacidade);


--
-- Name: rotacidadecodcidade; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rotacidadecodcidade ON public.rotacidade USING btree (codcidade, codrota);


--
-- Name: rotacidadeordem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rotacidadeordem ON public.rotacidade USING btree (codrota, ordem);


--
-- Name: rotacodexterno; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rotacodexterno ON public.rota USING btree (codexterno);


--
-- Name: rotadescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rotadescricao ON public.rota USING btree (descricao);


--
-- Name: rotadest; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rotadest ON public.rota USING btree (codcidadedestino);


--
-- Name: rotagerriscocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rotagerriscocod ON public.rotagerrisco USING btree (codgerrisco);


--
-- Name: rotagerriscorota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rotagerriscorota ON public.rotagerrisco USING btree (codrota);


--
-- Name: rotaorig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX rotaorig ON public.rota USING btree (codcidadeorigem);


--
-- Name: safradesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX safradesc ON public.safra USING btree (descricao);


--
-- Name: semaforodataalt; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX semaforodataalt ON public.semaforo USING btree (dataalt DESC, usuarioalt);


--
-- Name: semaforodatains; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX semaforodatains ON public.semaforo USING btree (datains DESC, usuarioins);


--
-- Name: semaforologteladatains; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX semaforologteladatains ON public.semaforolog USING btree (datains, telafunc);


--
-- Name: semaforologtelafunc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX semaforologtelafunc ON public.semaforolog USING btree (telafunc, datains);


--
-- Name: semaforologtelausins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX semaforologtelausins ON public.semaforolog USING btree (usuarioins, telafunc);


--
-- Name: semaforotab; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX semaforotab ON public.semaforo USING btree (nometabela, chavetabela, datains DESC);


--
-- Name: semaforousaltdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX semaforousaltdata ON public.semaforo USING btree (usuarioalt, dataalt DESC);


--
-- Name: semaforousinsdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX semaforousinsdata ON public.semaforo USING btree (usuarioins, datains DESC);


--
-- Name: sgfcodmegagrupof; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sgfcodmegagrupof ON public.supergrupofinanceiro USING btree (codmegagrupofinanceiro);


--
-- Name: sgfinanceirodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sgfinanceirodescricao ON public.supergrupofinanceiro USING btree (descricao);


--
-- Name: sincsistemaextdatasinc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sincsistemaextdatasinc ON public.sincsistemaext USING btree (datasinc, codsincsistemaext);


--
-- Name: sincsistemaextnometabchave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sincsistemaextnometabchave ON public.sincsistemaext USING btree (nometabela, chavetabela, datasinc);


--
-- Name: sincsistemaextsicnotnull; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sincsistemaextsicnotnull ON public.sincsistemaext USING btree (sinc, nometabela, chavetabela, datadigitacao) WHERE (sinc IS NULL);


--
-- Name: sistemaextcodclie; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sistemaextcodclie ON public.sistemaext USING btree (codcliente);


--
-- Name: sistemaextcodempresa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sistemaextcodempresa ON public.sistemaext USING btree (codempresa);


--
-- Name: sistemaextcodext; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sistemaextcodext ON public.sistemaext USING btree (codexterno);


--
-- Name: sistemaextcodfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sistemaextcodfilial ON public.sistemaext USING btree (codfilial);


--
-- Name: sistemaextcodforn; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sistemaextcodforn ON public.sistemaext USING btree (codfornecedor);


--
-- Name: sistemaextcoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sistemaextcoditem ON public.sistemaext USING btree (coditem);


--
-- Name: sistemaextcodmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sistemaextcodmot ON public.sistemaext USING btree (codmotorista);


--
-- Name: sistemaextcodprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sistemaextcodprop ON public.sistemaext USING btree (codproprietario);


--
-- Name: sistemaextcodsistema; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sistemaextcodsistema ON public.sistemaext USING btree (codsistema);


--
-- Name: sistemaextcodveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sistemaextcodveic ON public.sistemaext USING btree (codveiculo);


--
-- Name: sistemaextsistab; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sistemaextsistab ON public.sistemaext USING btree (codsistema, nometabela, chavetabela);


--
-- Name: sistemaexttab; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sistemaexttab ON public.sistemaext USING btree (nometabela, chavetabela, codsistema);


--
-- Name: solcomprafil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX solcomprafil ON public.solcompra USING btree (codfilial, data);


--
-- Name: solcomprafor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX solcomprafor ON public.solcompra USING btree (codfornecedor, data);


--
-- Name: solcompraitemcoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX solcompraitemcoditem ON public.solcompraitem USING btree (coditem);


--
-- Name: solcompraitemus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX solcompraitemus ON public.solcompraitem USING btree (usuarioins);


--
-- Name: solcompraue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX solcompraue ON public.solcompra USING btree (codunidadeembarque, data);


--
-- Name: solcompraus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX solcompraus ON public.solcompra USING btree (usuarioins, data);


--
-- Name: spoolckseq; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX spoolckseq ON public.spool USING btree (nometabela, chavetabela, sequencia);


--
-- Name: spoolpacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX spoolpacao ON public.spool USING btree (acao, status, datains);


--
-- Name: spoolpdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX spoolpdata ON public.spool USING btree (datains, nometabela, chavetabela);


--
-- Name: spoolpstatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX spoolpstatus ON public.spool USING btree (status, datains, nometabela, chavetabela);


--
-- Name: statuspneudescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX statuspneudescricao ON public.statuspneu USING btree (descricao);


--
-- Name: subtopicocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX subtopicocod ON public.subtopico USING btree (codsubtopico);


--
-- Name: subtopicodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX subtopicodesc ON public.subtopico USING btree (descricao);


--
-- Name: supergrupodataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX supergrupodataatual ON public.supergrupo USING btree (dataatual);


--
-- Name: supergrupodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX supergrupodescricao ON public.supergrupo USING btree (descricao);


--
-- Name: supergruporeceitadescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX supergruporeceitadescricao ON public.supergruporeceita USING btree (descricao);


--
-- Name: tipocarroceriadescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipocarroceriadescricao ON public.tipocarroceria USING btree (descricao);


--
-- Name: tipoclientedescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoclientedescricao ON public.tipocliente USING btree (descricao);


--
-- Name: tipoclienteexamecod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX tipoclienteexamecod ON public.tipoclienteexame USING btree (codtipoclienteexame);


--
-- Name: tipoclienteexameex; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoclienteexameex ON public.tipoclienteexame USING btree (codexametreinamento, codtipocliente);


--
-- Name: tipoclienteopdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoclienteopdesc ON public.tipoclienteop USING btree (descricao, codtipoclienteop);


--
-- Name: tipocobrancadesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipocobrancadesc ON public.tipocobranca USING btree (descricao);


--
-- Name: tipocodprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipocodprop ON public.proprietario USING btree (codtipoproprietario);


--
-- Name: tipodesc_tipocodext; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipodesc_tipocodext ON public.tipodesc USING btree (tipo, codexterno);


--
-- Name: tipodesc_tipocodtipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipodesc_tipocodtipo ON public.tipodesc USING btree (tipo, codtipodesc);


--
-- Name: tipodesc_tipodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipodesc_tipodesc ON public.tipodesc USING btree (tipo, descricao);


--
-- Name: tipodescdet_nomechavecodext; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipodescdet_nomechavecodext ON public.tipodescdet USING btree (nometabela, chavetabela, codexterno);


--
-- Name: tipodescdet_nomechavetipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipodescdet_nomechavetipo ON public.tipodescdet USING btree (nometabela, chavetabela, codtipodesc);


--
-- Name: tipodescdet_nometipochave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipodescdet_nometipochave ON public.tipodescdet USING btree (nometabela, codtipodesc, chavetabela);


--
-- Name: tipodescdet_tiponomechave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipodescdet_tiponomechave ON public.tipodescdet USING btree (codtipodesc, nometabela, chavetabela);


--
-- Name: tipodespdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipodespdesc ON public.tipodesp USING btree (descricao);


--
-- Name: tipodocaudustpdoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipodocaudustpdoc ON public.tipodocaudus USING btree (codtipodocaud, usuario);


--
-- Name: tipodocaudusuario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipodocaudusuario ON public.tipodocaudus USING btree (usuario, codtipodocaud);


--
-- Name: tipodocbasearq; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX tipodocbasearq ON public.tipodoc USING btree (tipo, nomebasearq);


--
-- Name: tipodocdescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipodocdescricao ON public.tipodoc USING btree (descricao);


--
-- Name: tipodoctipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipodoctipo ON public.tipodoc USING btree (tipo, descricao);


--
-- Name: tipoequipdescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoequipdescricao ON public.tipoequip USING btree (descricao);


--
-- Name: tipoequiplocdescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX tipoequiplocdescricao ON public.tipoequiploc USING btree (codtipoequip, descricao);


--
-- Name: tipoequiplogcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoequiplogcod ON public.tipoequiplog USING btree (codtipoequip);


--
-- Name: tipoequiplogdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoequiplogdesc ON public.tipoequiplog USING btree (descricao);


--
-- Name: tipoeventocodit; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoeventocodit ON public.tipoevento USING btree (coditem);


--
-- Name: tipoeventodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoeventodescricao ON public.tipoevento USING btree (descricao);


--
-- Name: tipofinancdescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipofinancdescricao ON public.tipofinanc USING btree (descricao);


--
-- Name: tipofornecedordataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipofornecedordataatual ON public.tipofornecedor USING btree (dataatual);


--
-- Name: tipofornecedordescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipofornecedordescricao ON public.tipofornecedor USING btree (descricao);


--
-- Name: tipojustificativadescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipojustificativadescricao ON public.tipojustificativa USING btree (descricao);


--
-- Name: tipolicencadescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipolicencadescricao ON public.tipolicenca USING btree (descricao);


--
-- Name: tipomultacodinfracao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipomultacodinfracao ON public.tipomulta USING btree (codinfracao);


--
-- Name: tipomultacodmulta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipomultacodmulta ON public.tipomulta USING btree (codmultaorgao);


--
-- Name: tipomultadesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipomultadesc ON public.tipomulta USING btree (descricao);


--
-- Name: tiponotalogdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tiponotalogdesc ON public.tiponotalog USING btree (descricao);


--
-- Name: tipoobspedidocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoobspedidocod ON public.tipoobspedido USING btree (codtipoobs);


--
-- Name: tipoobspedidodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoobspedidodesc ON public.tipoobspedido USING btree (descricao);


--
-- Name: tipoocorrenciadescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoocorrenciadescricao ON public.tipoocorrencia USING btree (descricao);


--
-- Name: tipooperacaodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipooperacaodescricao ON public.tipooperacao USING btree (descricao);


--
-- Name: tipopagtodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipopagtodescricao ON public.tipopagto USING btree (descricao);


--
-- Name: tipopessoaocodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipopessoaocodesc ON public.tipopessoaoco USING btree (descricao);


--
-- Name: tipoquestaocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoquestaocod ON public.tipoquestao USING btree (codtipoquestao);


--
-- Name: tipoquestaodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoquestaodesc ON public.tipoquestao USING btree (descricao);


--
-- Name: tiporast; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tiporast ON public.tiporastreador USING btree (codtiporastreador, descricao);


--
-- Name: tiporastreamentodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tiporastreamentodescricao ON public.tiporastreamento USING btree (descricao);


--
-- Name: tiporectodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tiporectodescricao ON public.tiporecto USING btree (descricao);


--
-- Name: tipotransportedescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipotransportedescricao ON public.tipotransporte USING btree (descricao);


--
-- Name: tipoveiculodataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoveiculodataatual ON public.tipoveiculo USING btree (dataatual);


--
-- Name: tipoveiculodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX tipoveiculodescricao ON public.tipoveiculo USING btree (descricao);


--
-- Name: topicocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX topicocod ON public.topico USING btree (codtopico);


--
-- Name: topicodesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX topicodesc ON public.topico USING btree (descricao);


--
-- Name: transacao_codautenticacao_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacao_codautenticacao_idx ON public.transacao USING btree (codautenticacao) WHERE (codautenticacao IS NOT NULL);


--
-- Name: transacao_codtrans1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacao_codtrans1 ON public.transacao USING btree (codtransacao1);


--
-- Name: transacao_codtrans2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacao_codtrans2 ON public.transacao USING btree (codtransacao2);


--
-- Name: transacao_idintegracao_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacao_idintegracao_idx ON public.transacao USING btree (idintegracao) WHERE (idintegracao IS NOT NULL);


--
-- Name: transacaobaixa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaobaixa ON public.transacao USING btree (numeroconta, databaixa);


--
-- Name: transacaocaixa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaocaixa ON public.transacao USING btree (codcaixa);


--
-- Name: transacaocli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaocli ON public.transacao USING btree (codcliente, data);


--
-- Name: transacaocodfatrec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaocodfatrec ON public.transacao USING btree (codfaturarec);


--
-- Name: transacaoconta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaoconta ON public.transacao USING btree (numeroconta, data);


--
-- Name: transacaocontr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaocontr ON public.transacao USING btree (codcontrato);


--
-- Name: transacaodata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaodata ON public.transacao USING btree (data, numeroconta);


--
-- Name: transacaodatabaixa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaodatabaixa ON public.transacao USING btree (databaixa);


--
-- Name: transacaodatadig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaodatadig ON public.transacao USING btree (datadigitacao, usuarioins);


--
-- Name: transacaodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaodescricao ON public.transacao USING btree (descricao);


--
-- Name: transacaoextratocodextcodtrans; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaoextratocodextcodtrans ON public.transacaoextrato USING btree (codextrato, codtransacao);


--
-- Name: transacaoextratocodtranscodext; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaoextratocodtranscodext ON public.transacaoextrato USING btree (codtransacao, codextrato);


--
-- Name: transacaoextratodatauscanc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaoextratodatauscanc ON public.transacaoextrato USING btree (datacanc, usuariocanc);


--
-- Name: transacaoextratousdatacanc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaoextratousdatacanc ON public.transacaoextrato USING btree (usuariocanc, datacanc);


--
-- Name: transacaofor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaofor ON public.transacao USING btree (codfornecedor, data);


--
-- Name: transacaopenddoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaopenddoc ON public.transacao USING btree (pendentedoc, numeroconta, data);


--
-- Name: transacaotipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaotipo ON public.transacao USING btree (tipo);


--
-- Name: transacaousuarioins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacaousuarioins ON public.transacao USING btree (usuarioins, dataatual);


--
-- Name: transacoestempdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacoestempdata ON public.transacoestemp USING btree (numeroconta, data);


--
-- Name: transacoestemptipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transacoestemptipo ON public.transacoestemp USING btree (tipo, numeroconta);


--
-- Name: transcaodataat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transcaodataat ON public.transacao USING btree (dataatual);


--
-- Name: transcodacertoprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX transcodacertoprop ON public.transacao USING btree (codacertoproprietario);


--
-- Name: txtcfgconta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX txtcfgconta ON public.txtcfg USING btree (codexterno);


--
-- Name: txtcfgnome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX txtcfgnome ON public.txtcfg USING btree (nome);


--
-- Name: txtcfgreg_txtcfg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX txtcfgreg_txtcfg ON public.txtcfgreg USING btree (codtxtcfg);


--
-- Name: txtcfgregtag_txtcfgreg; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX txtcfgregtag_txtcfgreg ON public.txtcfgregtag USING btree (codtxtcfgreg, ordem, codtxtcfgregtag);


--
-- Name: txtcfgtp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX txtcfgtp ON public.txtcfg USING btree (codtxtcfgtp);


--
-- Name: uforigdestorig; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX uforigdestorig ON public.uforigdest USING btree (uforigem, ufdestino);


--
-- Name: uftaxacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX uftaxacod ON public.uftaxa USING btree (coduftaxa);


--
-- Name: unidadeembarquedataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX unidadeembarquedataatual ON public.unidadeembarque USING btree (dataatual);


--
-- Name: unidadeembarquedescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX unidadeembarquedescricao ON public.unidadeembarque USING btree (descricao);


--
-- Name: unidadeembarquedesptp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX unidadeembarquedesptp ON public.unidadeembarquedesp USING btree (codtipodesp, codunidadeembarque);


--
-- Name: unidadeembarquedespue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX unidadeembarquedespue ON public.unidadeembarquedesp USING btree (codunidadeembarque, codtipodesp);


--
-- Name: unidadeembarqueratcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX unidadeembarqueratcod ON public.unidadeembarquerat USING btree (codunidadeembrat);


--
-- Name: unidadeembarquesegue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX unidadeembarquesegue ON public.unidadeembarqueseg USING btree (codunidadeembarque);


--
-- Name: unidadeembdocue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX unidadeembdocue ON public.unidadeembarquedoc USING btree (codunidadeembarque);


--
-- Name: unidadeembfil; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX unidadeembfil ON public.unidadeembarque USING btree (codfilial);


--
-- Name: unidadeembun; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX unidadeembun ON public.unidadeembarque USING btree (codunidadenegocio);


--
-- Name: unidadenegociodataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX unidadenegociodataatual ON public.unidadenegocio USING btree (dataatual);


--
-- Name: unidadenegociodescricao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX unidadenegociodescricao ON public.unidadenegocio USING btree (descricao);


--
-- Name: unidembmargue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX unidembmargue ON public.unidadeembarquemarg USING btree (codunidadeembarque, dataini);


--
-- Name: usuarioclientecod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX usuarioclientecod ON public.usuariocliente USING btree (codusuariocliente);


--
-- Name: usuariocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX usuariocod ON public.usuario USING btree (codusuario);


--
-- Name: usuarioconfignomedesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX usuarioconfignomedesc ON public.usuarioconfig USING btree (nome, descricao);


--
-- Name: usuariocontacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX usuariocontacod ON public.usuarioconta USING btree (codusuarioconta);


--
-- Name: usuariodatafimcaixa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuariodatafimcaixa ON public.caixa USING btree (usuarioins, datafim);


--
-- Name: usuariodatainicaixa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuariodatainicaixa ON public.caixa USING btree (usuarioins, dataini);


--
-- Name: usuariofavcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuariofavcod ON public.usuariofav USING btree (codusuariofav);


--
-- Name: usuariofavus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuariofavus ON public.usuariofav USING btree (nome, menu);


--
-- Name: usuariofilialcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX usuariofilialcod ON public.usuariofilial USING btree (codusuariofilial);


--
-- Name: usuariogrupocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX usuariogrupocod ON public.usuariogrupo USING btree (codusuariogrupo);


--
-- Name: usuariohoraindex; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX usuariohoraindex ON public.usuariohora USING btree (codusuario, diasemana, horaini);


--
-- Name: usuarioitemreceitacod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX usuarioitemreceitacod ON public.usuarioitemreceita USING btree (codusuarioitemreceita);


--
-- Name: usuariologdataini; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuariologdataini ON public.usuariolog USING btree (dataini, nome);


--
-- Name: usuariologmenuitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuariologmenuitem ON public.usuariolog USING btree (menuitem, nome);


--
-- Name: usuariolognome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuariolognome ON public.usuariolog USING btree (nome, dataini);


--
-- Name: usuarioopcartaocodgerrisco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuarioopcartaocodgerrisco ON public.usuarioopcartao USING btree (codgerrisco);


--
-- Name: usuarioopcartaousu; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuarioopcartaousu ON public.usuarioopcartao USING btree (usuario, codgerrisco);


--
-- Name: usuarioper_pordataini; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuarioper_pordataini ON public.usuarioper USING btree (dataini);


--
-- Name: usuarioper_porusuario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuarioper_porusuario ON public.usuarioper USING btree (codusuario);


--
-- Name: usuarioprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuarioprop ON public.usuarioproprietario USING btree (codusuarioproprietario, codproprietario, nome);


--
-- Name: usuariopropnome; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuariopropnome ON public.usuarioproprietario USING btree (nome, codproprietario);


--
-- Name: usuariosenhas_usuario; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX usuariosenhas_usuario ON public.usuariosenhas USING btree (codusuario, datains);


--
-- Name: usuariotipodesc_cods; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX usuariotipodesc_cods ON public.usuariotipodesc USING btree (codusuario, codtipodesc);


--
-- Name: veicacadiantcodveicacidente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veicacadiantcodveicacidente ON public.veiculoacidenteadiant USING btree (codveiculoacidente);


--
-- Name: veicacidadiantfat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veicacidadiantfat ON public.veiculoacidenteadiant USING btree (codfatura, codveiculoacidenteadiant);


--
-- Name: veicacidconhcodacid; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veicacidconhcodacid ON public.veiculoacidenteconh USING btree (codveiculoacidente, numero);


--
-- Name: veicacidconhnumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veicacidconhnumero ON public.veiculoacidenteconh USING btree (numero, codveiculoacidente);


--
-- Name: veicacidconhoco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veicacidconhoco ON public.veiculoacidenteconh USING btree (codconhecimentoocorrencia);


--
-- Name: veicaclogcodveicac; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veicaclogcodveicac ON public.veiculoacidentelog USING btree (codveiculoacidente);


--
-- Name: veiccamarafria; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiccamarafria ON public.veiculo USING btree (codcamarafria);


--
-- Name: veiccodcar; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiccodcar ON public.veiculo USING btree (codcarreta) WHERE ((codcarreta IS NOT NULL) AND ((codcarreta)::integer <> 0));


--
-- Name: veiccodcar2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiccodcar2 ON public.veiculo USING btree (codcarreta2) WHERE ((codcarreta2 IS NOT NULL) AND ((codcarreta2)::integer <> 0));


--
-- Name: veiccodcar3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiccodcar3 ON public.veiculo USING btree (codcarreta3) WHERE ((codcarreta3 IS NOT NULL) AND ((codcarreta3)::integer <> 0));


--
-- Name: veiccodcar4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiccodcar4 ON public.veiculo USING btree (codcarreta4) WHERE ((codcarreta4 IS NOT NULL) AND ((codcarreta4)::integer <> 0));


--
-- Name: veiccodmodelo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiccodmodelo ON public.veiculo USING btree (codmodelo, placa);


--
-- Name: veiccodtiporast; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiccodtiporast ON public.veiculo USING btree (codtiporastreador);


--
-- Name: veiclicdataini; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiclicdataini ON public.veiculolicensa USING btree (dataini, codveiculo);


--
-- Name: veiclicstatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiclicstatus ON public.veiculolicensa USING btree (status, codveiculo);


--
-- Name: veiclicusaut; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiclicusaut ON public.veiculolicensa USING btree (usuarioaut, codveiculo);


--
-- Name: veiclicusins; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiclicusins ON public.veiculolicensa USING btree (usuarioins, codveiculo);


--
-- Name: veicmarca; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veicmarca ON public.veiculo USING btree (marca, placa);


--
-- Name: veicmarcamod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veicmarcamod ON public.veiculo USING btree (marca, modelo, placa);


--
-- Name: veicmodelo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veicmodelo ON public.veiculo USING btree (modelo, placa);


--
-- Name: veicmultaadiantfat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veicmultaadiantfat ON public.veiculomultaadiant USING btree (codfatura, codveiculomultaadiant);


--
-- Name: veicmultacodveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veicmultacodveic ON public.veiculomulta USING btree (codveiculo);


--
-- Name: veiculoacidenteadiantcodadiant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoacidenteadiantcodadiant ON public.veiculoacidenteadiant USING btree (codadiantamento);


--
-- Name: veiculoacidentecodfaturarec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoacidentecodfaturarec ON public.veiculoacidente USING btree (codfaturarec);


--
-- Name: veiculoacidentecodmotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoacidentecodmotorista ON public.veiculoacidente USING btree (codmotorista);


--
-- Name: veiculoacidentecodtipoacidente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoacidentecodtipoacidente ON public.veiculoacidente USING btree (codtipoacidente);


--
-- Name: veiculoacidentecodveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoacidentecodveiculo ON public.veiculoacidente USING btree (codveiculo);


--
-- Name: veiculoacidentedata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoacidentedata ON public.veiculoacidente USING btree (data);


--
-- Name: veiculoaluguelcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX veiculoaluguelcod ON public.veiculoaluguel USING btree (codveiculoaluguel);


--
-- Name: veiculocar2renavam; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculocar2renavam ON public.veiculo USING btree (renavancarreta2);


--
-- Name: veiculocar3renavam; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculocar3renavam ON public.veiculo USING btree (renavancarreta3);


--
-- Name: veiculocar4renavam; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculocar4renavam ON public.veiculo USING btree (renavancarreta4);


--
-- Name: veiculocarrenavam; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculocarrenavam ON public.veiculo USING btree (renavancarreta);


--
-- Name: veiculocavalo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculocavalo ON public.veiculo USING btree (cavalo, placa);


--
-- Name: veiculocldata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculocldata ON public.veiculocl USING btree (data);


--
-- Name: veiculoclientecod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoclientecod ON public.clienteveiculo USING btree (codveiccliente);


--
-- Name: veiculoclientecodcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoclientecodcli ON public.clienteveiculo USING btree (codcliente, codveiccliente);


--
-- Name: veiculoclientecodveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoclientecodveic ON public.clienteveiculo USING btree (codveiculo, codveiccliente);


--
-- Name: veiculoclitemcoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoclitemcoditem ON public.veiculoclitem USING btree (coditem);


--
-- Name: veiculoclitemvcl; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoclitemvcl ON public.veiculoclitem USING btree (codveiculocl);


--
-- Name: veiculoclmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoclmot ON public.veiculocl USING btree (codmotorista);


--
-- Name: veiculoclveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoclveic ON public.veiculocl USING btree (codveiculo);


--
-- Name: veiculocodmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculocodmot ON public.veiculo USING btree (codmotorista);


--
-- Name: veiculocompartcodv; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculocompartcodv ON public.veiculocompart USING btree (codveiculo, numero);


--
-- Name: veiculoconjcar; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoconjcar ON public.veiculoconj USING btree (codcarreta);


--
-- Name: veiculoconjcar2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoconjcar2 ON public.veiculoconj USING btree (codcarreta2);


--
-- Name: veiculoconjcar3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoconjcar3 ON public.veiculoconj USING btree (codcarreta3);


--
-- Name: veiculoconjcar4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoconjcar4 ON public.veiculoconj USING btree (codcarreta4);


--
-- Name: veiculoconjdesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoconjdesc ON public.veiculoconj USING btree (descricao);


--
-- Name: veiculocontratocodveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculocontratocodveic ON public.veiculocontrato USING btree (codveiculo);


--
-- Name: veiculodataatual; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculodataatual ON public.veiculo USING btree (dataatual);


--
-- Name: veiculofaturamento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculofaturamento ON public.veiculo USING btree (codproprietario DESC, valorfaturamento DESC, codveiculo DESC);


--
-- Name: veiculogdatadesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculogdatadesc ON public.veiculolog USING btree (data DESC, codveiculo DESC);


--
-- Name: veiculoitemcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX veiculoitemcod ON public.veiculoitem USING btree (codveiculoitem);


--
-- Name: veiculoitemcoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX veiculoitemcoditem ON public.veiculoitem USING btree (coditem, codveiculo);


--
-- Name: veiculoitemfercoditem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX veiculoitemfercoditem ON public.veiculoitemfer USING btree (coditem, codveiculo);


--
-- Name: veiculoitemfercodveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX veiculoitemfercodveic ON public.veiculoitemfer USING btree (codveiculo, coditem);


--
-- Name: veiculoitempcodv; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoitempcodv ON public.veiculoitemp USING btree (codveiculoitem, data);


--
-- Name: veiculoitempdt; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoitempdt ON public.veiculoitemp USING btree (data, codveiculoitem);


--
-- Name: veiculolicmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculolicmot ON public.veiculolicensa USING btree (codmotorista, codveiculo);


--
-- Name: veiculolicprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculolicprop ON public.veiculolicensa USING btree (codproprietario, codveiculo);


--
-- Name: veiculologcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX veiculologcod ON public.veiculolog USING btree (codveiculolog);


--
-- Name: veiculologcodordemcar; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculologcodordemcar ON public.veiculolog USING btree (codordemcar, codveiculo, data);


--
-- Name: veiculologdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculologdata ON public.veiculolog USING btree (data, codveiculo);


--
-- Name: veiculologdatadesc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculologdatadesc ON public.veiculolog USING btree (codveiculo DESC, data DESC);


--
-- Name: veiculologped; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculologped ON public.veiculolog USING btree (numeropedido, codveiculo, data);


--
-- Name: veiculologped2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculologped2 ON public.veiculolog USING btree (numeropedido2, codveiculo, data);


--
-- Name: veiculologped3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculologped3 ON public.veiculolog USING btree (numeropedido3, codveiculo, data);


--
-- Name: veiculologrota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculologrota ON public.veiculolog USING btree (codrota, codveiculo, data);


--
-- Name: veiculologtipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculologtipo ON public.veiculolog USING btree (codveiculo, tipo, data);


--
-- Name: veiculologtipod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculologtipod ON public.veiculolog USING btree (data DESC, tipo DESC, codveiculo DESC);


--
-- Name: veiculomct; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomct ON public.veiculo USING btree (numeromct, liberado);


--
-- Name: veiculomotcodm; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomotcodm ON public.veiculomot USING btree (codmotorista, datainivalid, codmotorista);


--
-- Name: veiculomotcodv; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomotcodv ON public.veiculomot USING btree (codveiculo, codmotorista, datainivalid);


--
-- Name: veiculomotdtini; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomotdtini ON public.veiculomot USING btree (codveiculo, datainivalid, codveiculo);


--
-- Name: veiculomovcli; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomovcli ON public.veiculomov USING btree (codcliente, codveiculo);


--
-- Name: veiculomovcod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX veiculomovcod ON public.veiculomov USING btree (codveiculomov);


--
-- Name: veiculomovdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX veiculomovdata ON public.veiculomov USING btree (data, codveiculo);


--
-- Name: veiculomovtipoop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomovtipoop ON public.veiculomov USING btree (codtipooperacao, codveiculo);


--
-- Name: veiculomovtipotransp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomovtipotransp ON public.veiculomov USING btree (codtipotransporte, codveiculo);


--
-- Name: veiculomovue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomovue ON public.veiculomov USING btree (codunidadeembarque, codveiculo);


--
-- Name: veiculomultaadiantcodadiant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomultaadiantcodadiant ON public.veiculomultaadiant USING btree (codadiantamento);


--
-- Name: veiculomultaadiantcodveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomultaadiantcodveic ON public.veiculomultaadiant USING btree (codveiculomulta);


--
-- Name: veiculomultacodcid; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomultacodcid ON public.veiculomulta USING btree (codcidade);


--
-- Name: veiculomultacodmot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomultacodmot ON public.veiculomulta USING btree (codmotorista);


--
-- Name: veiculomultadata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomultadata ON public.veiculomulta USING btree (data);


--
-- Name: veiculomultalogcodveic; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomultalogcodveic ON public.veiculomultalog USING btree (codveiculomulta);


--
-- Name: veiculomultalogdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomultalogdata ON public.veiculomultalog USING btree (data);


--
-- Name: veiculomultanota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomultanota ON public.veiculomulta USING btree (codnota);


--
-- Name: veiculomultanumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculomultanumero ON public.veiculomulta USING btree (numero);


--
-- Name: veiculoplaca; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoplaca ON public.veiculo USING btree (placa);


--
-- Name: veiculoplacacarreta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoplacacarreta ON public.veiculo USING btree (placacarreta);


--
-- Name: veiculoplacacarreta2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoplacacarreta2 ON public.veiculo USING btree (placacarreta2);


--
-- Name: veiculoplacacarreta3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoplacacarreta3 ON public.veiculo USING btree (placacarreta3);


--
-- Name: veiculoprodcodveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoprodcodveiculo ON public.veiculoprod USING btree (codveiculo);


--
-- Name: veiculoprop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoprop ON public.veiculo USING btree (codproprietario);


--
-- Name: veiculoproprio; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculoproprio ON public.veiculo USING btree (veiculoproprio, placa);


--
-- Name: veiculorenavam; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX veiculorenavam ON public.veiculo USING btree (renavam);


--
-- Name: veiculosegurocod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX veiculosegurocod ON public.veiculoseguro USING btree (codveiculoseguro);


--
-- Name: viagem_mot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagem_mot ON public.viagem USING btree (codmotorista, data, status);


--
-- Name: viagemdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemdata ON public.viagem USING btree (data, status);


--
-- Name: viagemdataalt; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemdataalt ON public.viagem USING btree (dataalt, status);


--
-- Name: viagemdfim; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemdfim ON public.viagem USING btree (datafim, status);


--
-- Name: viagemdfimprev; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemdfimprev ON public.viagem USING btree (datafimprev, status);


--
-- Name: viagemdini; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemdini ON public.viagem USING btree (dataini, status);


--
-- Name: viagemdiniprev; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemdiniprev ON public.viagem USING btree (datainiprev, status);


--
-- Name: viagemdoc_viag; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemdoc_viag ON public.viagemdoc USING btree (codviagem, data);


--
-- Name: viagemdocchave; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemdocchave ON public.viagemdoc USING btree (chave);


--
-- Name: viagemdocdataalt; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemdocdataalt ON public.viagemdoc USING btree (dataalt, codviagem);


--
-- Name: viagemdocnumero; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemdocnumero ON public.viagemdoc USING btree (numero, codviagem);


--
-- Name: viagemdocws; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemdocws ON public.viagemdoc USING btree (codviagemdocws);


--
-- Name: viagemstatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemstatus ON public.viagem USING btree (status, data);


--
-- Name: viagemws; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX viagemws ON public.viagem USING btree (codviagemws);


--
-- Name: visitantelogcod1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitantelogcod1 ON public.visitantelog USING btree (codvisitantelog);


--
-- Name: visitantelogcodvis; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitantelogcodvis ON public.visitantelog USING btree (codvisitante);


--
-- Name: visitantelogcodvis1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitantelogcodvis1 ON public.visitantelog USING btree (codvisitante);


--
-- Name: visitantelogdataent; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitantelogdataent ON public.visitantelog USING btree (dataent);


--
-- Name: visitantelogdatasaida; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX visitantelogdatasaida ON public.visitantelog USING btree (datasaida);


--
-- Name: vislogmovdata; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX vislogmovdata ON public.visitantelogmov USING btree (data, codvisitantelog, tipomov);


--
-- Name: vislogmovtipo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX vislogmovtipo ON public.visitantelogmov USING btree (tipomov, data, codvisitantelog);


--
-- Name: vislogmovvis; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX vislogmovvis ON public.visitantelogmov USING btree (codvisitantelog, tipomov, data);


--
-- Name: vislogplaca; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX vislogplaca ON public.visitantelog USING btree (placa, dataent);


--
-- Name: vislogportaria; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX vislogportaria ON public.visitantelog USING btree (codfilialportariaent, dataent);


--
-- Name: vislogveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX vislogveiculo ON public.visitantelog USING btree (codveiculo, dataent);


--
-- Name: volumeid; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX volumeid ON public.volume USING btree (codcliente, id);


--
-- Name: xak1item; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xak1item ON public.item USING btree (descricao, coditem);


--
-- Name: xpkacertomotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkacertomotorista ON public.acertomotorista USING btree (codacertomotorista);


--
-- Name: xpkadiantamentodiaria; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkadiantamentodiaria ON public.adiantamentodiaria USING btree (codadiantamento, data);


--
-- Name: xpkadiantamentostatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkadiantamentostatus ON public.adiantamentostatus USING btree (numero);


--
-- Name: xpkapagado; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkapagado ON public.apagado USING btree (codapagado);


--
-- Name: xpkauxabc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkauxabc ON public.auxabc USING btree (codigo);


--
-- Name: xpkbanco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkbanco ON public.banco USING btree (codbanco);


--
-- Name: xpkbancotipopagto; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkbancotipopagto ON public.bancotipopagto USING btree (codbancotipopagto);


--
-- Name: xpkcargo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkcargo ON public.cargo USING btree (codcargo);


--
-- Name: xpkcarretamov; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkcarretamov ON public.carretamov USING btree (codveiculo, codcavalo, dataini);


--
-- Name: xpkcfop; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkcfop ON public.cfop USING btree (codcfop);


--
-- Name: xpkchequerec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkchequerec ON public.chequerec USING btree (codchequerec);


--
-- Name: xpkchequerectrans; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkchequerectrans ON public.chequerec USING btree (codtransacao, codchequerec);


--
-- Name: xpkchequestatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkchequestatus ON public.chequestatus USING btree (numeroconta, numerocheque);


--
-- Name: xpkcidadedist; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkcidadedist ON public.cidadedist USING btree (codcidade, codcidadedest);


--
-- Name: xpkclienteagenda; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkclienteagenda ON public.clienteagenda USING btree (codcliente, codagenda);


--
-- Name: xpkclientecc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkclientecc ON public.clientecc USING btree (codclientecc);


--
-- Name: xpkclientechequerec; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkclientechequerec ON public.clientechequerec USING btree (codclientechequerec);


--
-- Name: xpkclientechequereccc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkclientechequereccc ON public.clientechequereccc USING btree (codclientechequereccc);


--
-- Name: xpkclientecnd; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkclientecnd ON public.clientecnd USING btree (codcliente, codclientecnd);


--
-- Name: xpkclientecont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkclientecont ON public.clientecont USING btree (codcliente, nome);


--
-- Name: xpkclienteddr; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkclienteddr ON public.clienteddr USING btree (codcliente, codddr);


--
-- Name: xpkclienterefbanc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkclienterefbanc ON public.clienterefbanc USING btree (codcliente, banco);


--
-- Name: xpkclienterefcom; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkclienterefcom ON public.clienterefcom USING btree (codcliente, nome);


--
-- Name: xpkcoletaentrega; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkcoletaentrega ON public.coletaentrega USING btree (codcoletaentrega);


--
-- Name: xpkcoletaentregacont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkcoletaentregacont ON public.coletaentregacont USING btree (codcoletaentregacont);


--
-- Name: xpkconhecimentolog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkconhecimentolog ON public.conhecimentolog USING btree (numero, data);


--
-- Name: xpkconhecimentomotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkconhecimentomotorista ON public.conhecimentomotorista USING btree (numero, codmotorista);


--
-- Name: xpkconhecimentonota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkconhecimentonota ON public.conhecimentonota USING btree (numero, numeronota);


--
-- Name: xpkconhecimentoocorrencia; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkconhecimentoocorrencia ON public.conhecimentoocorrencia USING btree (numero, codtipoocorrencia, data);


--
-- Name: xpkconhecimentostatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkconhecimentostatus ON public.conhecimentostatus USING btree (numero, serie, codfilial);


--
-- Name: xpkcontrato; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkcontrato ON public.contrato USING btree (numero);


--
-- Name: xpkcot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkcot ON public.cot USING btree (codcot);


--
-- Name: xpkcotfrete; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkcotfrete ON public.cotfrete USING btree (codcotfrete);


--
-- Name: xpkcotfretemerc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkcotfretemerc ON public.cotfretemerc USING btree (codcotfrete, codcotfretemerc);


--
-- Name: xpkcotfretemercpedido; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkcotfretemercpedido ON public.cotfretemercpedido USING btree (codcotfrete, codcotfretemerc, numero);


--
-- Name: xpkdepartamento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkdepartamento ON public.departamento USING btree (coddepartamento);


--
-- Name: xpkduplordemcompra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkduplordemcompra ON public.duplordemcompra USING btree (codordemcompra, parcela);


--
-- Name: xpkembarcadorcont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkembarcadorcont ON public.embarcadorcont USING btree (codembarcador, nome);


--
-- Name: xpkequip; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkequip ON public.equip USING btree (codequip);


--
-- Name: xpkequiplog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkequiplog ON public.equiplog USING btree (codequiplog);


--
-- Name: xpkexametreinamento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkexametreinamento ON public.exametreinamento USING btree (codexametreinamento);


--
-- Name: xpkexp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkexp ON public.exp USING btree (codexp);


--
-- Name: xpkexpcampo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkexpcampo ON public.expcampo USING btree (codexp, campo);


--
-- Name: xpkfabricante; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkfabricante ON public.fabricante USING btree (codfabricante);


--
-- Name: xpkfaturacompra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkfaturacompra ON public.faturacompra USING btree (codfatura);


--
-- Name: xpkferiado; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkferiado ON public.feriado USING btree (data);


--
-- Name: xpkfornecedoragenda; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkfornecedoragenda ON public.fornecedoragenda USING btree (codfornecedor, codagenda);


--
-- Name: xpkfornecedorcc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkfornecedorcc ON public.fornecedorcc USING btree (codfornecedorcc);


--
-- Name: xpkfornecedorcont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkfornecedorcont ON public.fornecedorcont USING btree (codfornecedor, nome);


--
-- Name: xpkfornecedorpreco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkfornecedorpreco ON public.fornecedorpreco USING btree (codfornecedor, coditem, datainicio);


--
-- Name: xpkfrete; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkfrete ON public.frete USING btree (codfrete);


--
-- Name: xpkgerrisco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkgerrisco ON public.gerrisco USING btree (codgerrisco);


--
-- Name: xpkgrupofinanceiro; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkgrupofinanceiro ON public.grupofinanceiro USING btree (codgrupofinanceiro);


--
-- Name: xpkgruporeceita; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkgruporeceita ON public.gruporeceita USING btree (codgruporeceita);


--
-- Name: xpkhipergrupofinanceiro; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkhipergrupofinanceiro ON public.hipergrupofinanceiro USING btree (codhipergrupofinanceiro);


--
-- Name: xpkimp; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkimp ON public.imp USING btree (codimp);


--
-- Name: xpkimpcampo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkimpcampo ON public.impcampo USING btree (codimpcampo);


--
-- Name: xpkitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkitem ON public.item USING btree (coditem);


--
-- Name: xpkitemcot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkitemcot ON public.itemcot USING btree (codcot, coditem, coditemcot);


--
-- Name: xpkitemfilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkitemfilial ON public.itemfilial USING btree (coditem, codfilial);


--
-- Name: xpkitemfinanceiro; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkitemfinanceiro ON public.itemfinanceiro USING btree (coditemfinanceiro);


--
-- Name: xpkitemnotamotlog2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkitemnotamotlog2 ON public.itemnotamotoristalog USING btree (codnota, codinterno, codmotorista, datahoraini, coditemnotamotoristalog);


--
-- Name: xpkitemnotamotlog2a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkitemnotamotlog2a ON public.itemnotamotoristalog USING btree (codinterno, codmotorista, datahoraini, coditemnotamotoristalog);


--
-- Name: xpkitemnotamotorista2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkitemnotamotorista2 ON public.itemnotamotorista USING btree (codinterno, codmotorista);


--
-- Name: xpkitemnotamotorista3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkitemnotamotorista3 ON public.itemnotamotorista USING btree (codnota, codmotorista);


--
-- Name: xpkitemnotamotoristalog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkitemnotamotoristalog ON public.itemnotamotoristalog USING btree (codinterno, codmotorista, datahoraini);


--
-- Name: xpkitemordemcompra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkitemordemcompra ON public.itemordemcompra USING btree (codordemcompra, codinterno);


--
-- Name: xpkitemreceita; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkitemreceita ON public.itemreceita USING btree (coditemreceita);


--
-- Name: xpkitemsubitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkitemsubitem ON public.itemsubitem USING btree (coditem, codsubitem);


--
-- Name: xpkitemtipooperacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkitemtipooperacao ON public.itemtipooperacao USING btree (coditem, codtipooperacao);


--
-- Name: xpklocal; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpklocal ON public.local USING btree (codlocal);


--
-- Name: xpkmalote; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmalote ON public.malote USING btree (codmalote);


--
-- Name: xpkmaloteenv; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmaloteenv ON public.maloteenv USING btree (codmaloteenv);


--
-- Name: xpkmanif; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmanif ON public.manif USING btree (codmanif);


--
-- Name: xpkmanifchecklist; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmanifchecklist ON public.manifchecklist USING btree (codmanif, codchecklist);


--
-- Name: xpkmanifconhecimento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmanifconhecimento ON public.manifconhecimento USING btree (codmanif, numero);


--
-- Name: xpkmaniflog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmaniflog ON public.maniflog USING btree (codmanif, data);


--
-- Name: xpkmegagrupofinanceiro; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmegagrupofinanceiro ON public.megagrupofinanceiro USING btree (codmegagrupofinanceiro);


--
-- Name: xpkmensagem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmensagem ON public.mensagem USING btree (usuarioorigem, usuariodestino, data);


--
-- Name: xpkmodelo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmodelo ON public.modelo USING btree (codmodelo);


--
-- Name: xpkmoeda; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmoeda ON public.moeda USING btree (codmoeda);


--
-- Name: xpkmoedacot; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmoedacot ON public.moedacot USING btree (codmoeda, data);


--
-- Name: xpkmotivobloqueio; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmotivobloqueio ON public.motivobloqueio USING btree (codmotivobloqueio);


--
-- Name: xpkmotoristacont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmotoristacont ON public.motoristacont USING btree (codmotorista, nome);


--
-- Name: xpkmotoristaexame; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmotoristaexame ON public.motoristaexame USING btree (codmotorista, descricao, dataefetuado);


--
-- Name: xpkmotoristagerrisco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkmotoristagerrisco ON public.motoristagerrisco USING btree (codmotorista, codgerrisco, data);


--
-- Name: xpkmotoristalog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmotoristalog ON public.motoristalog USING btree (codmotorista, data);


--
-- Name: xpkmotoristaref; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmotoristaref ON public.motoristaref USING btree (codmotoristaref);


--
-- Name: xpkmovitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkmovitem ON public.movitem USING btree (codmovitem);


--
-- Name: xpknotaadiant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpknotaadiant ON public.notaadiant USING btree (codfornecedor, numeronota, serie, codadiantamento);


--
-- Name: xpknotastatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpknotastatus ON public.notastatus USING btree (codnotastatus);


--
-- Name: xpkobsfiscal; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkobsfiscal ON public.obsfiscal USING btree (codobsfiscal);


--
-- Name: xpkordemcar; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkordemcar ON public.ordemcar USING btree (codordemcar);


--
-- Name: xpkordemcarstatus; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkordemcarstatus ON public.ordemcarstatus USING btree (codordemcarstatus);


--
-- Name: xpkordemcompra; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkordemcompra ON public.ordemcompra USING btree (codordemcompra);


--
-- Name: xpkparametroempresa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkparametroempresa ON public.parametroempresa USING btree (descricao);


--
-- Name: xpkpedidodest; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkpedidodest ON public.pedidodest USING btree (codpedidodest);


--
-- Name: xpkpedidolog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkpedidolog ON public.pedidolog USING btree (numero, data);


--
-- Name: xpkpedidomotorista; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkpedidomotorista ON public.pedidomotorista USING btree (numero, codmotorista);


--
-- Name: xpkpedidonota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkpedidonota ON public.pedidonota USING btree (numero, numeronota);


--
-- Name: xpkpneu; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkpneu ON public.pneu USING btree (codpneu);


--
-- Name: xpkpneufimvida; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkpneufimvida ON public.pneufimvida USING btree (codpneufimvida);


--
-- Name: xpkpneumov; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkpneumov ON public.pneumov USING btree (codpneu, datamov);


--
-- Name: xpkprocesso; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkprocesso ON public.processo USING btree (codprocesso);


--
-- Name: xpkprocessolog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkprocessolog ON public.processolog USING btree (codprocesso, data);


--
-- Name: xpkproprietariocont; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkproprietariocont ON public.proprietariocont USING btree (codproprietario, nome);


--
-- Name: xpkproprietariogerrisco; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkproprietariogerrisco ON public.proprietariogerrisco USING btree (codproprietario, codgerrisco, data);


--
-- Name: xpkproprietarioref; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkproprietarioref ON public.proprietarioref USING btree (codproprietarioref);


--
-- Name: xpkrota; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkrota ON public.rota USING btree (codrota);


--
-- Name: xpkstatuspneu; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkstatuspneu ON public.statuspneu USING btree (codstatuspneu);


--
-- Name: xpksupergrupo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpksupergrupo ON public.supergrupo USING btree (codsupergrupo);


--
-- Name: xpksupergrupofinanceiro; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpksupergrupofinanceiro ON public.supergrupofinanceiro USING btree (codsupergrupofinanceiro);


--
-- Name: xpksupergruporeceita; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpksupergruporeceita ON public.supergruporeceita USING btree (codsupergruporeceita);


--
-- Name: xpktipoborracha; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipoborracha ON public.tipoborracha USING btree (codtipoborracha);


--
-- Name: xpktipocarroceria; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipocarroceria ON public.tipocarroceria USING btree (codtipocarroceria);


--
-- Name: xpktipoccempfunc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpktipoccempfunc ON public.tipoccempfunc USING btree (codtipoccempfunc);


--
-- Name: xpktipocliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipocliente ON public.tipocliente USING btree (codtipocliente);


--
-- Name: xpktipoclienteexame; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipoclienteexame ON public.tipoclienteexame USING btree (codtipocliente, codexametreinamento);


--
-- Name: xpktipodoc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipodoc ON public.tipodoc USING btree (codtipodoc);


--
-- Name: xpktipoequip; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipoequip ON public.tipoequip USING btree (codtipoequip);


--
-- Name: xpktipoequiploc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipoequiploc ON public.tipoequiploc USING btree (codtipoequiploc);


--
-- Name: xpktipoevento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipoevento ON public.tipoevento USING btree (codtipoevento);


--
-- Name: xpktipofinanc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipofinanc ON public.tipofinanc USING btree (codtipofinanc);


--
-- Name: xpktipofornecedor; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipofornecedor ON public.tipofornecedor USING btree (codtipofornecedor);


--
-- Name: xpktipojustificativa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipojustificativa ON public.tipojustificativa USING btree (codtipojustificativa);


--
-- Name: xpktipolicenca; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipolicenca ON public.tipolicenca USING btree (codtipolicenca);


--
-- Name: xpktipoocorrencia; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipoocorrencia ON public.tipoocorrencia USING btree (codtipoocorrencia);


--
-- Name: xpktipooperacao; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipooperacao ON public.tipooperacao USING btree (codtipooperacao);


--
-- Name: xpktipopagto; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipopagto ON public.tipopagto USING btree (codtipopagto);


--
-- Name: xpktiporastreamento; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktiporastreamento ON public.tiporastreamento USING btree (codtiporastreamento);


--
-- Name: xpktiporecto; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktiporecto ON public.tiporecto USING btree (codtiporecto);


--
-- Name: xpktipotransporte; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpktipotransporte ON public.tipotransporte USING btree (codtipotransporte);


--
-- Name: xpkuforigdest; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkuforigdest ON public.uforigdest USING btree (coduforigdest);


--
-- Name: xpkuftaxa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkuftaxa ON public.uftaxa USING btree (uforig, ufdest);


--
-- Name: xpkunidadeembarque; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkunidadeembarque ON public.unidadeembarque USING btree (codunidadeembarque);


--
-- Name: xpkunidadeembrat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkunidadeembrat ON public.unidadeembarquerat USING btree (codunidadeembarque, codunidadeembrat);


--
-- Name: xpkunidadenegocio; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkunidadenegocio ON public.unidadenegocio USING btree (codunidadenegocio);


--
-- Name: xpkusuariocliente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkusuariocliente ON public.usuariocliente USING btree (nome, codcliente);


--
-- Name: xpkusuarioconta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkusuarioconta ON public.usuarioconta USING btree (nome, numeroconta);


--
-- Name: xpkusuariofilial; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkusuariofilial ON public.usuariofilial USING btree (nome, codfilial);


--
-- Name: xpkusuariogrupo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkusuariogrupo ON public.usuariogrupo USING btree (nome, codgrupo);


--
-- Name: xpkusuarioitemreceita; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkusuarioitemreceita ON public.usuarioitemreceita USING btree (nome, coditemreceita);


--
-- Name: xpkusuariolog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkusuariolog ON public.usuariolog USING btree (codusuariolog);


--
-- Name: xpkveicmulta; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkveicmulta ON public.veiculomulta USING btree (codveiculomulta);


--
-- Name: xpkveiculo; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkveiculo ON public.veiculo USING btree (codveiculo);


--
-- Name: xpkveiculoacidente; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkveiculoacidente ON public.veiculoacidente USING btree (codveiculoacidente);


--
-- Name: xpkveiculoacidenteconh; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkveiculoacidenteconh ON public.veiculoacidenteconh USING btree (codveiculoacidenteconh);


--
-- Name: xpkveiculoaluguel; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkveiculoaluguel ON public.veiculoaluguel USING btree (codveiculo, codfilial, dataini);


--
-- Name: xpkveiculoitem; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkveiculoitem ON public.veiculoitem USING btree (codveiculo, coditem);


--
-- Name: xpkveiculoitemfer; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkveiculoitemfer ON public.veiculoitemfer USING btree (codveiculoitemfer);


--
-- Name: xpkveiculolib; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkveiculolib ON public.veiculolib USING btree (codveiculo, codveiculolib);


--
-- Name: xpkveiculolog; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX xpkveiculolog ON public.veiculolog USING btree (codveiculo, data);


--
-- Name: xpkveiculomov; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkveiculomov ON public.veiculomov USING btree (codveiculo, data);


--
-- Name: xpkveiculoprod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkveiculoprod ON public.veiculoprod USING btree (codveiculoprod);


--
-- Name: xpkveiculoseguro; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX xpkveiculoseguro ON public.veiculoseguro USING btree (codveiculo, objeto, dataatual);


--
-- Name: conhecimento biprocconhecimento; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER biprocconhecimento AFTER INSERT OR DELETE OR UPDATE ON public.conhecimento FOR EACH ROW EXECUTE FUNCTION public.triggerbiprocconhecimento();


--
-- Name: conhecimentodesp biprocconhecimentodesp; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER biprocconhecimentodesp AFTER INSERT OR DELETE OR UPDATE ON public.conhecimentodesp FOR EACH ROW EXECUTE FUNCTION public.triggerbiprocconhecimentodesp();


--
-- Name: duplicatapagar biprocduplicatapagar; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER biprocduplicatapagar AFTER INSERT OR DELETE OR UPDATE ON public.duplicatapagar FOR EACH ROW EXECUTE FUNCTION public.triggerbiprocduplicatapagar();


--
-- Name: duplicatareceber biprocduplicatareceber; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER biprocduplicatareceber AFTER INSERT OR DELETE OR UPDATE ON public.duplicatareceber FOR EACH ROW EXECUTE FUNCTION public.triggerbiprocduplicatareceber();


--
-- Name: acertoproprietario bloqap; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER bloqap BEFORE UPDATE ON public.acertoproprietario FOR EACH ROW EXECUTE FUNCTION public.triggerbloqap();


--
-- Name: transacao bloqtransacao; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER bloqtransacao BEFORE DELETE ON public.transacao FOR EACH ROW EXECUTE FUNCTION public.triggerbloqtransacao();


--
-- Name: conhecimento checkbaixadpconhec; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER checkbaixadpconhec BEFORE UPDATE ON public.conhecimento FOR EACH ROW EXECUTE FUNCTION public.triggercheckbaixadpconhec();


--
-- Name: conhecimento checkcamposcte; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER checkcamposcte AFTER UPDATE ON public.conhecimento FOR EACH ROW EXECUTE FUNCTION public.triggercheckcamposcte();


--
-- Name: manif checkcamposmdfe; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER checkcamposmdfe AFTER UPDATE ON public.manif FOR EACH ROW EXECUTE FUNCTION public.triggercheckcamposmdfe();


--
-- Name: nota checkcamposnfe; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER checkcamposnfe AFTER UPDATE ON public.nota FOR EACH ROW EXECUTE FUNCTION public.triggercheckcamposnfe();


--
-- Name: empresa checkcodinstalacaozero; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER checkcodinstalacaozero BEFORE INSERT OR UPDATE ON public.empresa FOR EACH ROW EXECUTE FUNCTION public.triggercheckcodinstalacaozero();


--
-- Name: conhecimento checknumconhecdupl; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER checknumconhecdupl BEFORE INSERT OR UPDATE ON public.conhecimento FOR EACH ROW EXECUTE FUNCTION public.triggerchecknumconhecdupl();


--
-- Name: manif checknumeromdfedupl; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER checknumeromdfedupl BEFORE INSERT OR UPDATE ON public.manif FOR EACH ROW EXECUTE FUNCTION public.triggerchecknumeromdfedupl();


--
-- Name: nota checknumeronfdupl; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER checknumeronfdupl BEFORE INSERT OR UPDATE ON public.nota FOR EACH ROW EXECUTE FUNCTION public.triggerchecknumeronfdupl();


--
-- Name: conhecimento checkrequestedfieldsconhec; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER checkrequestedfieldsconhec BEFORE UPDATE ON public.conhecimento FOR EACH ROW EXECUTE FUNCTION public.triggercheckrequestedfieldsconhec();


--
-- Name: manif checkrequestedfieldsmanif; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER checkrequestedfieldsmanif BEFORE UPDATE ON public.manif FOR EACH ROW EXECUTE FUNCTION public.triggercheckrequestedfieldsmanif();


--
-- Name: nota checkrequestedfieldsnota; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER checkrequestedfieldsnota BEFORE UPDATE ON public.nota FOR EACH ROW EXECUTE FUNCTION public.triggercheckrequestedfieldsnota();


--
-- Name: fatura faturasetcodnegocio; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER faturasetcodnegocio BEFORE INSERT OR UPDATE ON public.fatura FOR EACH ROW EXECUTE FUNCTION public.triggerfaturasetcodnegocio();


--
-- Name: itemnota itemnotabd; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER itemnotabd BEFORE DELETE ON public.itemnota FOR EACH ROW EXECUTE FUNCTION public.triggeritemnotabd();


--
-- Name: itemnota itemnotabi; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER itemnotabi BEFORE INSERT ON public.itemnota FOR EACH ROW EXECUTE FUNCTION public.triggeritemnotabi();


--
-- Name: itemnota itemnotabu; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER itemnotabu BEFORE UPDATE ON public.itemnota FOR EACH ROW EXECUTE FUNCTION public.triggeritemnotabu();


--
-- Name: itemnota itemnotasetcodnegocio; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER itemnotasetcodnegocio BEFORE INSERT OR UPDATE ON public.itemnota FOR EACH ROW EXECUTE FUNCTION public.triggeritemnotasetcodnegocio();


--
-- Name: itemordemcompra itemordemcomprasetcodnegocio; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER itemordemcomprasetcodnegocio BEFORE INSERT OR UPDATE ON public.itemordemcompra FOR EACH ROW EXECUTE FUNCTION public.triggeritemordemcomprasetcodnegocio();


--
-- Name: veiculolog novoveiculolog; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER novoveiculolog AFTER INSERT OR UPDATE ON public.veiculolog FOR EACH ROW EXECUTE FUNCTION public.triggernovoveiculolog();


--
-- Name: conhecimentonota remconhecimentonota_checkcte; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER remconhecimentonota_checkcte BEFORE DELETE ON public.conhecimentonota FOR EACH ROW EXECUTE FUNCTION public.trigger_remconhecimentonota_checkcte();


--
-- Name: usuario remusuario; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER remusuario BEFORE DELETE ON public.usuario FOR EACH ROW EXECUTE FUNCTION public.triggerremusuario();


--
-- Name: usuario resetissup; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER resetissup BEFORE UPDATE ON public.usuario FOR EACH ROW EXECUTE FUNCTION public.resetissup();


--
-- Name: carretamov tnovo_codcarretamov; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codcarretamov BEFORE INSERT ON public.carretamov FOR EACH ROW EXECUTE FUNCTION public.novo_codcarretamov();


--
-- Name: conhecimentostatus tnovo_codconhecimentostatus; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codconhecimentostatus BEFORE INSERT ON public.conhecimentostatus FOR EACH ROW EXECUTE FUNCTION public.novo_codconhecimentostatus();


--
-- Name: duplicatapagar tnovo_codduplicatapagar; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codduplicatapagar BEFORE INSERT ON public.duplicatapagar FOR EACH ROW EXECUTE FUNCTION public.novo_codduplicatapagar();


--
-- Name: itemfilial tnovo_coditemfilial; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_coditemfilial BEFORE INSERT ON public.itemfilial FOR EACH ROW EXECUTE FUNCTION public.novo_coditemfilial();


--
-- Name: itemordemcompra tnovo_coditemordemcompra; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_coditemordemcompra BEFORE INSERT OR UPDATE ON public.itemordemcompra FOR EACH ROW EXECUTE FUNCTION public.novo_coditemordemcompra();


--
-- Name: log tnovo_codlog; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codlog BEFORE INSERT ON public.log FOR EACH ROW EXECUTE FUNCTION public.novo_codlog();


--
-- Name: logcampo tnovo_codlogcampo; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codlogcampo BEFORE INSERT ON public.logcampo FOR EACH ROW EXECUTE FUNCTION public.novo_codlogcampo();


--
-- Name: mensagem tnovo_codmensagem; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codmensagem BEFORE INSERT ON public.mensagem FOR EACH ROW EXECUTE FUNCTION public.novo_codmensagem();


--
-- Name: pneumov tnovo_codpneumov; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codpneumov BEFORE INSERT ON public.pneumov FOR EACH ROW EXECUTE FUNCTION public.novo_codpneumov();


--
-- Name: usuariocliente tnovo_codusuariocliente; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codusuariocliente BEFORE INSERT ON public.usuariocliente FOR EACH ROW EXECUTE FUNCTION public.novo_codusuariocliente();


--
-- Name: usuarioconta tnovo_codusuarioconta; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codusuarioconta BEFORE INSERT ON public.usuarioconta FOR EACH ROW EXECUTE FUNCTION public.novo_codusuarioconta();


--
-- Name: usuariofav tnovo_codusuariofav; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codusuariofav BEFORE INSERT ON public.usuariofav FOR EACH ROW EXECUTE FUNCTION public.novo_codusuariofav();


--
-- Name: usuariofilial tnovo_codusuariofilial; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codusuariofilial BEFORE INSERT ON public.usuariofilial FOR EACH ROW EXECUTE FUNCTION public.novo_codusuariofilial();


--
-- Name: usuariogrupo tnovo_codusuariogrupo; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codusuariogrupo BEFORE INSERT ON public.usuariogrupo FOR EACH ROW EXECUTE FUNCTION public.novo_codusuariogrupo();


--
-- Name: usuarioitemreceita tnovo_codusuarioitemreceita; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER tnovo_codusuarioitemreceita BEFORE INSERT ON public.usuarioitemreceita FOR EACH ROW EXECUTE FUNCTION public.novo_codusuarioitemreceita();


--
-- Name: conhecimento triggercheckcodacertopropconhecimento; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER triggercheckcodacertopropconhecimento BEFORE UPDATE ON public.conhecimento FOR EACH ROW EXECUTE FUNCTION public.triggercheckcodacertopropconhecimento();


--
-- Name: duplicatapagar triggercheckcodacertopropduplicatapagar; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER triggercheckcodacertopropduplicatapagar BEFORE UPDATE ON public.duplicatapagar FOR EACH ROW EXECUTE FUNCTION public.triggercheckcodacertopropduplicatapagar();


--
-- Name: duplicatareceber triggercheckcodacertopropduplicatareceber; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER triggercheckcodacertopropduplicatareceber BEFORE UPDATE ON public.duplicatareceber FOR EACH ROW EXECUTE FUNCTION public.triggercheckcodacertopropduplicatareceber();


--
-- Name: itemnota triggercheckcodacertopropitemnota; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER triggercheckcodacertopropitemnota BEFORE UPDATE ON public.itemnota FOR EACH ROW EXECUTE FUNCTION public.triggercheckcodacertopropitemnota();


--
-- Name: conhecimento triggercheckdpconhecimento; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER triggercheckdpconhecimento BEFORE UPDATE ON public.conhecimento FOR EACH ROW EXECUTE FUNCTION public.triggercheckdpconhecimento();


--
-- Name: conhecimentoadic triggercheckdpconhecimentoadic; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER triggercheckdpconhecimentoadic BEFORE UPDATE ON public.conhecimentoadic FOR EACH ROW EXECUTE FUNCTION public.triggercheckdpconhecimentoadic();


--
-- Name: duplicatapagar triggercheckdpfatc; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER triggercheckdpfatc BEFORE INSERT OR UPDATE ON public.duplicatapagar FOR EACH ROW EXECUTE FUNCTION public.triggercheckdpfatc();


--
-- Name: duplicatapagar triggercheckvinculosduplicatapagar; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER triggercheckvinculosduplicatapagar BEFORE UPDATE ON public.duplicatapagar FOR EACH ROW EXECUTE FUNCTION public.triggercheckvinculosduplicatapagar();


--
-- Name: acaoaud acaoaud_codmotoristaaplicador_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acaoaud
    ADD CONSTRAINT acaoaud_codmotoristaaplicador_fkey FOREIGN KEY (codmotoristaaplicador) REFERENCES public.motorista(codmotorista);


--
-- Name: acertomotorista acertomotorista_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acertomotorista
    ADD CONSTRAINT acertomotorista_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: acertoproprietario acertoproprietario_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acertoproprietario
    ADD CONSTRAINT acertoproprietario_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: adecliente adecliente_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.adecliente
    ADD CONSTRAINT adecliente_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: adiantamento adiantamento_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.adiantamento
    ADD CONSTRAINT adiantamento_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: adiantamento adiantamento_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.adiantamento
    ADD CONSTRAINT adiantamento_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: adiantamento adiantamento_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.adiantamento
    ADD CONSTRAINT adiantamento_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: adiantamentostatus adiantamentostatus_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.adiantamentostatus
    ADD CONSTRAINT adiantamentostatus_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: auditoria auditoria_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auditoria
    ADD CONSTRAINT auditoria_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: auditoria auditoria_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auditoria
    ADD CONSTRAINT auditoria_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: auditoria auditoria_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auditoria
    ADD CONSTRAINT auditoria_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: auditoria auditoria_codunidadeembarque_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auditoria
    ADD CONSTRAINT auditoria_codunidadeembarque_fkey FOREIGN KEY (codunidadeembarque) REFERENCES public.unidadeembarque(codunidadeembarque);


--
-- Name: auditoria auditoria_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auditoria
    ADD CONSTRAINT auditoria_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: carretamov carretamov_codcavalo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.carretamov
    ADD CONSTRAINT carretamov_codcavalo_fkey FOREIGN KEY (codcavalo) REFERENCES public.veiculo(codveiculo);


--
-- Name: carretamov carretamov_codmotivo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.carretamov
    ADD CONSTRAINT carretamov_codmotivo_fkey FOREIGN KEY (codmotivo) REFERENCES public.motivo(codmotivo);


--
-- Name: carretamov carretamov_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.carretamov
    ADD CONSTRAINT carretamov_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: carretamov carretamov_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.carretamov
    ADD CONSTRAINT carretamov_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: cheque cheque_codcidadeemissao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cheque
    ADD CONSTRAINT cheque_codcidadeemissao_fkey FOREIGN KEY (codcidadeemissao) REFERENCES public.cidade(codcidade);


--
-- Name: chequerec chequerec_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.chequerec
    ADD CONSTRAINT chequerec_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: cidade cidade_uf_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cidade
    ADD CONSTRAINT cidade_uf_fkey FOREIGN KEY (uf) REFERENCES public.uf(coduf);


--
-- Name: cliente cliente_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cliente
    ADD CONSTRAINT cliente_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: cliente cliente_codcidadecob_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cliente
    ADD CONSTRAINT cliente_codcidadecob_fkey FOREIGN KEY (codcidadecob) REFERENCES public.cidade(codcidade);


--
-- Name: cliente cliente_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cliente
    ADD CONSTRAINT cliente_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: cliente cliente_codfornecedorfomento_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cliente
    ADD CONSTRAINT cliente_codfornecedorfomento_fkey FOREIGN KEY (codfornecedorfomento) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: cliente cliente_codfornecedorpedagio_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cliente
    ADD CONSTRAINT cliente_codfornecedorpedagio_fkey FOREIGN KEY (codfornecedorpedagio) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: cliente cliente_codimposto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cliente
    ADD CONSTRAINT cliente_codimposto_fkey FOREIGN KEY (codimposto) REFERENCES public.imposto(codimposto);


--
-- Name: cliente cliente_codimpostonfe_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cliente
    ADD CONSTRAINT cliente_codimpostonfe_fkey FOREIGN KEY (codimpostonfe) REFERENCES public.imposto(codimposto);


--
-- Name: cliente cliente_coditemreceita_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cliente
    ADD CONSTRAINT cliente_coditemreceita_fkey FOREIGN KEY (coditemreceita) REFERENCES public.item(coditem);


--
-- Name: cliente cliente_codmotfaturista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cliente
    ADD CONSTRAINT cliente_codmotfaturista_fkey FOREIGN KEY (codmotfaturista) REFERENCES public.motorista(codmotorista);


--
-- Name: cliente cliente_codnbs_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cliente
    ADD CONSTRAINT cliente_codnbs_fkey FOREIGN KEY (codnbs) REFERENCES public.nbs(codnbs);


--
-- Name: clienteagenda clienteagenda_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteagenda
    ADD CONSTRAINT clienteagenda_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clientecc clientecc_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientecc
    ADD CONSTRAINT clientecc_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clientecnd clientecnd_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientecnd
    ADD CONSTRAINT clientecnd_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clientecom clientecom_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientecom
    ADD CONSTRAINT clientecom_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clientecont clientecont_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientecont
    ADD CONSTRAINT clientecont_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clienteddr clienteddr_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteddr
    ADD CONSTRAINT clienteddr_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clientedesp clientedesp_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientedesp
    ADD CONSTRAINT clientedesp_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clientedesp clientedesp_codclienteop_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientedesp
    ADD CONSTRAINT clientedesp_codclienteop_fkey FOREIGN KEY (codclienteop) REFERENCES public.clienteop(codclienteop);


--
-- Name: clientedesp clientedesp_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientedesp
    ADD CONSTRAINT clientedesp_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: clientedesp clientedesp_codtipodesp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientedesp
    ADD CONSTRAINT clientedesp_codtipodesp_fkey FOREIGN KEY (codtipodesp) REFERENCES public.tipodesp(codtipodesp);


--
-- Name: clientediavenc clientediavenc_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientediavenc
    ADD CONSTRAINT clientediavenc_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clientelimite clientelimite_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientelimite
    ADD CONSTRAINT clientelimite_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clientemot clientemot_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientemot
    ADD CONSTRAINT clientemot_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: clienteop clienteop_codmotoristavend_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteop
    ADD CONSTRAINT clienteop_codmotoristavend_fkey FOREIGN KEY (codmotoristavend) REFERENCES public.motorista(codmotorista);


--
-- Name: clienteopfis clienteopfis_codimposto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteopfis
    ADD CONSTRAINT clienteopfis_codimposto_fkey FOREIGN KEY (codimposto) REFERENCES public.imposto(codimposto);


--
-- Name: clienteopfis clienteopfis_codimpostonfe_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteopfis
    ADD CONSTRAINT clienteopfis_codimpostonfe_fkey FOREIGN KEY (codimpostonfe) REFERENCES public.imposto(codimposto);


--
-- Name: clienteopfis clienteopfis_codnbs_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteopfis
    ADD CONSTRAINT clienteopfis_codnbs_fkey FOREIGN KEY (codnbs) REFERENCES public.nbs(codnbs);


--
-- Name: clienterefbanc clienterefbanc_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienterefbanc
    ADD CONSTRAINT clienterefbanc_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clienterefcom clienterefcom_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienterefcom
    ADD CONSTRAINT clienterefcom_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clientetabfrete clientetabfrete_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientetabfrete
    ADD CONSTRAINT clientetabfrete_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clientetempo clientetempo_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clientetempo
    ADD CONSTRAINT clientetempo_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clienteveiculo clienteveiculo_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteveiculo
    ADD CONSTRAINT clienteveiculo_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: clienteveiculo clienteveiculo_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clienteveiculo
    ADD CONSTRAINT clienteveiculo_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: coletaentrega coletaentrega_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.coletaentrega
    ADD CONSTRAINT coletaentrega_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: conhecimento conhecimento_codcarreta2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codcarreta2_fkey FOREIGN KEY (codcarreta2) REFERENCES public.veiculo(codveiculo);


--
-- Name: conhecimento conhecimento_codcarreta3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codcarreta3_fkey FOREIGN KEY (codcarreta3) REFERENCES public.veiculo(codveiculo);


--
-- Name: conhecimento conhecimento_codcarreta4_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codcarreta4_fkey FOREIGN KEY (codcarreta4) REFERENCES public.veiculo(codveiculo);


--
-- Name: conhecimento conhecimento_codcarreta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codcarreta_fkey FOREIGN KEY (codcarreta) REFERENCES public.veiculo(codveiculo);


--
-- Name: conhecimento conhecimento_codcidadedestino_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codcidadedestino_fkey FOREIGN KEY (codcidadedestino) REFERENCES public.cidade(codcidade);


--
-- Name: conhecimento conhecimento_codcidadeorigem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codcidadeorigem_fkey FOREIGN KEY (codcidadeorigem) REFERENCES public.cidade(codcidade);


--
-- Name: conhecimento conhecimento_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: conhecimento conhecimento_codcoleta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codcoleta_fkey FOREIGN KEY (codcoleta) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: conhecimento conhecimento_codconsignatario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codconsignatario_fkey FOREIGN KEY (codconsignatario) REFERENCES public.cliente(codcliente);


--
-- Name: conhecimento conhecimento_coddestinatario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_coddestinatario_fkey FOREIGN KEY (coddestinatario) REFERENCES public.cliente(codcliente);


--
-- Name: conhecimento conhecimento_codentrega_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codentrega_fkey FOREIGN KEY (codentrega) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: conhecimento conhecimento_codespeciemerc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codespeciemerc_fkey FOREIGN KEY (codespeciemerc) REFERENCES public.especiemerc(codespeciemerc);


--
-- Name: conhecimento conhecimento_codfornecedoradiant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codfornecedoradiant_fkey FOREIGN KEY (codfornecedoradiant) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimento conhecimento_codfornecedoradto2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codfornecedoradto2_fkey FOREIGN KEY (codfornecedoradto2) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimento conhecimento_codfornecedorbalsa_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codfornecedorbalsa_fkey FOREIGN KEY (codfornecedorbalsa) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimento conhecimento_codfornecedorclassificacao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codfornecedorclassificacao_fkey FOREIGN KEY (codfornecedorclassificacao) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimento conhecimento_codfornecedorestadia_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codfornecedorestadia_fkey FOREIGN KEY (codfornecedorestadia) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimento conhecimento_codfornecedoricms_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codfornecedoricms_fkey FOREIGN KEY (codfornecedoricms) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimento conhecimento_codfornecedorpedagio_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codfornecedorpedagio_fkey FOREIGN KEY (codfornecedorpedagio) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimento conhecimento_codfornecedorsaldo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codfornecedorsaldo_fkey FOREIGN KEY (codfornecedorsaldo) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimento conhecimento_codfornicmsantec_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codfornicmsantec_fkey FOREIGN KEY (codfornicmsantec) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimento conhecimento_codmercadoria_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codmercadoria_fkey FOREIGN KEY (codmercadoria) REFERENCES public.mercadoria(codmercadoria);


--
-- Name: conhecimento conhecimento_codmotcontingencia_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codmotcontingencia_fkey FOREIGN KEY (codmotcontingencia) REFERENCES public.motorista(codmotorista);


--
-- Name: conhecimento conhecimento_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: conhecimento conhecimento_codordemcar_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codordemcar_fkey FOREIGN KEY (codordemcar) REFERENCES public.ordemcar(codordemcar);


--
-- Name: conhecimento conhecimento_codprodutor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codprodutor_fkey FOREIGN KEY (codprodutor) REFERENCES public.cliente(codcliente);


--
-- Name: conhecimento conhecimento_codpropredespacho_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codpropredespacho_fkey FOREIGN KEY (codpropredespacho) REFERENCES public.proprietario(codproprietario);


--
-- Name: conhecimento conhecimento_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: conhecimento conhecimento_codremetente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codremetente_fkey FOREIGN KEY (codremetente) REFERENCES public.cliente(codcliente);


--
-- Name: conhecimento conhecimento_codrota_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codrota_fkey FOREIGN KEY (codrota) REFERENCES public.rota(codrota);


--
-- Name: conhecimento conhecimento_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: conhecimento conhecimento_numeropedido_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimento
    ADD CONSTRAINT conhecimento_numeropedido_fkey FOREIGN KEY (numeropedido) REFERENCES public.pedido(numero);


--
-- Name: conhecimentoadic conhecimentoadic_codcidadedestino2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoadic
    ADD CONSTRAINT conhecimentoadic_codcidadedestino2_fkey FOREIGN KEY (codcidadedestino2) REFERENCES public.cidade(codcidade);


--
-- Name: conhecimentoadic conhecimentoadic_codcidadeorigem2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoadic
    ADD CONSTRAINT conhecimentoadic_codcidadeorigem2_fkey FOREIGN KEY (codcidadeorigem2) REFERENCES public.cidade(codcidade);


--
-- Name: conhecimentoadic conhecimentoadic_codcidadetrocanota_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoadic
    ADD CONSTRAINT conhecimentoadic_codcidadetrocanota_fkey FOREIGN KEY (codcidadetrocanota) REFERENCES public.cidade(codcidade);


--
-- Name: conhecimentoadic conhecimentoadic_codfatpagabast_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoadic
    ADD CONSTRAINT conhecimentoadic_codfatpagabast_fkey FOREIGN KEY (codfatpagabast) REFERENCES public.faturacompra(codfatura);


--
-- Name: conhecimentoadic conhecimentoadic_codfornecedorabast_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoadic
    ADD CONSTRAINT conhecimentoadic_codfornecedorabast_fkey FOREIGN KEY (codfornecedorabast) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimentoadic conhecimentoadic_codfornecedorfomento_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoadic
    ADD CONSTRAINT conhecimentoadic_codfornecedorfomento_fkey FOREIGN KEY (codfornecedorfomento) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimentoadic conhecimentoadic_codgerriscoabast_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoadic
    ADD CONSTRAINT conhecimentoadic_codgerriscoabast_fkey FOREIGN KEY (codgerriscoabast) REFERENCES public.gerrisco(codgerrisco);


--
-- Name: conhecimentoadic conhecimentoadic_codimposto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoadic
    ADD CONSTRAINT conhecimentoadic_codimposto_fkey FOREIGN KEY (codimposto) REFERENCES public.imposto(codimposto);


--
-- Name: conhecimentoadic conhecimentoadic_codmotoristavend_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoadic
    ADD CONSTRAINT conhecimentoadic_codmotoristavend_fkey FOREIGN KEY (codmotoristavend) REFERENCES public.motorista(codmotorista);


--
-- Name: conhecimentoadic conhecimentoadic_codnbs_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoadic
    ADD CONSTRAINT conhecimentoadic_codnbs_fkey FOREIGN KEY (codnbs) REFERENCES public.nbs(codnbs);


--
-- Name: conhecimentodesp conhecimentodesp_codacertomotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodesp
    ADD CONSTRAINT conhecimentodesp_codacertomotorista_fkey FOREIGN KEY (codacertomotorista) REFERENCES public.acertomotorista(codacertomotorista);


--
-- Name: conhecimentodesp conhecimentodesp_codacertomotorista_fkey1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodesp
    ADD CONSTRAINT conhecimentodesp_codacertomotorista_fkey1 FOREIGN KEY (codacertomotorista) REFERENCES public.acertomotorista(codacertomotorista);


--
-- Name: conhecimentodesp conhecimentodesp_codcoletaentrega_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodesp
    ADD CONSTRAINT conhecimentodesp_codcoletaentrega_fkey FOREIGN KEY (codcoletaentrega) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: conhecimentodesp conhecimentodesp_codcoletaentrega_fkey1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodesp
    ADD CONSTRAINT conhecimentodesp_codcoletaentrega_fkey1 FOREIGN KEY (codcoletaentrega) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: conhecimentodesp conhecimentodesp_codcoletaentrega_fkey2; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodesp
    ADD CONSTRAINT conhecimentodesp_codcoletaentrega_fkey2 FOREIGN KEY (codcoletaentrega) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: conhecimentodesp conhecimentodesp_codcoletaentrega_fkey3; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodesp
    ADD CONSTRAINT conhecimentodesp_codcoletaentrega_fkey3 FOREIGN KEY (codcoletaentrega) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: conhecimentodesp conhecimentodesp_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodesp
    ADD CONSTRAINT conhecimentodesp_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: conhecimentodesp conhecimentodesp_codmotorista_fkey1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodesp
    ADD CONSTRAINT conhecimentodesp_codmotorista_fkey1 FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: conhecimentodesp conhecimentodesp_codmotorista_fkey2; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodesp
    ADD CONSTRAINT conhecimentodesp_codmotorista_fkey2 FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: conhecimentodesp conhecimentodesp_codmotorista_fkey3; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodesp
    ADD CONSTRAINT conhecimentodesp_codmotorista_fkey3 FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: conhecimentodocant conhecimentodocant_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentodocant
    ADD CONSTRAINT conhecimentodocant_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: conhecimentomotorista conhecimentomotorista_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentomotorista
    ADD CONSTRAINT conhecimentomotorista_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: conhecimentonota conhecimentonota_codespeciemerc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentonota
    ADD CONSTRAINT conhecimentonota_codespeciemerc_fkey FOREIGN KEY (codespeciemerc) REFERENCES public.especiemerc(codespeciemerc);


--
-- Name: conhecimentonota conhecimentonota_codmercadoria_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentonota
    ADD CONSTRAINT conhecimentonota_codmercadoria_fkey FOREIGN KEY (codmercadoria) REFERENCES public.mercadoria(codmercadoria);


--
-- Name: conhecimentonotacaixa conhecimentonotacaixa_codconhecimentonota_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentonotacaixa
    ADD CONSTRAINT conhecimentonotacaixa_codconhecimentonota_fkey FOREIGN KEY (codconhecimentonota) REFERENCES public.conhecimentonota(codconhecimentonota);


--
-- Name: conhecimentonotacaixa conhecimentonotacaixa_codtipodesctamanho_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentonotacaixa
    ADD CONSTRAINT conhecimentonotacaixa_codtipodesctamanho_fkey FOREIGN KEY (codtipodesctamanho) REFERENCES public.tipodesc(codtipodesc);


--
-- Name: conhecimentosolic conhecimentosolic_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentosolic
    ADD CONSTRAINT conhecimentosolic_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimentosolic conhecimentosolic_codfornecedor_fkey1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentosolic
    ADD CONSTRAINT conhecimentosolic_codfornecedor_fkey1 FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimentosolic conhecimentosolic_codfornecedor_fkey2; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentosolic
    ADD CONSTRAINT conhecimentosolic_codfornecedor_fkey2 FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimentosolic conhecimentosolic_codfornecedor_fkey3; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentosolic
    ADD CONSTRAINT conhecimentosolic_codfornecedor_fkey3 FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimentosolic conhecimentosolic_numero_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentosolic
    ADD CONSTRAINT conhecimentosolic_numero_fkey FOREIGN KEY (numero) REFERENCES public.conhecimento(numero);


--
-- Name: conhecimentosolic conhecimentosolic_numero_fkey1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentosolic
    ADD CONSTRAINT conhecimentosolic_numero_fkey1 FOREIGN KEY (numero) REFERENCES public.conhecimento(numero);


--
-- Name: conhecimentosolic conhecimentosolic_numero_fkey2; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentosolic
    ADD CONSTRAINT conhecimentosolic_numero_fkey2 FOREIGN KEY (numero) REFERENCES public.conhecimento(numero);


--
-- Name: conhecimentosolic conhecimentosolic_numero_fkey3; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentosolic
    ADD CONSTRAINT conhecimentosolic_numero_fkey3 FOREIGN KEY (numero) REFERENCES public.conhecimento(numero);


--
-- Name: conhecimentoxml conhecimentoxml_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoxml
    ADD CONSTRAINT conhecimentoxml_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: conhecimentoxml conhecimentoxml_codfornecedoremit_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoxml
    ADD CONSTRAINT conhecimentoxml_codfornecedoremit_fkey FOREIGN KEY (codfornecedoremit) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conhecimentoxmloco conhecimentoxmloco_codconhecimentoxml_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoxmloco
    ADD CONSTRAINT conhecimentoxmloco_codconhecimentoxml_fkey FOREIGN KEY (codconhecimentoxml) REFERENCES public.conhecimentoxml(codconhecimentoxml);


--
-- Name: conhecimentoxmloco conhecimentoxmloco_codtipojustificativa_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoxmloco
    ADD CONSTRAINT conhecimentoxmloco_codtipojustificativa_fkey FOREIGN KEY (codtipojustificativa) REFERENCES public.tipojustificativa(codtipojustificativa);


--
-- Name: conhecimentoxmloco conhecimentoxmloco_codtipoocorrencia_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentoxmloco
    ADD CONSTRAINT conhecimentoxmloco_codtipoocorrencia_fkey FOREIGN KEY (codtipoocorrencia) REFERENCES public.tipoocorrencia(codtipoocorrencia);


--
-- Name: conta conta_codcontacontabil2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conta
    ADD CONSTRAINT conta_codcontacontabil2_fkey FOREIGN KEY (codcontacontabil2) REFERENCES public.contacontabil(codcontacontabil);


--
-- Name: conta conta_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conta
    ADD CONSTRAINT conta_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: conta conta_codnegocio_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conta
    ADD CONSTRAINT conta_codnegocio_fkey FOREIGN KEY (codnegocio) REFERENCES public.negocio(codnegocio);


--
-- Name: conta conta_codunidadeembarque_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conta
    ADD CONSTRAINT conta_codunidadeembarque_fkey FOREIGN KEY (codunidadeembarque) REFERENCES public.unidadeembarque(codunidadeembarque);


--
-- Name: contacontabil contacontabil_codempresa_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contacontabil
    ADD CONSTRAINT contacontabil_codempresa_fkey FOREIGN KEY (codempresa) REFERENCES public.empresas(codempresa);


--
-- Name: contlancdet contlancdet_codregrac_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contlancdet
    ADD CONSTRAINT contlancdet_codregrac_fkey FOREIGN KEY (codregrac) REFERENCES public.regrac(codregrac);


--
-- Name: contrato contrato_codimposto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contrato
    ADD CONSTRAINT contrato_codimposto_fkey FOREIGN KEY (codimposto) REFERENCES public.imposto(codimposto);


--
-- Name: contrato contrato_codimpostonfe_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contrato
    ADD CONSTRAINT contrato_codimpostonfe_fkey FOREIGN KEY (codimpostonfe) REFERENCES public.imposto(codimposto);


--
-- Name: contrato contrato_codnbs_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contrato
    ADD CONSTRAINT contrato_codnbs_fkey FOREIGN KEY (codnbs) REFERENCES public.nbs(codnbs);


--
-- Name: cot cot_coddepartamento_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cot
    ADD CONSTRAINT cot_coddepartamento_fkey FOREIGN KEY (coddepartamento) REFERENCES public.departamento(coddepartamento);


--
-- Name: cot cot_codfornecedor1_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cot
    ADD CONSTRAINT cot_codfornecedor1_fkey FOREIGN KEY (codfornecedor1) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: cot cot_codfornecedor2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cot
    ADD CONSTRAINT cot_codfornecedor2_fkey FOREIGN KEY (codfornecedor2) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: cot cot_codfornecedor3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cot
    ADD CONSTRAINT cot_codfornecedor3_fkey FOREIGN KEY (codfornecedor3) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: cot cot_codfornecedor4_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cot
    ADD CONSTRAINT cot_codfornecedor4_fkey FOREIGN KEY (codfornecedor4) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: cot cot_codfornecedor5_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cot
    ADD CONSTRAINT cot_codfornecedor5_fkey FOREIGN KEY (codfornecedor5) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: cot cot_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cot
    ADD CONSTRAINT cot_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: cotfrete cotfrete_codcondicao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cotfrete
    ADD CONSTRAINT cotfrete_codcondicao_fkey FOREIGN KEY (codcondicao) REFERENCES public.condpag(codcondicao);


--
-- Name: cotfretelog cotfretelog_codcondicao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cotfretelog
    ADD CONSTRAINT cotfretelog_codcondicao_fkey FOREIGN KEY (codcondicao) REFERENCES public.condpag(codcondicao);


--
-- Name: documento documento_codtipodoc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.documento
    ADD CONSTRAINT documento_codtipodoc_fkey FOREIGN KEY (codtipodoc) REFERENCES public.tipodoc(codtipodoc);


--
-- Name: duplicatapagar duplicatapagar_codduplicatapagarorig_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.duplicatapagar
    ADD CONSTRAINT duplicatapagar_codduplicatapagarorig_fkey FOREIGN KEY (codduplicatapagarorig) REFERENCES public.duplicatapagar(codduplicatapagar);


--
-- Name: duplicatapagar duplicatapagar_codfatura_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.duplicatapagar
    ADD CONSTRAINT duplicatapagar_codfatura_fkey FOREIGN KEY (codfatura) REFERENCES public.faturacompra(codfatura);


--
-- Name: duplicatapagar duplicatapagar_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.duplicatapagar
    ADD CONSTRAINT duplicatapagar_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: duplicatapagar duplicatapagar_codnota_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.duplicatapagar
    ADD CONSTRAINT duplicatapagar_codnota_fkey FOREIGN KEY (codnota) REFERENCES public.nota(codnota);


--
-- Name: duplicatareceber duplicatareceber_codduplicatareceberorig_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.duplicatareceber
    ADD CONSTRAINT duplicatareceber_codduplicatareceberorig_fkey FOREIGN KEY (codduplicatareceberorig) REFERENCES public.duplicatareceber(codduplicatareceber);


--
-- Name: duplicatareceber duplicatareceber_codfatura_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.duplicatareceber
    ADD CONSTRAINT duplicatareceber_codfatura_fkey FOREIGN KEY (codfatura) REFERENCES public.fatura(codfatura);


--
-- Name: ediviagem ediviagem_codcidadedestino_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ediviagem
    ADD CONSTRAINT ediviagem_codcidadedestino_fkey FOREIGN KEY (codcidadedestino) REFERENCES public.cidade(codcidade);


--
-- Name: ediviagem ediviagem_codcidadeorigem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ediviagem
    ADD CONSTRAINT ediviagem_codcidadeorigem_fkey FOREIGN KEY (codcidadeorigem) REFERENCES public.cidade(codcidade);


--
-- Name: ediviagem ediviagem_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ediviagem
    ADD CONSTRAINT ediviagem_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: ediviagem ediviagem_codcoleta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ediviagem
    ADD CONSTRAINT ediviagem_codcoleta_fkey FOREIGN KEY (codcoleta) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: ediviagem ediviagem_codentrega_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ediviagem
    ADD CONSTRAINT ediviagem_codentrega_fkey FOREIGN KEY (codentrega) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: ediviagem ediviagem_codmercadoria_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ediviagem
    ADD CONSTRAINT ediviagem_codmercadoria_fkey FOREIGN KEY (codmercadoria) REFERENCES public.mercadoria(codmercadoria);


--
-- Name: ediviagem ediviagem_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ediviagem
    ADD CONSTRAINT ediviagem_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: ediviagem ediviagem_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ediviagem
    ADD CONSTRAINT ediviagem_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: ediviagem ediviagem_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ediviagem
    ADD CONSTRAINT ediviagem_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: embarcador embarcador_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.embarcador
    ADD CONSTRAINT embarcador_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: embarcador embarcador_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.embarcador
    ADD CONSTRAINT embarcador_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: embarcadororc embarcadororc_codunidadenegocio_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.embarcadororc
    ADD CONSTRAINT embarcadororc_codunidadenegocio_fkey FOREIGN KEY (codunidadenegocio) REFERENCES public.unidadenegocio(codunidadenegocio);


--
-- Name: empresa empresa_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.empresa
    ADD CONSTRAINT empresa_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: empresas empresas_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.empresas
    ADD CONSTRAINT empresas_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: empresascontacontabil empresascontacontabil_codcontacontabil_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.empresascontacontabil
    ADD CONSTRAINT empresascontacontabil_codcontacontabil_fkey FOREIGN KEY (codcontacontabil) REFERENCES public.contacontabil(codcontacontabil);


--
-- Name: empresascontacontabil empresascontacontabil_codempresa_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.empresascontacontabil
    ADD CONSTRAINT empresascontacontabil_codempresa_fkey FOREIGN KEY (codempresa) REFERENCES public.empresas(codempresa);


--
-- Name: equip equip_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.equip
    ADD CONSTRAINT equip_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: extrato extrato_codextratoofx_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.extrato
    ADD CONSTRAINT extrato_codextratoofx_fkey FOREIGN KEY (codextratoofx) REFERENCES public.extratoofx(codextratoofx);


--
-- Name: extrato extrato_numeroconta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.extrato
    ADD CONSTRAINT extrato_numeroconta_fkey FOREIGN KEY (numeroconta) REFERENCES public.conta(numeroconta);


--
-- Name: extratoofx extratoofx_numeroconta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.extratoofx
    ADD CONSTRAINT extratoofx_numeroconta_fkey FOREIGN KEY (numeroconta) REFERENCES public.conta(numeroconta);


--
-- Name: fatura fatura_codcavalo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fatura
    ADD CONSTRAINT fatura_codcavalo_fkey FOREIGN KEY (codcavalo) REFERENCES public.veiculo(codveiculo);


--
-- Name: fatura fatura_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fatura
    ADD CONSTRAINT fatura_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: fatura fatura_coddestinatario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fatura
    ADD CONSTRAINT fatura_coddestinatario_fkey FOREIGN KEY (coddestinatario) REFERENCES public.cliente(codcliente);


--
-- Name: fatura fatura_coditemreceita_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fatura
    ADD CONSTRAINT fatura_coditemreceita_fkey FOREIGN KEY (coditemreceita) REFERENCES public.item(coditem);


--
-- Name: fatura fatura_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fatura
    ADD CONSTRAINT fatura_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: fatura fatura_codremetente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fatura
    ADD CONSTRAINT fatura_codremetente_fkey FOREIGN KEY (codremetente) REFERENCES public.cliente(codcliente);


--
-- Name: fatura fatura_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fatura
    ADD CONSTRAINT fatura_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: fatura fatura_codveiculoacidente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fatura
    ADD CONSTRAINT fatura_codveiculoacidente_fkey FOREIGN KEY (codveiculoacidente) REFERENCES public.veiculoacidente(codveiculoacidente);


--
-- Name: faturacompra faturacompra_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.faturacompra
    ADD CONSTRAINT faturacompra_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: faturacompra faturacompra_codveiculoacidente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.faturacompra
    ADD CONSTRAINT faturacompra_codveiculoacidente_fkey FOREIGN KEY (codveiculoacidente) REFERENCES public.veiculoacidente(codveiculoacidente);


--
-- Name: faturacompraoco faturacompraoco_codfaturacompra_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.faturacompraoco
    ADD CONSTRAINT faturacompraoco_codfaturacompra_fkey FOREIGN KEY (codfaturacompra) REFERENCES public.faturacompra(codfatura);


--
-- Name: filial filial_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filial
    ADD CONSTRAINT filial_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: filial filial_codcidadecomarca_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filial
    ADD CONSTRAINT filial_codcidadecomarca_fkey FOREIGN KEY (codcidadecomarca) REFERENCES public.cidade(codcidade);


--
-- Name: filial filial_codempresa_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filial
    ADD CONSTRAINT filial_codempresa_fkey FOREIGN KEY (codempresa) REFERENCES public.empresas(codempresa);


--
-- Name: filial filial_codunidadeembarquenfse_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filial
    ADD CONSTRAINT filial_codunidadeembarquenfse_fkey FOREIGN KEY (codunidadeembarquenfse) REFERENCES public.unidadeembarque(codunidadeembarque);


--
-- Name: filialsalario filialsalario_codfilial_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filialsalario
    ADD CONSTRAINT filialsalario_codfilial_fkey FOREIGN KEY (codfilial) REFERENCES public.filial(codfilial);


--
-- Name: filialsegv filialsegv_codfilial_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filialsegv
    ADD CONSTRAINT filialsegv_codfilial_fkey FOREIGN KEY (codfilial) REFERENCES public.filial(codfilial);


--
-- Name: agendatarefalog fk_agendatarefalog_agendatarefa; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.agendatarefalog
    ADD CONSTRAINT fk_agendatarefalog_agendatarefa FOREIGN KEY (codagendatarefa) REFERENCES public.agendatarefa(codagendatarefa);


--
-- Name: carretamov fk_carretamov_codcavalo; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.carretamov
    ADD CONSTRAINT fk_carretamov_codcavalo FOREIGN KEY (codcavalo) REFERENCES public.veiculo(codveiculo);


--
-- Name: coletaentrega fk_codmotbloq_col; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.coletaentrega
    ADD CONSTRAINT fk_codmotbloq_col FOREIGN KEY (codmotivobloqueio) REFERENCES public.motivo(codmotivo);


--
-- Name: conhecimentolog fk_conhecimentolog_coddepto; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentolog
    ADD CONSTRAINT fk_conhecimentolog_coddepto FOREIGN KEY (coddepartamento) REFERENCES public.departamento(coddepartamento);


--
-- Name: conhecimentolog fk_conhecimentolog_codtipodesc; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentolog
    ADD CONSTRAINT fk_conhecimentolog_codtipodesc FOREIGN KEY (codtipodesc) REFERENCES public.tipodesc(codtipodesc);


--
-- Name: conhecimentolog fk_conhecimentolog_codueant; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.conhecimentolog
    ADD CONSTRAINT fk_conhecimentolog_codueant FOREIGN KEY (codunidadeembarqueant) REFERENCES public.unidadeembarque(codunidadeembarque);


--
-- Name: documentooco fk_documentooco_documento; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.documentooco
    ADD CONSTRAINT fk_documentooco_documento FOREIGN KEY (coddocumento) REFERENCES public.documento(coddocumento);


--
-- Name: documentooco fk_documentooco_gerrisco; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.documentooco
    ADD CONSTRAINT fk_documentooco_gerrisco FOREIGN KEY (codgerrisco) REFERENCES public.gerrisco(codgerrisco);


--
-- Name: documentooco fk_documentooco_tipojust; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.documentooco
    ADD CONSTRAINT fk_documentooco_tipojust FOREIGN KEY (codtipojustificativa) REFERENCES public.tipojustificativa(codtipojustificativa);


--
-- Name: documentooco fk_documentooco_tipoocorrencia; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.documentooco
    ADD CONSTRAINT fk_documentooco_tipoocorrencia FOREIGN KEY (codtipoocorrencia) REFERENCES public.tipoocorrencia(codtipoocorrencia);


--
-- Name: filialsetor fk_filialsetor_filial; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.filialsetor
    ADD CONSTRAINT fk_filialsetor_filial FOREIGN KEY (codfilial) REFERENCES public.filial(codfilial);


--
-- Name: frete fk_frete_codtipodescmodentrega; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.frete
    ADD CONSTRAINT fk_frete_codtipodescmodentrega FOREIGN KEY (codtipodescmodentrega) REFERENCES public.tipodesc(codtipodesc);


--
-- Name: grupousuariohora fk_grupousuhora_codgrupousuario; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupousuariohora
    ADD CONSTRAINT fk_grupousuhora_codgrupousuario FOREIGN KEY (codgrupousuario) REFERENCES public.grupousuario(codgrupousuario);


--
-- Name: itemnota fk_itemnota_codfaturarecibscbs; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT fk_itemnota_codfaturarecibscbs FOREIGN KEY (codfaturarecibscbs) REFERENCES public.fatura(codfatura);


--
-- Name: itemuf fk_itemuf_filial; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemuf
    ADD CONSTRAINT fk_itemuf_filial FOREIGN KEY (codfilial) REFERENCES public.filial(codfilial);


--
-- Name: nota fk_nota_codfaturarecibscbs; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nota
    ADD CONSTRAINT fk_nota_codfaturarecibscbs FOREIGN KEY (codfaturarecibscbs) REFERENCES public.fatura(codfatura);


--
-- Name: notafilialsetor fk_notafilialsetor_filialsetor; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notafilialsetor
    ADD CONSTRAINT fk_notafilialsetor_filialsetor FOREIGN KEY (codfilialsetor) REFERENCES public.filialsetor(codfilialsetor);


--
-- Name: notafilialsetor fk_notafilialsetor_nota; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notafilialsetor
    ADD CONSTRAINT fk_notafilialsetor_nota FOREIGN KEY (codnota) REFERENCES public.nota(codnota);


--
-- Name: tipocliente fk_tipocliente_codtipodescfiscal; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipocliente
    ADD CONSTRAINT fk_tipocliente_codtipodescfiscal FOREIGN KEY (codtipodescfiscal) REFERENCES public.tipodesc(codtipodesc);


--
-- Name: unidadeembarque fk_unidadeembarque_codgerrisco; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarque
    ADD CONSTRAINT fk_unidadeembarque_codgerrisco FOREIGN KEY (codgerrisco) REFERENCES public.gerrisco(codgerrisco);


--
-- Name: usuariocampo fk_usuariocampo_usuario; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariocampo
    ADD CONSTRAINT fk_usuariocampo_usuario FOREIGN KEY (codusuario) REFERENCES public.usuario(codusuario);


--
-- Name: veiculo fk_veiculo_codembarcador; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT fk_veiculo_codembarcador FOREIGN KEY (codembarcador) REFERENCES public.embarcador(codembarcador);


--
-- Name: veiculomov fk_veiculomov_codembarcador; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomov
    ADD CONSTRAINT fk_veiculomov_codembarcador FOREIGN KEY (codembarcador) REFERENCES public.embarcador(codembarcador);


--
-- Name: fornecedor fornecedor_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedor
    ADD CONSTRAINT fornecedor_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: fornecedor fornecedor_codcondicao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedor
    ADD CONSTRAINT fornecedor_codcondicao_fkey FOREIGN KEY (codcondicao) REFERENCES public.condpag(codcondicao);


--
-- Name: fornecedor fornecedor_codcontacontabil2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedor
    ADD CONSTRAINT fornecedor_codcontacontabil2_fkey FOREIGN KEY (codcontacontabil2) REFERENCES public.contacontabil(codcontacontabil);


--
-- Name: fornecedoragenda fornecedoragenda_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedoragenda
    ADD CONSTRAINT fornecedoragenda_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: fornecedorcc fornecedorcc_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedorcc
    ADD CONSTRAINT fornecedorcc_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: fornecedorcont fornecedorcont_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedorcont
    ADD CONSTRAINT fornecedorcont_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: fornecedorfil fornecedorfil_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedorfil
    ADD CONSTRAINT fornecedorfil_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: fornecedorfiscal fornecedorfiscal_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedorfiscal
    ADD CONSTRAINT fornecedorfiscal_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: fornecedorpreco fornecedorpreco_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedorpreco
    ADD CONSTRAINT fornecedorpreco_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: fornecedorpreco fornecedorpreco_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.fornecedorpreco
    ADD CONSTRAINT fornecedorpreco_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: frete frete_codcidadedestino_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.frete
    ADD CONSTRAINT frete_codcidadedestino_fkey FOREIGN KEY (codcidadedestino) REFERENCES public.cidade(codcidade);


--
-- Name: frete frete_codcidadeorigem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.frete
    ADD CONSTRAINT frete_codcidadeorigem_fkey FOREIGN KEY (codcidadeorigem) REFERENCES public.cidade(codcidade);


--
-- Name: frete frete_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.frete
    ADD CONSTRAINT frete_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: frete frete_codespeciemerc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.frete
    ADD CONSTRAINT frete_codespeciemerc_fkey FOREIGN KEY (codespeciemerc) REFERENCES public.especiemerc(codespeciemerc);


--
-- Name: frete frete_codfornecedorpedagio_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.frete
    ADD CONSTRAINT frete_codfornecedorpedagio_fkey FOREIGN KEY (codfornecedorpedagio) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: frete frete_codimposto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.frete
    ADD CONSTRAINT frete_codimposto_fkey FOREIGN KEY (codimposto) REFERENCES public.imposto(codimposto);


--
-- Name: frete frete_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.frete
    ADD CONSTRAINT frete_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: frete frete_codnbs_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.frete
    ADD CONSTRAINT frete_codnbs_fkey FOREIGN KEY (codnbs) REFERENCES public.nbs(codnbs);


--
-- Name: frete frete_numeropedido_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.frete
    ADD CONSTRAINT frete_numeropedido_fkey FOREIGN KEY (numeropedido) REFERENCES public.pedido(numero);


--
-- Name: gerrisco gerrisco_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerrisco
    ADD CONSTRAINT gerrisco_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: gerriscopgr gerriscopgr_codgerrisco_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscopgr
    ADD CONSTRAINT gerriscopgr_codgerrisco_fkey FOREIGN KEY (codgerrisco) REFERENCES public.gerrisco(codgerrisco);


--
-- Name: gerriscopgrmercadoria gerriscopgrmercadoria_codgerriscopgr_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscopgrmercadoria
    ADD CONSTRAINT gerriscopgrmercadoria_codgerriscopgr_fkey FOREIGN KEY (codgerriscopgr) REFERENCES public.gerriscopgr(codgerriscopgr);


--
-- Name: gerriscopgrmercadoria gerriscopgrmercadoria_codmercadoria_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscopgrmercadoria
    ADD CONSTRAINT gerriscopgrmercadoria_codmercadoria_fkey FOREIGN KEY (codmercadoria) REFERENCES public.mercadoria(codmercadoria);


--
-- Name: gerriscopgrtipotransporte gerriscopgrtipotransporte_codgerriscopgr_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscopgrtipotransporte
    ADD CONSTRAINT gerriscopgrtipotransporte_codgerriscopgr_fkey FOREIGN KEY (codgerriscopgr) REFERENCES public.gerriscopgr(codgerriscopgr);


--
-- Name: gerriscopgrtipotransporte gerriscopgrtipotransporte_codtipotransporte_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gerriscopgrtipotransporte
    ADD CONSTRAINT gerriscopgrtipotransporte_codtipotransporte_fkey FOREIGN KEY (codtipotransporte) REFERENCES public.tipotransporte(codtipotransporte);


--
-- Name: grupo grupo_codcontacontabil_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupo
    ADD CONSTRAINT grupo_codcontacontabil_fkey FOREIGN KEY (codcontacontabil) REFERENCES public.contacontabil(codcontacontabil);


--
-- Name: grupousuariotipodesc grupousuariotipodesc_codgrupousuario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupousuariotipodesc
    ADD CONSTRAINT grupousuariotipodesc_codgrupousuario_fkey FOREIGN KEY (codgrupousuario) REFERENCES public.grupousuario(codgrupousuario);


--
-- Name: grupousuariotipodesc grupousuariotipodesc_codtipodesc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.grupousuariotipodesc
    ADD CONSTRAINT grupousuariotipodesc_codtipodesc_fkey FOREIGN KEY (codtipodesc) REFERENCES public.tipodesc(codtipodesc);


--
-- Name: impostocidade impostocidade_codimposto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostocidade
    ADD CONSTRAINT impostocidade_codimposto_fkey FOREIGN KEY (codimposto) REFERENCES public.imposto(codimposto);


--
-- Name: impostocidadevinc impostocidadevinc_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostocidadevinc
    ADD CONSTRAINT impostocidadevinc_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: impostocidadevinc impostocidadevinc_codimpostocidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostocidadevinc
    ADD CONSTRAINT impostocidadevinc_codimpostocidade_fkey FOREIGN KEY (codimpostocidade) REFERENCES public.impostocidade(codimpostocidade);


--
-- Name: impostocontrib impostocontrib_codimposto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostocontrib
    ADD CONSTRAINT impostocontrib_codimposto_fkey FOREIGN KEY (codimposto) REFERENCES public.imposto(codimposto);


--
-- Name: impostocredpres impostocredpres_codimposto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostocredpres
    ADD CONSTRAINT impostocredpres_codimposto_fkey FOREIGN KEY (codimposto) REFERENCES public.imposto(codimposto);


--
-- Name: impostouf impostouf_codimposto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostouf
    ADD CONSTRAINT impostouf_codimposto_fkey FOREIGN KEY (codimposto) REFERENCES public.imposto(codimposto);


--
-- Name: impostoufvinc impostoufvinc_codimpostouf_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostoufvinc
    ADD CONSTRAINT impostoufvinc_codimpostouf_fkey FOREIGN KEY (codimpostouf) REFERENCES public.impostouf(codimpostouf);


--
-- Name: impostoufvinc impostoufvinc_coduf_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.impostoufvinc
    ADD CONSTRAINT impostoufvinc_coduf_fkey FOREIGN KEY (coduf) REFERENCES public.uf(coduf);


--
-- Name: item item_codimpostonfecompra_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.item
    ADD CONSTRAINT item_codimpostonfecompra_fkey FOREIGN KEY (codimpostonfecompra) REFERENCES public.imposto(codimposto);


--
-- Name: item item_codimpostonfevenda_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.item
    ADD CONSTRAINT item_codimpostonfevenda_fkey FOREIGN KEY (codimpostonfevenda) REFERENCES public.imposto(codimposto);


--
-- Name: item item_codposicao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.item
    ADD CONSTRAINT item_codposicao_fkey FOREIGN KEY (codposicao) REFERENCES public.posicao(codposicao);


--
-- Name: itemcfop itemcfop_codimpostonfecompra_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemcfop
    ADD CONSTRAINT itemcfop_codimpostonfecompra_fkey FOREIGN KEY (codimpostonfecompra) REFERENCES public.imposto(codimposto);


--
-- Name: itemcfop itemcfop_codimpostonfevenda_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemcfop
    ADD CONSTRAINT itemcfop_codimpostonfevenda_fkey FOREIGN KEY (codimpostonfevenda) REFERENCES public.imposto(codimposto);


--
-- Name: itemcot itemcot_codcavalo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemcot
    ADD CONSTRAINT itemcot_codcavalo_fkey FOREIGN KEY (codcavalo) REFERENCES public.veiculo(codveiculo);


--
-- Name: itemcot itemcot_codcot_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemcot
    ADD CONSTRAINT itemcot_codcot_fkey FOREIGN KEY (codcot) REFERENCES public.cot(codcot);


--
-- Name: itemcot itemcot_coddepartamento_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemcot
    ADD CONSTRAINT itemcot_coddepartamento_fkey FOREIGN KEY (coddepartamento) REFERENCES public.departamento(coddepartamento);


--
-- Name: itemcot itemcot_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemcot
    ADD CONSTRAINT itemcot_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: itemcot itemcot_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemcot
    ADD CONSTRAINT itemcot_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: itemcot itemcot_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemcot
    ADD CONSTRAINT itemcot_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: itemfilial itemfilial_codclientepreferencial_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemfilial
    ADD CONSTRAINT itemfilial_codclientepreferencial_fkey FOREIGN KEY (codclientepreferencial) REFERENCES public.cliente(codcliente);


--
-- Name: itemfilial itemfilial_codobsfiscal_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemfilial
    ADD CONSTRAINT itemfilial_codobsfiscal_fkey FOREIGN KEY (codobsfiscal) REFERENCES public.obsfiscal(codobsfiscal);


--
-- Name: itemfilial itemfilial_codposicao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemfilial
    ADD CONSTRAINT itemfilial_codposicao_fkey FOREIGN KEY (codposicao) REFERENCES public.posicao(codposicao);


--
-- Name: iteminv iteminv_codposicao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.iteminv
    ADD CONSTRAINT iteminv_codposicao_fkey FOREIGN KEY (codposicao) REFERENCES public.posicao(codposicao);


--
-- Name: itemnota itemnota_codcarreta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_codcarreta_fkey FOREIGN KEY (codcarreta) REFERENCES public.veiculo(codveiculo);


--
-- Name: itemnota itemnota_codcavalo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_codcavalo_fkey FOREIGN KEY (codcavalo) REFERENCES public.veiculo(codveiculo);


--
-- Name: itemnota itemnota_codcidadecomb_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_codcidadecomb_fkey FOREIGN KEY (codcidadecomb) REFERENCES public.cidade(codcidade);


--
-- Name: itemnota itemnota_coddepartamento_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_coddepartamento_fkey FOREIGN KEY (coddepartamento) REFERENCES public.departamento(coddepartamento);


--
-- Name: itemnota itemnota_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: itemnota itemnota_codimpostonfe_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_codimpostonfe_fkey FOREIGN KEY (codimpostonfe) REFERENCES public.imposto(codimposto);


--
-- Name: itemnota itemnota_codinternoservico_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_codinternoservico_fkey FOREIGN KEY (codinternoservico) REFERENCES public.itemnota(codinterno);


--
-- Name: itemnota itemnota_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: itemnota itemnota_coditembaixar_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_coditembaixar_fkey FOREIGN KEY (coditembaixar) REFERENCES public.item(coditem);


--
-- Name: itemnota itemnota_coditemservico_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_coditemservico_fkey FOREIGN KEY (coditemservico) REFERENCES public.item(coditem);


--
-- Name: itemnota itemnota_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: itemnota itemnota_codmotsai_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_codmotsai_fkey FOREIGN KEY (codmotsai) REFERENCES public.motorista(codmotorista);


--
-- Name: itemnota itemnota_codnbs_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_codnbs_fkey FOREIGN KEY (codnbs) REFERENCES public.nbs(codnbs);


--
-- Name: itemnota itemnota_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: itemnota itemnota_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnota
    ADD CONSTRAINT itemnota_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: itemnotamotorista itemnotamotorista_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotamotorista
    ADD CONSTRAINT itemnotamotorista_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: itemnotamotorista itemnotamotorista_codinterno_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotamotorista
    ADD CONSTRAINT itemnotamotorista_codinterno_fkey FOREIGN KEY (codinterno) REFERENCES public.itemnota(codinterno);


--
-- Name: itemnotamotorista itemnotamotorista_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotamotorista
    ADD CONSTRAINT itemnotamotorista_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: itemnotamotorista itemnotamotorista_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotamotorista
    ADD CONSTRAINT itemnotamotorista_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: itemnotamotoristalog itemnotamotoristalog_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotamotoristalog
    ADD CONSTRAINT itemnotamotoristalog_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: itemnotamotoristalog itemnotamotoristalog_codinterno_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotamotoristalog
    ADD CONSTRAINT itemnotamotoristalog_codinterno_fkey FOREIGN KEY (codinterno) REFERENCES public.itemnota(codinterno);


--
-- Name: itemnotamotoristalog itemnotamotoristalog_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotamotoristalog
    ADD CONSTRAINT itemnotamotoristalog_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: itemnotaobs itemnotaobs_codinterno_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotaobs
    ADD CONSTRAINT itemnotaobs_codinterno_fkey FOREIGN KEY (codinterno) REFERENCES public.itemnota(codinterno);


--
-- Name: itemnotarem itemnotarem_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotarem
    ADD CONSTRAINT itemnotarem_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: itemnotarem itemnotarem_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotarem
    ADD CONSTRAINT itemnotarem_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: itemnotarem itemnotarem_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotarem
    ADD CONSTRAINT itemnotarem_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: itemnotarem itemnotarem_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemnotarem
    ADD CONSTRAINT itemnotarem_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: itemordemcompra itemordemcompra_codcoleta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemordemcompra
    ADD CONSTRAINT itemordemcompra_codcoleta_fkey FOREIGN KEY (codcoleta) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: itemordemcompra itemordemcompra_coddepartamento_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemordemcompra
    ADD CONSTRAINT itemordemcompra_coddepartamento_fkey FOREIGN KEY (coddepartamento) REFERENCES public.departamento(coddepartamento);


--
-- Name: itemordemcompra itemordemcompra_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemordemcompra
    ADD CONSTRAINT itemordemcompra_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: itemordemcompra itemordemcompra_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemordemcompra
    ADD CONSTRAINT itemordemcompra_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: itemordemcompra itemordemcompra_codordemcompra_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemordemcompra
    ADD CONSTRAINT itemordemcompra_codordemcompra_fkey FOREIGN KEY (codordemcompra) REFERENCES public.ordemcompra(codordemcompra);


--
-- Name: itemordemcompra itemordemcompra_codsolcompraitem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemordemcompra
    ADD CONSTRAINT itemordemcompra_codsolcompraitem_fkey FOREIGN KEY (codsolcompraitem) REFERENCES public.solcompraitem(codsolcompraitem);


--
-- Name: itemordemcompra itemordemcompra_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemordemcompra
    ADD CONSTRAINT itemordemcompra_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: itemsim itemsim_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemsim
    ADD CONSTRAINT itemsim_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: itemsubitem itemsubitem_codsubitem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemsubitem
    ADD CONSTRAINT itemsubitem_codsubitem_fkey FOREIGN KEY (codsubitem) REFERENCES public.item(coditem);


--
-- Name: itemtabncm itemtabncm_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemtabncm
    ADD CONSTRAINT itemtabncm_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: itemuf itemuf_codcfop_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.itemuf
    ADD CONSTRAINT itemuf_codcfop_fkey FOREIGN KEY (codcfop) REFERENCES public.cfop(codcfop);


--
-- Name: manif manif_codcidadedestino_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manif
    ADD CONSTRAINT manif_codcidadedestino_fkey FOREIGN KEY (codcidadedestino) REFERENCES public.cidade(codcidade);


--
-- Name: manif manif_codcidadeorigem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manif
    ADD CONSTRAINT manif_codcidadeorigem_fkey FOREIGN KEY (codcidadeorigem) REFERENCES public.cidade(codcidade);


--
-- Name: manif manif_codcoleta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manif
    ADD CONSTRAINT manif_codcoleta_fkey FOREIGN KEY (codcoleta) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: manif manif_codentrega_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manif
    ADD CONSTRAINT manif_codentrega_fkey FOREIGN KEY (codentrega) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: manif manif_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manif
    ADD CONSTRAINT manif_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: manif manif_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manif
    ADD CONSTRAINT manif_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: manif manif_codrota_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manif
    ADD CONSTRAINT manif_codrota_fkey FOREIGN KEY (codrota) REFERENCES public.rota(codrota);


--
-- Name: manif manif_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manif
    ADD CONSTRAINT manif_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: manifconhecimento manifconhecimento_codmanifev_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifconhecimento
    ADD CONSTRAINT manifconhecimento_codmanifev_fkey FOREIGN KEY (codmanifev) REFERENCES public.manifev(codmanifev);


--
-- Name: manifev manifev_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifev
    ADD CONSTRAINT manifev_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: manifnota manifnota_codmanifev_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifnota
    ADD CONSTRAINT manifnota_codmanifev_fkey FOREIGN KEY (codmanifev) REFERENCES public.manifev(codmanifev);


--
-- Name: manifoco manifoco_codmanif_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifoco
    ADD CONSTRAINT manifoco_codmanif_fkey FOREIGN KEY (codmanif) REFERENCES public.manif(codmanif);


--
-- Name: manifoco manifoco_codtipojustificativa_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifoco
    ADD CONSTRAINT manifoco_codtipojustificativa_fkey FOREIGN KEY (codtipojustificativa) REFERENCES public.tipojustificativa(codtipojustificativa);


--
-- Name: manifoco manifoco_codtipoocorrencia_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifoco
    ADD CONSTRAINT manifoco_codtipoocorrencia_fkey FOREIGN KEY (codtipoocorrencia) REFERENCES public.tipoocorrencia(codtipoocorrencia);


--
-- Name: manifxml manifxml_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifxml
    ADD CONSTRAINT manifxml_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: manifxmloco manifxmloco_codmanifxml_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifxmloco
    ADD CONSTRAINT manifxmloco_codmanifxml_fkey FOREIGN KEY (codmanifxml) REFERENCES public.manifxml(codmanifxml);


--
-- Name: manifxmloco manifxmloco_codtipojustificativa_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifxmloco
    ADD CONSTRAINT manifxmloco_codtipojustificativa_fkey FOREIGN KEY (codtipojustificativa) REFERENCES public.tipojustificativa(codtipojustificativa);


--
-- Name: manifxmloco manifxmloco_codtipoocorrencia_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.manifxmloco
    ADD CONSTRAINT manifxmloco_codtipoocorrencia_fkey FOREIGN KEY (codtipoocorrencia) REFERENCES public.tipoocorrencia(codtipoocorrencia);


--
-- Name: mercadoria mercadoria_codgrupomercadoria_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mercadoria
    ADD CONSTRAINT mercadoria_codgrupomercadoria_fkey FOREIGN KEY (codgrupomercadoria) REFERENCES public.grupomercadoria(codgrupomercadoria);


--
-- Name: mercadoria mercadoria_codmercadoriaprinc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mercadoria
    ADD CONSTRAINT mercadoria_codmercadoriaprinc_fkey FOREIGN KEY (codmercadoriaprinc) REFERENCES public.mercadoria(codmercadoria);


--
-- Name: mercadoriancm mercadoriancm_codmercadoria_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.mercadoriancm
    ADD CONSTRAINT mercadoriancm_codmercadoria_fkey FOREIGN KEY (codmercadoria) REFERENCES public.mercadoria(codmercadoria);


--
-- Name: modeloveic modeloveic_codmarca_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.modeloveic
    ADD CONSTRAINT modeloveic_codmarca_fkey FOREIGN KEY (codmarca) REFERENCES public.marca(codmarca);


--
-- Name: motorista motorista_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motorista
    ADD CONSTRAINT motorista_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: motorista motorista_codcidadenatural_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motorista
    ADD CONSTRAINT motorista_codcidadenatural_fkey FOREIGN KEY (codcidadenatural) REFERENCES public.cidade(codcidade);


--
-- Name: motorista motorista_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motorista
    ADD CONSTRAINT motorista_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: motorista motorista_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motorista
    ADD CONSTRAINT motorista_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: motoristaexame motoristaexame_codmotoristarealiz_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristaexame
    ADD CONSTRAINT motoristaexame_codmotoristarealiz_fkey FOREIGN KEY (codmotoristarealiz) REFERENCES public.motorista(codmotorista);


--
-- Name: motoristaexame motoristaexame_codmotoristarevis_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristaexame
    ADD CONSTRAINT motoristaexame_codmotoristarevis_fkey FOREIGN KEY (codmotoristarevis) REFERENCES public.motorista(codmotorista);


--
-- Name: motoristagerrisco motoristagerrisco_codcidadedestino_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristagerrisco
    ADD CONSTRAINT motoristagerrisco_codcidadedestino_fkey FOREIGN KEY (codcidadedestino) REFERENCES public.cidade(codcidade);


--
-- Name: motoristagerrisco motoristagerrisco_codcidadeorigem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristagerrisco
    ADD CONSTRAINT motoristagerrisco_codcidadeorigem_fkey FOREIGN KEY (codcidadeorigem) REFERENCES public.cidade(codcidade);


--
-- Name: motoristagerrisco motoristagerrisco_codmercadoria_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristagerrisco
    ADD CONSTRAINT motoristagerrisco_codmercadoria_fkey FOREIGN KEY (codmercadoria) REFERENCES public.mercadoria(codmercadoria);


--
-- Name: motoristagerrisco motoristagerrisco_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristagerrisco
    ADD CONSTRAINT motoristagerrisco_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: motoristagerrisco motoristagerrisco_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristagerrisco
    ADD CONSTRAINT motoristagerrisco_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: motoristagerrisco motoristagerrisco_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristagerrisco
    ADD CONSTRAINT motoristagerrisco_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: motoristalib motoristalib_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristalib
    ADD CONSTRAINT motoristalib_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: motoristalib motoristalib_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristalib
    ADD CONSTRAINT motoristalib_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: motoristalog motoristalog_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristalog
    ADD CONSTRAINT motoristalog_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: motoristarat motoristarat_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristarat
    ADD CONSTRAINT motoristarat_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: motoristarat motoristarat_codnegocio_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristarat
    ADD CONSTRAINT motoristarat_codnegocio_fkey FOREIGN KEY (codnegocio) REFERENCES public.negocio(codnegocio);


--
-- Name: motoristarat motoristarat_codunidadeembarque_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristarat
    ADD CONSTRAINT motoristarat_codunidadeembarque_fkey FOREIGN KEY (codunidadeembarque) REFERENCES public.unidadeembarque(codunidadeembarque);


--
-- Name: motoristaref motoristaref_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristaref
    ADD CONSTRAINT motoristaref_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: motoristaref motoristaref_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristaref
    ADD CONSTRAINT motoristaref_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: motoristaref motoristaref_codvisitante_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristaref
    ADD CONSTRAINT motoristaref_codvisitante_fkey FOREIGN KEY (codvisitante) REFERENCES public.visitante(codvisitante);


--
-- Name: motoristasalev motoristasalev_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristasalev
    ADD CONSTRAINT motoristasalev_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: motoristasalev motoristasalev_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristasalev
    ADD CONSTRAINT motoristasalev_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: motoristasalev motoristasalev_coditemreceita_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.motoristasalev
    ADD CONSTRAINT motoristasalev_coditemreceita_fkey FOREIGN KEY (coditemreceita) REFERENCES public.item(coditem);


--
-- Name: movitem movitem_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.movitem
    ADD CONSTRAINT movitem_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: nota nota_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nota
    ADD CONSTRAINT nota_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: nota nota_coddepartamento_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nota
    ADD CONSTRAINT nota_coddepartamento_fkey FOREIGN KEY (coddepartamento) REFERENCES public.departamento(coddepartamento);


--
-- Name: nota nota_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nota
    ADD CONSTRAINT nota_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: nota nota_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nota
    ADD CONSTRAINT nota_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: nota nota_codmotoristafim_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nota
    ADD CONSTRAINT nota_codmotoristafim_fkey FOREIGN KEY (codmotoristafim) REFERENCES public.motorista(codmotorista);


--
-- Name: nota nota_codmotoristaini_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nota
    ADD CONSTRAINT nota_codmotoristaini_fkey FOREIGN KEY (codmotoristaini) REFERENCES public.motorista(codmotorista);


--
-- Name: nota nota_codordemcompra_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nota
    ADD CONSTRAINT nota_codordemcompra_fkey FOREIGN KEY (codordemcompra) REFERENCES public.ordemcompra(codordemcompra);


--
-- Name: nota nota_codtipopagto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nota
    ADD CONSTRAINT nota_codtipopagto_fkey FOREIGN KEY (codtipopagto) REFERENCES public.tipopagto(codtipopagto);


--
-- Name: nota nota_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nota
    ADD CONSTRAINT nota_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: nota nota_codveiculotransp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.nota
    ADD CONSTRAINT nota_codveiculotransp_fkey FOREIGN KEY (codveiculotransp) REFERENCES public.veiculo(codveiculo);


--
-- Name: notaev notaev_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaev
    ADD CONSTRAINT notaev_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: notalog notalog_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notalog
    ADD CONSTRAINT notalog_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: notalog notalog_codmotoristafim_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notalog
    ADD CONSTRAINT notalog_codmotoristafim_fkey FOREIGN KEY (codmotoristafim) REFERENCES public.motorista(codmotorista);


--
-- Name: notaxml notaxml_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxml
    ADD CONSTRAINT notaxml_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: notaxml notaxml_codfrete_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxml
    ADD CONSTRAINT notaxml_codfrete_fkey FOREIGN KEY (codfrete) REFERENCES public.frete(codfrete);


--
-- Name: notaxml notaxml_codmercadoria_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxml
    ADD CONSTRAINT notaxml_codmercadoria_fkey FOREIGN KEY (codmercadoria) REFERENCES public.mercadoria(codmercadoria);


--
-- Name: notaxml notaxml_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxml
    ADD CONSTRAINT notaxml_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: notaxml notaxml_codordemcar_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxml
    ADD CONSTRAINT notaxml_codordemcar_fkey FOREIGN KEY (codordemcar) REFERENCES public.ordemcar(codordemcar);


--
-- Name: notaxml notaxml_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxml
    ADD CONSTRAINT notaxml_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: notaxml notaxml_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxml
    ADD CONSTRAINT notaxml_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: notaxml notaxml_numeropedido_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxml
    ADD CONSTRAINT notaxml_numeropedido_fkey FOREIGN KEY (numeropedido) REFERENCES public.pedido(numero);


--
-- Name: notaxml notaxml_transpcodcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxml
    ADD CONSTRAINT notaxml_transpcodcidade_fkey FOREIGN KEY (transpcodcidade) REFERENCES public.cidade(codcidade);


--
-- Name: notaxmloco notaxmloco_codnotaxml_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxmloco
    ADD CONSTRAINT notaxmloco_codnotaxml_fkey FOREIGN KEY (codnotaxml) REFERENCES public.notaxml(codnotaxml);


--
-- Name: notaxmloco notaxmloco_codtipojustificativa_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxmloco
    ADD CONSTRAINT notaxmloco_codtipojustificativa_fkey FOREIGN KEY (codtipojustificativa) REFERENCES public.tipojustificativa(codtipojustificativa);


--
-- Name: notaxmloco notaxmloco_codtipoocorrencia_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notaxmloco
    ADD CONSTRAINT notaxmloco_codtipoocorrencia_fkey FOREIGN KEY (codtipoocorrencia) REFERENCES public.tipoocorrencia(codtipoocorrencia);


--
-- Name: orcdespesa orcdespesa_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.orcdespesa
    ADD CONSTRAINT orcdespesa_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: orcreceita orcreceita_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.orcreceita
    ADD CONSTRAINT orcreceita_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: ordemcar ordemcar_codcidadedestino2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codcidadedestino2_fkey FOREIGN KEY (codcidadedestino2) REFERENCES public.cidade(codcidade);


--
-- Name: ordemcar ordemcar_codcidadedestino_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codcidadedestino_fkey FOREIGN KEY (codcidadedestino) REFERENCES public.cidade(codcidade);


--
-- Name: ordemcar ordemcar_codcidadeorigem2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codcidadeorigem2_fkey FOREIGN KEY (codcidadeorigem2) REFERENCES public.cidade(codcidade);


--
-- Name: ordemcar ordemcar_codcidadeorigem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codcidadeorigem_fkey FOREIGN KEY (codcidadeorigem) REFERENCES public.cidade(codcidade);


--
-- Name: ordemcar ordemcar_codcidadetrocanota_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codcidadetrocanota_fkey FOREIGN KEY (codcidadetrocanota) REFERENCES public.cidade(codcidade);


--
-- Name: ordemcar ordemcar_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: ordemcar ordemcar_codcoleta2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codcoleta2_fkey FOREIGN KEY (codcoleta2) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: ordemcar ordemcar_codcoleta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codcoleta_fkey FOREIGN KEY (codcoleta) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: ordemcar ordemcar_codconsignatario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codconsignatario_fkey FOREIGN KEY (codconsignatario) REFERENCES public.cliente(codcliente);


--
-- Name: ordemcar ordemcar_coddestinatario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_coddestinatario_fkey FOREIGN KEY (coddestinatario) REFERENCES public.cliente(codcliente);


--
-- Name: ordemcar ordemcar_codentrega2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codentrega2_fkey FOREIGN KEY (codentrega2) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: ordemcar ordemcar_codentrega_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codentrega_fkey FOREIGN KEY (codentrega) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: ordemcar ordemcar_codespeciemerc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codespeciemerc_fkey FOREIGN KEY (codespeciemerc) REFERENCES public.especiemerc(codespeciemerc);


--
-- Name: ordemcar ordemcar_codfrete_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codfrete_fkey FOREIGN KEY (codfrete) REFERENCES public.frete(codfrete);


--
-- Name: ordemcar ordemcar_codgerriscop_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codgerriscop_fkey FOREIGN KEY (codgerriscop) REFERENCES public.gerrisco(codgerrisco);


--
-- Name: ordemcar ordemcar_codgerriscoped_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codgerriscoped_fkey FOREIGN KEY (codgerriscoped) REFERENCES public.gerrisco(codgerrisco);


--
-- Name: ordemcar ordemcar_codmercadoria_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codmercadoria_fkey FOREIGN KEY (codmercadoria) REFERENCES public.mercadoria(codmercadoria);


--
-- Name: ordemcar ordemcar_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: ordemcar ordemcar_codordemcarant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codordemcarant_fkey FOREIGN KEY (codordemcarant) REFERENCES public.ordemcar(codordemcar);


--
-- Name: ordemcar ordemcar_codremetente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codremetente_fkey FOREIGN KEY (codremetente) REFERENCES public.cliente(codcliente);


--
-- Name: ordemcar ordemcar_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: ordemcar ordemcar_numeropedido_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcar
    ADD CONSTRAINT ordemcar_numeropedido_fkey FOREIGN KEY (numeropedido) REFERENCES public.pedido(numero);


--
-- Name: ordemcompra ordemcompra_codcfop_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcompra
    ADD CONSTRAINT ordemcompra_codcfop_fkey FOREIGN KEY (codcfop) REFERENCES public.cfop(codcfop);


--
-- Name: ordemcompra ordemcompra_codcoleta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcompra
    ADD CONSTRAINT ordemcompra_codcoleta_fkey FOREIGN KEY (codcoleta) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: ordemcompra ordemcompra_coddepartamento_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcompra
    ADD CONSTRAINT ordemcompra_coddepartamento_fkey FOREIGN KEY (coddepartamento) REFERENCES public.departamento(coddepartamento);


--
-- Name: ordemcompra ordemcompra_codespeciedoc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcompra
    ADD CONSTRAINT ordemcompra_codespeciedoc_fkey FOREIGN KEY (codespeciedoc) REFERENCES public.especiedoc(codespeciedoc);


--
-- Name: ordemcompra ordemcompra_codespeciemerc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcompra
    ADD CONSTRAINT ordemcompra_codespeciemerc_fkey FOREIGN KEY (codespeciemerc) REFERENCES public.especiemerc(codespeciemerc);


--
-- Name: ordemcompra ordemcompra_codfilialsetor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcompra
    ADD CONSTRAINT ordemcompra_codfilialsetor_fkey FOREIGN KEY (codfilialsetor) REFERENCES public.filialsetor(codfilialsetor);


--
-- Name: ordemcompra ordemcompra_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcompra
    ADD CONSTRAINT ordemcompra_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: ordemcompra ordemcompra_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcompra
    ADD CONSTRAINT ordemcompra_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: ordemcompra ordemcompra_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcompra
    ADD CONSTRAINT ordemcompra_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: ordemcompraadiant ordemcompraadiant_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcompraadiant
    ADD CONSTRAINT ordemcompraadiant_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: ordemcomprapedext ordemcomprapedext_codordemcompra_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ordemcomprapedext
    ADD CONSTRAINT ordemcomprapedext_codordemcompra_fkey FOREIGN KEY (codordemcompra) REFERENCES public.ordemcompra(codordemcompra);


--
-- Name: parametro parametro_codgasolina1_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codgasolina1_fkey FOREIGN KEY (codgasolina1) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_codgasolina2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codgasolina2_fkey FOREIGN KEY (codgasolina2) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_codgasolina3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codgasolina3_fkey FOREIGN KEY (codgasolina3) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_codgasolina4_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codgasolina4_fkey FOREIGN KEY (codgasolina4) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_codgasolina5_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codgasolina5_fkey FOREIGN KEY (codgasolina5) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_codgasolina_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codgasolina_fkey FOREIGN KEY (codgasolina) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_coditemdescontoconc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_coditemdescontoconc_fkey FOREIGN KEY (coditemdescontoconc) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_coditemjurospagos_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_coditemjurospagos_fkey FOREIGN KEY (coditemjurospagos) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_codoleodiesel1_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codoleodiesel1_fkey FOREIGN KEY (codoleodiesel1) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_codoleodiesel2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codoleodiesel2_fkey FOREIGN KEY (codoleodiesel2) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_codoleodiesel3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codoleodiesel3_fkey FOREIGN KEY (codoleodiesel3) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_codoleodiesel4_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codoleodiesel4_fkey FOREIGN KEY (codoleodiesel4) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_codoleodiesel5_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codoleodiesel5_fkey FOREIGN KEY (codoleodiesel5) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_codoleodiesel_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codoleodiesel_fkey FOREIGN KEY (codoleodiesel) REFERENCES public.item(coditem);


--
-- Name: parametro parametro_codveiculonaoinf_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parametro
    ADD CONSTRAINT parametro_codveiculonaoinf_fkey FOREIGN KEY (codveiculonaoinf) REFERENCES public.veiculo(codveiculo);


--
-- Name: pedido pedido_codcidadedestino2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codcidadedestino2_fkey FOREIGN KEY (codcidadedestino2) REFERENCES public.cidade(codcidade);


--
-- Name: pedido pedido_codcidadedestino_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codcidadedestino_fkey FOREIGN KEY (codcidadedestino) REFERENCES public.cidade(codcidade);


--
-- Name: pedido pedido_codcidadeorigem2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codcidadeorigem2_fkey FOREIGN KEY (codcidadeorigem2) REFERENCES public.cidade(codcidade);


--
-- Name: pedido pedido_codcidadeorigem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codcidadeorigem_fkey FOREIGN KEY (codcidadeorigem) REFERENCES public.cidade(codcidade);


--
-- Name: pedido pedido_codcidaderef_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codcidaderef_fkey FOREIGN KEY (codcidaderef) REFERENCES public.cidade(codcidade);


--
-- Name: pedido pedido_codcidadetrocanota_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codcidadetrocanota_fkey FOREIGN KEY (codcidadetrocanota) REFERENCES public.cidade(codcidade);


--
-- Name: pedido pedido_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: pedido pedido_codcoleta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codcoleta_fkey FOREIGN KEY (codcoleta) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: pedido pedido_codcondicao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codcondicao_fkey FOREIGN KEY (codcondicao) REFERENCES public.condpag(codcondicao);


--
-- Name: pedido pedido_codconsignatario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codconsignatario_fkey FOREIGN KEY (codconsignatario) REFERENCES public.cliente(codcliente);


--
-- Name: pedido pedido_coddestinatario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_coddestinatario_fkey FOREIGN KEY (coddestinatario) REFERENCES public.cliente(codcliente);


--
-- Name: pedido pedido_codentrega_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codentrega_fkey FOREIGN KEY (codentrega) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: pedido pedido_codespeciemerc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codespeciemerc_fkey FOREIGN KEY (codespeciemerc) REFERENCES public.especiemerc(codespeciemerc);


--
-- Name: pedido pedido_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: pedido pedido_codfornecedorfomento_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codfornecedorfomento_fkey FOREIGN KEY (codfornecedorfomento) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: pedido pedido_codfrete_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codfrete_fkey FOREIGN KEY (codfrete) REFERENCES public.frete(codfrete);


--
-- Name: pedido pedido_codimposto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codimposto_fkey FOREIGN KEY (codimposto) REFERENCES public.imposto(codimposto);


--
-- Name: pedido pedido_codimpostonfe_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codimpostonfe_fkey FOREIGN KEY (codimpostonfe) REFERENCES public.imposto(codimposto);


--
-- Name: pedido pedido_codmercadoria_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codmercadoria_fkey FOREIGN KEY (codmercadoria) REFERENCES public.mercadoria(codmercadoria);


--
-- Name: pedido pedido_codmoeda_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codmoeda_fkey FOREIGN KEY (codmoeda) REFERENCES public.moeda(codmoeda);


--
-- Name: pedido pedido_codmotivofin_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codmotivofin_fkey FOREIGN KEY (codmotivofin) REFERENCES public.motivo(codmotivo);


--
-- Name: pedido pedido_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: pedido pedido_codnbs_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codnbs_fkey FOREIGN KEY (codnbs) REFERENCES public.nbs(codnbs);


--
-- Name: pedido pedido_codprodutor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codprodutor_fkey FOREIGN KEY (codprodutor) REFERENCES public.cliente(codcliente);


--
-- Name: pedido pedido_codremetente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codremetente_fkey FOREIGN KEY (codremetente) REFERENCES public.cliente(codcliente);


--
-- Name: pedido pedido_codtiporecto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codtiporecto_fkey FOREIGN KEY (codtiporecto) REFERENCES public.tiporecto(codtiporecto);


--
-- Name: pedido pedido_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: pedido pedido_numeropedidoant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedido
    ADD CONSTRAINT pedido_numeropedidoant_fkey FOREIGN KEY (numeropedidoant) REFERENCES public.pedido(numero);


--
-- Name: pedidoitem pedidoitem_codimposto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidoitem
    ADD CONSTRAINT pedidoitem_codimposto_fkey FOREIGN KEY (codimposto) REFERENCES public.imposto(codimposto);


--
-- Name: pedidoitem pedidoitem_codimpostonfe_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidoitem
    ADD CONSTRAINT pedidoitem_codimpostonfe_fkey FOREIGN KEY (codimpostonfe) REFERENCES public.imposto(codimposto);


--
-- Name: pedidoitem pedidoitem_codnbs_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidoitem
    ADD CONSTRAINT pedidoitem_codnbs_fkey FOREIGN KEY (codnbs) REFERENCES public.nbs(codnbs);


--
-- Name: pedidorec pedidorec_numero_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidorec
    ADD CONSTRAINT pedidorec_numero_fkey FOREIGN KEY (numero) REFERENCES public.pedido(numero);


--
-- Name: pedidorota pedidorota_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidorota
    ADD CONSTRAINT pedidorota_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: pedidovalmot pedidovalmot_numero_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pedidovalmot
    ADD CONSTRAINT pedidovalmot_numero_fkey FOREIGN KEY (numero) REFERENCES public.pedido(numero);


--
-- Name: pneu pneu_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneu
    ADD CONSTRAINT pneu_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: pneu pneu_codmodelo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneu
    ADD CONSTRAINT pneu_codmodelo_fkey FOREIGN KEY (codmodelo) REFERENCES public.modelo(codmodelo);


--
-- Name: pneu pneu_codmotoristafimvida_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneu
    ADD CONSTRAINT pneu_codmotoristafimvida_fkey FOREIGN KEY (codmotoristafimvida) REFERENCES public.motorista(codmotorista);


--
-- Name: pneu pneu_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneu
    ADD CONSTRAINT pneu_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: pneumov pneumov_codcavalo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneumov
    ADD CONSTRAINT pneumov_codcavalo_fkey FOREIGN KEY (codcavalo) REFERENCES public.veiculo(codveiculo);


--
-- Name: pneumov pneumov_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneumov
    ADD CONSTRAINT pneumov_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: pneumov pneumov_codinterno_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneumov
    ADD CONSTRAINT pneumov_codinterno_fkey FOREIGN KEY (codinterno) REFERENCES public.itemnota(codinterno);


--
-- Name: pneumov pneumov_codmodelo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneumov
    ADD CONSTRAINT pneumov_codmodelo_fkey FOREIGN KEY (codmodelo) REFERENCES public.modelo(codmodelo);


--
-- Name: pneumov pneumov_codmotoristaveic_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneumov
    ADD CONSTRAINT pneumov_codmotoristaveic_fkey FOREIGN KEY (codmotoristaveic) REFERENCES public.motorista(codmotorista);


--
-- Name: pneumov pneumov_codpneu_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneumov
    ADD CONSTRAINT pneumov_codpneu_fkey FOREIGN KEY (codpneu) REFERENCES public.pneu(codpneu);


--
-- Name: pneumov pneumov_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pneumov
    ADD CONSTRAINT pneumov_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: progfrete progfrete_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.progfrete
    ADD CONSTRAINT progfrete_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: progfrete progfrete_codcoleta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.progfrete
    ADD CONSTRAINT progfrete_codcoleta_fkey FOREIGN KEY (codcoleta) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: progfrete progfrete_coddestinatario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.progfrete
    ADD CONSTRAINT progfrete_coddestinatario_fkey FOREIGN KEY (coddestinatario) REFERENCES public.cliente(codcliente);


--
-- Name: progfrete progfrete_codentrega_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.progfrete
    ADD CONSTRAINT progfrete_codentrega_fkey FOREIGN KEY (codentrega) REFERENCES public.coletaentrega(codcoletaentrega);


--
-- Name: progfrete progfrete_codmercadoria_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.progfrete
    ADD CONSTRAINT progfrete_codmercadoria_fkey FOREIGN KEY (codmercadoria) REFERENCES public.mercadoria(codmercadoria);


--
-- Name: progfrete progfrete_codremetente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.progfrete
    ADD CONSTRAINT progfrete_codremetente_fkey FOREIGN KEY (codremetente) REFERENCES public.cliente(codcliente);


--
-- Name: progfretedia progfretedia_codprogfrete_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.progfretedia
    ADD CONSTRAINT progfretedia_codprogfrete_fkey FOREIGN KEY (codprogfrete) REFERENCES public.progfrete(codprogfrete);


--
-- Name: progfreteped progfreteped_codprogfrete_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.progfreteped
    ADD CONSTRAINT progfreteped_codprogfrete_fkey FOREIGN KEY (codprogfrete) REFERENCES public.progfrete(codprogfrete);


--
-- Name: progfreteped progfreteped_numeropedido_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.progfreteped
    ADD CONSTRAINT progfreteped_numeropedido_fkey FOREIGN KEY (numeropedido) REFERENCES public.pedido(numero);


--
-- Name: proprietario proprietario_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietario
    ADD CONSTRAINT proprietario_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: proprietario proprietario_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietario
    ADD CONSTRAINT proprietario_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: proprietario proprietario_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietario
    ADD CONSTRAINT proprietario_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: proprietario proprietario_codfornpag_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietario
    ADD CONSTRAINT proprietario_codfornpag_fkey FOREIGN KEY (codfornpag) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: proprietario proprietario_codgerriscoabast_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietario
    ADD CONSTRAINT proprietario_codgerriscoabast_fkey FOREIGN KEY (codgerriscoabast) REFERENCES public.gerrisco(codgerrisco);


--
-- Name: proprietarioagenda proprietarioagenda_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietarioagenda
    ADD CONSTRAINT proprietarioagenda_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: proprietariocc proprietariocc_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariocc
    ADD CONSTRAINT proprietariocc_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: proprietariocont proprietariocont_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariocont
    ADD CONSTRAINT proprietariocont_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: proprietariodesp proprietariodesp_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariodesp
    ADD CONSTRAINT proprietariodesp_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: proprietariodesp proprietariodesp_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariodesp
    ADD CONSTRAINT proprietariodesp_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: proprietarioesocial proprietarioesocial_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietarioesocial
    ADD CONSTRAINT proprietarioesocial_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: proprietarioesocialconhec proprietarioesocialconhec_codproprietarioesocial_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietarioesocialconhec
    ADD CONSTRAINT proprietarioesocialconhec_codproprietarioesocial_fkey FOREIGN KEY (codproprietarioesocial) REFERENCES public.proprietarioesocial(codproprietarioesocial);


--
-- Name: proprietarioesocialconhec proprietarioesocialconhec_numero_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietarioesocialconhec
    ADD CONSTRAINT proprietarioesocialconhec_numero_fkey FOREIGN KEY (numero) REFERENCES public.conhecimento(numero);


--
-- Name: proprietariofiscal proprietariofiscal_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariofiscal
    ADD CONSTRAINT proprietariofiscal_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: proprietariogerrisco proprietariogerrisco_codmotoristacartao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariogerrisco
    ADD CONSTRAINT proprietariogerrisco_codmotoristacartao_fkey FOREIGN KEY (codmotoristacartao) REFERENCES public.motorista(codmotorista);


--
-- Name: proprietariogerrisco proprietariogerrisco_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariogerrisco
    ADD CONSTRAINT proprietariogerrisco_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: proprietariolib proprietariolib_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariolib
    ADD CONSTRAINT proprietariolib_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: proprietarioref proprietarioref_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietarioref
    ADD CONSTRAINT proprietarioref_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: proprietariosegv proprietariosegv_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.proprietariosegv
    ADD CONSTRAINT proprietariosegv_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: questao questao_codquestionario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questao
    ADD CONSTRAINT questao_codquestionario_fkey FOREIGN KEY (codquestionario) REFERENCES public.questionario(codquestionario);


--
-- Name: questao questao_codtipoquestao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questao
    ADD CONSTRAINT questao_codtipoquestao_fkey FOREIGN KEY (codtipoquestao) REFERENCES public.tipoquestao(codtipoquestao);


--
-- Name: questionariousuario questionariousuario_codcarreta2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questionariousuario
    ADD CONSTRAINT questionariousuario_codcarreta2_fkey FOREIGN KEY (codcarreta2) REFERENCES public.veiculo(codveiculo);


--
-- Name: questionariousuario questionariousuario_codcarreta3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questionariousuario
    ADD CONSTRAINT questionariousuario_codcarreta3_fkey FOREIGN KEY (codcarreta3) REFERENCES public.veiculo(codveiculo);


--
-- Name: questionariousuario questionariousuario_codcarreta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questionariousuario
    ADD CONSTRAINT questionariousuario_codcarreta_fkey FOREIGN KEY (codcarreta) REFERENCES public.veiculo(codveiculo);


--
-- Name: questionariousuario questionariousuario_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questionariousuario
    ADD CONSTRAINT questionariousuario_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: questionariousuario questionariousuario_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questionariousuario
    ADD CONSTRAINT questionariousuario_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: questionariousuario questionariousuario_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questionariousuario
    ADD CONSTRAINT questionariousuario_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: questionariousuario questionariousuario_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questionariousuario
    ADD CONSTRAINT questionariousuario_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: questionariousuario questionariousuario_codquestionario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questionariousuario
    ADD CONSTRAINT questionariousuario_codquestionario_fkey FOREIGN KEY (codquestionario) REFERENCES public.questionario(codquestionario);


--
-- Name: questionariousuario questionariousuario_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.questionariousuario
    ADD CONSTRAINT questionariousuario_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: resposta resposta_codquestao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.resposta
    ADD CONSTRAINT resposta_codquestao_fkey FOREIGN KEY (codquestao) REFERENCES public.questao(codquestao);


--
-- Name: respostausuario respostausuario_codquestionariousuario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.respostausuario
    ADD CONSTRAINT respostausuario_codquestionariousuario_fkey FOREIGN KEY (codquestionariousuario) REFERENCES public.questionariousuario(codquestionariousuario);


--
-- Name: respostausuario respostausuario_codresposta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.respostausuario
    ADD CONSTRAINT respostausuario_codresposta_fkey FOREIGN KEY (codresposta) REFERENCES public.resposta(codresposta);


--
-- Name: semaforolog semaforolog_codsemaforo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.semaforolog
    ADD CONSTRAINT semaforolog_codsemaforo_fkey FOREIGN KEY (codsemaforo) REFERENCES public.semaforo(codsemaforo);


--
-- Name: sistemaext sistemaext_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sistemaext
    ADD CONSTRAINT sistemaext_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: sistemaext sistemaext_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sistemaext
    ADD CONSTRAINT sistemaext_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: solcompra solcompra_coddepartamento_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.solcompra
    ADD CONSTRAINT solcompra_coddepartamento_fkey FOREIGN KEY (coddepartamento) REFERENCES public.departamento(coddepartamento);


--
-- Name: solcompra solcompra_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.solcompra
    ADD CONSTRAINT solcompra_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: solcompra solcompra_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.solcompra
    ADD CONSTRAINT solcompra_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: solcompraitem solcompraitem_codcavalo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.solcompraitem
    ADD CONSTRAINT solcompraitem_codcavalo_fkey FOREIGN KEY (codcavalo) REFERENCES public.veiculo(codveiculo);


--
-- Name: solcompraitem solcompraitem_codcot_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.solcompraitem
    ADD CONSTRAINT solcompraitem_codcot_fkey FOREIGN KEY (codcot) REFERENCES public.cot(codcot);


--
-- Name: solcompraitem solcompraitem_coddepartamento_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.solcompraitem
    ADD CONSTRAINT solcompraitem_coddepartamento_fkey FOREIGN KEY (coddepartamento) REFERENCES public.departamento(coddepartamento);


--
-- Name: solcompraitem solcompraitem_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.solcompraitem
    ADD CONSTRAINT solcompraitem_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: solcompraitem solcompraitem_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.solcompraitem
    ADD CONSTRAINT solcompraitem_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: solcompraitem solcompraitem_codsolcompra_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.solcompraitem
    ADD CONSTRAINT solcompraitem_codsolcompra_fkey FOREIGN KEY (codsolcompra) REFERENCES public.solcompra(codsolcompra);


--
-- Name: solcompraitem solcompraitem_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.solcompraitem
    ADD CONSTRAINT solcompraitem_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: tipoccempfunc tipoccempfunc_codcontacontabil_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipoccempfunc
    ADD CONSTRAINT tipoccempfunc_codcontacontabil_fkey FOREIGN KEY (codcontacontabil) REFERENCES public.contacontabil(codcontacontabil);


--
-- Name: tipodescdet tipodescdet_codtipodesc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tipodescdet
    ADD CONSTRAINT tipodescdet_codtipodesc_fkey FOREIGN KEY (codtipodesc) REFERENCES public.tipodesc(codtipodesc);


--
-- Name: transacao transacao_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transacao
    ADD CONSTRAINT transacao_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: transacao transacao_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transacao
    ADD CONSTRAINT transacao_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: transacaoextrato transacaoextrato_codextrato_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transacaoextrato
    ADD CONSTRAINT transacaoextrato_codextrato_fkey FOREIGN KEY (codextrato) REFERENCES public.extrato(codextrato);


--
-- Name: transacaoextrato transacaoextrato_codtransacao_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transacaoextrato
    ADD CONSTRAINT transacaoextrato_codtransacao_fkey FOREIGN KEY (codtransacao) REFERENCES public.transacao(codtransacao);


--
-- Name: unidadeembarque unidadeembarque_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarque
    ADD CONSTRAINT unidadeembarque_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: unidadeembarque unidadeembarque_codfilial_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarque
    ADD CONSTRAINT unidadeembarque_codfilial_fkey FOREIGN KEY (codfilial) REFERENCES public.filial(codfilial);


--
-- Name: unidadeembarque unidadeembarque_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarque
    ADD CONSTRAINT unidadeembarque_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: unidadeembarque unidadeembarque_codmotoristaencarregado2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarque
    ADD CONSTRAINT unidadeembarque_codmotoristaencarregado2_fkey FOREIGN KEY (codmotoristaencarregado2) REFERENCES public.motorista(codmotorista);


--
-- Name: unidadeembarque unidadeembarque_codmotoristaencarregado_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarque
    ADD CONSTRAINT unidadeembarque_codmotoristaencarregado_fkey FOREIGN KEY (codmotoristaencarregado) REFERENCES public.motorista(codmotorista);


--
-- Name: unidadeembarque unidadeembarque_codmotoristasup2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarque
    ADD CONSTRAINT unidadeembarque_codmotoristasup2_fkey FOREIGN KEY (codmotoristasup2) REFERENCES public.motorista(codmotorista);


--
-- Name: unidadeembarque unidadeembarque_codmotoristasup3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarque
    ADD CONSTRAINT unidadeembarque_codmotoristasup3_fkey FOREIGN KEY (codmotoristasup3) REFERENCES public.motorista(codmotorista);


--
-- Name: unidadeembarque unidadeembarque_codnbs_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarque
    ADD CONSTRAINT unidadeembarque_codnbs_fkey FOREIGN KEY (codnbs) REFERENCES public.nbs(codnbs);


--
-- Name: unidadeembarque unidadeembarque_codunidadeembarqueprincipal_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarque
    ADD CONSTRAINT unidadeembarque_codunidadeembarqueprincipal_fkey FOREIGN KEY (codunidadeembarqueprincipal) REFERENCES public.unidadeembarque(codunidadeembarque);


--
-- Name: unidadeembarqueseg unidadeembarqueseg_codunidadeembarque_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.unidadeembarqueseg
    ADD CONSTRAINT unidadeembarqueseg_codunidadeembarque_fkey FOREIGN KEY (codunidadeembarque) REFERENCES public.unidadeembarque(codunidadeembarque);


--
-- Name: usuario usuario_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuario
    ADD CONSTRAINT usuario_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: usuariosenhas usuariosenhas_codusuario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariosenhas
    ADD CONSTRAINT usuariosenhas_codusuario_fkey FOREIGN KEY (codusuario) REFERENCES public.usuario(codusuario);


--
-- Name: usuariotipodesc usuariotipodesc_codtipodesc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariotipodesc
    ADD CONSTRAINT usuariotipodesc_codtipodesc_fkey FOREIGN KEY (codtipodesc) REFERENCES public.tipodesc(codtipodesc);


--
-- Name: usuariotipodesc usuariotipodesc_codusuario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.usuariotipodesc
    ADD CONSTRAINT usuariotipodesc_codusuario_fkey FOREIGN KEY (codusuario) REFERENCES public.usuario(codusuario);


--
-- Name: veiculo veiculo_codcarreta2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codcarreta2_fkey FOREIGN KEY (codcarreta2) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculo veiculo_codcarreta3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codcarreta3_fkey FOREIGN KEY (codcarreta3) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculo veiculo_codcarreta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codcarreta_fkey FOREIGN KEY (codcarreta) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculo veiculo_codcidade_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codcidade_fkey FOREIGN KEY (codcidade) REFERENCES public.cidade(codcidade);


--
-- Name: veiculo veiculo_codcidadecarreta2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codcidadecarreta2_fkey FOREIGN KEY (codcidadecarreta2) REFERENCES public.cidade(codcidade);


--
-- Name: veiculo veiculo_codcidadecarreta3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codcidadecarreta3_fkey FOREIGN KEY (codcidadecarreta3) REFERENCES public.cidade(codcidade);


--
-- Name: veiculo veiculo_codcidadecarreta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codcidadecarreta_fkey FOREIGN KEY (codcidadecarreta) REFERENCES public.cidade(codcidade);


--
-- Name: veiculo veiculo_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: veiculo veiculo_codclientevenda_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codclientevenda_fkey FOREIGN KEY (codclientevenda) REFERENCES public.cliente(codcliente);


--
-- Name: veiculo veiculo_codcor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codcor_fkey FOREIGN KEY (codcor) REFERENCES public.cor(codcor);


--
-- Name: veiculo veiculo_codcorcarreta2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codcorcarreta2_fkey FOREIGN KEY (codcorcarreta2) REFERENCES public.cor(codcor);


--
-- Name: veiculo veiculo_codcorcarreta3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codcorcarreta3_fkey FOREIGN KEY (codcorcarreta3) REFERENCES public.cor(codcor);


--
-- Name: veiculo veiculo_codcorcarreta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codcorcarreta_fkey FOREIGN KEY (codcorcarreta) REFERENCES public.cor(codcor);


--
-- Name: veiculo veiculo_codfornecedorcompra_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codfornecedorcompra_fkey FOREIGN KEY (codfornecedorcompra) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: veiculo veiculo_codmodelo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codmodelo_fkey FOREIGN KEY (codmodelo) REFERENCES public.modeloveic(codmodelo);


--
-- Name: veiculo veiculo_codmodelocarreta2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codmodelocarreta2_fkey FOREIGN KEY (codmodelocarreta2) REFERENCES public.modeloveic(codmodelo);


--
-- Name: veiculo veiculo_codmodelocarreta3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codmodelocarreta3_fkey FOREIGN KEY (codmodelocarreta3) REFERENCES public.modeloveic(codmodelo);


--
-- Name: veiculo veiculo_codmodelocarreta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codmodelocarreta_fkey FOREIGN KEY (codmodelocarreta) REFERENCES public.modeloveic(codmodelo);


--
-- Name: veiculo veiculo_codmotorista2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codmotorista2_fkey FOREIGN KEY (codmotorista2) REFERENCES public.motorista(codmotorista);


--
-- Name: veiculo veiculo_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: veiculo veiculo_codmotoristavenda_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codmotoristavenda_fkey FOREIGN KEY (codmotoristavenda) REFERENCES public.motorista(codmotorista);


--
-- Name: veiculo veiculo_codnegocio_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codnegocio_fkey FOREIGN KEY (codnegocio) REFERENCES public.negocio(codnegocio);


--
-- Name: veiculo veiculo_codpropcarreta2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codpropcarreta2_fkey FOREIGN KEY (codpropcarreta2) REFERENCES public.proprietario(codproprietario);


--
-- Name: veiculo veiculo_codpropcarreta3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codpropcarreta3_fkey FOREIGN KEY (codpropcarreta3) REFERENCES public.proprietario(codproprietario);


--
-- Name: veiculo veiculo_codpropcarreta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codpropcarreta_fkey FOREIGN KEY (codpropcarreta) REFERENCES public.proprietario(codproprietario);


--
-- Name: veiculo veiculo_codpropcertifcar2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codpropcertifcar2_fkey FOREIGN KEY (codpropcertifcar2) REFERENCES public.proprietario(codproprietario);


--
-- Name: veiculo veiculo_codpropcertifcar3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codpropcertifcar3_fkey FOREIGN KEY (codpropcertifcar3) REFERENCES public.proprietario(codproprietario);


--
-- Name: veiculo veiculo_codpropcertifcar4_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codpropcertifcar4_fkey FOREIGN KEY (codpropcertifcar4) REFERENCES public.proprietario(codproprietario);


--
-- Name: veiculo veiculo_codpropcertifcar_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codpropcertifcar_fkey FOREIGN KEY (codpropcertifcar) REFERENCES public.proprietario(codproprietario);


--
-- Name: veiculo veiculo_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculo
    ADD CONSTRAINT veiculo_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: veiculoacidente veiculoacidente_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoacidente
    ADD CONSTRAINT veiculoacidente_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: veiculoacidente veiculoacidente_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoacidente
    ADD CONSTRAINT veiculoacidente_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: veiculoacidente veiculoacidente_codnegocio_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoacidente
    ADD CONSTRAINT veiculoacidente_codnegocio_fkey FOREIGN KEY (codnegocio) REFERENCES public.negocio(codnegocio);


--
-- Name: veiculoacidente veiculoacidente_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoacidente
    ADD CONSTRAINT veiculoacidente_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculocl veiculocl_codtipodescturno_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculocl
    ADD CONSTRAINT veiculocl_codtipodescturno_fkey FOREIGN KEY (codtipodescturno) REFERENCES public.tipodesc(codtipodesc);


--
-- Name: veiculoclitem veiculoclitem_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoclitem
    ADD CONSTRAINT veiculoclitem_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: veiculocompart veiculocompart_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculocompart
    ADD CONSTRAINT veiculocompart_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculoconj veiculoconj_codcarreta2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoconj
    ADD CONSTRAINT veiculoconj_codcarreta2_fkey FOREIGN KEY (codcarreta2) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculoconj veiculoconj_codcarreta3_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoconj
    ADD CONSTRAINT veiculoconj_codcarreta3_fkey FOREIGN KEY (codcarreta3) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculoconj veiculoconj_codcarreta4_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoconj
    ADD CONSTRAINT veiculoconj_codcarreta4_fkey FOREIGN KEY (codcarreta4) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculoconj veiculoconj_codcarreta_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoconj
    ADD CONSTRAINT veiculoconj_codcarreta_fkey FOREIGN KEY (codcarreta) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculocontrato veiculocontrato_codcontrato_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculocontrato
    ADD CONSTRAINT veiculocontrato_codcontrato_fkey FOREIGN KEY (codcontrato) REFERENCES public.contrato(codcontrato);


--
-- Name: veiculocontrato veiculocontrato_codfornecedor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculocontrato
    ADD CONSTRAINT veiculocontrato_codfornecedor_fkey FOREIGN KEY (codfornecedor) REFERENCES public.fornecedor(codfornecedor);


--
-- Name: veiculoitem veiculoitem_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoitem
    ADD CONSTRAINT veiculoitem_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: veiculoitemfer veiculoitemfer_coditem_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoitemfer
    ADD CONSTRAINT veiculoitemfer_coditem_fkey FOREIGN KEY (coditem) REFERENCES public.item(coditem);


--
-- Name: veiculoitemp veiculoitemp_codmotivo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoitemp
    ADD CONSTRAINT veiculoitemp_codmotivo_fkey FOREIGN KEY (codmotivo) REFERENCES public.motivo(codmotivo);


--
-- Name: veiculolib veiculolib_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculolib
    ADD CONSTRAINT veiculolib_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: veiculolib veiculolib_codproprietario_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculolib
    ADD CONSTRAINT veiculolib_codproprietario_fkey FOREIGN KEY (codproprietario) REFERENCES public.proprietario(codproprietario);


--
-- Name: veiculolib veiculolib_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculolib
    ADD CONSTRAINT veiculolib_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculolicensa veiculolicensa_codtipotransporte_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculolicensa
    ADD CONSTRAINT veiculolicensa_codtipotransporte_fkey FOREIGN KEY (codtipotransporte) REFERENCES public.tipotransporte(codtipotransporte);


--
-- Name: veiculolog veiculolog_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculolog
    ADD CONSTRAINT veiculolog_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: veiculomot veiculomot_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomot
    ADD CONSTRAINT veiculomot_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: veiculomot veiculomot_codmotorista_fkey1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomot
    ADD CONSTRAINT veiculomot_codmotorista_fkey1 FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: veiculomot veiculomot_codmotorista_fkey2; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomot
    ADD CONSTRAINT veiculomot_codmotorista_fkey2 FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: veiculomot veiculomot_codmotorista_fkey3; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomot
    ADD CONSTRAINT veiculomot_codmotorista_fkey3 FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: veiculomot veiculomot_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomot
    ADD CONSTRAINT veiculomot_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculomot veiculomot_codveiculo_fkey1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomot
    ADD CONSTRAINT veiculomot_codveiculo_fkey1 FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculomot veiculomot_codveiculo_fkey2; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomot
    ADD CONSTRAINT veiculomot_codveiculo_fkey2 FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculomot veiculomot_codveiculo_fkey3; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomot
    ADD CONSTRAINT veiculomot_codveiculo_fkey3 FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculomov veiculomov_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomov
    ADD CONSTRAINT veiculomov_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: veiculomov veiculomov_codmotivo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomov
    ADD CONSTRAINT veiculomov_codmotivo_fkey FOREIGN KEY (codmotivo) REFERENCES public.motivo(codmotivo);


--
-- Name: veiculomov veiculomov_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomov
    ADD CONSTRAINT veiculomov_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: veiculomov veiculomov_codnegocio_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomov
    ADD CONSTRAINT veiculomov_codnegocio_fkey FOREIGN KEY (codnegocio) REFERENCES public.negocio(codnegocio);


--
-- Name: veiculomov veiculomov_codtipoveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomov
    ADD CONSTRAINT veiculomov_codtipoveiculo_fkey FOREIGN KEY (codtipoveiculo) REFERENCES public.tipoveiculo(codtipoveiculo);


--
-- Name: veiculomov veiculomov_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomov
    ADD CONSTRAINT veiculomov_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculomulta veiculomulta_codmotorista_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomulta
    ADD CONSTRAINT veiculomulta_codmotorista_fkey FOREIGN KEY (codmotorista) REFERENCES public.motorista(codmotorista);


--
-- Name: veiculomulta veiculomulta_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculomulta
    ADD CONSTRAINT veiculomulta_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: veiculoseguro veiculoseguro_codveiculoanterior_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.veiculoseguro
    ADD CONSTRAINT veiculoseguro_codveiculoanterior_fkey FOREIGN KEY (codveiculoanterior) REFERENCES public.veiculo(codveiculo);


--
-- Name: visitante visitante_codcargo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitante
    ADD CONSTRAINT visitante_codcargo_fkey FOREIGN KEY (codcargo) REFERENCES public.cargo(codcargo);


--
-- Name: visitantelog visitantelog_codveiculo_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.visitantelog
    ADD CONSTRAINT visitantelog_codveiculo_fkey FOREIGN KEY (codveiculo) REFERENCES public.veiculo(codveiculo);


--
-- Name: volume volume_codcliente_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.volume
    ADD CONSTRAINT volume_codcliente_fkey FOREIGN KEY (codcliente) REFERENCES public.cliente(codcliente);


--
-- Name: volume volume_codconhecimentoocorrencia_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.volume
    ADD CONSTRAINT volume_codconhecimentoocorrencia_fkey FOREIGN KEY (codconhecimentoocorrencia) REFERENCES public.conhecimentoocorrencia(codconhecimentoocorrencia);


--
-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: postgres
--

REVOKE USAGE ON SCHEMA public FROM PUBLIC;
GRANT ALL ON SCHEMA public TO PUBLIC;


--
-- PostgreSQL database dump complete
--

