--
-- PostgreSQL database dump
--

-- Dumped from database version 12.2
-- Dumped by pg_dump version 12.3

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_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: autoriasBIU(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public."autoriasBIU"() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
declare
  vdias smallint;
begin
  select current_date-MAX(dtpublicacao) into vdias
         from livros inner join autorias
                     on livros.pklivro=autorias.fklivro
         where autorias.fkautor=new.fkautor
         group by autorias.ceautor
         order by autorias.ceautor;
  if ( vdias<731 )
  then
    raise exception 'Autor (%) publicou a menos de 2 anos.',new.fkautor;
    return null;
else
    return new;
  end if;
end;
$$;


ALTER FUNCTION public."autoriasBIU"() OWNER TO postgres;

SET default_tablespace = '';

SET default_table_access_method = heap;

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

CREATE TABLE public.agencias (
    fkbanco character(5) NOT NULL,
    pkagencia character(6) NOT NULL,
    txnomeagencia character varying(250) NOT NULL,
    fklogradouro integer,
    txcomplemento character varying(25),
    nucep character(8) DEFAULT NULL::bpchar,
    dtcadagencia date
);


ALTER TABLE public.agencias OWNER TO postgres;

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

COMMENT ON TABLE public.agencias IS 'Cadastro das agências bancárias onde os funcionários podem ter uma conta.';


--
-- Name: COLUMN agencias.fkbanco; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agencias.fkbanco IS 'Parte da PK Composta com pkagencia, FK para a tabela bancos.';


--
-- Name: COLUMN agencias.pkagencia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agencias.pkagencia IS 'Parte da PK Composta com fkbanco. Pode conter letras e números.';


--
-- Name: COLUMN agencias.txnomeagencia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agencias.txnomeagencia IS 'Nome da Agência (sem abreviações).';


--
-- Name: COLUMN agencias.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agencias.fklogradouro IS 'FK para a tabela logradouros da cidade onde se localiza a agência bancária.';


--
-- Name: COLUMN agencias.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agencias.txcomplemento IS 'Texto com o complemento do logradouro comercial do cliente (número, andar, etc.).';


--
-- Name: COLUMN agencias.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agencias.nucep IS 'Número do CEP (somente números)';


--
-- Name: COLUMN agencias.dtcadagencia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agencias.dtcadagencia IS 'Data de geração do registro.';


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

CREATE TABLE public.agenciastels (
    pkagenciatel smallint NOT NULL,
    fkbanco character(3) NOT NULL,
    fkagencia character(6) NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    txnomecontato character varying(30),
    dtcadagenciatel date
);


ALTER TABLE public.agenciastels OWNER TO postgres;

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

COMMENT ON TABLE public.agenciastels IS 'Registro dos telefones de cada autor de publicação.';


--
-- Name: COLUMN agenciastels.pkagenciatel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agenciastels.pkagenciatel IS 'PK da tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN agenciastels.fkbanco; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agenciastels.fkbanco IS 'FK (composta) para a tabela agencias.';


--
-- Name: COLUMN agenciastels.fkagencia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agenciastels.fkagencia IS 'FK (composta) para a tabela agencias.';


--
-- Name: COLUMN agenciastels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agenciastels.fktipotelefone IS 'FK para a tabela telefonestipos';


--
-- Name: COLUMN agenciastels.txnomecontato; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.agenciastels.txnomecontato IS 'Nome de uma pessoa que atende como contato no telefone.';


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

CREATE TABLE public.aplicacaodascontas (
    pknuaplicacaodaconta smallint NOT NULL,
    fkaplicacaofinanceira smallint NOT NULL,
    fkagencia character(6) NOT NULL,
    fkconta character(6) NOT NULL,
    vltaxaaplicacaoconta double precision NOT NULL,
    vlsaldo real NOT NULL,
    dtlancamentoinicial date NOT NULL,
    dtcadaplicconta date NOT NULL
);


ALTER TABLE public.aplicacaodascontas OWNER TO postgres;

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

COMMENT ON TABLE public.aplicacaodascontas IS 'Registro das aplicações financeiras de cada conta de funcionarios. É o desmembramento de um relacionamento N:M. Tem uma Chave candidata composta.';


--
-- Name: COLUMN aplicacaodascontas.pknuaplicacaodaconta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacaodascontas.pknuaplicacaodaconta IS 'PK da Tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN aplicacaodascontas.fkaplicacaofinanceira; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacaodascontas.fkaplicacaofinanceira IS 'FK para a tabela aplicacoesfinanceiras.';


--
-- Name: COLUMN aplicacaodascontas.fkagencia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacaodascontas.fkagencia IS 'FK (composta) da tabela Contas (das Agências de Bancos - pode conter letras).';


--
-- Name: COLUMN aplicacaodascontas.fkconta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacaodascontas.fkconta IS 'FK (composta) da tabela Contas (das Agências de Bancos - pode ter letras).';


--
-- Name: COLUMN aplicacaodascontas.vltaxaaplicacaoconta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacaodascontas.vltaxaaplicacaoconta IS 'Valor da Taxa de Retorno da Aplicação na conta.';


--
-- Name: COLUMN aplicacaodascontas.vlsaldo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacaodascontas.vlsaldo IS 'Valor da Aplicação da conta.';


--
-- Name: COLUMN aplicacaodascontas.dtlancamentoinicial; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacaodascontas.dtlancamentoinicial IS 'Data de lançamento inicial de valor na aplicação financeira da conta.';


--
-- Name: COLUMN aplicacaodascontas.dtcadaplicconta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacaodascontas.dtcadaplicconta IS 'Data de geração do registro';


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

CREATE TABLE public.aplicacoesfinanceiras (
    pkaplicacaofinanceira smallint NOT NULL,
    txnomeaplicacao character varying(250) NOT NULL,
    txregrasdaaplicacao text,
    vlmintaxaderetorno double precision,
    vlmaxtaxaderetorno double precision,
    dtcadaplicfinanc date
);


ALTER TABLE public.aplicacoesfinanceiras OWNER TO postgres;

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

COMMENT ON TABLE public.aplicacoesfinanceiras IS 'Cadastro de aplicações financeiras que podem ser feitas para as contas de funcionarios.';


--
-- Name: COLUMN aplicacoesfinanceiras.pkaplicacaofinanceira; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacoesfinanceiras.pkaplicacaofinanceira IS 'PK da Tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN aplicacoesfinanceiras.txnomeaplicacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacoesfinanceiras.txnomeaplicacao IS 'Nome da aplicação financeira';


--
-- Name: COLUMN aplicacoesfinanceiras.txregrasdaaplicacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacoesfinanceiras.txregrasdaaplicacao IS 'Descrição detalhada das regras de como fazer a aplicação financeira: saldo inicial, datas limites e formas de recuperação.';


--
-- Name: COLUMN aplicacoesfinanceiras.vlmintaxaderetorno; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacoesfinanceiras.vlmintaxaderetorno IS 'Valor mínimo da Taxa de Retorno da Aplicação Financeira.';


--
-- Name: COLUMN aplicacoesfinanceiras.vlmaxtaxaderetorno; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacoesfinanceiras.vlmaxtaxaderetorno IS 'Valor máximo da Taxa de Retorno da Aplicação Financeira.';


--
-- Name: COLUMN aplicacoesfinanceiras.dtcadaplicfinanc; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.aplicacoesfinanceiras.dtcadaplicfinanc IS 'Data de geração do registro';


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

CREATE TABLE public.areaestudo (
    pkareaestudo smallint NOT NULL,
    txnomearea character varying(250) NOT NULL,
    txdescricaoarea text,
    dtcadareaestudo date NOT NULL
);


ALTER TABLE public.areaestudo OWNER TO postgres;

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

COMMENT ON TABLE public.areaestudo IS 'Cadastro das áreas de estudo de interesse geral, tais como EXATAS, HUMANAS, etc., e suas subdivisões.';


--
-- Name: COLUMN areaestudo.pkareaestudo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudo.pkareaestudo IS 'PK da Tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN areaestudo.txnomearea; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudo.txnomearea IS 'Nome da area de estudo (ou área de conhecimento).';


--
-- Name: COLUMN areaestudo.txdescricaoarea; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudo.txdescricaoarea IS 'Descrição detalhada de uma Área de Estudo (ou área de conhecimento).';


--
-- Name: COLUMN areaestudo.dtcadareaestudo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudo.dtcadareaestudo IS 'Data de geração do registro.';


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

CREATE TABLE public.areaestudocursos (
    pkareaestcurso smallint NOT NULL,
    fkcurso smallint NOT NULL,
    fkareaestudo smallint NOT NULL,
    dtcadareaestcurso date NOT NULL
);


ALTER TABLE public.areaestudocursos OWNER TO postgres;

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

COMMENT ON TABLE public.areaestudocursos IS 'Registro das áreas de estudos de cada curso. É o desmembramento de um relacionamento N:M.';


--
-- Name: COLUMN areaestudocursos.pkareaestcurso; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudocursos.pkareaestcurso IS 'PK da Tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN areaestudocursos.fkcurso; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudocursos.fkcurso IS 'Parte da CC (com fkareaestudo), FK para a tabela Cursos.';


--
-- Name: COLUMN areaestudocursos.fkareaestudo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudocursos.fkareaestudo IS 'Parte da CC (com fkcurso), FK para a tabela Áreas de Estudos (areaestudos).';


--
-- Name: COLUMN areaestudocursos.dtcadareaestcurso; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudocursos.dtcadareaestcurso IS 'Data de geração do registro.';


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

CREATE TABLE public.areaestudodisciplinas (
    pkareaestdisciplina smallint NOT NULL,
    fkdisciplina smallint NOT NULL,
    fkareaestudo smallint NOT NULL,
    dtcadareaestdisc date NOT NULL
);


ALTER TABLE public.areaestudodisciplinas OWNER TO postgres;

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

COMMENT ON TABLE public.areaestudodisciplinas IS 'Registro das áreas de estudo de cada disciplina de curso. É o desmembramento de um relacionamento N:M.';


--
-- Name: COLUMN areaestudodisciplinas.pkareaestdisciplina; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudodisciplinas.pkareaestdisciplina IS 'PK da Tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN areaestudodisciplinas.fkdisciplina; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudodisciplinas.fkdisciplina IS 'Parte da CC (com fkareaestudo), FK para a Tabela Disciplinas.';


--
-- Name: COLUMN areaestudodisciplinas.fkareaestudo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudodisciplinas.fkareaestudo IS 'Parte da CC (com fkdisciplina), FK para a tabela Áreas de Estudos (areaestudos).';


--
-- Name: COLUMN areaestudodisciplinas.dtcadareaestdisc; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudodisciplinas.dtcadareaestdisc IS 'Data de geração do registro.';


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

CREATE TABLE public.areaestudolivros (
    pkareaestlivro smallint NOT NULL,
    fklivro smallint NOT NULL,
    fkareaestudo smallint NOT NULL,
    nugrauinfluencia numeric(3,0) DEFAULT NULL::numeric,
    dtcadareaestlivro date NOT NULL
);


ALTER TABLE public.areaestudolivros OWNER TO postgres;

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

COMMENT ON TABLE public.areaestudolivros IS 'Registro das áreas de estudos de cada livro. É o desmembramento de um relacionamento N:M.';


--
-- Name: COLUMN areaestudolivros.pkareaestlivro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudolivros.pkareaestlivro IS 'PK da Tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN areaestudolivros.fklivro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudolivros.fklivro IS 'Parte da CC (com fkareaestudo), FK para a tabela livros.';


--
-- Name: COLUMN areaestudolivros.fkareaestudo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudolivros.fkareaestudo IS 'Parte da CC (com fklivro), FK para tabela Áreas de Estudos (areaestudos).';


--
-- Name: COLUMN areaestudolivros.nugrauinfluencia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudolivros.nugrauinfluencia IS 'Percentagem de cobertura da Área de Estudo no livro (num. inteiro)';


--
-- Name: COLUMN areaestudolivros.dtcadareaestlivro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.areaestudolivros.dtcadareaestlivro IS 'Data de geração do registro.';


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

CREATE TABLE public.armazens (
    pkarmazem smallint NOT NULL,
    txnomearmazem character varying(50) NOT NULL,
    txdescricaogeral character varying(500),
    fklogradouro smallint DEFAULT NULL::numeric,
    txcomplemento character varying(50) DEFAULT NULL::character varying,
    fkcliente smallint NOT NULL,
    nutelefone character(12) DEFAULT NULL::bpchar,
    nucep character(8) DEFAULT NULL::bpchar,
    qtarea double precision NOT NULL,
    dtcadarmazem date NOT NULL
);


ALTER TABLE public.armazens OWNER TO postgres;

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

COMMENT ON TABLE public.armazens IS 'Cadastro dos Armazens dos clientes para onde as vendas registradas por um funcionario podem ser entregues.';


--
-- Name: COLUMN armazens.pkarmazem; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.armazens.pkarmazem IS 'Pk da Tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN armazens.txnomearmazem; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.armazens.txnomearmazem IS 'Nome curto ou usual do Armazem. Como ele é identificado informalmente.';


--
-- Name: COLUMN armazens.txdescricaogeral; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.armazens.txdescricaogeral IS 'Texto com descrição completa do armazém (capacidade, pé direito médio, etc.).';


--
-- Name: COLUMN armazens.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.armazens.fklogradouro IS 'FK indicando o logradouro onde se localiza o armazém.';


--
-- Name: COLUMN armazens.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.armazens.txcomplemento IS 'Texto com o complemento do logradouro da agência bancária (número, andar, etc.)';


--
-- Name: COLUMN armazens.fkcliente; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.armazens.fkcliente IS 'FK indicando o cliente que é dono ou aluga o armazém.';


--
-- Name: COLUMN armazens.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.armazens.nutelefone IS 'Número de telefone. Formato OP-DD-TTTT-RRRR, sem o ZERO no início, só numeros.';


--
-- Name: COLUMN armazens.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.armazens.nucep IS 'Número do CEP (somente números).';


--
-- Name: COLUMN armazens.qtarea; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.armazens.qtarea IS 'Número inteiro indicando a área total.';


--
-- Name: COLUMN armazens.dtcadarmazem; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.armazens.dtcadarmazem IS 'Data de geração do registro.';


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

CREATE TABLE public.atividades (
    pkatividade smallint NOT NULL,
    txnomeatividade character varying(50) NOT NULL,
    txdescricao character varying(500) NOT NULL,
    dtcadatividade date NOT NULL
);


ALTER TABLE public.atividades OWNER TO postgres;

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

COMMENT ON TABLE public.atividades IS 'Cadastro com as atividades profissionais desempenhadas por um funcionário.';


--
-- Name: COLUMN atividades.pkatividade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atividades.pkatividade IS 'PK da Tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN atividades.txnomeatividade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atividades.txnomeatividade IS 'Nome curto ou usual.';


--
-- Name: COLUMN atividades.txdescricao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atividades.txdescricao IS 'Descrição detalhada e completa de uma atividade profissional.';


--
-- Name: COLUMN atividades.dtcadatividade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atividades.dtcadatividade IS 'Data de Geração do Registro';


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

CREATE TABLE public.atribuicoes (
    pkatribuicao smallint NOT NULL,
    fkprofessor smallint NOT NULL,
    fkdisciplina smallint NOT NULL,
    qthorasatribuidas numeric(5,0) NOT NULL,
    dtatribuicao date NOT NULL,
    dtcadatribuicoes date
);


ALTER TABLE public.atribuicoes OWNER TO postgres;

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

COMMENT ON TABLE public.atribuicoes IS 'Registro dos Professores de cada uma da Disciplinas. É o desmembramento do relacionamento N:M. Tem a CC composta.';


--
-- Name: COLUMN atribuicoes.pkatribuicao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atribuicoes.pkatribuicao IS 'PK da tabela.';


--
-- Name: COLUMN atribuicoes.fkprofessor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atribuicoes.fkprofessor IS 'Parte da CC Composta com fkdisciplina, FK indicando o código do professor.';


--
-- Name: COLUMN atribuicoes.fkdisciplina; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atribuicoes.fkdisciplina IS 'Parte da CC Composta com fkprofessor, FK indicando o código da disciplina.';


--
-- Name: COLUMN atribuicoes.qthorasatribuidas; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atribuicoes.qthorasatribuidas IS 'Quantidade de horas de uma disciplina atribuídas ao professor para a disciplina.';


--
-- Name: COLUMN atribuicoes.dtatribuicao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atribuicoes.dtatribuicao IS 'Data de atribuição da disciplina ao professor';


--
-- Name: COLUMN atribuicoes.dtcadatribuicoes; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atribuicoes.dtcadatribuicoes IS 'Data de geração do registro.';


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

CREATE TABLE public.atuacoes (
    pkatuacao smallint NOT NULL,
    fktarefaprojeto smallint NOT NULL,
    fkfuncionario smallint NOT NULL,
    dtinicio date DEFAULT '2014-04-25'::date NOT NULL,
    dttermino date,
    qttempoduracao numeric(5,0) NOT NULL,
    dtcadatuacao date NOT NULL
);


ALTER TABLE public.atuacoes OWNER TO postgres;

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

COMMENT ON TABLE public.atuacoes IS 'Registro das atuações profissionais dos funcionários nos projetos. É um desmembramento de um N:M e tem uma CCK composta.';


--
-- Name: COLUMN atuacoes.pkatuacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atuacoes.pkatuacao IS 'PK da tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN atuacoes.fktarefaprojeto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atuacoes.fktarefaprojeto IS 'Parte da CC Composta com fkfuncionario e dtinicio, FK para a tabela tarefasprojetos.';


--
-- Name: COLUMN atuacoes.fkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atuacoes.fkfuncionario IS 'Parte da CC Composta com fktarefaprojeto e dtinicio, FK para tabela funcionários.';


--
-- Name: COLUMN atuacoes.dtinicio; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atuacoes.dtinicio IS 'Parte da CC Composta com fkfuncionario e fktarefaprojeto, é a Data de início de atuação do Funcionário em uma tarefa de um projeto.';


--
-- Name: COLUMN atuacoes.dttermino; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atuacoes.dttermino IS 'Data de término de atuação do funcionário em uma tarefa de um projeto.';


--
-- Name: COLUMN atuacoes.qttempoduracao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atuacoes.qttempoduracao IS 'Quantidade de horas de participação do funcionário em uma tarefa de um projeto.';


--
-- Name: COLUMN atuacoes.dtcadatuacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.atuacoes.dtcadatuacao IS 'Data de geração do registro.';


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

CREATE TABLE public.autores (
    pkautor smallint NOT NULL,
    txnomeautor character(90) NOT NULL,
    fklogradouro smallint DEFAULT NULL::numeric,
    txcomplemento character varying(25) DEFAULT NULL::character varying,
    nucep character(8) NOT NULL,
    dtnascimento date NOT NULL,
    dtcadautor date NOT NULL
);


ALTER TABLE public.autores OWNER TO postgres;

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

COMMENT ON TABLE public.autores IS 'Cadastro dos autores de alguma forma de publicação de conhecimento. Na maioria dos casos são autores de livros.';


--
-- Name: COLUMN autores.pkautor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autores.pkautor IS 'PK da Tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN autores.txnomeautor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autores.txnomeautor IS 'Nome completo do autor.';


--
-- Name: COLUMN autores.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autores.fklogradouro IS 'FK para a tabela logradouros da cidade residência do autor.';


--
-- Name: COLUMN autores.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autores.txcomplemento IS 'Texto com o complemento do logradouro de residência do autor (número, andar, etc.)';


--
-- Name: COLUMN autores.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autores.nucep IS 'Número do CEP (somente números).';


--
-- Name: COLUMN autores.dtnascimento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autores.dtnascimento IS 'Data de nascimento do autor';


--
-- Name: COLUMN autores.dtcadautor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autores.dtcadautor IS 'Data de geração do registro.';


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

CREATE TABLE public.autorestels (
    pkautortel smallint NOT NULL,
    fkautor smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    dtcadautortel date
);


ALTER TABLE public.autorestels OWNER TO postgres;

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

COMMENT ON TABLE public.autorestels IS 'Registro dos telefones de cada autor de publicação.';


--
-- Name: COLUMN autorestels.pkautortel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autorestels.pkautortel IS 'PK da Tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN autorestels.fkautor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autorestels.fkautor IS 'FK para a tabela autores';


--
-- Name: COLUMN autorestels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autorestels.fktipotelefone IS 'FK para a tabela telefonestipos.';


--
-- Name: COLUMN autorestels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autorestels.nutelefone IS 'Número do telefone (com operadora e DDD - somente os números)';


--
-- Name: COLUMN autorestels.dtcadautortel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autorestels.dtcadautortel IS 'Data de geração do registro.';


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

CREATE TABLE public.autorias (
    pkautoria smallint NOT NULL,
    fklivro smallint NOT NULL,
    fkautor smallint NOT NULL,
    dtcadautoria date NOT NULL
);


ALTER TABLE public.autorias OWNER TO postgres;

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

COMMENT ON TABLE public.autorias IS 'Registro dos autores de um livro. É o desmembramento de um relacionamento N:M. A Chave Primária é composta.';


--
-- Name: COLUMN autorias.pkautoria; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autorias.pkautoria IS 'PK da Tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN autorias.fklivro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autorias.fklivro IS 'Parte de uma CC composta com fkautor, FK apontando para a tabela Livros.';


--
-- Name: COLUMN autorias.fkautor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autorias.fkautor IS 'Parte de uma CC composta com fklivro, FK apontando para a tabela Autores';


--
-- Name: COLUMN autorias.dtcadautoria; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.autorias.dtcadautoria IS 'Data de geração do registro';


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

CREATE TABLE public.bairros (
    pkbairro smallint NOT NULL,
    txnomebairro character varying(120) NOT NULL,
    fkcidade smallint NOT NULL,
    dtcadbairro date NOT NULL
);


ALTER TABLE public.bairros OWNER TO postgres;

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

COMMENT ON TABLE public.bairros IS 'Cadastro dos bairros das cidades.';


--
-- Name: COLUMN bairros.pkbairro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bairros.pkbairro IS 'PK da Tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN bairros.txnomebairro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bairros.txnomebairro IS 'Texto com o nome do bairro da cidade.';


--
-- Name: COLUMN bairros.fkcidade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bairros.fkcidade IS 'FK para a tabela cidades onde se localiza o bairro.';


--
-- Name: COLUMN bairros.dtcadbairro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bairros.dtcadbairro IS 'Data de geração do registro.';


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

CREATE TABLE public.bairroslogradouros (
    pkbairrologradouro integer NOT NULL,
    fkbairro integer,
    fklogradouro integer,
    dtcadbairrologradouro date
);


ALTER TABLE public.bairroslogradouros OWNER TO postgres;

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

COMMENT ON TABLE public.bairroslogradouros IS 'Tabela de ligação entre logradouros e bairros.';


--
-- Name: COLUMN bairroslogradouros.pkbairrologradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bairroslogradouros.pkbairrologradouro IS 'PK da Tabela.';


--
-- Name: COLUMN bairroslogradouros.fkbairro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bairroslogradouros.fkbairro IS 'FK para a tabela bairros.';


--
-- Name: COLUMN bairroslogradouros.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bairroslogradouros.fklogradouro IS 'FK para a tabela logradouros.';


--
-- Name: COLUMN bairroslogradouros.dtcadbairrologradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bairroslogradouros.dtcadbairrologradouro IS 'Data de geração do registro.';


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

CREATE TABLE public.bancos (
    pkbanco character(5) NOT NULL,
    txnomebanco character varying(100) NOT NULL,
    dtfundacao date NOT NULL,
    nucnpjbanco character(15),
    txsigla character varying(25),
    aocompetencia character(1) NOT NULL,
    website character varying(250),
    aosituacao character(1),
    aohistorico character(1),
    fklogradourosede integer,
    txcomplemento character varying(50),
    nucepsede character(8),
    qtagencias smallint,
    aocapitalaberto character(1),
    dtcadbanco date NOT NULL
);


ALTER TABLE public.bancos OWNER TO postgres;

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

COMMENT ON TABLE public.bancos IS 'Cadastro dos bancos do sistema financeiro onde funcionarios podem ter contas.';


--
-- Name: COLUMN bancos.pkbanco; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.pkbanco IS 'PK da tabela. Código do Banco na Federação Brasileira de Bancos.';


--
-- Name: COLUMN bancos.txnomebanco; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.txnomebanco IS 'Nome completo do banco (razão social sem abreviações).';


--
-- Name: COLUMN bancos.dtfundacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.dtfundacao IS 'Data de fundação do banco.';


--
-- Name: COLUMN bancos.nucnpjbanco; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.nucnpjbanco IS 'Número do CNPJ do Banco.';


--
-- Name: COLUMN bancos.txsigla; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.txsigla IS 'Uma sigla que está associada ao banco.';


--
-- Name: COLUMN bancos.aocompetencia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.aocompetencia IS '(F)ederal, (E)stadual, (I)nterestadual, (D)istrital, (P)rivado, (C)ooperativo';


--
-- Name: COLUMN bancos.website; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.website IS 'Endereço do WebSite do banco (se houver).';


--
-- Name: COLUMN bancos.aosituacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.aosituacao IS 'Indica se o banco é P-Público, V-Privado, C-Cooperativo, E-Extinto, etc.';


--
-- Name: COLUMN bancos.aohistorico; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.aohistorico IS 'Indica se o Banco está: A-Ativo, C-Comprado, F-Fundido, L-Liquidado, etc.';


--
-- Name: COLUMN bancos.fklogradourosede; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.fklogradourosede IS 'FK para a tabela logradouros com o código do logradouro da sede do banco.';


--
-- Name: COLUMN bancos.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.txcomplemento IS 'Número do imóvel, localização referencial (outros imóveis próximos).';


--
-- Name: COLUMN bancos.nucepsede; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.nucepsede IS 'Número do CEP';


--
-- Name: COLUMN bancos.qtagencias; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.qtagencias IS 'Quantidade de agências do banco (estimativo).';


--
-- Name: COLUMN bancos.aocapitalaberto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.aocapitalaberto IS 'S|N – indicando se banco negocia participação com ações no mercado.';


--
-- Name: COLUMN bancos.dtcadbanco; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bancos.dtcadbanco IS 'Data de geração do registro';


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

CREATE TABLE public.bibliografia (
    pkbibliografia smallint NOT NULL,
    fkdisciplina smallint NOT NULL,
    fklivro smallint NOT NULL,
    aotipo character(1) NOT NULL,
    dtadocaodolivro date NOT NULL,
    dtcadbibliografia date
);


ALTER TABLE public.bibliografia OWNER TO postgres;

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

COMMENT ON TABLE public.bibliografia IS 'Registro dos livros da bilbiografia das disciplinas de um curso.É o desmembramento de um N:M. Tem a PK composta.';


--
-- Name: COLUMN bibliografia.pkbibliografia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bibliografia.pkbibliografia IS 'PK da Tabela. Número inteiro sequencial iniciando de 1.';


--
-- Name: COLUMN bibliografia.fkdisciplina; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bibliografia.fkdisciplina IS 'Parte da  (composta com fklivro) e FK para a tabela disciplinas.';


--
-- Name: COLUMN bibliografia.fklivro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bibliografia.fklivro IS 'Parte da CC (composta com fkdisciplina) e FK para tabela livros.';


--
-- Name: COLUMN bibliografia.aotipo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bibliografia.aotipo IS 'Letra indicando o tipo de bibliografia (B)ásico ou (C)omplementar';


--
-- Name: COLUMN bibliografia.dtadocaodolivro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.bibliografia.dtadocaodolivro IS 'Data que o livro passou a fazer parte da bibliografia da disciplina.';


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

CREATE TABLE public.capacitacoes (
    pkcapacitacao smallint NOT NULL,
    fkcurso smallint NOT NULL,
    fkfuncionario smallint NOT NULL,
    dtcapacitacao date NOT NULL,
    dtregistro date NOT NULL,
    dtcadcapacitacao date NOT NULL,
    nucertificado smallint
);


ALTER TABLE public.capacitacoes OWNER TO postgres;

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

COMMENT ON TABLE public.capacitacoes IS 'Registro dos cursos concluídos pelos funcionários. É o desmembramento do relacionamento N:M. Tem uma PK composta.';


--
-- Name: COLUMN capacitacoes.pkcapacitacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.capacitacoes.pkcapacitacao IS 'PK da tabela. Número inteiro sequencial iniciando de 1';


--
-- Name: COLUMN capacitacoes.fkcurso; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.capacitacoes.fkcurso IS 'Parte da UK (composta com fkfuncionario) e FK para a tabela cursos.';


--
-- Name: COLUMN capacitacoes.fkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.capacitacoes.fkfuncionario IS 'Parte da UK (composta com fkcurso) e FK para a tabela funcionário.';


--
-- Name: COLUMN capacitacoes.dtcapacitacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.capacitacoes.dtcapacitacao IS 'Data de capacitação do funcionário (quando terminou o curso).';


--
-- Name: COLUMN capacitacoes.dtregistro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.capacitacoes.dtregistro IS 'Data de registro do diploma do funcionário (em órgão público competente).';


--
-- Name: COLUMN capacitacoes.dtcadcapacitacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.capacitacoes.dtcadcapacitacao IS 'Data de geração do registro.';


--
-- Name: COLUMN capacitacoes.nucertificado; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.capacitacoes.nucertificado IS 'Número do Certificado emitido para o curso concluído.';


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

CREATE TABLE public.veiculos (
    pkveiculo smallint NOT NULL,
    ukplaca character(7),
    fktipoveiculo smallint NOT NULL,
    fkmodelo smallint DEFAULT NULL::numeric,
    fkfuncionario smallint,
    aotipocarro character(1),
    txapelido character varying(60),
    qtcapacidade smallint NOT NULL,
    nuanofabricacao character(4) NOT NULL,
    aocategoria character(1),
    dtcadveiculo date NOT NULL
);


ALTER TABLE public.veiculos OWNER TO postgres;

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

COMMENT ON TABLE public.veiculos IS 'Cadastro de Veículos. É uma superentidade com herança para carros e ônibus.';


--
-- Name: COLUMN veiculos.pkveiculo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculos.pkveiculo IS 'PK da tabela.';


--
-- Name: COLUMN veiculos.ukplaca; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculos.ukplaca IS 'Chave Candidata. Placa do veículo (somente letras e números).';


--
-- Name: COLUMN veiculos.fktipoveiculo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculos.fktipoveiculo IS 'FK para a tabela veiculotipos (Tipos de Veículos).';


--
-- Name: COLUMN veiculos.fkmodelo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculos.fkmodelo IS 'FK para a tabela veiculosmodelo (Modelos de Veículos).';


--
-- Name: COLUMN veiculos.fkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculos.fkfuncionario IS 'FK para a tabela funcionarios (funcionário proprietário do carro).';


--
-- Name: COLUMN veiculos.aotipocarro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculos.aotipocarro IS 'Indica o tipo do veículo do Funcionário (P=Principal e S=Secundário).';


--
-- Name: COLUMN veiculos.txapelido; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculos.txapelido IS 'Nome de apelido do ônibus';


--
-- Name: COLUMN veiculos.qtcapacidade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculos.qtcapacidade IS 'Quantidade de acentos no veículo.';


--
-- Name: COLUMN veiculos.nuanofabricacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculos.nuanofabricacao IS 'Ano de fabricação do veículo.';


--
-- Name: COLUMN veiculos.aocategoria; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculos.aocategoria IS 'C-Carro | O-Ônibus | A-Outro.';


--
-- Name: COLUMN veiculos.dtcadveiculo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculos.dtcadveiculo IS 'Data de Geração do Registro';


--
-- Name: carros; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.carros AS
 SELECT veiculos.pkveiculo AS pkcarro,
    veiculos.ukplaca,
    veiculos.fkmodelo,
    veiculos.fkfuncionario,
    veiculos.aotipocarro,
    veiculos.qtcapacidade,
    veiculos.nuanofabricacao,
    veiculos.dtcadveiculo AS dtcarro
   FROM public.veiculos
  WHERE (veiculos.aocategoria = 'C'::bpchar);


ALTER TABLE public.carros OWNER TO postgres;

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

CREATE TABLE public.cidades (
    pkcidade smallint NOT NULL,
    txnomecidade character varying(250) DEFAULT NULL::character varying,
    fkestadodopais character(2),
    txformaacesso text,
    qtpopulacao double precision,
    qtarea double precision,
    dtfundacao date,
    dtcadcidade date NOT NULL
);


ALTER TABLE public.cidades OWNER TO postgres;

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

COMMENT ON TABLE public.cidades IS 'Cadastro das cidades. A partir delas os bairros e por fim os logradouros.';


--
-- Name: COLUMN cidades.pkcidade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cidades.pkcidade IS 'PK da Tabela.';


--
-- Name: COLUMN cidades.txnomecidade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cidades.txnomecidade IS 'Nome completo da cidade';


--
-- Name: COLUMN cidades.fkestadodopais; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cidades.fkestadodopais IS 'FK para tabela estadosdopais (estados, comarcas ou condados de uma união federativa de estados).';


--
-- Name: COLUMN cidades.txformaacesso; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cidades.txformaacesso IS 'Descrição das formas de acesso à cidade (hidrovias, estrada, ferrovias, etc).';


--
-- Name: COLUMN cidades.qtpopulacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cidades.qtpopulacao IS 'População estimada';


--
-- Name: COLUMN cidades.qtarea; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cidades.qtarea IS 'Area total municipal.';


--
-- Name: COLUMN cidades.dtfundacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cidades.dtfundacao IS 'Data de Fundação da Cidade';


--
-- Name: COLUMN cidades.dtcadcidade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cidades.dtcadcidade IS 'Data de Geração do Registro';


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

CREATE TABLE public.clientes (
    pkcliente smallint NOT NULL,
    txnomecliente character varying(250) NOT NULL,
    txrazaosocial character varying(250) DEFAULT NULL::character varying,
    fklogradouro smallint DEFAULT NULL::numeric,
    txcomplemento character varying(25) DEFAULT NULL::character varying,
    nucep character(8) NOT NULL,
    vllimitecompra double precision NOT NULL,
    aosituacao character(1),
    dtcadcliente date NOT NULL
);
ALTER TABLE ONLY public.clientes ALTER COLUMN txnomecliente SET STORAGE MAIN;


ALTER TABLE public.clientes OWNER TO postgres;

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

COMMENT ON TABLE public.clientes IS 'Cadastro dos Clientes de uma empresa.';


--
-- Name: COLUMN clientes.pkcliente; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientes.pkcliente IS 'PK da Tabela';


--
-- Name: COLUMN clientes.txnomecliente; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientes.txnomecliente IS 'Nome usual completo (sem abreviações) do cliente.';


--
-- Name: COLUMN clientes.txrazaosocial; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientes.txrazaosocial IS 'Razão social completa do Cliente.';


--
-- Name: COLUMN clientes.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientes.fklogradouro IS 'FK com o código do logradouro comercial do cliente';


--
-- Name: COLUMN clientes.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientes.txcomplemento IS 'Texto com o complemento do logradouro comercial do cliente (número, andar, etc.)';


--
-- Name: COLUMN clientes.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientes.nucep IS 'Número do CEP (somente números)';


--
-- Name: COLUMN clientes.vllimitecompra; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientes.vllimitecompra IS 'Valor limite de compra para o cliente';


--
-- Name: COLUMN clientes.aosituacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientes.aosituacao IS 'Atributo Operacional indicando a Situação do Cliente (A-Ativo ou B-Bloqueado).';


--
-- Name: COLUMN clientes.dtcadcliente; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientes.dtcadcliente IS 'Data de geração do registro';


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

CREATE TABLE public.clientestels (
    pkclientetel numeric(5,0) NOT NULL,
    fkcliente smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    dtcadclientetel date,
    txnomecontato character varying(50)
);


ALTER TABLE public.clientestels OWNER TO postgres;

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

COMMENT ON TABLE public.clientestels IS 'Registros dos telefones de cada cliente.';


--
-- Name: COLUMN clientestels.pkclientetel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientestels.pkclientetel IS 'PK da Tabela. Número inteiro sequencial crescente de 1 em 1. ';


--
-- Name: COLUMN clientestels.fkcliente; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientestels.fkcliente IS 'FK para a tabela Clientes';


--
-- Name: COLUMN clientestels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientestels.fktipotelefone IS 'FK para a tabela tipos_telefones';


--
-- Name: COLUMN clientestels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientestels.nutelefone IS 'Número do telefone (com operadora, DDD e somente os números)';


--
-- Name: COLUMN clientestels.txnomecontato; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.clientestels.txnomecontato IS 'Nome de uma pessoa que atende como contato no telefone.';


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

CREATE TABLE public.consultas (
    pkconsulta smallint NOT NULL,
    fkfuncionario smallint NOT NULL,
    fkmedico smallint NOT NULL,
    dthoraconsulta timestamp without time zone NOT NULL,
    dthorarealizada timestamp without time zone,
    fkplanodesaude smallint NOT NULL,
    aosituacaoconsulta character(1) NOT NULL,
    dtcadconsulta date NOT NULL
);


ALTER TABLE public.consultas OWNER TO postgres;

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

COMMENT ON TABLE public.consultas IS 'Registros das consultas marcadas para os funcionarios.';


--
-- Name: COLUMN consultas.pkconsulta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.consultas.pkconsulta IS 'PK da tabela. Número inteiro sequencial crescente de 1 em 1.';


--
-- Name: COLUMN consultas.fkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.consultas.fkfuncionario IS 'FK para a Tabela funcionarios.';


--
-- Name: COLUMN consultas.fkmedico; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.consultas.fkmedico IS 'FK para a tabela medicos.';


--
-- Name: COLUMN consultas.dthoraconsulta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.consultas.dthoraconsulta IS 'Data e hora da consulta (programada).';


--
-- Name: COLUMN consultas.dthorarealizada; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.consultas.dthorarealizada IS 'Data e hora da realização da consulta';


--
-- Name: COLUMN consultas.fkplanodesaude; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.consultas.fkplanodesaude IS 'FK para a tabela planosdesaude';


--
-- Name: COLUMN consultas.aosituacaoconsulta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.consultas.aosituacaoconsulta IS 'Atributo Operacional indicando Agendada, Realizada ou Cancelada';


--
-- Name: COLUMN consultas.dtcadconsulta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.consultas.dtcadconsulta IS 'Data de geração do registro';


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

CREATE TABLE public.contas (
    fkbanco character(5) NOT NULL,
    fkagencia character(6) NOT NULL,
    pknuconta character(6) NOT NULL,
    fkfuncionario smallint,
    dtcadconta date,
    vlsaldo double precision
);


ALTER TABLE public.contas OWNER TO postgres;

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

COMMENT ON TABLE public.contas IS 'Cadastro das contas bancárias dos funcionarios. A PK desta tabela é composta: fkbanco,fkagencia,nuconta.';


--
-- Name: COLUMN contas.fkbanco; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.contas.fkbanco IS 'FK apontando para o Banco onde a cpnta existe.';


--
-- Name: COLUMN contas.fkagencia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.contas.fkagencia IS 'FK apontando para a Agencia (do Banco) onde existe a conta.';


--
-- Name: COLUMN contas.pknuconta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.contas.pknuconta IS 'Sequencia que identifica a conta (na agencia do banco). Junto com fkbanco e fkagencia forma a PK Composta.';


--
-- Name: COLUMN contas.fkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.contas.fkfuncionario IS 'FK apontando para o Funcionario que é o titular da conta.';


--
-- Name: COLUMN contas.dtcadconta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.contas.dtcadconta IS 'Data de criação do registro.';


--
-- Name: COLUMN contas.vlsaldo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.contas.vlsaldo IS 'Valor do saldo da conta atualizado a cada movimentação de valor.';


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

CREATE TABLE public.cores (
    pkcor smallint NOT NULL,
    txnomecor character varying(250) NOT NULL,
    nupantone integer NOT NULL,
    dtcadcor date NOT NULL
);


ALTER TABLE public.cores OWNER TO postgres;

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

COMMENT ON TABLE public.cores IS 'Cadastro de cores pantone usados para veículos.';


--
-- Name: COLUMN cores.pkcor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cores.pkcor IS 'PK da Tabela.';


--
-- Name: COLUMN cores.txnomecor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cores.txnomecor IS 'Nome completo da cor segundo a tabela Pantone';


--
-- Name: COLUMN cores.nupantone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cores.nupantone IS 'Número Pantone.';


--
-- Name: COLUMN cores.dtcadcor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cores.dtcadcor IS 'Data de geração do registro';


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

CREATE TABLE public.cursos (
    pkcurso smallint NOT NULL,
    txnomecurso character varying(250) NOT NULL,
    fkinstituicao smallint NOT NULL,
    qtcargahoraria smallint NOT NULL,
    dtcadcurso date NOT NULL
);


ALTER TABLE public.cursos OWNER TO postgres;

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

COMMENT ON TABLE public.cursos IS 'Cadastro de cursos de uma instituição.';


--
-- Name: COLUMN cursos.pkcurso; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cursos.pkcurso IS 'PK da Tabela';


--
-- Name: COLUMN cursos.txnomecurso; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cursos.txnomecurso IS 'Nome completo (sem abreviações).';


--
-- Name: COLUMN cursos.fkinstituicao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cursos.fkinstituicao IS 'FK apontando para a tabela Instituições de Ensino.';


--
-- Name: COLUMN cursos.qtcargahoraria; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cursos.qtcargahoraria IS 'Quantidade de Horas na carga horária do curso.';


--
-- Name: COLUMN cursos.dtcadcurso; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.cursos.dtcadcurso IS 'Data de Geração dos Registro.';


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

CREATE TABLE public.departamentos (
    pkdepto character(3) NOT NULL,
    txnomedepto character varying(36) NOT NULL,
    fkfuncionariogerente smallint DEFAULT NULL::numeric,
    fkdeptosuperior character(3) DEFAULT NULL::bpchar,
    txlocalizacao character varying(80) DEFAULT NULL::character varying,
    qtareatotal smallint DEFAULT NULL::numeric,
    dtcriacaodepto date,
    dtcaddepartamento date NOT NULL
);


ALTER TABLE public.departamentos OWNER TO postgres;

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

COMMENT ON TABLE public.departamentos IS 'Cadastro dos departamentos da empresa onde os funcionarios trabalham.';


--
-- Name: COLUMN departamentos.pkdepto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentos.pkdepto IS 'PK da Tabela. Sequencia de UMA letra e dois números, informados pelo usuário.';


--
-- Name: COLUMN departamentos.txnomedepto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentos.txnomedepto IS 'Nome usual completo (sem abreviações)';


--
-- Name: COLUMN departamentos.fkfuncionariogerente; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentos.fkfuncionariogerente IS 'FK para a tabela funcionarios (gerente do departamento).';


--
-- Name: COLUMN departamentos.fkdeptosuperior; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentos.fkdeptosuperior IS 'FK para a tabela departamentos. Código do departamento superior na empresa.';


--
-- Name: COLUMN departamentos.txlocalizacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentos.txlocalizacao IS 'Descrição da localização do departamento (Bloco, andar, sala,etc)';


--
-- Name: COLUMN departamentos.qtareatotal; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentos.qtareatotal IS 'Quantidade da área ocupada pelo departamento';


--
-- Name: COLUMN departamentos.dtcriacaodepto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentos.dtcriacaodepto IS 'Data da criação do departamento na empresa';


--
-- Name: COLUMN departamentos.dtcaddepartamento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentos.dtcaddepartamento IS 'Data de geração do registro.';


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

CREATE TABLE public.departamentostels (
    pkdeptotel smallint NOT NULL,
    fkdepto character(3) NOT NULL,
    fktelefonetipo smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    dtcaddeptotel date,
    txnomecontato character varying(30)
);


ALTER TABLE public.departamentostels OWNER TO postgres;

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

COMMENT ON TABLE public.departamentostels IS 'Registro com os telefones de cada departamento.';


--
-- Name: COLUMN departamentostels.pkdeptotel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentostels.pkdeptotel IS 'PK da tabela.';


--
-- Name: COLUMN departamentostels.fkdepto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentostels.fkdepto IS 'FK apontando para a tabela Departamentos';


--
-- Name: COLUMN departamentostels.fktelefonetipo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentostels.fktelefonetipo IS 'FK apontando para a tabela Tipos de Telefones.';


--
-- Name: COLUMN departamentostels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentostels.nutelefone IS 'Número do telefone com operadora+DDD+número sem traços ou parenteses.';


--
-- Name: COLUMN departamentostels.txnomecontato; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.departamentostels.txnomecontato IS 'Nome de uma pessoa que atende como contato no telefone.';


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

CREATE TABLE public.disciplinas (
    pkdisciplina smallint NOT NULL,
    fkcurso smallint NOT NULL,
    txnome character varying(250) NOT NULL,
    txementa character varying(250) DEFAULT NULL::character varying,
    qthoras smallint NOT NULL,
    dtcaddisciplina date NOT NULL,
    txcriterioavaliacao character varying(500)
);


ALTER TABLE public.disciplinas OWNER TO postgres;

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

COMMENT ON TABLE public.disciplinas IS 'Cadastro das disciplinas oferecidas em um curso';


--
-- Name: COLUMN disciplinas.pkdisciplina; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.disciplinas.pkdisciplina IS 'Pk da Tabela';


--
-- Name: COLUMN disciplinas.fkcurso; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.disciplinas.fkcurso IS 'FK apontando para a tabela cursos';


--
-- Name: COLUMN disciplinas.txnome; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.disciplinas.txnome IS 'Nome completo da Disciplina';


--
-- Name: COLUMN disciplinas.txementa; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.disciplinas.txementa IS 'Texto com a ementa disciplinar';


--
-- Name: COLUMN disciplinas.qthoras; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.disciplinas.qthoras IS 'Quantidade de horas-aulas (de 60 min.) que ocupa e disciplina.';


--
-- Name: COLUMN disciplinas.dtcaddisciplina; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.disciplinas.dtcaddisciplina IS 'Data de Geração do registro.';


--
-- Name: COLUMN disciplinas.txcriterioavaliacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.disciplinas.txcriterioavaliacao IS 'Texto com a descrição do critério de avaliação da disciplina.';


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

CREATE TABLE public.duplicatas (
    pkduplicata smallint NOT NULL,
    fknfvenda smallint NOT NULL,
    dtvencimento date NOT NULL,
    dtpagamento date,
    vlduplicata double precision,
    vldesconto double precision NOT NULL,
    vlliquido double precision NOT NULL,
    vlmulta double precision NOT NULL,
    dtcadduplicata date NOT NULL
);


ALTER TABLE public.duplicatas OWNER TO postgres;

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

COMMENT ON TABLE public.duplicatas IS 'Cadastro das Duplicatas que devem ser recebidas pelas vendas feitas em uma empresa.';


--
-- Name: COLUMN duplicatas.pkduplicata; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.duplicatas.pkduplicata IS 'PK da Tabela';


--
-- Name: COLUMN duplicatas.fknfvenda; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.duplicatas.fknfvenda IS 'FK apontando para a Nota Fiscal da qual se gera a Duplicata.';


--
-- Name: COLUMN duplicatas.dtvencimento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.duplicatas.dtvencimento IS 'Data de vencimento da duplicata.';


--
-- Name: COLUMN duplicatas.dtpagamento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.duplicatas.dtpagamento IS 'Data de pagamento da duplicata.';


--
-- Name: COLUMN duplicatas.vlduplicata; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.duplicatas.vlduplicata IS 'Valor da Duplicata.';


--
-- Name: COLUMN duplicatas.vldesconto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.duplicatas.vldesconto IS 'Valor de Desconto.';


--
-- Name: COLUMN duplicatas.vlliquido; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.duplicatas.vlliquido IS 'Valor Líquido da Duplicata.';


--
-- Name: COLUMN duplicatas.vlmulta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.duplicatas.vlmulta IS 'Valor da Multa.';


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

CREATE TABLE public.editoras (
    pkeditora smallint NOT NULL,
    txnomeeditora character(70) NOT NULL,
    txrazaosocial character varying(250) DEFAULT NULL::character varying,
    nucnpj character(16),
    fklogradouro smallint DEFAULT NULL::numeric,
    txcomplemento character varying(25) DEFAULT NULL::character varying,
    nucep character(8) DEFAULT NULL::bpchar,
    aoporteeditora character(1),
    aoabrangencia character(1),
    dtfundacao date,
    dtcadeditora date NOT NULL
);


ALTER TABLE public.editoras OWNER TO postgres;

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

COMMENT ON TABLE public.editoras IS 'Cadastro das Editoras de Livros, Revistas e/ou periódicos.';


--
-- Name: COLUMN editoras.pkeditora; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editoras.pkeditora IS 'PK da tabela.';


--
-- Name: COLUMN editoras.txnomeeditora; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editoras.txnomeeditora IS 'Nome usual da editora (sem abreviações ).';


--
-- Name: COLUMN editoras.txrazaosocial; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editoras.txrazaosocial IS 'Razão social completa.';


--
-- Name: COLUMN editoras.nucnpj; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editoras.nucnpj IS 'Número do CNPJ da Editora (somente números).';


--
-- Name: COLUMN editoras.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editoras.fklogradouro IS 'FK apontando para a tabela Logradouros.';


--
-- Name: COLUMN editoras.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editoras.txcomplemento IS 'Texto com o complemento do logradouro comercial do cliente (número, andar, etc.).';


--
-- Name: COLUMN editoras.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editoras.nucep IS 'Número do CEP (somente números)';


--
-- Name: COLUMN editoras.aoporteeditora; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editoras.aoporteeditora IS 'P|M|G – Porte da editora (Pequena|Média|Grande).';


--
-- Name: COLUMN editoras.aoabrangencia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editoras.aoabrangencia IS 'L|E|N|I - Abrangência da editora (Local|Estadual|Nacional|Internacional)';


--
-- Name: COLUMN editoras.dtfundacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editoras.dtfundacao IS 'Data de fundação da editora.';


--
-- Name: COLUMN editoras.dtcadeditora; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editoras.dtcadeditora IS 'Data de geração do registro';


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

CREATE TABLE public.editorastels (
    pkeditoratel smallint NOT NULL,
    fkeditora smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    txnomecontato character(30),
    dtcadeditoratel date
);


ALTER TABLE public.editorastels OWNER TO postgres;

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

COMMENT ON TABLE public.editorastels IS 'Registros de telefones de cada editora.';


--
-- Name: COLUMN editorastels.pkeditoratel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editorastels.pkeditoratel IS 'PK da Tabela.';


--
-- Name: COLUMN editorastels.fkeditora; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editorastels.fkeditora IS 'FK apontando para a Tabela Editoras.';


--
-- Name: COLUMN editorastels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editorastels.fktipotelefone IS 'FK apontando para a tabela tipos_telefones.';


--
-- Name: COLUMN editorastels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editorastels.nutelefone IS 'Número do telefone com operadora+DDD+número sem traços ou parenteses.';


--
-- Name: COLUMN editorastels.txnomecontato; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.editorastels.txnomecontato IS 'Nome de uma pessoa que atende como contato no telefone.';


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

CREATE TABLE public.empresas (
    pkempresa smallint NOT NULL,
    txnomeusual character varying(150) NOT NULL,
    txrazaosocial character varying(250) NOT NULL,
    nucnpj character(16),
    fklogradouro smallint DEFAULT NULL::numeric,
    txcomplemento character varying(25) DEFAULT NULL::character varying,
    nucep character(8) DEFAULT NULL::bpchar,
    fksetoratuacao smallint DEFAULT NULL::numeric,
    aoporteempresa character(1),
    dtfundacao date,
    dtcadempresa date NOT NULL
);


ALTER TABLE public.empresas OWNER TO postgres;

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

COMMENT ON TABLE public.empresas IS 'Cadastro de empresas onde os funcionarios trabalham ou trabalharam.';


--
-- Name: COLUMN empresas.pkempresa; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresas.pkempresa IS 'PK da Tabela.';


--
-- Name: COLUMN empresas.txnomeusual; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresas.txnomeusual IS 'Nome usual completo (sem abreviações).';


--
-- Name: COLUMN empresas.txrazaosocial; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresas.txrazaosocial IS 'Razão social completa';


--
-- Name: COLUMN empresas.nucnpj; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresas.nucnpj IS 'Número do CNPJ da Empresa (somente números).';


--
-- Name: COLUMN empresas.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresas.fklogradouro IS 'FK apontando para o logradouro da empresa';


--
-- Name: COLUMN empresas.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresas.txcomplemento IS 'Texto com o complemento do logradouro comercial do cliente (número, andar, etc.)';


--
-- Name: COLUMN empresas.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresas.nucep IS 'Número do CEP (somente números).';


--
-- Name: COLUMN empresas.fksetoratuacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresas.fksetoratuacao IS 'FK apontando  o setor de atuação da empresa.';


--
-- Name: COLUMN empresas.aoporteempresa; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresas.aoporteempresa IS 'P|M|G – Porte da empresa (Pequena | Média | Grande).';


--
-- Name: COLUMN empresas.dtfundacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresas.dtfundacao IS 'Data de fundação da empresa.';


--
-- Name: COLUMN empresas.dtcadempresa; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresas.dtcadempresa IS 'Data de geração do registro.';


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

CREATE TABLE public.empresastels (
    pkempresatel smallint NOT NULL,
    fkempresa smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    txnomecontato character varying(30),
    dtcadempresatel date
);


ALTER TABLE public.empresastels OWNER TO postgres;

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

COMMENT ON TABLE public.empresastels IS 'Registros dos telefones de cada empresa.';


--
-- Name: COLUMN empresastels.pkempresatel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresastels.pkempresatel IS 'PK da Tabela.';


--
-- Name: COLUMN empresastels.fkempresa; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresastels.fkempresa IS 'FK apontando para a tabela empresas.';


--
-- Name: COLUMN empresastels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresastels.fktipotelefone IS 'FK apontando para a tabela Tipos de Telefones';


--
-- Name: COLUMN empresastels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresastels.nutelefone IS 'Número do telefone (somente os números).';


--
-- Name: COLUMN empresastels.txnomecontato; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresastels.txnomecontato IS 'Nome de uma pessoa que atende como contato no telefone.';


--
-- Name: COLUMN empresastels.dtcadempresatel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.empresastels.dtcadempresatel IS 'Data de Geração do Registro';


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

CREATE TABLE public.especialidadesmedicas (
    pkespecialidade smallint NOT NULL,
    txnomeespecialidade character varying(200) NOT NULL,
    txdescricaoespecialidade text,
    dtcadespecmedica date NOT NULL
);


ALTER TABLE public.especialidadesmedicas OWNER TO postgres;

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

COMMENT ON TABLE public.especialidadesmedicas IS 'Cadastro das Especialidades Médicas.';


--
-- Name: COLUMN especialidadesmedicas.pkespecialidade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.especialidadesmedicas.pkespecialidade IS 'PK da Tabela.';


--
-- Name: COLUMN especialidadesmedicas.txnomeespecialidade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.especialidadesmedicas.txnomeespecialidade IS 'Nome usual completo (sem abreviações).';


--
-- Name: COLUMN especialidadesmedicas.txdescricaoespecialidade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.especialidadesmedicas.txdescricaoespecialidade IS 'Descrição completa das principais atribuições da especialidade (sem abreviações).';


--
-- Name: COLUMN especialidadesmedicas.dtcadespecmedica; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.especialidadesmedicas.dtcadespecmedica IS 'Data de geração do registro.';


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

CREATE TABLE public.estadosdauniao (
    pkestadouniao character(2) NOT NULL,
    txnome character varying(250) NOT NULL,
    txnomecapital character varying(250) NOT NULL,
    qtareatotal smallint,
    qtcidades smallint,
    qtpopulacao smallint,
    dtcadestado date NOT NULL
);


ALTER TABLE public.estadosdauniao OWNER TO postgres;

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

COMMENT ON TABLE public.estadosdauniao IS 'Cadastro dos Estados da República Federativa do Brasil';


--
-- Name: COLUMN estadosdauniao.pkestadouniao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.estadosdauniao.pkestadouniao IS 'PK da tabela. Sigla do estado da união como identificado no Brasil.';


--
-- Name: COLUMN estadosdauniao.txnome; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.estadosdauniao.txnome IS 'Nome (por extenso) do estado da união.';


--
-- Name: COLUMN estadosdauniao.txnomecapital; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.estadosdauniao.txnomecapital IS 'Nome da Capital do Estado';


--
-- Name: COLUMN estadosdauniao.qtareatotal; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.estadosdauniao.qtareatotal IS 'Área total (em Km2) do estado.';


--
-- Name: COLUMN estadosdauniao.qtcidades; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.estadosdauniao.qtcidades IS 'Quantidade de Cidades do estado.';


--
-- Name: COLUMN estadosdauniao.qtpopulacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.estadosdauniao.qtpopulacao IS 'Quantidade de pessoas que residem no estado';


--
-- Name: COLUMN estadosdauniao.dtcadestado; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.estadosdauniao.dtcadestado IS 'Data de Cadastro do Estado.';


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

CREATE TABLE public.fabricantes (
    pkfabricante smallint NOT NULL,
    txnome character varying(250) NOT NULL,
    txrazaosocial character varying(250) NOT NULL,
    nucnpj character(16),
    fklogradouro smallint DEFAULT NULL::numeric,
    txcomplemento character varying(25) DEFAULT NULL::character varying,
    nucep character(8) DEFAULT NULL::bpchar,
    fksetoratuacao smallint,
    aoportefabricante character(1),
    dtfundacao date,
    dtcadfabricante date NOT NULL
);


ALTER TABLE public.fabricantes OWNER TO postgres;

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

COMMENT ON TABLE public.fabricantes IS 'Cadastro dos Fabricantes.';


--
-- Name: COLUMN fabricantes.pkfabricante; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantes.pkfabricante IS 'PK da tabela.';


--
-- Name: COLUMN fabricantes.txnome; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantes.txnome IS 'Nome usual completo (sem abreviações).';


--
-- Name: COLUMN fabricantes.txrazaosocial; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantes.txrazaosocial IS 'Razão social completa.';


--
-- Name: COLUMN fabricantes.nucnpj; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantes.nucnpj IS 'Número do CNPJ do fabricante (somente números).';


--
-- Name: COLUMN fabricantes.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantes.fklogradouro IS 'FK para a tabela logradouros (logradouro do fabricante).';


--
-- Name: COLUMN fabricantes.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantes.txcomplemento IS 'Texto com o complemento do logradouro comercial do cliente (número, andar, etc.)';


--
-- Name: COLUMN fabricantes.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantes.nucep IS 'Número do CEP.';


--
-- Name: COLUMN fabricantes.fksetoratuacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantes.fksetoratuacao IS 'FK apontando  o setor de atuação da fabricante.';


--
-- Name: COLUMN fabricantes.aoportefabricante; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantes.aoportefabricante IS 'P|M|G – Porte do fabricante (Pequena | Média | Grande).';


--
-- Name: COLUMN fabricantes.dtfundacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantes.dtfundacao IS 'Data de fundação (criação da empresa) do fabricante.';


--
-- Name: COLUMN fabricantes.dtcadfabricante; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantes.dtcadfabricante IS 'Data de geração do registro.';


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

CREATE TABLE public.fabricantestels (
    pkfabricantetel smallint NOT NULL,
    fkfabricante smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    txnomecontato character varying(30),
    dtcadfabrictel date
);


ALTER TABLE public.fabricantestels OWNER TO postgres;

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

COMMENT ON TABLE public.fabricantestels IS 'Registros dos telefones dos fabricantes.';


--
-- Name: COLUMN fabricantestels.pkfabricantetel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantestels.pkfabricantetel IS 'PK da tabela.';


--
-- Name: COLUMN fabricantestels.fkfabricante; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantestels.fkfabricante IS 'FK para a tabela fabricantes.';


--
-- Name: COLUMN fabricantestels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantestels.fktipotelefone IS 'FK para a tabela telefonestipos';


--
-- Name: COLUMN fabricantestels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantestels.nutelefone IS 'Número do telefone com operadora e DDD (somente os números).';


--
-- Name: COLUMN fabricantestels.txnomecontato; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantestels.txnomecontato IS 'Nome de uma pessoa que atende como contato no telefone.';


--
-- Name: COLUMN fabricantestels.dtcadfabrictel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fabricantestels.dtcadfabrictel IS 'Data de geração do registro';


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

CREATE TABLE public.faturas (
    pkfatura smallint NOT NULL,
    fknunfcompra smallint,
    dtvencimento date,
    dtpagamento date,
    vlfatura double precision NOT NULL,
    vldesconto double precision NOT NULL,
    vlliquido double precision NOT NULL,
    vlmulta double precision NOT NULL,
    dtcadfatura date NOT NULL
);


ALTER TABLE public.faturas OWNER TO postgres;

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

COMMENT ON TABLE public.faturas IS 'Cadastro das faturas. A partir delas os bairros e por fim os logradouros.';


--
-- Name: COLUMN faturas.pkfatura; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.faturas.pkfatura IS 'PK da Tabela. Número inteiro sequencial crescente de 5 em 5.';


--
-- Name: COLUMN faturas.fknunfcompra; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.faturas.fknunfcompra IS 'FK apontando para a Nota Fiscal da qual se gera a fatura..';


--
-- Name: COLUMN faturas.dtvencimento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.faturas.dtvencimento IS 'Data de vencimento da fatura.';


--
-- Name: COLUMN faturas.dtpagamento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.faturas.dtpagamento IS 'Data de pagamento da Fatura.';


--
-- Name: COLUMN faturas.vlfatura; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.faturas.vlfatura IS 'Valor da Fatura.';


--
-- Name: COLUMN faturas.vldesconto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.faturas.vldesconto IS 'Valor de Desconto.';


--
-- Name: COLUMN faturas.vlliquido; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.faturas.vlliquido IS 'Valor Líquido da Fatura';


--
-- Name: COLUMN faturas.vlmulta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.faturas.vlmulta IS 'Valor da Multa por atraso de pagamento da Fatura.';


--
-- Name: COLUMN faturas.dtcadfatura; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.faturas.dtcadfatura IS 'Data de Geração do Registro';


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

CREATE TABLE public.feitospor (
    pkfeitospor smallint NOT NULL,
    fkoficina smallint NOT NULL,
    fkservico smallint NOT NULL,
    dtcadfeitopor date
);


ALTER TABLE public.feitospor OWNER TO postgres;

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

COMMENT ON TABLE public.feitospor IS 'Registros dos Serviços feitos pelas oficinas.';


--
-- Name: COLUMN feitospor.pkfeitospor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.feitospor.pkfeitospor IS 'PK da tabela. Número inteiro sequencial crescente de 5 em 5.';


--
-- Name: COLUMN feitospor.fkoficina; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.feitospor.fkoficina IS 'FK para tabela oficinas (que realiza um serviço).';


--
-- Name: COLUMN feitospor.fkservico; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.feitospor.fkservico IS 'FK para tabela serviços (prestados por uma oficina).';


--
-- Name: COLUMN feitospor.dtcadfeitopor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.feitospor.dtcadfeitopor IS 'Data de geração do registro.';


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

CREATE TABLE public.fornecedores (
    pkfornecedor smallint NOT NULL,
    txnome character varying(250) DEFAULT NULL::character varying,
    txrazaosocial character varying(250) DEFAULT NULL::character varying,
    nucnpj character(15),
    fklogradouro smallint DEFAULT NULL::numeric,
    txcomplemento character varying(25) DEFAULT NULL::character varying,
    nucep character(8) DEFAULT NULL::bpchar,
    nusedes numeric(3,0) DEFAULT NULL::numeric,
    vllimitecompra double precision NOT NULL,
    fksetoratuacao smallint,
    aoportefornecedor character(1),
    dtfundacao date,
    dtcadfornecedor date NOT NULL
);


ALTER TABLE public.fornecedores OWNER TO postgres;

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

COMMENT ON TABLE public.fornecedores IS 'Cadastro dos Fornecedores de uma empresa.';


--
-- Name: COLUMN fornecedores.pkfornecedor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedores.pkfornecedor IS 'PK da tabela.';


--
-- Name: COLUMN fornecedores.txnome; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedores.txnome IS 'Nome usual completo (sem abreviações)';


--
-- Name: COLUMN fornecedores.txrazaosocial; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedores.txrazaosocial IS 'Razão social completa.';


--
-- Name: COLUMN fornecedores.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedores.fklogradouro IS 'FK apontando  o logradouro do Fornecedor.';


--
-- Name: COLUMN fornecedores.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedores.txcomplemento IS 'Texto com o complemento do logradouro comercial do cliente (número, andar, etc.)';


--
-- Name: COLUMN fornecedores.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedores.nucep IS 'Número do CEP (somente números).';


--
-- Name: COLUMN fornecedores.nusedes; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedores.nusedes IS 'Número de sedes que o fornecedor possui (loja central e filiais).';


--
-- Name: COLUMN fornecedores.vllimitecompra; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedores.vllimitecompra IS 'Valor Limite para compra com o Fornecedor.';


--
-- Name: COLUMN fornecedores.fksetoratuacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedores.fksetoratuacao IS 'FK para a tabela setoresdeatuacao (setor de atuação do fornecedor).';


--
-- Name: COLUMN fornecedores.aoportefornecedor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedores.aoportefornecedor IS 'P|M|G – Porte do fornecedor (Pequena | Média | Grande).';


--
-- Name: COLUMN fornecedores.dtfundacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedores.dtfundacao IS 'Data de fundação do fornecedor.';


--
-- Name: COLUMN fornecedores.dtcadfornecedor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedores.dtcadfornecedor IS 'Data de geração do registro.';


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

CREATE TABLE public.fornecedorestels (
    pkfornecedortel smallint NOT NULL,
    fkfornecedor smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    txnomecontato character varying(30),
    dtcadfornecedortel date
);


ALTER TABLE public.fornecedorestels OWNER TO postgres;

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

COMMENT ON TABLE public.fornecedorestels IS 'Registro dos Telefones dos fornecedores.';


--
-- Name: COLUMN fornecedorestels.pkfornecedortel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedorestels.pkfornecedortel IS 'PK da tabela.';


--
-- Name: COLUMN fornecedorestels.fkfornecedor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedorestels.fkfornecedor IS 'FK apontando para a tabela fornecedores.';


--
-- Name: COLUMN fornecedorestels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedorestels.fktipotelefone IS 'FK apontando para a tabela tipos_telefones';


--
-- Name: COLUMN fornecedorestels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedorestels.nutelefone IS 'Número do telefone (somente números).';


--
-- Name: COLUMN fornecedorestels.txnomecontato; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecedorestels.txnomecontato IS 'Nomes das pessoas que atendem como contato no telefone.';


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

CREATE TABLE public.fornecimentos (
    pkfornecimento smallint NOT NULL,
    dtcadfornecimento date NOT NULL
);


ALTER TABLE public.fornecimentos OWNER TO postgres;

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

COMMENT ON TABLE public.fornecimentos IS 'Registro com os produtos fornecidos por cada fornecedor.';


--
-- Name: COLUMN fornecimentos.pkfornecimento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecimentos.pkfornecimento IS 'PK da Tabela. Número inteiro sequencial crescente de 5 em 5.';


--
-- Name: COLUMN fornecimentos.dtcadfornecimento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.fornecimentos.dtcadfornecimento IS 'Data de geração do registro.';


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

CREATE TABLE public.funcionarios (
    pkfuncionario smallint NOT NULL,
    txprenomes character varying(40) NOT NULL,
    txsobrenome character varying(20) NOT NULL,
    fkdepto character(3) DEFAULT NULL::bpchar,
    fkfuncao smallint DEFAULT NULL::numeric,
    fkniveleducacao smallint DEFAULT NULL::numeric,
    fklogradouro smallint DEFAULT NULL::numeric,
    txcomplemento character varying(25) DEFAULT NULL::character varying,
    nuramal character(4) DEFAULT NULL::bpchar,
    dtcontratacao date,
    aosexo character(1) DEFAULT NULL::bpchar,
    dtnascimento date,
    txresenha text,
    vlsalario double precision DEFAULT NULL::numeric,
    vlbonus double precision DEFAULT NULL::numeric,
    vlcomissao double precision DEFAULT NULL::numeric,
    nucep character(8) NOT NULL,
    dtcadfuncionario date NOT NULL
);


ALTER TABLE public.funcionarios OWNER TO postgres;

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

COMMENT ON TABLE public.funcionarios IS 'Cadastro dos Funcionários';


--
-- Name: COLUMN funcionarios.pkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.pkfuncionario IS 'Pk da Tabela.';


--
-- Name: COLUMN funcionarios.txprenomes; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.txprenomes IS 'Nomes do funcionário sem abreviações e sem o sobrenome.';


--
-- Name: COLUMN funcionarios.txsobrenome; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.txsobrenome IS 'Sobrenome completo (sem abreviações).';


--
-- Name: COLUMN funcionarios.fkdepto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.fkdepto IS 'FK apontando para a tabelas Departamentos.';


--
-- Name: COLUMN funcionarios.fkfuncao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.fkfuncao IS 'FK apontando para a tabela Funções.';


--
-- Name: COLUMN funcionarios.fkniveleducacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.fkniveleducacao IS 'FK com o código do nível de educação (escolaridade)';


--
-- Name: COLUMN funcionarios.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.fklogradouro IS 'FK com o código do Logradouro de moradia do Funcionário.';


--
-- Name: COLUMN funcionarios.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.txcomplemento IS 'Texto com o complemento do logradouro comercial do cliente (número, andar, etc.)';


--
-- Name: COLUMN funcionarios.nuramal; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.nuramal IS 'Número do ramal telefônico do funcionario.';


--
-- Name: COLUMN funcionarios.dtcontratacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.dtcontratacao IS 'Data de contratação';


--
-- Name: COLUMN funcionarios.aosexo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.aosexo IS 'Atributo Operacional indicando o Sexo como Masculino e Feminino.';


--
-- Name: COLUMN funcionarios.dtnascimento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.dtnascimento IS 'Data de nascimento';


--
-- Name: COLUMN funcionarios.txresenha; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.txresenha IS 'Texto descrevendo a personalidade e dinâmica profissional do funcionário.';


--
-- Name: COLUMN funcionarios.vlsalario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.vlsalario IS 'Valor do Salário Base do Funcionário.';


--
-- Name: COLUMN funcionarios.vlbonus; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.vlbonus IS 'Valor do Bônus de ganho (se não houver deve ser 0-Zero).';


--
-- Name: COLUMN funcionarios.vlcomissao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.vlcomissao IS 'Valor da comissão (se não houver deve ser 0-Zero).';


--
-- Name: COLUMN funcionarios.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.nucep IS 'Número do CEP (somente números).';


--
-- Name: COLUMN funcionarios.dtcadfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionarios.dtcadfuncionario IS 'Data de geração do registro.';


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

CREATE TABLE public.funcionariosplanos (
    pkfuncionarioplano smallint NOT NULL,
    fkfuncionario smallint NOT NULL,
    fkplanodesaude smallint NOT NULL,
    dtvinculacao date NOT NULL,
    dtdesligamento date NOT NULL,
    dtcadfuncplano date
);


ALTER TABLE public.funcionariosplanos OWNER TO postgres;

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

COMMENT ON TABLE public.funcionariosplanos IS 'Registro dos planos de saúde dos funcionários.';


--
-- Name: COLUMN funcionariosplanos.pkfuncionarioplano; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionariosplanos.pkfuncionarioplano IS 'PK da Tabela. Número inteiro sequencial crescente de 5 em 5.';


--
-- Name: COLUMN funcionariosplanos.fkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionariosplanos.fkfuncionario IS 'FK apontando para a tabela funcionarios.';


--
-- Name: COLUMN funcionariosplanos.fkplanodesaude; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionariosplanos.fkplanodesaude IS 'FK apontando para a tabela ';


--
-- Name: COLUMN funcionariosplanos.dtvinculacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionariosplanos.dtvinculacao IS 'Data de vinculação do funcionário ao plano de saúde.';


--
-- Name: COLUMN funcionariosplanos.dtdesligamento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionariosplanos.dtdesligamento IS 'Data de desligamento do funcionário ao plano de saúde.';


--
-- Name: COLUMN funcionariosplanos.dtcadfuncplano; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionariosplanos.dtcadfuncplano IS 'Data de geração do registro.';


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

CREATE TABLE public.funcionariostels (
    pkfuncionariotel smallint NOT NULL,
    fkfuncionario smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    txnomecontato character varying(30),
    dtcadfunctel date
);


ALTER TABLE public.funcionariostels OWNER TO postgres;

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

COMMENT ON TABLE public.funcionariostels IS 'Registros dos telefones de cada funcionário.';


--
-- Name: COLUMN funcionariostels.pkfuncionariotel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionariostels.pkfuncionariotel IS 'PK da Tabela.';


--
-- Name: COLUMN funcionariostels.fkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionariostels.fkfuncionario IS 'FK apontando para a tabela funcionarios.';


--
-- Name: COLUMN funcionariostels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionariostels.fktipotelefone IS 'FK apontando para a tabela tipos de telefones.';


--
-- Name: COLUMN funcionariostels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionariostels.nutelefone IS 'Número do telefone (somente números).';


--
-- Name: COLUMN funcionariostels.txnomecontato; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionariostels.txnomecontato IS 'Nome de uma pessoa que atende como contato no telefone.';


--
-- Name: COLUMN funcionariostels.dtcadfunctel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcionariostels.dtcadfunctel IS 'Data de geração do registro.';


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

CREATE TABLE public.funcoes (
    pkfuncao smallint NOT NULL,
    txnomefuncao character varying(60) NOT NULL,
    txdescricaofuncao text,
    qtanosprefuncao smallint,
    dtcadfuncao date NOT NULL
);


ALTER TABLE public.funcoes OWNER TO postgres;

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

COMMENT ON TABLE public.funcoes IS 'Cadastro das funções que podem ser exercidas por funcionários.';


--
-- Name: COLUMN funcoes.pkfuncao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcoes.pkfuncao IS 'Pk da Tabela';


--
-- Name: COLUMN funcoes.txnomefuncao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcoes.txnomefuncao IS 'Nome completo e sem abreviações.';


--
-- Name: COLUMN funcoes.txdescricaofuncao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcoes.txdescricaofuncao IS 'Descrição completa das principais atribuições da função do profissional (sem abreviações)';


--
-- Name: COLUMN funcoes.qtanosprefuncao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcoes.qtanosprefuncao IS 'Quantidade de anos na empresa para assumir a função.';


--
-- Name: COLUMN funcoes.dtcadfuncao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.funcoes.dtcadfuncao IS 'Data de Geração do Registro.';


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

CREATE TABLE public.grausdeescolaridade (
    pkgrauescolaridade smallint NOT NULL,
    txnomecomum character varying(30) NOT NULL,
    qtanosdeestudo smallint NOT NULL,
    dtcadgrauescolaridade date NOT NULL
);


ALTER TABLE public.grausdeescolaridade OWNER TO postgres;

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

COMMENT ON TABLE public.grausdeescolaridade IS 'Cadastro dos Níveis de Escolaridade (Educação).';


--
-- Name: COLUMN grausdeescolaridade.pkgrauescolaridade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.grausdeescolaridade.pkgrauescolaridade IS 'PK da Tabela';


--
-- Name: COLUMN grausdeescolaridade.txnomecomum; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.grausdeescolaridade.txnomecomum IS 'Nome do nível de educação (sem abreviações).';


--
-- Name: COLUMN grausdeescolaridade.qtanosdeestudo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.grausdeescolaridade.qtanosdeestudo IS 'Quantidade de anos de estudo para alcançar o grau de escolaridade.';


--
-- Name: COLUMN grausdeescolaridade.dtcadgrauescolaridade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.grausdeescolaridade.dtcadgrauescolaridade IS 'Data de Geração do Registro';


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

CREATE TABLE public.habilitacoes (
    pkhabilitacao smallint NOT NULL,
    fkcurso smallint NOT NULL,
    fkprofessor smallint NOT NULL,
    dthabilitacao date NOT NULL,
    dtcapacitacao date NOT NULL,
    dtcadhabilitacao date NOT NULL
);


ALTER TABLE public.habilitacoes OWNER TO postgres;

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

COMMENT ON TABLE public.habilitacoes IS 'Registro dos Cursos que cada professor tem habilitação para atuar.';


--
-- Name: COLUMN habilitacoes.pkhabilitacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.habilitacoes.pkhabilitacao IS 'PK da Tabela. Número inteiro sequencial crescente de 5 em 5.';


--
-- Name: COLUMN habilitacoes.fkcurso; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.habilitacoes.fkcurso IS 'Parte da PK e FK indicando o código do curso.';


--
-- Name: COLUMN habilitacoes.fkprofessor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.habilitacoes.fkprofessor IS 'Parte da PK e FK indicando o código do professo.';


--
-- Name: COLUMN habilitacoes.dthabilitacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.habilitacoes.dthabilitacao IS 'Parte da PK é a Data de habilitação do professor para ministrar a disciplina.';


--
-- Name: COLUMN habilitacoes.dtcapacitacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.habilitacoes.dtcapacitacao IS 'Data quando o professor conseguiu a capacitação para ministrar a disciplina.';


--
-- Name: COLUMN habilitacoes.dtcadhabilitacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.habilitacoes.dtcadhabilitacao IS 'Data de geração do registro';


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

CREATE TABLE public.historicoprofissional (
    pkhistorico smallint NOT NULL,
    fkfuncionario smallint NOT NULL,
    fkempresa smallint DEFAULT NULL::numeric,
    fkatividade smallint NOT NULL,
    dtinicio date NOT NULL,
    dttermino date NOT NULL,
    dtcadhistprof date NOT NULL
);


ALTER TABLE public.historicoprofissional OWNER TO postgres;

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

COMMENT ON TABLE public.historicoprofissional IS 'Registro do histórico profissional de um funcionário.';


--
-- Name: COLUMN historicoprofissional.pkhistorico; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.historicoprofissional.pkhistorico IS 'PK da Tabela';


--
-- Name: COLUMN historicoprofissional.fkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.historicoprofissional.fkfuncionario IS 'FK para tabela funcionários.';


--
-- Name: COLUMN historicoprofissional.fkempresa; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.historicoprofissional.fkempresa IS 'FK para tabela empresas.';


--
-- Name: COLUMN historicoprofissional.fkatividade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.historicoprofissional.fkatividade IS 'FK para tabela atividades.';


--
-- Name: COLUMN historicoprofissional.dtinicio; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.historicoprofissional.dtinicio IS 'Data de inicio de atividade do funcionário na empresa (na atividade)';


--
-- Name: COLUMN historicoprofissional.dttermino; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.historicoprofissional.dttermino IS 'Data de termino de atividade do funcionário na empresa (na atividade)';


--
-- Name: COLUMN historicoprofissional.dtcadhistprof; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.historicoprofissional.dtcadhistprof IS 'Data de Geração do Registro';


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

CREATE TABLE public.instituicoesensino (
    pkinstituicao smallint NOT NULL,
    txnomeinstituicao character varying(200) NOT NULL,
    fklogradouro smallint DEFAULT NULL::numeric,
    txcomplemento character varying(25) DEFAULT NULL::character varying,
    aotipoinstituicao character(1),
    dtfundacao date,
    nucep character(8) DEFAULT NULL::bpchar,
    dtcadinstensino date NOT NULL
);


ALTER TABLE public.instituicoesensino OWNER TO postgres;

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

COMMENT ON TABLE public.instituicoesensino IS 'Cadastro de Instituições de Ensino.';


--
-- Name: COLUMN instituicoesensino.pkinstituicao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoesensino.pkinstituicao IS 'Pk da Tabela.';


--
-- Name: COLUMN instituicoesensino.txnomeinstituicao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoesensino.txnomeinstituicao IS 'Nome usual completo (sem abreviações)';


--
-- Name: COLUMN instituicoesensino.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoesensino.fklogradouro IS 'FK com o código do logradouro da instituição de ensino.';


--
-- Name: COLUMN instituicoesensino.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoesensino.txcomplemento IS 'Texto com o complemento do logradouro comercial do cliente (número, andar, etc.)';


--
-- Name: COLUMN instituicoesensino.aotipoinstituicao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoesensino.aotipoinstituicao IS 'G-pública (Gratuíta) | P-Particular.';


--
-- Name: COLUMN instituicoesensino.dtfundacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoesensino.dtfundacao IS 'Data de fundação da instituição de ensino.';


--
-- Name: COLUMN instituicoesensino.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoesensino.nucep IS 'Número do CEP (somente números).';


--
-- Name: COLUMN instituicoesensino.dtcadinstensino; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoesensino.dtcadinstensino IS 'Data de geração do registro.';


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

CREATE TABLE public.instituicoestels (
    pkinstituicaotel smallint NOT NULL,
    fkinstituicao smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    txnomecontato character varying(30),
    dtcadinstenstel date
);


ALTER TABLE public.instituicoestels OWNER TO postgres;

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

COMMENT ON TABLE public.instituicoestels IS 'Registros dos telefones das Instituições de Ensino.';


--
-- Name: COLUMN instituicoestels.pkinstituicaotel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoestels.pkinstituicaotel IS 'PK da Tabela';


--
-- Name: COLUMN instituicoestels.fkinstituicao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoestels.fkinstituicao IS 'FK para a tabela instituições de ensino.';


--
-- Name: COLUMN instituicoestels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoestels.fktipotelefone IS 'FK para a tabela tipos_telefones';


--
-- Name: COLUMN instituicoestels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoestels.nutelefone IS 'Número do telefone (somente números).';


--
-- Name: COLUMN instituicoestels.txnomecontato; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoestels.txnomecontato IS 'Nome de uma pessoa que atende como contato no telefone.';


--
-- Name: COLUMN instituicoestels.dtcadinstenstel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.instituicoestels.dtcadinstenstel IS 'Data de geração do registro.';


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

CREATE TABLE public.livros (
    pklivro smallint NOT NULL,
    txtituloacervo character varying(90) NOT NULL,
    nuisbn bigint,
    fkeditora smallint DEFAULT NULL::numeric,
    dtpublicacao date,
    nuanopublicacao character(4) DEFAULT NULL::bpchar,
    qtpaginas smallint,
    qtexemplaresacervo smallint DEFAULT NULL::numeric,
    qtexemplaresconsulta numeric(2,0) DEFAULT NULL::numeric,
    dtcadlivro date NOT NULL
);


ALTER TABLE public.livros OWNER TO postgres;

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

COMMENT ON TABLE public.livros IS 'Cadastro dos Livros que podem ser usados em bibliografias de disciplinas.';


--
-- Name: COLUMN livros.pklivro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.livros.pklivro IS 'Pk da Tabela';


--
-- Name: COLUMN livros.txtituloacervo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.livros.txtituloacervo IS 'Texto com o título do acervo';


--
-- Name: COLUMN livros.nuisbn; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.livros.nuisbn IS 'Número do ISBN (International Standard Book Number)';


--
-- Name: COLUMN livros.fkeditora; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.livros.fkeditora IS 'FK com o código da editora que publicou o livro.';


--
-- Name: COLUMN livros.dtpublicacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.livros.dtpublicacao IS 'Data de publicação do Livro';


--
-- Name: COLUMN livros.nuanopublicacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.livros.nuanopublicacao IS 'Ano de Publicação do Livro';


--
-- Name: COLUMN livros.qtpaginas; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.livros.qtpaginas IS 'Quantidade de páginas que tem o livro (sem contar capa e contracapa.';


--
-- Name: COLUMN livros.qtexemplaresacervo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.livros.qtexemplaresacervo IS 'Quantidade total do livro no acervo, é alterada no movimento de retirada';


--
-- Name: COLUMN livros.qtexemplaresconsulta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.livros.qtexemplaresconsulta IS 'Quantidade mínima (em consulta) para o livro no acervo';


--
-- Name: COLUMN livros.dtcadlivro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.livros.dtcadlivro IS 'Data de Geração do Registro';


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

CREATE TABLE public.logradouros (
    pklogradouro integer NOT NULL,
    txnomelogradouro character varying(120) NOT NULL,
    fkcidade integer,
    fkbairro integer DEFAULT NULL::numeric,
    aotipodepiso character(1),
    dtcadlogradouro date NOT NULL
);


ALTER TABLE public.logradouros OWNER TO postgres;

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

COMMENT ON TABLE public.logradouros IS 'Cadastro dos logradouros.';


--
-- Name: COLUMN logradouros.pklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.logradouros.pklogradouro IS 'PK da Tabela';


--
-- Name: COLUMN logradouros.txnomelogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.logradouros.txnomelogradouro IS 'Texto com o nome do logradouro com o tipo (praça, rua, etc.) indicado.';


--
-- Name: COLUMN logradouros.fkcidade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.logradouros.fkcidade IS 'FK para a tabela de Cidades.';


--
-- Name: COLUMN logradouros.fkbairro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.logradouros.fkbairro IS 'FK para a tabela de Bairros.';


--
-- Name: COLUMN logradouros.dtcadlogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.logradouros.dtcadlogradouro IS 'Data de geração do registro';


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

CREATE TABLE public.matriculas (
    pkmatricula smallint NOT NULL,
    fkatribuicao smallint NOT NULL,
    fkfuncionario smallint NOT NULL,
    dtmatricula date NOT NULL,
    dtvalidade date NOT NULL,
    dtcadmatricula date NOT NULL
);


ALTER TABLE public.matriculas OWNER TO postgres;

--
-- Name: COLUMN matriculas.pkmatricula; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.matriculas.pkmatricula IS 'PK da Tabela.';


--
-- Name: COLUMN matriculas.fkatribuicao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.matriculas.fkatribuicao IS 'FK com o código do atribuicao (que relaciona professores com disciplinas).';


--
-- Name: COLUMN matriculas.fkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.matriculas.fkfuncionario IS 'FK com o código do funcionario.';


--
-- Name: COLUMN matriculas.dtmatricula; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.matriculas.dtmatricula IS 'Data de Matrícula';


--
-- Name: COLUMN matriculas.dtvalidade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.matriculas.dtvalidade IS 'Data de Validade da Matrícula (duração do vinculo funcionário-disciplina).';


--
-- Name: COLUMN matriculas.dtcadmatricula; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.matriculas.dtcadmatricula IS 'Data de geração do registro.';


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

CREATE TABLE public.medicos (
    pkmedico smallint NOT NULL,
    txnomemedico character varying(200) NOT NULL,
    nucrm integer NOT NULL,
    fkespecialidade smallint NOT NULL,
    pkinstituicao smallint,
    fklogradouromoradia smallint DEFAULT NULL::numeric,
    txcomplementomoradia character varying(25) DEFAULT NULL::character varying,
    fklogradouroclinica smallint DEFAULT NULL::numeric,
    txcomplementoclinica character varying(25) DEFAULT NULL::character varying,
    aoativo character(1),
    dtcadmedico date NOT NULL
);


ALTER TABLE public.medicos OWNER TO postgres;

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

COMMENT ON TABLE public.medicos IS 'Cadastro de médicos.';


--
-- Name: COLUMN medicos.pkmedico; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicos.pkmedico IS 'PK da Tabela';


--
-- Name: COLUMN medicos.txnomemedico; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicos.txnomemedico IS 'Nome completo e sem abreviação';


--
-- Name: COLUMN medicos.nucrm; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicos.nucrm IS 'Número do registro do médico no Conselho Regional dos médicos.';


--
-- Name: COLUMN medicos.fkespecialidade; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicos.fkespecialidade IS 'FK com o código da especialidade médica';


--
-- Name: COLUMN medicos.pkinstituicao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicos.pkinstituicao IS 'FK com o código da instituição de ensino onde o médico se formou.';


--
-- Name: COLUMN medicos.fklogradouromoradia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicos.fklogradouromoradia IS 'FK com o código do Logradouro de moradia do Médico';


--
-- Name: COLUMN medicos.txcomplementomoradia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicos.txcomplementomoradia IS 'Texto com o complemento do logradouro de moradia do médico (número, andar, etc.)';


--
-- Name: COLUMN medicos.fklogradouroclinica; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicos.fklogradouroclinica IS 'FK com o código do Logradouro da Clínica Principal do Médico.';


--
-- Name: COLUMN medicos.txcomplementoclinica; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicos.txcomplementoclinica IS 'Texto com o complemento do logradouro da clínica do médico (número, andar, etc.)';


--
-- Name: COLUMN medicos.aoativo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicos.aoativo IS 'Atributo operacional com valor A | D (Ativo | Desligado)';


--
-- Name: COLUMN medicos.dtcadmedico; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicos.dtcadmedico IS 'Data de geração do registro';


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

CREATE TABLE public.medicostels (
    pkmedicotel smallint NOT NULL,
    fkmedico smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    dtcadmedicotel date
);


ALTER TABLE public.medicostels OWNER TO postgres;

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

COMMENT ON TABLE public.medicostels IS 'Registro dos Telefones dos medicos.';


--
-- Name: COLUMN medicostels.pkmedicotel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicostels.pkmedicotel IS 'PK da tabela.';


--
-- Name: COLUMN medicostels.fkmedico; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicostels.fkmedico IS 'FK para a tabela medicos.';


--
-- Name: COLUMN medicostels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.medicostels.fktipotelefone IS 'FK para a tabela telefonestipos';


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

CREATE TABLE public.movimentos (
    pkmovimento smallint NOT NULL,
    fklivro smallint DEFAULT NULL::numeric,
    fkfuncionario smallint DEFAULT NULL::numeric,
    dtmovimento date,
    fktipomovimento smallint DEFAULT NULL::numeric,
    dtprevistadevolucao date,
    dtrealdevolucao date,
    dtcadmovimento date NOT NULL
);


ALTER TABLE public.movimentos OWNER TO postgres;

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

COMMENT ON TABLE public.movimentos IS 'Registro de movimentos de livros realizados pelos funcionários.';


--
-- Name: COLUMN movimentos.pkmovimento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.movimentos.pkmovimento IS 'PK da Tabela.';


--
-- Name: COLUMN movimentos.fklivro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.movimentos.fklivro IS 'FK para a tabela livros (registrado no movimento).';


--
-- Name: COLUMN movimentos.fkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.movimentos.fkfuncionario IS 'FK para a tabela funcionarios (que faz o movimento).';


--
-- Name: COLUMN movimentos.dtmovimento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.movimentos.dtmovimento IS 'Data de realização do movimento';


--
-- Name: COLUMN movimentos.fktipomovimento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.movimentos.fktipomovimento IS 'FK para a tabela movimentotipos.';


--
-- Name: COLUMN movimentos.dtprevistadevolucao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.movimentos.dtprevistadevolucao IS 'Data prevista de devolução do livro';


--
-- Name: COLUMN movimentos.dtrealdevolucao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.movimentos.dtrealdevolucao IS 'Data real da devolução';


--
-- Name: COLUMN movimentos.dtcadmovimento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.movimentos.dtcadmovimento IS 'Data de Geração do Registro.';


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

CREATE TABLE public.movimentostipos (
    pktipomovimento smallint NOT NULL,
    txnometipomov character varying(80) NOT NULL,
    aopermiteretirada character(1) NOT NULL,
    dtcadmovimtipo date NOT NULL
);


ALTER TABLE public.movimentostipos OWNER TO postgres;

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

COMMENT ON TABLE public.movimentostipos IS 'Cadastro dos tipos de movimentos.';


--
-- Name: COLUMN movimentostipos.pktipomovimento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.movimentostipos.pktipomovimento IS 'PK da Tabela.';


--
-- Name: COLUMN movimentostipos.txnometipomov; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.movimentostipos.txnometipomov IS 'Nome do tipo de movimento (sem abreviações).';


--
-- Name: COLUMN movimentostipos.aopermiteretirada; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.movimentostipos.aopermiteretirada IS 'S|N para “permite” ou “não permite” retirada do exemplo do espaço da biblioteca. biblioteca.';


--
-- Name: COLUMN movimentostipos.dtcadmovimtipo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.movimentostipos.dtcadmovimtipo IS 'Data de Geração do Registro';


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

CREATE TABLE public.nfcompras (
    pknunfcompra smallint NOT NULL,
    fkfornecedor smallint,
    fkfuncionario smallint DEFAULT NULL::numeric,
    dtnfcompra date,
    vltotalnfcompra double precision,
    aosituacao character(1) DEFAULT NULL::bpchar,
    txcomentarios character varying(1000) DEFAULT NULL::character varying,
    dtcadnfcompra date NOT NULL
);


ALTER TABLE public.nfcompras OWNER TO postgres;

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

COMMENT ON TABLE public.nfcompras IS 'Cadastro das Notas Fiscais de Compras. É a entidade forte entre nf_compras e nf_compras_itens.';


--
-- Name: COLUMN nfcompras.pknunfcompra; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfcompras.pknunfcompra IS 'PK da Tabela.';


--
-- Name: COLUMN nfcompras.fkfornecedor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfcompras.fkfornecedor IS 'FK com o código do fornecedor da Nota de Compra';


--
-- Name: COLUMN nfcompras.fkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfcompras.fkfuncionario IS 'FK com o código do funcionário.';


--
-- Name: COLUMN nfcompras.dtnfcompra; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfcompras.dtnfcompra IS 'Data de realização da venda que gera a nota de venda.';


--
-- Name: COLUMN nfcompras.vltotalnfcompra; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfcompras.vltotalnfcompra IS 'Valor total da Nota de Compra';


--
-- Name: COLUMN nfcompras.aosituacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfcompras.aosituacao IS 'Indicador da situação da Nota como "A" (a pagar) ou "P" (paga).';


--
-- Name: COLUMN nfcompras.txcomentarios; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfcompras.txcomentarios IS 'Comentário geral sobre a Nota de Compra';


--
-- Name: COLUMN nfcompras.dtcadnfcompra; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfcompras.dtcadnfcompra IS 'Data de Geração do Registro';


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

CREATE TABLE public.nfcomprasitens (
    fknunfcompra smallint NOT NULL,
    fkproduto character(12) DEFAULT (0)::numeric NOT NULL,
    qtcomprada numeric(5,0) NOT NULL,
    vlunitario double precision NOT NULL
);


ALTER TABLE public.nfcomprasitens OWNER TO postgres;

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

COMMENT ON TABLE public.nfcomprasitens IS 'Cadastro das Notas Fiscais de Compras. É a entidade fraca entre nf_compras e nf_compras_itens.';


--
-- Name: COLUMN nfcomprasitens.fknunfcompra; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfcomprasitens.fknunfcompra IS 'Parte da PK e FK com o código da nota fiscal de venda';


--
-- Name: COLUMN nfcomprasitens.fkproduto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfcomprasitens.fkproduto IS 'Parte da PK e FK apontando para a tabela Produtos.';


--
-- Name: COLUMN nfcomprasitens.qtcomprada; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfcomprasitens.qtcomprada IS 'Quantidade de produto vendida';


--
-- Name: COLUMN nfcomprasitens.vlunitario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfcomprasitens.vlunitario IS 'Valor unitário do produto na Nota de venda (pode ser ? do valor do estoque)';


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

CREATE TABLE public.nfvendas (
    pknunfvenda smallint NOT NULL,
    fkcliente smallint DEFAULT NULL::numeric,
    fkfuncionario smallint DEFAULT NULL::numeric,
    fkarmazem smallint DEFAULT NULL::numeric,
    vltotalnfvenda double precision,
    dtvenda date DEFAULT '2014-04-25'::date NOT NULL,
    dtemissao date NOT NULL,
    dtcadnfvenda date NOT NULL
);


ALTER TABLE public.nfvendas OWNER TO postgres;

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

COMMENT ON TABLE public.nfvendas IS 'Cadastro das Notas Fiscais de Vendas. É a entidade forte entre nf_vendas e nf_vendas_itens.';


--
-- Name: COLUMN nfvendas.pknunfvenda; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfvendas.pknunfvenda IS 'PK da Tabela.';


--
-- Name: COLUMN nfvendas.fkcliente; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfvendas.fkcliente IS 'FK para a tabela clientes (para o qual se faz a venda).';


--
-- Name: COLUMN nfvendas.fkfuncionario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfvendas.fkfuncionario IS 'FK para a tabela funcionarios.
';


--
-- Name: COLUMN nfvendas.fkarmazem; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfvendas.fkarmazem IS 'FK para a tabela armazens.
';


--
-- Name: COLUMN nfvendas.vltotalnfvenda; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfvendas.vltotalnfvenda IS 'Valor total da nota fiscal de venda.';


--
-- Name: COLUMN nfvendas.dtvenda; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfvendas.dtvenda IS 'Data de realização da venda que gera a nota de venda.';


--
-- Name: COLUMN nfvendas.dtemissao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfvendas.dtemissao IS 'Data de emissão da nota de venda.';


--
-- Name: COLUMN nfvendas.dtcadnfvenda; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfvendas.dtcadnfvenda IS 'Data de Geração do Registfro.';


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

CREATE TABLE public.nfvendasitens (
    fknunfvenda smallint NOT NULL,
    fkproduto character(12) DEFAULT (0)::numeric NOT NULL,
    qtvendida smallint NOT NULL,
    vlunitario double precision NOT NULL
);


ALTER TABLE public.nfvendasitens OWNER TO postgres;

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

COMMENT ON TABLE public.nfvendasitens IS 'Cadastro das Notas Fiscais de Vendas. É a entidade fraca entre nf_vendas e nf_vendas_itens.';


--
-- Name: COLUMN nfvendasitens.fknunfvenda; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfvendasitens.fknunfvenda IS 'Parte da PK e FK com o código da nota fiscal de venda';


--
-- Name: COLUMN nfvendasitens.fkproduto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfvendasitens.fkproduto IS 'Parte da PK e FK apontando para a tabela Produtos.';


--
-- Name: COLUMN nfvendasitens.qtvendida; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfvendasitens.qtvendida IS 'Quantidade de produto vendida';


--
-- Name: COLUMN nfvendasitens.vlunitario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.nfvendasitens.vlunitario IS 'Valor unitário do produto na Nota de venda (pode ser ? do valor do estoque)';


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

CREATE TABLE public.ocorrencias (
    pkocorrencia smallint NOT NULL,
    fksinistro smallint NOT NULL,
    fkveiculo smallint NOT NULL,
    fknumeroapolice numeric(6,0) NOT NULL,
    fklogradouroprincipal smallint NOT NULL,
    fklogradourosecundario smallint,
    txlogradouroocorrencia character varying(250) NOT NULL,
    dtcadocorrencia date NOT NULL
);


ALTER TABLE public.ocorrencias OWNER TO postgres;

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

COMMENT ON TABLE public.ocorrencias IS 'Registros da ocorrência de Sinistros nos veículos segurados de uma seguradora.';


--
-- Name: COLUMN ocorrencias.pkocorrencia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.ocorrencias.pkocorrencia IS 'PK da Tabela.';


--
-- Name: COLUMN ocorrencias.fksinistro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.ocorrencias.fksinistro IS 'FK indicando o código do sinistro';


--
-- Name: COLUMN ocorrencias.fkveiculo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.ocorrencias.fkveiculo IS 'FK indicando o código do veículo que sofreu o sinistro';


--
-- Name: COLUMN ocorrencias.fknumeroapolice; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.ocorrencias.fknumeroapolice IS 'FK para a tabela seguros (que cobre o sinistro do veículo).';


--
-- Name: COLUMN ocorrencias.fklogradouroprincipal; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.ocorrencias.fklogradouroprincipal IS 'FK com o código do Logradouro principal da ocorrência do sinistro.';


--
-- Name: COLUMN ocorrencias.fklogradourosecundario; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.ocorrencias.fklogradourosecundario IS 'FK com o código do Logradouro secundário da ocorrência do sinistro';


--
-- Name: COLUMN ocorrencias.txlogradouroocorrencia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.ocorrencias.txlogradouroocorrencia IS 'Texto descrevendo os logradouros e localidade da ocorrência do sinistro.';


--
-- Name: COLUMN ocorrencias.dtcadocorrencia; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.ocorrencias.dtcadocorrencia IS 'Data de geração do registro';


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

CREATE TABLE public.oficinas (
    pkoficina smallint NOT NULL,
    txrazaosocial character varying(100) NOT NULL,
    nucnpj character(14),
    txapelido character varying(30),
    fklogradouro smallint,
    dtfundacao date,
    dtcadoficina date
);


ALTER TABLE public.oficinas OWNER TO postgres;

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

COMMENT ON TABLE public.oficinas IS 'Cadastro das Oficinas que prestam serviços para reparos em veículos.';


--
-- Name: COLUMN oficinas.pkoficina; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.oficinas.pkoficina IS 'PK da Tabela';


--
-- Name: COLUMN oficinas.txrazaosocial; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.oficinas.txrazaosocial IS 'Razão Social completa da Oficina segundo o cadastro do CNPJ';


--
-- Name: COLUMN oficinas.nucnpj; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.oficinas.nucnpj IS 'Número do CNPJ (Cadastro Nacional de Pessoas Jurídicas)';


--
-- Name: COLUMN oficinas.txapelido; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.oficinas.txapelido IS 'Nome de apelido da Oficina';


--
-- Name: COLUMN oficinas.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.oficinas.fklogradouro IS 'FK com o código do Logradouro da Oficina.';


--
-- Name: COLUMN oficinas.dtfundacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.oficinas.dtfundacao IS 'Data de fundação ou criação da oficina.';


--
-- Name: COLUMN oficinas.dtcadoficina; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.oficinas.dtcadoficina IS 'Data de geração do registro';


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

CREATE TABLE public.oficinastels (
    pkoficinatel smallint NOT NULL,
    fkoficina smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    txnomecontato character varying(30),
    dtcadoficinatel date
);


ALTER TABLE public.oficinastels OWNER TO postgres;

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

COMMENT ON TABLE public.oficinastels IS 'Registro dos Telefones das oficinas.';


--
-- Name: COLUMN oficinastels.pkoficinatel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.oficinastels.pkoficinatel IS 'PK da tabela.';


--
-- Name: COLUMN oficinastels.fkoficina; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.oficinastels.fkoficina IS 'FK apontando para a tabela oficinas.';


--
-- Name: COLUMN oficinastels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.oficinastels.fktipotelefone IS 'FK apontando para a tabela telefonestipos';


--
-- Name: COLUMN oficinastels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.oficinastels.nutelefone IS 'Número do telefone (somente números).';


--
-- Name: COLUMN oficinastels.txnomecontato; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.oficinastels.txnomecontato IS 'Nomes das pessoas que atendem como contato no telefone.';


--
-- Name: onibus; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.onibus WITH (security_barrier='false') AS
 SELECT veiculos.pkveiculo AS pkonibus,
    veiculos.ukplaca,
    veiculos.fkmodelo,
    veiculos.txapelido,
    veiculos.qtcapacidade,
    veiculos.nuanofabricacao,
    veiculos.dtcadveiculo AS dtcadonibus
   FROM public.veiculos
  WHERE (veiculos.aocategoria = 'O'::bpchar);


ALTER TABLE public.onibus OWNER TO postgres;

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

CREATE TABLE public.palavraschaves (
    pkpalavra smallint NOT NULL,
    txnomepalavra character varying(30) NOT NULL,
    dtcadpalavrachave date NOT NULL
);


ALTER TABLE public.palavraschaves OWNER TO postgres;

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

COMMENT ON TABLE public.palavraschaves IS 'Cadastro das palavras-chaves para pesquisa por palavras de exemplares de um acervo de uma biblioteca.';


--
-- Name: COLUMN palavraschaves.pkpalavra; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.palavraschaves.pkpalavra IS 'PK da Tabela.';


--
-- Name: COLUMN palavraschaves.txnomepalavra; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.palavraschaves.txnomepalavra IS 'Palavra-chave de pesquisa complete e se abreviações';


--
-- Name: COLUMN palavraschaves.dtcadpalavrachave; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.palavraschaves.dtcadpalavrachave IS 'Data de Geração do Registro';


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

CREATE TABLE public.palavraslivros (
    fkpalavra smallint NOT NULL,
    fklivro smallint NOT NULL,
    dtcadpalchavelivro date NOT NULL
);


ALTER TABLE public.palavraslivros OWNER TO postgres;

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

COMMENT ON TABLE public.palavraslivros IS 'Registro das palavras-chaves de cada exemplar de um acervo.';


--
-- Name: COLUMN palavraslivros.fkpalavra; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.palavraslivros.fkpalavra IS 'Parte da PK e FK com o código da Palavra-Chave de Pesquisa';


--
-- Name: COLUMN palavraslivros.fklivro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.palavraslivros.fklivro IS 'Parte da PK e FK com o código do livro';


--
-- Name: COLUMN palavraslivros.dtcadpalchavelivro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.palavraslivros.dtcadpalchavelivro IS 'Data de geração do registro';


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

CREATE TABLE public.planosdesaude (
    pkplanodesaude smallint NOT NULL,
    txnomeplano character varying(200) NOT NULL,
    txrazaosocial character varying(250) DEFAULT NULL::character varying,
    nucnpj character(15),
    fklogradouro smallint DEFAULT NULL::numeric,
    txcomplemento character varying(25) DEFAULT NULL::character varying,
    nucep character(8) DEFAULT NULL::bpchar,
    dtcadplanosaude date NOT NULL
);


ALTER TABLE public.planosdesaude OWNER TO postgres;

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

COMMENT ON TABLE public.planosdesaude IS 'Cadastro dos planos de saúde.';


--
-- Name: COLUMN planosdesaude.pkplanodesaude; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planosdesaude.pkplanodesaude IS 'PK da Tabela';


--
-- Name: COLUMN planosdesaude.txnomeplano; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planosdesaude.txnomeplano IS 'Nome completo e usual para o plano de saúde';


--
-- Name: COLUMN planosdesaude.txrazaosocial; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planosdesaude.txrazaosocial IS 'Razão social completa.';


--
-- Name: COLUMN planosdesaude.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planosdesaude.fklogradouro IS 'FK com o código do logradouro do escritório do Plano de Saúde.';


--
-- Name: COLUMN planosdesaude.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planosdesaude.txcomplemento IS 'Texto com o complemento do logradouro comercial do cliente (número, andar, etc.)';


--
-- Name: COLUMN planosdesaude.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planosdesaude.nucep IS 'Número do CEP';


--
-- Name: COLUMN planosdesaude.dtcadplanosaude; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planosdesaude.dtcadplanosaude IS 'Data de Geração do Registro';


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

CREATE TABLE public.planosmedicos (
    pkplanomedico smallint NOT NULL,
    fkplanodesaude smallint NOT NULL,
    dtcadplanomedico date NOT NULL
);


ALTER TABLE public.planosmedicos OWNER TO postgres;

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

COMMENT ON TABLE public.planosmedicos IS 'Cadastro dos planos de saúde - Médicos.';


--
-- Name: COLUMN planosmedicos.pkplanomedico; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planosmedicos.pkplanomedico IS 'PK da Tabela';


--
-- Name: COLUMN planosmedicos.fkplanodesaude; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planosmedicos.fkplanodesaude IS 'FK para a tabela planosdesaude.';


--
-- Name: COLUMN planosmedicos.dtcadplanomedico; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planosmedicos.dtcadplanomedico IS 'Data de Geração do Registro';


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

CREATE TABLE public.planostels (
    pkplanostel smallint NOT NULL,
    fkplanodesaude smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    txnomecontato character varying(30),
    dtcadplanotel date
);


ALTER TABLE public.planostels OWNER TO postgres;

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

COMMENT ON TABLE public.planostels IS 'Registro dos telefones de cada Plano de Saúde.';


--
-- Name: COLUMN planostels.pkplanostel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planostels.pkplanostel IS 'PK da Tabela';


--
-- Name: COLUMN planostels.fkplanodesaude; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planostels.fkplanodesaude IS 'FK para a tabela planos de saúde';


--
-- Name: COLUMN planostels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planostels.fktipotelefone IS 'FK para a tabela tipos_telefones';


--
-- Name: COLUMN planostels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planostels.nutelefone IS 'Número do telefone (somente os números)';


--
-- Name: COLUMN planostels.txnomecontato; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planostels.txnomecontato IS 'Nome de uma pessoa que atende como contato no telefone.';


--
-- Name: COLUMN planostels.dtcadplanotel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.planostels.dtcadplanotel IS 'Data de geração do registro';


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

CREATE TABLE public.produtos (
    pkproduto character(12) NOT NULL,
    txnome character varying(128) DEFAULT NULL::character varying,
    vlpreco numeric(12,2) DEFAULT NULL::numeric,
    vlprecopromocao numeric(12,2) DEFAULT NULL::numeric,
    vlprecominimo numeric(12,2),
    qtestoque numeric(7,2),
    qtdiaspromocao smallint DEFAULT NULL::numeric,
    txdescricaocompleta character varying(2000) DEFAULT NULL::character varying,
    dtcadproduto date NOT NULL
);


ALTER TABLE public.produtos OWNER TO postgres;

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

COMMENT ON TABLE public.produtos IS 'Cadastro dos produtos que são feitos e vendidos pela empresa onde o funcionário trabalha.';


--
-- Name: COLUMN produtos.pkproduto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.produtos.pkproduto IS 'PK da Tabela';


--
-- Name: COLUMN produtos.txnome; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.produtos.txnome IS 'Nome completo e usual';


--
-- Name: COLUMN produtos.vlpreco; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.produtos.vlpreco IS 'Valor do preço';


--
-- Name: COLUMN produtos.vlprecopromocao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.produtos.vlprecopromocao IS 'Valor do preço de venda para promoção (com desconto máximo)';


--
-- Name: COLUMN produtos.vlprecominimo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.produtos.vlprecominimo IS 'Valor do preço mínimo (contabilizando os custos de produção)';


--
-- Name: COLUMN produtos.qtestoque; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.produtos.qtestoque IS 'Quantidade do produto em estoque (até 99999.99)';


--
-- Name: COLUMN produtos.qtdiaspromocao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.produtos.qtdiaspromocao IS 'Quant. De dias para execução de uma promoção do produto';


--
-- Name: COLUMN produtos.txdescricaocompleta; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.produtos.txdescricaocompleta IS 'Texto com a descrição complete do produto.';


--
-- Name: COLUMN produtos.dtcadproduto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.produtos.dtcadproduto IS 'Data de geração do registro';


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

CREATE TABLE public.professores (
    pkprofessor smallint NOT NULL,
    txnomeprofessor character varying(250) NOT NULL,
    fklogradouro smallint DEFAULT NULL::numeric,
    txcomplemento character varying(25) DEFAULT NULL::character varying,
    nucep character(8) DEFAULT NULL::bpchar,
    dtnascimento date,
    dtcadprofessor date
);


ALTER TABLE public.professores OWNER TO postgres;

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

COMMENT ON TABLE public.professores IS 'Professores de uma Instituição de ensino';


--
-- Name: COLUMN professores.pkprofessor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.professores.pkprofessor IS 'PK da tabela.';


--
-- Name: COLUMN professores.txnomeprofessor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.professores.txnomeprofessor IS 'Nome completo e sem abreviações';


--
-- Name: COLUMN professores.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.professores.fklogradouro IS 'FK com o código do Logradouro de residência do Professor.';


--
-- Name: COLUMN professores.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.professores.txcomplemento IS 'Texto com o complemento do logradouro comercial do cliente (número, andar, etc.)';


--
-- Name: COLUMN professores.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.professores.nucep IS 'Número do CEP (somente números).';


--
-- Name: COLUMN professores.dtnascimento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.professores.dtnascimento IS 'Data de Nascimento';


--
-- Name: COLUMN professores.dtcadprofessor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.professores.dtcadprofessor IS 'Data de geração do registro';


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

CREATE TABLE public.professorestels (
    pkprofessortel smallint NOT NULL,
    fkprofessor smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    dtcadprofessortel date
);


ALTER TABLE public.professorestels OWNER TO postgres;

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

COMMENT ON TABLE public.professorestels IS 'Registro dos telefones de cada professor.';


--
-- Name: COLUMN professorestels.pkprofessortel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.professorestels.pkprofessortel IS 'PK da tabela.';


--
-- Name: COLUMN professorestels.fkprofessor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.professorestels.fkprofessor IS 'FK para a tabela professores';


--
-- Name: COLUMN professorestels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.professorestels.fktipotelefone IS 'FK para a tabela tipos_telefones';


--
-- Name: COLUMN professorestels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.professorestels.nutelefone IS 'Número do telefone (somente os números)';


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

CREATE TABLE public.projetos (
    pkprojeto character(6) NOT NULL,
    txnomeprojeto character varying(90) DEFAULT ''::character varying NOT NULL,
    fkdepto character(3) DEFAULT NULL::bpchar,
    fkfuncionarioresponsavel smallint DEFAULT NULL::numeric,
    vlestimado numeric(13,2),
    dtinicio date,
    dttermino date,
    fkprojetosuperior character(6) DEFAULT NULL::bpchar,
    dtcadprojeto date NOT NULL
);


ALTER TABLE public.projetos OWNER TO postgres;

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

COMMENT ON TABLE public.projetos IS 'Cadastro dos projetos que são desenvolvidos pelos funcionários de uma empresa.';


--
-- Name: COLUMN projetos.pkprojeto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.projetos.pkprojeto IS 'PK da tabela.';


--
-- Name: COLUMN projetos.txnomeprojeto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.projetos.txnomeprojeto IS 'Nome completo e sem abreviações.';


--
-- Name: COLUMN projetos.fkdepto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.projetos.fkdepto IS 'FK com o código do departamento que lidera ou coordena o projeto';


--
-- Name: COLUMN projetos.fkfuncionarioresponsavel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.projetos.fkfuncionarioresponsavel IS 'FK com o código do funcionário responsável pelo projeto';


--
-- Name: COLUMN projetos.vlestimado; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.projetos.vlestimado IS 'Valor estimado do projeto.';


--
-- Name: COLUMN projetos.dtinicio; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.projetos.dtinicio IS 'Data de inicio do projeto (após conclusão de estudos de viabilidade).';


--
-- Name: COLUMN projetos.dttermino; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.projetos.dttermino IS 'Data de término do projeto (após a declaração de aceite dos interessados).';


--
-- Name: COLUMN projetos.fkprojetosuperior; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.projetos.fkprojetosuperior IS 'FK com o código de projeto superior (havendo subordinação).';


--
-- Name: COLUMN projetos.dtcadprojeto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.projetos.dtcadprojeto IS 'Data de geração do registro.';


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

CREATE TABLE public.rotasviarias (
    pkrota numeric(6,0) NOT NULL,
    txnomerota character varying(60) NOT NULL,
    txdescrperiodo character varying(250) NOT NULL,
    fkcidadeorigem smallint DEFAULT NULL::numeric,
    fkcidadedestino smallint DEFAULT NULL::numeric,
    dtcadrotaviaria date NOT NULL
);


ALTER TABLE public.rotasviarias OWNER TO postgres;

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

COMMENT ON TABLE public.rotasviarias IS 'Cadastro das rotas viárias de viagens entre cidades.';


--
-- Name: COLUMN rotasviarias.pkrota; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.rotasviarias.pkrota IS 'PK da Tabela.';


--
-- Name: COLUMN rotasviarias.txnomerota; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.rotasviarias.txnomerota IS 'Nome completo e sem abreviações.';


--
-- Name: COLUMN rotasviarias.txdescrperiodo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.rotasviarias.txdescrperiodo IS 'Texto com a descrição do período de ocorrência de viagens na rota viária';


--
-- Name: COLUMN rotasviarias.fkcidadeorigem; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.rotasviarias.fkcidadeorigem IS 'FK com o código da cidade de origem da rota viária';


--
-- Name: COLUMN rotasviarias.fkcidadedestino; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.rotasviarias.fkcidadedestino IS 'FK com o código da cidade de destino da rota viária';


--
-- Name: COLUMN rotasviarias.dtcadrotaviaria; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.rotasviarias.dtcadrotaviaria IS 'Data de geração do registro';


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

CREATE TABLE public.roteiros (
    pkroteiro smallint NOT NULL,
    fkrota numeric(6,0) NOT NULL,
    nuordem character(3),
    dtcadroteiro date
);


ALTER TABLE public.roteiros OWNER TO postgres;

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

COMMENT ON TABLE public.roteiros IS 'Cadastro dos roteiros de cada Rota Viária. É a lista de cidades por onde um ônibus passa em uma rota.';


--
-- Name: COLUMN roteiros.pkroteiro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.roteiros.pkroteiro IS 'PK da Tabela. Número inteiro sequencial crescente de 5 em 5.';


--
-- Name: COLUMN roteiros.fkrota; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.roteiros.fkrota IS 'FK apontando para a tabela rotas_viarias e parte da PK composta da Tabela.';


--
-- Name: COLUMN roteiros.nuordem; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.roteiros.nuordem IS 'Número indicando a ordem das cidades dentro de uma rota viária.';


--
-- Name: COLUMN roteiros.dtcadroteiro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.roteiros.dtcadroteiro IS 'Data de geração do registro';


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

CREATE TABLE public.seguradoras (
    pkseguradora smallint NOT NULL,
    txnomeseguradora character varying(250) NOT NULL,
    fklogradouro smallint DEFAULT NULL::numeric,
    txcomplemento character varying(25) DEFAULT NULL::character varying,
    nucep character(8) DEFAULT NULL::bpchar,
    dtcadseguradora date NOT NULL
);


ALTER TABLE public.seguradoras OWNER TO postgres;

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

COMMENT ON TABLE public.seguradoras IS 'Cadastro das Seguradoras de valores.';


--
-- Name: COLUMN seguradoras.pkseguradora; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguradoras.pkseguradora IS 'PK da tabela.';


--
-- Name: COLUMN seguradoras.txnomeseguradora; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguradoras.txnomeseguradora IS 'Nome completo e sem abreviações.';


--
-- Name: COLUMN seguradoras.fklogradouro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguradoras.fklogradouro IS 'FK apontando o logradouro onde é a sede da seguradora.';


--
-- Name: COLUMN seguradoras.txcomplemento; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguradoras.txcomplemento IS 'Texto com o complemento do logradouro da seguradora (número, andar, etc.)';


--
-- Name: COLUMN seguradoras.nucep; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguradoras.nucep IS 'Número do CEP (somente números).';


--
-- Name: COLUMN seguradoras.dtcadseguradora; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguradoras.dtcadseguradora IS 'Data de geração do registro.';


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

CREATE TABLE public.seguradorastels (
    pkseguradoratel smallint NOT NULL,
    fkseguradora smallint NOT NULL,
    fktipotelefone smallint DEFAULT NULL::numeric,
    nutelefone character(15) NOT NULL,
    txnomecontato character varying(30),
    dtcadseguradoratel date
);


ALTER TABLE public.seguradorastels OWNER TO postgres;

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

COMMENT ON TABLE public.seguradorastels IS 'Cadastro dos telefones de cada Seguradora.';


--
-- Name: COLUMN seguradorastels.pkseguradoratel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguradorastels.pkseguradoratel IS 'PK da tabela.';


--
-- Name: COLUMN seguradorastels.fkseguradora; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguradorastels.fkseguradora IS 'FK apontando para a tabela Seguradoras.';


--
-- Name: COLUMN seguradorastels.fktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguradorastels.fktipotelefone IS 'FK apontando para a tabela Tipos de Telefones.';


--
-- Name: COLUMN seguradorastels.nutelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguradorastels.nutelefone IS 'Número do telefone (somente os números)';


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

CREATE TABLE public.seguros (
    pknumeroapolice integer NOT NULL,
    fkveiculo smallint NOT NULL,
    fkseguradora smallint NOT NULL,
    dtcontratacao date NOT NULL,
    dtlimitecobertura date NOT NULL,
    vlcobertura double precision NOT NULL,
    dtcadseguro date NOT NULL
);


ALTER TABLE public.seguros OWNER TO postgres;

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

COMMENT ON TABLE public.seguros IS 'Cadastro dos Seguros assumidos para cada Seguradora.';


--
-- Name: COLUMN seguros.pknumeroapolice; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguros.pknumeroapolice IS 'PK da Tabela (assumindo que as seguradoras tenham um cadastro único de apólices de seguros)';


--
-- Name: COLUMN seguros.fkveiculo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguros.fkveiculo IS 'FK com o código do veículo (pode ser carro ou ônibus).';


--
-- Name: COLUMN seguros.fkseguradora; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguros.fkseguradora IS 'FK apontando para a tabela Seguradoras.';


--
-- Name: COLUMN seguros.dtcontratacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguros.dtcontratacao IS 'Data de contratação do Seguro na Seguradora.';


--
-- Name: COLUMN seguros.dtlimitecobertura; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguros.dtlimitecobertura IS 'Data limite da cobertura do seguro.';


--
-- Name: COLUMN seguros.vlcobertura; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguros.vlcobertura IS 'Valor da cobertura da apólice de seguro.';


--
-- Name: COLUMN seguros.dtcadseguro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.seguros.dtcadseguro IS 'Data de geração do registro.';


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

CREATE TABLE public.servicos (
    pkservico smallint NOT NULL,
    txnomecurto character varying(90),
    txdescricao character varying(250),
    vlestimado numeric(8,2),
    dtcadservico date
);


ALTER TABLE public.servicos OWNER TO postgres;

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

COMMENT ON TABLE public.servicos IS 'Cadastro dos serviços oferecidos pelas oficinas que cobrem os sinistros das seguradoras.';


--
-- Name: COLUMN servicos.pkservico; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicos.pkservico IS 'PK da tabela.';


--
-- Name: COLUMN servicos.txnomecurto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicos.txnomecurto IS 'Nome simples do serviço com palavras sem abreviações.';


--
-- Name: COLUMN servicos.txdescricao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicos.txdescricao IS 'Descrição do que é feito no serviço. Palavras sem abreviações.';


--
-- Name: COLUMN servicos.vlestimado; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicos.vlestimado IS 'Valor aproximado do serviço.';


--
-- Name: COLUMN servicos.dtcadservico; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicos.dtcadservico IS 'Data de geração do registro';


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

CREATE TABLE public.servicosprestados (
    pkservicoprestado smallint NOT NULL,
    fkfeitospor smallint,
    fkveiculo smallint,
    txdescricaoproblema character varying(250),
    txdescricaosolucao character varying(250),
    dtprevtermino date,
    vlcobrado numeric(8,2),
    dtrealinicio date,
    dtrealtermino date,
    dtcadservicoprestado date
);


ALTER TABLE public.servicosprestados OWNER TO postgres;

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

COMMENT ON TABLE public.servicosprestados IS 'Registro com os serviços de manutenção feitos em cada ônibus ou carro.';


--
-- Name: COLUMN servicosprestados.pkservicoprestado; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicosprestados.pkservicoprestado IS 'PK da Tabela';


--
-- Name: COLUMN servicosprestados.fkfeitospor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicosprestados.fkfeitospor IS 'FK apontando para a tabela servicos que são feitos nos veículos (ônibus ou carros).';


--
-- Name: COLUMN servicosprestados.fkveiculo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicosprestados.fkveiculo IS 'FK com o código do veículo (ônibus ou carros) no qual se faz um serviço. ';


--
-- Name: COLUMN servicosprestados.txdescricaoproblema; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicosprestados.txdescricaoproblema IS 'Descrição do problema apresentado pelo veículo (sem abreviações).';


--
-- Name: COLUMN servicosprestados.txdescricaosolucao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicosprestados.txdescricaosolucao IS 'Descrição da solução indicada para o veículo (sem abreviações).';


--
-- Name: COLUMN servicosprestados.dtprevtermino; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicosprestados.dtprevtermino IS 'Data prevista para término da prestação de serviço.';


--
-- Name: COLUMN servicosprestados.vlcobrado; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicosprestados.vlcobrado IS 'Valor final cobrado pela prestação do serviço feito pela oficina no veículo.';


--
-- Name: COLUMN servicosprestados.dtrealinicio; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicosprestados.dtrealinicio IS 'Data de inicio da prestação do serviço.';


--
-- Name: COLUMN servicosprestados.dtrealtermino; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicosprestados.dtrealtermino IS 'Data de término da prestação do serviço.';


--
-- Name: COLUMN servicosprestados.dtcadservicoprestado; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servicosprestados.dtcadservicoprestado IS 'Data de geração do registro.';


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

CREATE TABLE public.setoresdeatuacao (
    pksetoratuacao smallint NOT NULL,
    txnomesetordeatuacao character varying(90) NOT NULL,
    txdescricaosetordeatuacao character varying(250) NOT NULL,
    dtcadsetordeatuacao date NOT NULL
);


ALTER TABLE public.setoresdeatuacao OWNER TO postgres;

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

COMMENT ON TABLE public.setoresdeatuacao IS 'Cadastro dos setores de atuação das empresas onde funcionários já trabalharam.';


--
-- Name: COLUMN setoresdeatuacao.pksetoratuacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.setoresdeatuacao.pksetoratuacao IS 'PK da Tabela.';


--
-- Name: COLUMN setoresdeatuacao.txnomesetordeatuacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.setoresdeatuacao.txnomesetordeatuacao IS 'Nome completo e sem abreviações';


--
-- Name: COLUMN setoresdeatuacao.txdescricaosetordeatuacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.setoresdeatuacao.txdescricaosetordeatuacao IS 'Texto descrevendo o que se desenvolve no setor de atuação.';


--
-- Name: COLUMN setoresdeatuacao.dtcadsetordeatuacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.setoresdeatuacao.dtcadsetordeatuacao IS 'Data de geração do registro.';


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

CREATE TABLE public.sinistros (
    pksinistro smallint NOT NULL,
    txnomesinistro character varying(90) NOT NULL,
    txdescricaosinistro character varying(250) NOT NULL,
    dtcadsinistro date NOT NULL
);


ALTER TABLE public.sinistros OWNER TO postgres;

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

COMMENT ON TABLE public.sinistros IS 'Cadastro dos Sinistros (acidentes) que podem ocorrer nos veículos segurados de uma seguradora.';


--
-- Name: COLUMN sinistros.pksinistro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.sinistros.pksinistro IS 'PK da Tabela.';


--
-- Name: COLUMN sinistros.txnomesinistro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.sinistros.txnomesinistro IS 'Denominação formal do sinistro.';


--
-- Name: COLUMN sinistros.txdescricaosinistro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.sinistros.txdescricaosinistro IS 'Descrição completa do sinistro (usando termos jurídicos).';


--
-- Name: COLUMN sinistros.dtcadsinistro; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.sinistros.dtcadsinistro IS 'Data de geração do registro.';


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

CREATE TABLE public.tarefas (
    pktarefa smallint NOT NULL,
    txnometarefa character(40) NOT NULL,
    txdescricaotarefa character varying(250) NOT NULL,
    qthoraspadrao smallint DEFAULT NULL::numeric,
    dtcadtarefa date
);


ALTER TABLE public.tarefas OWNER TO postgres;

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

COMMENT ON TABLE public.tarefas IS 'Cadastro das tarefas que podem ser desenvolvidas pelos funcionários em projetos.';


--
-- Name: COLUMN tarefas.pktarefa; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.tarefas.pktarefa IS 'PK da Tabela';


--
-- Name: COLUMN tarefas.txnometarefa; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.tarefas.txnometarefa IS 'Nome curto da ação de projeto (sem abreviações).';


--
-- Name: COLUMN tarefas.txdescricaotarefa; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.tarefas.txdescricaotarefa IS 'Descrição completa de uma ação que é usada em projetos.';


--
-- Name: COLUMN tarefas.qthoraspadrao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.tarefas.qthoraspadrao IS 'Quantidade de Horas padrão para a ação em qualquer projeto.';


--
-- Name: COLUMN tarefas.dtcadtarefa; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.tarefas.dtcadtarefa IS 'Data de geração do registro';


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

CREATE TABLE public.tarefasprojetos (
    pktarefaprojeto smallint NOT NULL,
    fkprojeto character(6) NOT NULL,
    fktarefa smallint NOT NULL,
    qthorasenvolvidas smallint NOT NULL,
    nuordem smallint DEFAULT NULL::numeric,
    dtcadtarefaprojeto date
);


ALTER TABLE public.tarefasprojetos OWNER TO postgres;

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

COMMENT ON TABLE public.tarefasprojetos IS 'Registro das tarefas que são necessárisa em cada projeto.';


--
-- Name: COLUMN tarefasprojetos.pktarefaprojeto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.tarefasprojetos.pktarefaprojeto IS 'PK da tabela.';


--
-- Name: COLUMN tarefasprojetos.fkprojeto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.tarefasprojetos.fkprojeto IS 'FK indicando o código do projeto que tem a tarefa.';


--
-- Name: COLUMN tarefasprojetos.fktarefa; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.tarefasprojetos.fktarefa IS 'FK indicando o código da tarefa do projeto';


--
-- Name: COLUMN tarefasprojetos.qthorasenvolvidas; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.tarefasprojetos.qthorasenvolvidas IS 'Quantidade de horas comprometidas da tarefa no projeto';


--
-- Name: COLUMN tarefasprojetos.nuordem; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.tarefasprojetos.nuordem IS 'Número de ordem da tarefa dentro do projeto.';


--
-- Name: COLUMN tarefasprojetos.dtcadtarefaprojeto; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.tarefasprojetos.dtcadtarefaprojeto IS 'Data de geração do registro.';


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

CREATE TABLE public.telefonestipos (
    pktipotelefone smallint NOT NULL,
    txdescricaotptelefone character varying(250) NOT NULL,
    dtcadtipotelefone date NOT NULL
);


ALTER TABLE public.telefonestipos OWNER TO postgres;

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

COMMENT ON TABLE public.telefonestipos IS 'Cadastro dos tipos de telefones (fixo, celular, empresarial, etc.).';


--
-- Name: COLUMN telefonestipos.pktipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.telefonestipos.pktipotelefone IS 'PK da Tabela';


--
-- Name: COLUMN telefonestipos.txdescricaotptelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.telefonestipos.txdescricaotptelefone IS 'Texto descrevendo o tipo de telefone (sem abreviações).';


--
-- Name: COLUMN telefonestipos.dtcadtipotelefone; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.telefonestipos.dtcadtipotelefone IS 'Data da geração do registro';


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

CREATE TABLE public.titulacoes (
    pktitulacao smallint NOT NULL,
    fkprofessor smallint NOT NULL,
    fkinstituicao smallint,
    dtcadtitulacao date NOT NULL
);


ALTER TABLE public.titulacoes OWNER TO postgres;

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

COMMENT ON TABLE public.titulacoes IS 'Registro dos Títulos alcançados pelos professores.';


--
-- Name: COLUMN titulacoes.pktitulacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.titulacoes.pktitulacao IS 'PK da Tabela. Número inteiro sequencial crescente de 5 em 5.';


--
-- Name: COLUMN titulacoes.fkprofessor; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.titulacoes.fkprofessor IS 'FK para a tabela de Professores.';


--
-- Name: COLUMN titulacoes.fkinstituicao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.titulacoes.fkinstituicao IS 'FK para a tabela instituicoesensino.';


--
-- Name: COLUMN titulacoes.dtcadtitulacao; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.titulacoes.dtcadtitulacao IS 'Data de geração do registro.';


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

CREATE TABLE public.veiculosmarcas (
    pkmarca smallint NOT NULL,
    txnomemarca character varying(90) NOT NULL,
    fkfabricante smallint NOT NULL,
    dtcadmarcaveiculo date NOT NULL
);


ALTER TABLE public.veiculosmarcas OWNER TO postgres;

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

COMMENT ON TABLE public.veiculosmarcas IS 'Cadastro das marcas de veículos desenvolvidos por fabricantes.';


--
-- Name: COLUMN veiculosmarcas.pkmarca; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculosmarcas.pkmarca IS 'PK da Tabela';


--
-- Name: COLUMN veiculosmarcas.txnomemarca; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculosmarcas.txnomemarca IS 'Nome completo e sem abreviações';


--
-- Name: COLUMN veiculosmarcas.fkfabricante; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculosmarcas.fkfabricante IS 'FK com o código do fabricante da marca.';


--
-- Name: COLUMN veiculosmarcas.dtcadmarcaveiculo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculosmarcas.dtcadmarcaveiculo IS 'Data de Geração do Registro.';


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

CREATE TABLE public.veiculosmodelos (
    pkmodelo smallint NOT NULL,
    fkmarca smallint NOT NULL,
    txdescricaomodelo character varying(250) NOT NULL,
    aotipocombustivel character(1) NOT NULL,
    dtcadmodeloveiculo date NOT NULL
);


ALTER TABLE public.veiculosmodelos OWNER TO postgres;

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

COMMENT ON TABLE public.veiculosmodelos IS 'Cadastro de modelos de veículos';


--
-- Name: COLUMN veiculosmodelos.pkmodelo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculosmodelos.pkmodelo IS 'PK da Tabela';


--
-- Name: COLUMN veiculosmodelos.fkmarca; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculosmodelos.fkmarca IS 'FK com o código da marca de veiculos feitos por fabricantes.';


--
-- Name: COLUMN veiculosmodelos.txdescricaomodelo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculosmodelos.txdescricaomodelo IS 'Texto com a descrição do modelo';


--
-- Name: COLUMN veiculosmodelos.aotipocombustivel; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculosmodelos.aotipocombustivel IS 'Atributo Operacional: tipo de combustível Álcool, Gasolina, Diesel, GáS ou Flex';


--
-- Name: COLUMN veiculosmodelos.dtcadmodeloveiculo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculosmodelos.dtcadmodeloveiculo IS 'Data de Geração doRegistro';


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

CREATE TABLE public.veiculostipos (
    pktipoveiculo smallint NOT NULL,
    txdescricaotpveiculo character varying(250) NOT NULL,
    dtcadtipoveiculo date NOT NULL
);


ALTER TABLE public.veiculostipos OWNER TO postgres;

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

COMMENT ON TABLE public.veiculostipos IS 'Cadastro dos Tipos de Veículos';


--
-- Name: COLUMN veiculostipos.pktipoveiculo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculostipos.pktipoveiculo IS 'PK da tabela.';


--
-- Name: COLUMN veiculostipos.txdescricaotpveiculo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculostipos.txdescricaotpveiculo IS 'Texto descrevendo o tipo de veiculo (rodoviário, náutico, aéreo, etc)';


--
-- Name: COLUMN veiculostipos.dtcadtipoveiculo; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.veiculostipos.dtcadtipoveiculo IS 'Data de geração do registro';


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

CREATE TABLE public.viagens (
    pkviagem smallint NOT NULL,
    fkrota smallint DEFAULT NULL::numeric,
    dtsaidaviagem date NOT NULL,
    hrsaida time without time zone NOT NULL,
    dtchegadaviagem date NOT NULL,
    hrchegadaprev time without time zone,
    dtcadviagem date
);


ALTER TABLE public.viagens OWNER TO postgres;

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

COMMENT ON TABLE public.viagens IS 'Cadastro de viagens feitas pelos ônibus';


--
-- Name: COLUMN viagens.pkviagem; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.viagens.pkviagem IS 'PK da tabela.';


--
-- Name: COLUMN viagens.fkrota; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.viagens.fkrota IS 'FK com o código da rota viária da viagem.';


--
-- Name: COLUMN viagens.dtsaidaviagem; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.viagens.dtsaidaviagem IS 'Data de realização da viagem';


--
-- Name: COLUMN viagens.hrsaida; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.viagens.hrsaida IS 'Hora de saída da viagem.';


--
-- Name: COLUMN viagens.dtchegadaviagem; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.viagens.dtchegadaviagem IS 'Data prevista de chegada da viagem';


--
-- Data for Name: agencias; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.agencias VALUES ('001  ', '6632X ', 'Nove de Julho', 10, '452', '01478529', '2010-10-05');
INSERT INTO public.agencias VALUES ('001  ', '6633X ', 'Antonio Mori', 10, '745', '14521521', '2010-10-05');
INSERT INTO public.agencias VALUES ('001  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('002  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('003  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('004  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('007  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('021  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('023  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('025  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('033  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('037  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('041  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('046  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('047  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('070  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('075  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('077  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('082  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('102  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('104  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('107  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('121  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('184  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('208  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('212  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('218  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('224  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('237  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('260  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('263  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('265  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('318  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('320  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('341  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('389  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('422  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('473  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('479  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('505  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('604  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('611  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('612  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('623  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('637  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('643  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('653  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('654  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('655  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('707  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('719  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('721  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('735  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('738  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('741  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('745  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('746  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('748  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('756  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');
INSERT INTO public.agencias VALUES ('M09  ', '0001X ', 'Matriz', 620, '14564 - Bloco 1', '04452160', '2020-09-15');


--
-- Data for Name: agenciastels; Type: TABLE DATA; Schema: public; Owner: postgres
--



--
-- Data for Name: aplicacaodascontas; Type: TABLE DATA; Schema: public; Owner: postgres
--



--
-- Data for Name: aplicacoesfinanceiras; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.aplicacoesfinanceiras VALUES (5, 'RDB', 'Investimento de 5000 (mínimo) por um período de 30 dias (mínimo).', 3.5, 5.5, '2016-10-18');
INSERT INTO public.aplicacoesfinanceiras VALUES (10, 'Poupança', 'Investimento de 500 (mínimo) com liquidez diária a partir de 30 dias do depósito inicial.', 1, 1.5, '2016-10-18');


--
-- Data for Name: areaestudo; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.areaestudo VALUES (25, 'Gestão e Administração', '', '2010-12-16');
INSERT INTO public.areaestudo VALUES (30, 'Tecnologias da Informação e Comunicação', '', '2010-12-16');
INSERT INTO public.areaestudo VALUES (35, 'Astronomia', 'agrupa os estudos de fisica astronomica, geoestatistica quantica aplicada', '2010-10-10');
INSERT INTO public.areaestudo VALUES (5, 'Exatas', 'Agrupa as áreas de matemática, física, quimica e engenharias', '2001-01-01');
INSERT INTO public.areaestudo VALUES (10, 'Humanas', '', '2001-01-01');
INSERT INTO public.areaestudo VALUES (15, 'Biomédicas', '', '2001-01-01');
INSERT INTO public.areaestudo VALUES (20, 'Ciências Ambientais', '', '2001-01-01');


--
-- Data for Name: areaestudocursos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.areaestudocursos VALUES (20, 4, 30, '2001-05-10');
INSERT INTO public.areaestudocursos VALUES (15, 3, 35, '2001-05-10');
INSERT INTO public.areaestudocursos VALUES (5, 1, 15, '2001-06-10');
INSERT INTO public.areaestudocursos VALUES (10, 3, 20, '2001-05-10');
INSERT INTO public.areaestudocursos VALUES (12, 1, 35, '2010-10-10');


--
-- Data for Name: areaestudodisciplinas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.areaestudodisciplinas VALUES (20, 1, 25, '2011-05-10');
INSERT INTO public.areaestudodisciplinas VALUES (25, 1, 35, '2005-05-05');
INSERT INTO public.areaestudodisciplinas VALUES (5, 1, 5, '1980-01-01');
INSERT INTO public.areaestudodisciplinas VALUES (30, 2, 5, '1980-01-01');
INSERT INTO public.areaestudodisciplinas VALUES (40, 3, 10, '1980-01-01');
INSERT INTO public.areaestudodisciplinas VALUES (10, 1, 10, '1980-01-01');
INSERT INTO public.areaestudodisciplinas VALUES (35, 2, 10, '2010-10-10');
INSERT INTO public.areaestudodisciplinas VALUES (15, 1, 20, '2004-02-04');


--
-- Data for Name: areaestudolivros; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.areaestudolivros VALUES (10, 20, 25, 1, '2010-10-10');
INSERT INTO public.areaestudolivros VALUES (15, 70, 25, 2, '2010-10-10');
INSERT INTO public.areaestudolivros VALUES (5, 20, 5, 10, '2010-10-10');


--
-- Data for Name: armazens; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.armazens VALUES (2, 'Sao Sebastiao', '', 470, ' 1492', 10, '            ', '        ', 50000, '1980-01-01');
INSERT INTO public.armazens VALUES (5, 'Dois Irmaos', '', 470, ' 234', 10, '            ', '        ', 15000, '1980-01-01');
INSERT INTO public.armazens VALUES (15, 'Big Warehouse Bahia', 'Galpão Único com pé direito de 15Metros', 240, '456', 55, '123         ', '12313212', 35000, '2010-10-10');
INSERT INTO public.armazens VALUES (3, 'Rio de Janeiro - 01', 'Galpão Único com pé direito de 15Metros - Lojas Americanas', 470, ' 234', 10, '2174857485  ', '12345678', 20000, '1980-01-01');
INSERT INTO public.armazens VALUES (1, 'Americanas V', 'Galpão Único com pé direito de 15Metros - Lojas Americanas', 100, 'Km 30', 10, '1145124512  ', '12345678', 150000, '2015-12-07');


--
-- Data for Name: atividades; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.atividades VALUES (25, 'Implementação de programas', 'Programação, testes, implantação e treinamento dos usuários', '2010-10-10');
INSERT INTO public.atividades VALUES (5, 'Estudos de Viabilidade', 'Analisa as condições de exequibilidade de projetos', '2011-06-11');
INSERT INTO public.atividades VALUES (10, 'Levantamentos de Requisitos', 'Determina as características centrais do Sistema', '2011-06-11');
INSERT INTO public.atividades VALUES (15, 'Modelagem do sistema', 'Definição de modelos de dados e processos', '2010-10-10');
INSERT INTO public.atividades VALUES (20, 'Especificação técnica de Dados e processos', 'Definição do Modelo Físico. Determinação dos Modelos de Dados e Processos', '2010-10-10');
INSERT INTO public.atividades VALUES (30, 'Construção dos Bancos de Dados', 'Implantação do SGBD e construção dos BDs.', '2010-10-10');


--
-- Data for Name: atribuicoes; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.atribuicoes VALUES (1, 1, 1, 10, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (2, 1, 2, 12, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (3, 1, 3, 8, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (4, 1, 4, 20, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (5, 2, 1, 15, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (6, 2, 2, 10, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (7, 2, 3, 5, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (8, 2, 4, 10, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (9, 3, 5, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (10, 3, 6, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (11, 3, 7, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (12, 3, 8, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (13, 4, 5, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (14, 4, 6, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (15, 4, 7, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (16, 4, 8, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (17, 5, 5, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (18, 5, 6, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (19, 5, 7, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (20, 5, 8, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (21, 6, 9, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (22, 6, 10, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (23, 7, 9, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (24, 7, 10, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (25, 7, 17, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (26, 7, 18, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (27, 7, 19, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (28, 7, 20, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (29, 7, 21, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (30, 7, 22, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (31, 8, 11, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (32, 8, 12, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (33, 9, 11, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (34, 9, 12, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (35, 10, 11, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (36, 11, 13, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (37, 11, 14, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (38, 12, 13, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (39, 12, 14, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (40, 13, 13, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (41, 13, 14, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (42, 14, 13, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (43, 14, 14, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (44, 15, 15, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (45, 15, 16, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (46, 16, 15, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (47, 16, 16, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (48, 17, 15, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (49, 17, 16, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (50, 18, 15, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (51, 18, 16, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (52, 19, 17, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (53, 19, 18, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (54, 20, 17, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (55, 20, 18, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (56, 21, 17, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (57, 22, 19, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (58, 22, 20, 0, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (59, 23, 19, 10, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (60, 23, 20, 10, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (61, 24, 19, 20, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (62, 24, 20, 20, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (63, 25, 19, 10, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (64, 25, 20, 15, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (65, 27, 21, 10, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (66, 27, 22, 20, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (67, 28, 21, 10, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (68, 28, 22, 15, '1980-01-01', NULL);
INSERT INTO public.atribuicoes VALUES (69, 29, 1, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (70, 29, 2, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (71, 29, 3, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (72, 29, 4, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (73, 29, 5, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (74, 29, 6, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (75, 29, 7, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (76, 29, 8, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (77, 29, 9, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (78, 29, 10, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (79, 29, 11, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (80, 29, 12, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (81, 29, 13, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (82, 29, 14, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (83, 29, 15, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (84, 29, 16, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (85, 29, 17, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (86, 29, 18, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (87, 29, 19, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (88, 29, 20, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (89, 29, 21, 6, '2013-11-25', NULL);
INSERT INTO public.atribuicoes VALUES (90, 29, 22, 6, '2013-11-25', NULL);


--
-- Data for Name: atuacoes; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.atuacoes VALUES (1, 1, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (2, 2, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (3, 3, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (4, 4, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (5, 5, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (6, 6, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (7, 7, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (8, 8, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (9, 9, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (10, 10, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (11, 11, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (12, 12, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (13, 13, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (14, 14, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (15, 15, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (16, 16, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (17, 17, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (18, 18, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (19, 19, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (20, 20, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (21, 21, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (22, 22, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (23, 23, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (24, 24, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (25, 25, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (26, 26, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (27, 27, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (28, 28, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (29, 29, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (30, 30, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (31, 31, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (32, 32, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (33, 33, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (34, 34, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (35, 35, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (36, 36, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (37, 37, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (38, 38, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (39, 39, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (40, 40, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (41, 41, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (42, 42, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (43, 43, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (44, 44, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (45, 45, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (46, 46, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (47, 47, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (48, 48, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (49, 49, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (50, 50, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (51, 51, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (52, 52, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (53, 53, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (54, 54, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (55, 55, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (56, 56, 10, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (57, 8, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (58, 9, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (59, 10, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (60, 11, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (61, 12, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (62, 13, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (63, 14, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (64, 15, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (65, 16, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (66, 17, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (67, 18, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (68, 19, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (69, 20, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (70, 21, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (71, 22, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (72, 23, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (73, 24, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (74, 25, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (75, 26, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (76, 27, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (77, 28, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (78, 29, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (79, 30, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (80, 31, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (81, 32, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (82, 33, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (83, 34, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (84, 35, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (85, 36, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (86, 37, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (87, 38, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (88, 39, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (89, 40, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (90, 41, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (91, 42, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (92, 43, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (93, 44, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (94, 45, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (95, 46, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (96, 47, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (97, 48, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (98, 49, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (99, 50, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (100, 51, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (101, 52, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (102, 53, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (103, 54, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (104, 55, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (105, 56, 20, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (106, 1, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (107, 2, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (108, 3, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (109, 4, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (110, 5, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (111, 6, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (112, 7, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (113, 8, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (114, 9, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (115, 10, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (116, 11, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (117, 19, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (118, 20, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (119, 21, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (120, 22, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (121, 23, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (122, 24, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (123, 25, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (124, 26, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (125, 27, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (126, 28, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (127, 29, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (128, 30, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (129, 31, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (130, 32, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (131, 33, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (132, 34, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (133, 35, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (134, 36, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (135, 37, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (136, 38, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (137, 39, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (138, 40, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (139, 41, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (140, 42, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (141, 43, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (142, 44, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (143, 45, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (144, 46, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (145, 47, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (146, 48, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (147, 49, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (148, 50, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (149, 51, 30, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (150, 35, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (151, 36, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (152, 37, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (153, 38, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (154, 39, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (155, 40, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (156, 41, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (157, 42, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (158, 43, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (159, 44, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (160, 45, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (161, 46, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (162, 47, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (163, 48, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (164, 49, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (165, 50, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (166, 51, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (167, 52, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (168, 53, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (169, 54, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (170, 55, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (171, 56, 40, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (172, 1, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (173, 2, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (174, 3, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (175, 4, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (176, 5, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (177, 6, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (178, 7, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (179, 8, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (180, 9, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (181, 10, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (182, 11, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (183, 12, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (184, 13, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (185, 14, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (186, 15, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (187, 16, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (188, 17, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (189, 18, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (190, 19, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (191, 20, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (192, 21, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (193, 22, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (194, 23, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (195, 24, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (196, 25, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (197, 26, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (198, 27, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (199, 28, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (200, 29, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (201, 30, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (202, 31, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (203, 32, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (204, 33, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (205, 34, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (206, 35, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (207, 36, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (208, 37, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (209, 38, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (210, 39, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (211, 40, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (212, 41, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (213, 42, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (214, 43, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (215, 44, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (216, 45, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (217, 46, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (218, 47, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (219, 48, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (220, 49, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (221, 50, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (222, 51, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (223, 52, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (224, 53, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (225, 54, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (226, 55, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (227, 56, 50, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (228, 9, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (229, 10, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (230, 11, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (231, 12, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (232, 13, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (233, 14, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (234, 15, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (235, 16, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (236, 17, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (237, 18, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (238, 19, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (239, 20, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (240, 21, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (241, 22, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (242, 23, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (243, 24, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (244, 25, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (245, 26, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (246, 27, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (247, 28, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (248, 29, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (249, 30, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (250, 31, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (251, 32, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (252, 33, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (253, 34, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (254, 35, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (255, 36, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (256, 37, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (257, 38, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (258, 39, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (259, 40, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (260, 41, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (261, 42, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (262, 43, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (263, 44, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (264, 45, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (265, 46, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (266, 47, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (267, 48, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (268, 49, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (269, 50, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (270, 51, 70, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (271, 8, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (272, 9, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (273, 10, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (274, 11, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (275, 12, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (276, 13, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (277, 14, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (278, 15, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (279, 16, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (280, 17, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (281, 18, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (282, 19, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (283, 20, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (284, 21, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (285, 22, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (286, 23, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (287, 24, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (288, 25, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (289, 33, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (290, 34, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (291, 35, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (292, 36, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (293, 37, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (294, 38, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (295, 39, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (296, 40, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (297, 41, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (298, 42, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (299, 43, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (300, 44, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (301, 45, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (302, 46, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (303, 47, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (304, 48, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (305, 49, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (306, 50, 80, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (307, 43, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (308, 44, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (309, 45, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (310, 46, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (311, 47, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (312, 48, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (313, 49, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (314, 50, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (315, 51, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (316, 52, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (317, 53, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (318, 54, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (319, 55, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (320, 56, 90, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (321, 1, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (322, 2, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (323, 3, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (324, 4, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (325, 5, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (326, 6, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (327, 7, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (328, 8, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (329, 9, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (330, 10, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (331, 11, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (332, 12, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (333, 13, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (334, 14, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (335, 15, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (336, 16, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (337, 17, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (338, 18, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (339, 19, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (340, 20, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (341, 21, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (342, 22, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (343, 23, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (344, 24, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (345, 25, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (346, 26, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (347, 27, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (348, 28, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (349, 29, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (350, 30, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (351, 31, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (352, 32, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (353, 33, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (354, 34, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (355, 35, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (356, 36, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (357, 37, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (358, 38, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (359, 39, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (360, 40, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (361, 41, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (362, 42, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (363, 43, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (364, 44, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (365, 45, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (366, 46, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (367, 47, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (368, 48, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (369, 49, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (370, 50, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (371, 51, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (372, 52, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (373, 53, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (374, 54, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (375, 55, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (376, 56, 100, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (377, 37, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (378, 38, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (379, 39, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (380, 40, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (381, 41, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (382, 42, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (383, 43, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (384, 44, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (385, 45, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (386, 46, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (387, 47, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (388, 48, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (389, 49, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (390, 50, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (391, 51, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (392, 52, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (393, 53, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (394, 54, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (395, 55, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (396, 56, 110, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (397, 1, 120, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (398, 2, 120, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (399, 3, 120, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (400, 4, 120, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (401, 12, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (402, 13, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (403, 14, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (404, 15, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (405, 16, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (406, 17, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (407, 18, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (408, 19, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (409, 20, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (410, 21, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (411, 22, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (412, 23, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (413, 24, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (414, 25, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (415, 26, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (416, 27, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (417, 28, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (418, 29, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (419, 30, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (420, 31, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (421, 32, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (422, 33, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (423, 34, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (424, 35, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (425, 36, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (426, 37, 130, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (427, 41, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (428, 42, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (429, 43, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (430, 44, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (431, 45, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (432, 46, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (433, 47, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (434, 48, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (435, 49, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (436, 50, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (437, 51, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (438, 52, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (439, 53, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (440, 54, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (441, 55, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (442, 56, 150, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (443, 9, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (444, 10, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (445, 11, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (446, 12, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (447, 13, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (448, 14, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (449, 15, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (450, 16, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (451, 17, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (452, 18, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (453, 19, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (454, 20, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (455, 21, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (456, 22, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (457, 23, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (458, 24, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (459, 25, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (460, 26, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (461, 27, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (462, 28, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (463, 29, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (464, 30, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (465, 31, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (466, 32, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (467, 33, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (468, 34, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (469, 39, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (470, 40, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (471, 41, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (472, 42, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (473, 43, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (474, 44, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (475, 45, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (476, 46, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (477, 47, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (478, 48, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (479, 49, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (480, 51, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (481, 52, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (482, 53, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (483, 54, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (484, 55, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (485, 56, 170, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (486, 1, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (487, 2, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (488, 3, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (489, 4, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (490, 5, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (491, 6, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (492, 7, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (493, 8, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (494, 9, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (495, 10, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (496, 11, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (497, 12, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (498, 13, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (499, 14, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (500, 29, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (501, 30, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (502, 31, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (503, 32, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (504, 33, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (505, 34, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (506, 35, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (507, 36, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (508, 37, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (509, 38, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (510, 39, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (511, 40, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (512, 41, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (513, 42, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (514, 43, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (515, 44, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (516, 45, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (517, 46, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (518, 47, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (519, 48, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (520, 49, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (521, 50, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (522, 51, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (523, 52, 190, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (524, 9, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (525, 10, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (526, 11, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (527, 12, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (528, 13, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (529, 14, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (530, 15, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (531, 16, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (532, 17, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (533, 18, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (534, 19, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (535, 20, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (536, 21, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (537, 22, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (538, 23, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (539, 24, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (540, 25, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (541, 26, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (542, 27, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (543, 28, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (544, 29, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (545, 30, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (546, 31, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (547, 32, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (548, 33, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (549, 38, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (550, 39, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (551, 40, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (552, 41, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (553, 42, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (554, 43, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (555, 44, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (556, 45, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (557, 46, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (558, 47, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (559, 48, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (560, 49, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (561, 50, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (562, 51, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (563, 52, 200, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (564, 38, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (565, 39, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (566, 40, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (567, 41, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (568, 42, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (569, 43, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (570, 44, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (571, 45, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (572, 46, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (573, 47, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (574, 48, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (575, 49, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (576, 50, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (577, 51, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (578, 52, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (579, 53, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (580, 54, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (581, 55, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (582, 56, 210, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (583, 1, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (584, 9, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (585, 10, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (586, 11, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (587, 12, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (588, 13, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (589, 14, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (590, 15, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (591, 16, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (592, 17, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (593, 18, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (594, 19, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (595, 20, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (596, 21, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (597, 37, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (598, 38, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (599, 39, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (600, 40, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (601, 41, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (602, 42, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (603, 43, 220, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (604, 9, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (605, 10, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (606, 11, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (607, 12, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (608, 13, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (609, 14, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (610, 15, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (611, 16, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (612, 17, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (613, 18, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (614, 19, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (615, 20, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (616, 21, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (617, 22, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (618, 23, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (619, 24, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (620, 45, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (621, 46, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (622, 47, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (623, 48, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (624, 49, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (625, 50, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (626, 51, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (627, 52, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (628, 53, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (629, 54, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (630, 55, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (631, 56, 230, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (632, 1, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (633, 2, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (634, 3, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (635, 4, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (636, 24, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (637, 25, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (638, 26, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (639, 27, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (640, 28, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (641, 29, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (642, 30, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (643, 31, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (644, 32, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (645, 33, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (646, 34, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (647, 35, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (648, 36, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (649, 37, 240, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (650, 1, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (651, 2, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (652, 3, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (653, 4, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (654, 5, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (655, 6, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (656, 7, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (657, 8, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (658, 9, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (659, 10, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (660, 11, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (661, 12, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (662, 13, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (663, 14, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (664, 15, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (665, 37, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (666, 38, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (667, 39, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (668, 40, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (669, 41, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (670, 42, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (671, 43, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (672, 44, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (673, 45, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (674, 46, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (675, 47, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (676, 48, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (677, 49, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (678, 50, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (679, 51, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (680, 52, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (681, 53, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (682, 54, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (683, 55, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (684, 56, 250, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (685, 1, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (686, 2, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (687, 24, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (688, 25, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (689, 26, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (690, 27, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (691, 28, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (692, 29, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (693, 30, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (694, 31, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (695, 32, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (696, 33, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (697, 34, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (698, 35, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (699, 36, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (700, 37, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (701, 38, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (702, 39, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (703, 40, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (704, 41, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (705, 42, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (706, 43, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (707, 44, 260, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (708, 11, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (709, 12, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (710, 13, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (711, 14, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (712, 15, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (713, 16, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (714, 17, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (715, 18, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (716, 19, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (717, 20, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (718, 21, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (719, 22, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (720, 23, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (721, 24, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (722, 25, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (723, 26, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (724, 27, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (725, 28, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (726, 52, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (727, 53, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (728, 54, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (729, 55, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (730, 56, 270, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (731, 1, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (732, 2, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (733, 3, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (734, 4, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (735, 5, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (736, 6, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (737, 7, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (738, 34, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (739, 35, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (740, 36, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (741, 37, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (742, 38, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (743, 39, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (744, 40, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (745, 41, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (746, 42, 280, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (747, 12, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (748, 13, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (749, 14, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (750, 15, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (751, 16, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (752, 17, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (753, 18, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (754, 19, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (755, 20, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (756, 21, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (757, 22, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (758, 23, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (759, 24, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (760, 25, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (761, 26, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (762, 27, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (763, 28, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (764, 29, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (765, 30, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (766, 31, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (767, 32, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (768, 33, 290, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (769, 1, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (770, 2, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (771, 3, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (772, 4, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (773, 5, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (774, 6, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (775, 7, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (776, 8, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (777, 9, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (778, 10, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (779, 11, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (780, 12, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (781, 13, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (782, 14, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (783, 15, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (784, 16, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (785, 17, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (786, 18, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (787, 19, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (788, 20, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (789, 21, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (790, 22, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (791, 23, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (792, 24, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (793, 25, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (794, 26, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (795, 27, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (796, 28, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (797, 29, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (798, 30, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (799, 31, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (800, 32, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (801, 33, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (802, 34, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (803, 35, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (804, 36, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (805, 37, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (806, 38, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (807, 39, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (808, 40, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (809, 41, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (810, 42, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (811, 43, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (812, 44, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (813, 45, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (814, 46, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (815, 47, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (816, 48, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (817, 49, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (818, 50, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (819, 51, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (820, 52, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (821, 53, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (822, 54, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (823, 55, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (824, 56, 300, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (825, 1, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (826, 2, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (827, 19, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (828, 20, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (829, 21, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (830, 22, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (831, 23, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (832, 24, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (833, 25, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (834, 26, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (835, 27, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (836, 28, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (837, 29, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (838, 30, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (839, 31, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (840, 32, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (841, 33, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (842, 34, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (843, 35, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (844, 36, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (845, 37, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (846, 38, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (847, 54, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (848, 55, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (849, 56, 310, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (850, 1, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (851, 2, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (852, 3, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (853, 4, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (854, 5, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (855, 6, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (856, 7, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (857, 8, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (858, 9, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (859, 10, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (860, 11, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (861, 12, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (862, 13, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (863, 14, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (864, 15, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (865, 16, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (866, 35, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (867, 36, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (868, 37, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (869, 38, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (870, 39, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (871, 40, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (872, 41, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (873, 42, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (874, 43, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (875, 44, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (876, 45, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (877, 46, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (878, 47, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (879, 48, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (880, 49, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (881, 50, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (882, 51, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (883, 52, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (884, 53, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (885, 54, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (886, 55, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (887, 56, 320, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (888, 1, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (889, 2, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (890, 3, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (891, 4, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (892, 22, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (893, 23, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (894, 24, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (895, 25, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (896, 26, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (897, 27, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (898, 28, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (899, 29, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (900, 30, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (901, 31, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (902, 32, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (903, 33, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (904, 34, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (905, 35, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (906, 36, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (907, 37, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (908, 38, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (909, 39, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (910, 40, 330, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (911, 8, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (912, 9, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (913, 10, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (914, 11, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (915, 12, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (916, 13, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (917, 14, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (918, 15, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (919, 16, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (920, 17, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (921, 18, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (922, 19, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (923, 20, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (924, 21, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (925, 22, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (926, 23, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (927, 24, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (928, 25, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (929, 26, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (930, 27, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (931, 28, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (932, 29, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (933, 30, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (934, 31, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (935, 32, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (936, 33, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (937, 34, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (938, 35, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (939, 36, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (940, 37, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (941, 38, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (942, 39, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (943, 40, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (944, 41, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (945, 42, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (946, 43, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (947, 44, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (948, 45, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (949, 46, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (950, 47, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (951, 48, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (952, 49, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (953, 50, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (954, 51, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (955, 52, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (956, 53, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (957, 54, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (958, 55, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (959, 56, 340, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (960, 1, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (961, 2, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (962, 22, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (963, 23, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (964, 24, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (965, 25, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (966, 26, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (967, 27, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (968, 28, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (969, 29, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (970, 30, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (971, 31, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (972, 32, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (973, 33, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (974, 34, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (975, 35, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (976, 36, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (977, 37, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (978, 38, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (979, 39, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (980, 40, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (981, 41, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (982, 42, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (983, 43, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (984, 44, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (985, 45, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (986, 46, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (987, 47, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (988, 48, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (989, 49, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (990, 50, 350, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (991, 15, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (992, 16, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (993, 17, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (994, 18, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (995, 19, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (996, 20, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (997, 21, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (998, 22, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (999, 23, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1000, 24, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1001, 25, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1002, 26, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1003, 27, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1004, 28, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1005, 29, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1006, 30, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1007, 31, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1008, 32, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1009, 33, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1010, 34, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1011, 35, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1012, 36, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1013, 55, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1014, 56, 360, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1015, 1, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1016, 2, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1017, 3, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1018, 4, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1019, 5, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1020, 6, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1021, 7, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1022, 8, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1023, 9, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1024, 10, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1025, 11, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1026, 12, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1027, 13, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1028, 14, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1029, 15, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1030, 16, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1031, 41, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1032, 42, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1033, 43, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1034, 44, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1035, 45, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1036, 46, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1037, 47, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1038, 48, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1039, 49, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1040, 50, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1041, 51, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1042, 52, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1043, 53, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1044, 54, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1045, 55, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1046, 56, 370, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1047, 1, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1048, 2, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1049, 3, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1050, 4, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1051, 5, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1052, 6, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1053, 7, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1054, 8, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1055, 9, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1056, 10, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1057, 11, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1058, 12, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1059, 13, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1060, 34, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1061, 35, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1062, 36, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1063, 37, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1064, 38, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1065, 39, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1066, 40, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1067, 41, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1068, 42, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1069, 43, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1070, 44, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1071, 45, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1072, 46, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1073, 47, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1074, 48, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1075, 49, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1076, 50, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1077, 51, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1078, 52, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1079, 53, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1080, 54, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1081, 55, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1082, 56, 380, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1083, 1, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1084, 2, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1085, 3, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1086, 4, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1087, 5, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1088, 6, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1089, 7, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1090, 8, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1091, 9, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1092, 10, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1093, 11, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1094, 12, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1095, 13, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1096, 14, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1097, 15, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1098, 16, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1099, 17, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1100, 18, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1101, 19, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1102, 20, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1103, 21, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1104, 22, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1105, 23, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1106, 24, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1107, 25, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1108, 26, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1109, 27, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1110, 28, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1111, 29, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1112, 30, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1113, 31, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1114, 32, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1115, 33, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1116, 34, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1117, 35, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1118, 36, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1119, 37, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1120, 38, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1121, 39, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1122, 40, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1123, 41, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1124, 42, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1125, 43, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1126, 44, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1127, 45, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1128, 46, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1129, 47, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1130, 48, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1131, 49, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1132, 50, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1133, 51, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1134, 52, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1135, 53, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1136, 54, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1137, 55, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1138, 56, 390, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1139, 17, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1140, 18, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1141, 19, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1142, 20, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1143, 21, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1144, 22, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1145, 23, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1146, 24, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1147, 25, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1148, 26, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1149, 27, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1150, 28, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1151, 29, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1152, 30, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1153, 53, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1154, 54, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1155, 55, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1156, 56, 400, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1157, 1, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1158, 2, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1159, 3, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1160, 4, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1161, 5, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1162, 6, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1163, 7, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1164, 8, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1165, 9, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1166, 10, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1167, 11, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1168, 12, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1169, 13, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1170, 14, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1171, 15, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1172, 16, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1173, 17, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1174, 18, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1175, 19, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1176, 42, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1177, 43, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1178, 44, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1179, 45, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1180, 46, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1181, 47, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1182, 48, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1183, 49, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1184, 50, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1185, 51, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1186, 52, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1187, 53, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1188, 54, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1189, 55, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1190, 56, 410, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1191, 1, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1192, 2, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1193, 3, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1194, 4, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1195, 5, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1196, 6, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1197, 7, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1198, 8, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1199, 9, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1200, 10, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1201, 11, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1202, 33, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1203, 34, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1204, 35, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1205, 36, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1206, 37, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1207, 38, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1208, 39, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1209, 40, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1210, 41, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1211, 42, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1212, 43, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1213, 44, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1214, 45, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1215, 46, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1216, 47, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1217, 48, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1218, 49, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1219, 50, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1220, 51, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1221, 52, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1222, 53, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1223, 54, 420, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1224, 15, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1225, 16, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1226, 17, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1227, 18, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1228, 19, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1229, 20, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1230, 21, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1231, 22, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1232, 23, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1233, 24, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1234, 25, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1235, 26, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1236, 27, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1237, 28, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1238, 29, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1239, 30, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1240, 31, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1241, 32, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1242, 33, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1243, 34, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1244, 35, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1245, 36, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1246, 37, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1247, 38, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1248, 39, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1249, 40, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1250, 41, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1251, 42, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1252, 43, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1253, 44, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1254, 45, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1255, 46, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1256, 47, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1257, 48, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1258, 49, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1259, 50, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1260, 51, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1261, 52, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1262, 53, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1263, 54, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1264, 55, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1265, 56, 430, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1266, 1, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1267, 2, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1268, 3, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1269, 4, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1270, 5, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1271, 6, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1272, 7, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1273, 8, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1274, 9, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1275, 10, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1276, 11, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1277, 12, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1278, 13, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1279, 14, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1280, 15, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1281, 16, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1282, 17, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1283, 18, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1284, 19, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1285, 20, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1286, 21, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1287, 22, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1288, 23, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1289, 24, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1290, 25, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1291, 26, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1292, 27, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1293, 28, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1294, 29, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1295, 30, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1296, 31, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1297, 32, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1298, 33, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1299, 34, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1300, 35, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1301, 36, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1302, 37, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1303, 38, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1304, 39, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1305, 40, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1306, 41, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1307, 42, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1308, 43, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1309, 44, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1310, 45, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1311, 46, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1312, 47, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1313, 48, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1314, 49, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1315, 50, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1316, 51, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1317, 52, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1318, 53, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1319, 54, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1320, 55, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1321, 56, 440, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1322, 49, 460, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1323, 50, 460, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1324, 51, 460, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1325, 52, 460, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1326, 53, 460, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1327, 54, 460, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1328, 55, 460, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1329, 56, 460, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1330, 1, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1331, 2, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1332, 3, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1333, 4, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1334, 5, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1335, 6, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1336, 7, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1337, 8, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1338, 9, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1339, 10, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1340, 11, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1341, 12, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1342, 13, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1343, 14, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1344, 15, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1345, 16, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1346, 17, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1347, 18, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1348, 19, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1349, 20, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1350, 21, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1351, 22, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1352, 23, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1353, 24, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1354, 25, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1355, 26, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1356, 27, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1357, 28, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1358, 29, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1359, 30, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1360, 31, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1361, 32, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1362, 33, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1363, 34, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1364, 35, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1365, 36, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1366, 37, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1367, 38, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1368, 39, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1369, 40, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1370, 41, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1371, 42, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1372, 43, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1373, 44, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1374, 45, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1375, 46, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1376, 47, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1377, 48, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1378, 49, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1379, 50, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1380, 51, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1381, 52, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1382, 53, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1383, 54, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1384, 55, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');
INSERT INTO public.atuacoes VALUES (1385, 56, 470, '2017-10-05', '2017-10-30', 100, '2017-11-05');


--
-- Data for Name: autores; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.autores VALUES (10, 'João Maurício Hypólito                                                                    ', 600, ' 985', '12345678', '1980-01-01', '2013-03-20');
INSERT INTO public.autores VALUES (20, 'Liev Tolstoi                                                                              ', 460, ' 1254', '15452145', '1980-01-01', '2010-10-10');
INSERT INTO public.autores VALUES (40, 'José do Patrocínio                                                                        ', 20, '45', '19906160', '1984-05-20', '2010-10-10');
INSERT INTO public.autores VALUES (50, 'Chico Buarque                                                                             ', 20, '45', '04512412', '1951-05-20', '1995-02-20');
INSERT INTO public.autores VALUES (70, 'César Camargo Mariano                                                                     ', 40, '15', '41524152', '1955-08-09', '1995-05-05');
INSERT INTO public.autores VALUES (80, 'Vinicius de Morais                                                                        ', 490, '2324', '04512451', '1935-05-10', '1985-10-10');
INSERT INTO public.autores VALUES (130, 'Cecilia Meireles da silva                                                                 ', 590, ' Km 289', '02342345', '1980-01-01', '2009-10-10');


--
-- Data for Name: autorestels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.autorestels VALUES (5, 10, 5, '1433522653     ', '2016-10-18');
INSERT INTO public.autorestels VALUES (10, 10, 10, '14985641452    ', '2016-10-18');


--
-- Data for Name: autorias; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.autorias VALUES (5, 10, 10, '2011-10-10');
INSERT INTO public.autorias VALUES (10, 10, 20, '2010-10-10');


--
-- Data for Name: bairros; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.bairros VALUES (1, 'Centro', 10, '2014-03-29');
INSERT INTO public.bairros VALUES (2, 'Centro', 5, '2014-03-29');
INSERT INTO public.bairros VALUES (3, 'Centro', 20, '2014-03-29');
INSERT INTO public.bairros VALUES (4, 'Bela Vista', 5, '2014-03-29');
INSERT INTO public.bairros VALUES (5, 'Bexiga', 5, '2014-03-29');
INSERT INTO public.bairros VALUES (6, 'Liberdade', 5, '2014-03-29');
INSERT INTO public.bairros VALUES (7, 'Vila Musa', 35, '2014-03-29');
INSERT INTO public.bairros VALUES (8, 'Vila Matilde', 5, '2014-03-29');
INSERT INTO public.bairros VALUES (9, 'Vila Esperança', 5, '2014-03-29');


--
-- Data for Name: bairroslogradouros; Type: TABLE DATA; Schema: public; Owner: postgres
--



--
-- Data for Name: bancos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.bancos VALUES ('001  ', 'Banco do Brasil', '1940-05-02', NULL, NULL, 'F', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('002  ', 'Banco Central do Brasil', '1940-05-02', NULL, NULL, 'F', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('003  ', 'Banco da Amazônia', '1940-05-02', NULL, NULL, 'F', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('004  ', 'Banco do Nordeste do Brasil', '1940-05-02', NULL, NULL, 'F', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('007  ', 'Banco Nacional de Desenvolvimento Econômico e Social', '1940-05-02', NULL, NULL, 'F', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('021  ', 'Banco do Estado do Espírito Santo', '1940-05-02', NULL, NULL, 'E', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('023  ', 'Banco de Desenvolvimento de Minas Gerais', '1940-05-02', NULL, NULL, 'E', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('025  ', 'Banco Alfa', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('033  ', 'Banco Santander', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('037  ', 'Banco do Estado do Pará', '1940-05-02', NULL, NULL, 'E', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('041  ', 'Banco do Estado do Rio Grande do Sul', '1940-05-02', NULL, NULL, 'E', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('046  ', 'Banco Regional de Desenvolvimento do Extremo Sul', '1940-05-02', NULL, NULL, 'I', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('047  ', 'Banco do Estado de Sergipe', '1940-05-02', NULL, NULL, 'E', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('070  ', 'Banco de Brasília', '1940-05-02', NULL, NULL, 'E', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('075  ', 'Banco ABN Amro S.A.', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('077  ', 'Banco Inter', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('082  ', 'Banco Topázio', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('102  ', 'XP Investimentos Corretora de Câmbio Títulos e Valores Mobiliários S.A', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('104  ', 'Caixa Econômica Federal', '1940-05-02', NULL, NULL, 'F', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('107  ', 'Banco BBM', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('121  ', 'Agibank', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('184  ', 'Banco Itaú BBA', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('208  ', 'Banco BTG Pactual', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('212  ', 'Banco Original', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('218  ', 'Banco Bonsucesso', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('224  ', 'Banco Fibra', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('237  ', 'Bradesco', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('260  ', 'Nu Pagamentos S.A', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('263  ', 'Banco Cacique', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('265  ', 'Banco Fator', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('318  ', 'Banco BMG', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('320  ', 'Banco Industrial e Comercial', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('341  ', 'Itaú Unibanco', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('389  ', 'Banco Mercantil do Brasil', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('422  ', 'Banco Safra', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('473  ', 'Banco Caixa Geral', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('479  ', 'Banco ItaúBank', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('505  ', 'Banco Credit Suisse', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('604  ', 'Banco Industrial do Brasil', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('611  ', 'Banco Paulista', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('612  ', 'Banco Guanabara', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('623  ', 'Banco Pan', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('637  ', 'Banco Sofisa', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('643  ', 'Banco Pine', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('653  ', 'Banco Indusval', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('654  ', 'Banco Renner', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('655  ', 'Banco Votorantim', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('707  ', 'Góis Monteiro & Co', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('719  ', 'Banco Banif', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('721  ', 'Banco Credibel', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('735  ', 'Banco Neon', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('738  ', 'Banco Morada', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('741  ', 'Banco Ribeirão Preto', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('745  ', 'Banco Citibank', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('746  ', 'Banco Modal', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('748  ', 'Banco Cooperativo Sicredi - BANSICREDI', '1940-05-02', NULL, NULL, 'C', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('756  ', 'Banco Cooperativo do Brasil - BANCOOB', '1940-05-02', NULL, NULL, 'C', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');
INSERT INTO public.bancos VALUES ('M09  ', 'Banco Itaucred Financiamentos', '1940-05-02', NULL, NULL, 'P', NULL, NULL, NULL, 10, '', '12345678', NULL, NULL, '2018-02-02');


--
-- Data for Name: bibliografia; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.bibliografia VALUES (5, 1, 50, 'B', '1980-01-01', '2016-08-01');
INSERT INTO public.bibliografia VALUES (10, 4, 40, 'C', '2011-06-02', '2016-08-01');
INSERT INTO public.bibliografia VALUES (15, 11, 20, 'B', '2011-10-26', '2016-04-05');
INSERT INTO public.bibliografia VALUES (20, 11, 30, 'B', '2011-05-20', '2011-06-10');
INSERT INTO public.bibliografia VALUES (25, 11, 70, 'B', '2011-10-26', '2011-10-26');
INSERT INTO public.bibliografia VALUES (30, 11, 90, 'C', '2010-10-10', '2010-10-10');
INSERT INTO public.bibliografia VALUES (35, 12, 60, 'C', '2011-10-26', '2016-05-02');
INSERT INTO public.bibliografia VALUES (40, 13, 20, 'B', '2015-10-23', '2015-10-23');
INSERT INTO public.bibliografia VALUES (45, 13, 40, 'C', '2015-10-23', '2015-10-23');
INSERT INTO public.bibliografia VALUES (50, 14, 60, 'B', '2010-10-10', '2010-10-10');


--
-- Data for Name: capacitacoes; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.capacitacoes VALUES (5, 1, 10, '2016-10-01', '20016-10-01', '2016-10-18', NULL);
INSERT INTO public.capacitacoes VALUES (10, 3, 20, '2016-10-01', '2016-10-10', '2016-10-18', NULL);


--
-- Data for Name: cidades; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.cidades VALUES (5, 'Sao Paulo', 'SP', 'aeroporto, rodovia, ferrovia e hidrovia', 12000000, 780, '1980-10-10', '2019-01-21');
INSERT INTO public.cidades VALUES (10, 'Osasco', 'SP', 'rodovia e ferrovia', 1000000, 0, '1980-10-10', '2019-01-21');
INSERT INTO public.cidades VALUES (15, 'Barueri', 'SP', 'rodovia e ferrovia', 1000000, 0, '1980-10-10', '2019-01-21');
INSERT INTO public.cidades VALUES (20, 'Sao Bernardo', 'SP', 'rodovia e ferrovia', 800000, 0, '1980-10-10', '2019-01-21');
INSERT INTO public.cidades VALUES (25, 'Sao Caetano', 'SP', 'rodovia e ferrovia', 750000, 0, '1980-10-10', '2019-01-21');
INSERT INTO public.cidades VALUES (30, 'Diadema', 'SP', 'rodovia e ferrovia', 900000, 0, '1980-10-10', '2019-01-21');
INSERT INTO public.cidades VALUES (35, 'Guarulhos', 'SP', 'aeroporto, rodovia e ferrovia', 2200000, 0, '1980-10-10', '2019-01-21');
INSERT INTO public.cidades VALUES (40, 'Ourinhos', 'SP', 'rodovia e ferrovia', 105000, 280, '2008-10-10', '1918-12-13');


--
-- Data for Name: clientes; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.clientes VALUES (5, 'Mecânica Marreco', 'Vendas e Trocas de Moveis Dragão Imperial S/C Ltda.', 290, '8560', '04514512', 20000, 'B', '2015-11-05');
INSERT INTO public.clientes VALUES (10, 'Tratoria do Sargento', 'Ristoranti Il Tratoria do Sargento', 600, ' 985', '        ', 25000, 'B', '2007-02-02');
INSERT INTO public.clientes VALUES (25, 'Tratoria do Pirata', 'Ristoranti tre fratelli S.A.', 470, ' 1492', '12345678', 30000, 'A', '2007-01-20');
INSERT INTO public.clientes VALUES (30, 'Mc Donalds', 'Rest Com S/A ', 610, ' 6500', '        ', 100000, 'B', '2008-01-20');
INSERT INTO public.clientes VALUES (35, 'La Traviatta Ripante', 'Rest Com S/A ', 380, ' 125 - 15And Ap 156', '        ', 100000, 'B', '2008-01-20');
INSERT INTO public.clientes VALUES (40, 'Bistro Ratatui', 'sdf sdgf', 520, ' 1245', '        ', 3456, 'A', '2011-10-22');
INSERT INTO public.clientes VALUES (50, 'Restaurante Latitude Zero', 'Restaurante e Lanches Latitude Zero S/C Ltda.', 260, '8560', '04514512', 5000, 'A', '2015-10-28');
INSERT INTO public.clientes VALUES (20, 'Tratoria do General', 'Restaurante da Tratoria do General S/C Ltda.', 310, ' 1254', '12345678', 12000, 'A', '2011-06-01');
INSERT INTO public.clientes VALUES (15, 'Restaurante Bom Vivan', 'Restaurante "O Bom Vivan" S/C Ltda.', 550, ' 567', '12345678', 7000, 'A', '2009-12-10');
INSERT INTO public.clientes VALUES (65, 'Mecânica Marreco', 'Cooperativa de mecânicos Marreco e Associados S/C Ltda.', 20, '451', '19845745', 10000, 'A', '2015-11-05');
INSERT INTO public.clientes VALUES (70, 'Tarecapis', 'Mecânica de Automóveis Tarecapis S/C Ltda.', 300, '4500', '04512142', 6000, 'A', '2016-10-10');
INSERT INTO public.clientes VALUES (75, 'Sterling Software', 'Sterling Software S/C Ltda.', 180, '2456', '04156145', 25000, 'A', '2016-11-01');
INSERT INTO public.clientes VALUES (80, 'Vingadores', 'Associação dos vingadores de vovós desamparadas S/C Ltda.', 290, '1234', '23523453', 2000, 'A', '2016-11-10');
INSERT INTO public.clientes VALUES (55, 'Autoposto São Luiz', 'Companhia de Abastecimento Autoposto São Luiz S/C Ltda.', 350, '4512', '45781245', 20000, 'A', '2015-10-28');
INSERT INTO public.clientes VALUES (85, 'EdUEL', 'Editora da Universidade Estadual de Londrina S/C Ltda.', 490, '2650', '45121452', 25000, 'A', '2017-03-06');


--
-- Data for Name: clientestels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.clientestels VALUES (1, 25, 5, '1232323434     ', NULL, NULL);
INSERT INTO public.clientestels VALUES (6, 25, 5, '114528562      ', NULL, NULL);
INSERT INTO public.clientestels VALUES (2, 25, 15, '1141524152     ', NULL, NULL);
INSERT INTO public.clientestels VALUES (3, 25, 15, '1144141412     ', NULL, NULL);
INSERT INTO public.clientestels VALUES (4, 25, 15, '114528562      ', NULL, NULL);
INSERT INTO public.clientestels VALUES (5, 40, 15, '114528562      ', NULL, NULL);


--
-- Data for Name: consultas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.consultas VALUES (2, 20, 1, '2013-03-20 08:20:00', NULL, 2, 'A', '2013-03-10');
INSERT INTO public.consultas VALUES (3, 30, 1, '2013-03-20 09:20:00', NULL, 2, 'A', '2013-03-10');
INSERT INTO public.consultas VALUES (4, 40, 1, '2013-03-21 07:00:00', NULL, 2, 'A', '2013-03-10');
INSERT INTO public.consultas VALUES (5, 70, 1, '2013-03-21 07:20:00', NULL, 2, 'A', '2013-03-10');
INSERT INTO public.consultas VALUES (6, 80, 1, '2013-03-21 07:40:00', NULL, 2, 'A', '2013-03-10');
INSERT INTO public.consultas VALUES (7, 90, 1, '2016-03-21 08:00:00', NULL, 2, 'A', '2016-03-10');
INSERT INTO public.consultas VALUES (8, 100, 1, '2016-03-21 10:00:00', NULL, 2, 'A', '2016-03-10');
INSERT INTO public.consultas VALUES (9, 110, 1, '2016-03-21 10:20:00', NULL, 2, 'A', '2016-03-10');
INSERT INTO public.consultas VALUES (10, 120, 1, '2016-03-21 10:40:00', NULL, 2, 'A', '2016-03-10');
INSERT INTO public.consultas VALUES (11, 130, 1, '2016-03-21 11:00:00', NULL, 2, 'A', '2016-03-10');
INSERT INTO public.consultas VALUES (12, 150, 1, '2016-03-21 08:20:00', NULL, 2, 'A', '2016-03-10');
INSERT INTO public.consultas VALUES (13, 160, 1, '2016-03-21 08:40:00', NULL, 2, 'A', '2016-03-10');


--
-- Data for Name: contas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.contas VALUES ('001  ', '6632X ', '153052', 10, '2016-10-18', NULL);
INSERT INTO public.contas VALUES ('001  ', '6632X ', '153060', 10, '2016-10-18', NULL);
INSERT INTO public.contas VALUES ('001  ', '6633X ', '109520', 20, '2016-10-18', NULL);
INSERT INTO public.contas VALUES ('001  ', '6633X ', '145241', 20, '2016-10-18', NULL);
INSERT INTO public.contas VALUES ('001  ', '6632X ', '451254', 30, '2016-10-18', NULL);
INSERT INTO public.contas VALUES ('001  ', '6632X ', '124527', 30, '2016-10-18', NULL);


--
-- Data for Name: cores; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.cores VALUES (1, 'abobora', 234, '2012-03-26');
INSERT INTO public.cores VALUES (2, 'Verde', 23452, '2012-03-26');
INSERT INTO public.cores VALUES (3, 'Vermelho', 1452, '2010-10-10');
INSERT INTO public.cores VALUES (4, 'Branco', 14785, '2010-10-10');
INSERT INTO public.cores VALUES (5, 'Abobora', 451256, '2010-10-10');
INSERT INTO public.cores VALUES (6, 'Amarelo', 451256, '2010-10-10');
INSERT INTO public.cores VALUES (7, 'Azul', 415636, '2010-10-10');
INSERT INTO public.cores VALUES (8, 'roxo', 234, '2012-03-26');
INSERT INTO public.cores VALUES (9, 'verde limão', 234, '2012-03-26');
INSERT INTO public.cores VALUES (10, 'DASDFASD', 12313, '2010-10-15');
INSERT INTO public.cores VALUES (15, 'ashdfahsdf', 23123, '2013-09-18');


--
-- Data for Name: cursos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.cursos VALUES (1, 'Conhecimentos de química fundamental na arte culinária.', 1, 50, '2013-03-12');
INSERT INTO public.cursos VALUES (3, 'conceitos fundamentais de astronomia', 2, 80, '2010-10-10');
INSERT INTO public.cursos VALUES (4, 'Administrando Sistemas de Informação com o PostgreSQL', 4, 120, '1996-01-01');
INSERT INTO public.cursos VALUES (5, 'Como Desenvolver um Software com Gambiarra', 3, 60, '2010-10-10');
INSERT INTO public.cursos VALUES (6, 'Avaliação de Mercados emergentes de hipermidias', 4, 60, '2010-10-10');
INSERT INTO public.cursos VALUES (7, 'Fundamentos de Engenharia de Software', 3, 80, '2010-05-10');


--
-- Data for Name: departamentos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.departamentos VALUES ('A02', 'Desenvolvimento de Rotinas de Biblio', 150, 'A01', 'Polo de Desenvolvimento de TI', 450, '2010-10-10', '2010-10-10');
INSERT INTO public.departamentos VALUES ('A01', 'Desenvolvimento de Software', 160, 'A01', 'Av. Luis Carlos Berrini, 2340', 8000, '2010-10-10', '2010-10-10');
INSERT INTO public.departamentos VALUES ('A11', 'Desenvolvimento de Lixo reciclável', 170, 'A01', 'Av. Luis Carlos Berrini, 2340', 8000, '2010-10-10', '2010-10-10');
INSERT INTO public.departamentos VALUES ('B01', 'Desenvolvimento de processos gerenci', 180, 'A01', 'Av. Luis Carlos Berrini, 2340', 8000, '2010-10-10', '2010-10-10');
INSERT INTO public.departamentos VALUES ('C01', 'Pesquisa de Mercado para tendências ', 190, 'A01', 'Av. Luis Carlos Berrini, 2340', 8000, '2010-10-10', '2010-10-10');
INSERT INTO public.departamentos VALUES ('D01', 'Pesquisa em Biociências', 200, 'A01', 'Av. Luis Carlos Berrini, 2340', 8000, '2010-10-10', '2010-10-10');
INSERT INTO public.departamentos VALUES ('D11', 'Oceanografia aplicada em des. de sof', 210, 'A01', 'Av. Luis Carlos Berrini, 2340', 8000, '2010-10-10', '2010-10-10');
INSERT INTO public.departamentos VALUES ('D91', 'Pesquisa e desenvolvimento de soluçõ', 220, 'B01', 'centro', 1500, '2016-03-10', '2016-03-10');
INSERT INTO public.departamentos VALUES ('E01', 'Des. de ambientes de escritórios sus', 230, 'A01', 'Av. Luis Carlos Berrini, 2340', 8000, '2010-10-10', '2010-10-10');
INSERT INTO public.departamentos VALUES ('E11', 'Des. de processos de construção civi', 240, 'A01', 'Av. Luis Carlos Berrini, 2340', 8000, '2010-10-10', '2010-10-10');
INSERT INTO public.departamentos VALUES ('E21', 'Pesquisa de ferramentas de arquitetu', 260, 'A01', 'Av. Luis Carlos Berrini, 2340', 8000, '2010-10-10', '2010-10-10');
INSERT INTO public.departamentos VALUES ('F22', 'Des. de Sists Computacionais', 250, 'A01', 'Av. Circular, 3200', 2500, '2010-10-15', '2011-05-20');
INSERT INTO public.departamentos VALUES ('Z97', 'Desenvolvimento de polos de energia', 290, 'Z97', 'Av. Copernico, 23-456', 7500, '2010-10-10', '2010-10-10');
INSERT INTO public.departamentos VALUES ('Z98', 'Desenvolvimento de Usinas Solares.', 120, 'Z97', 'Campus da Universidade de Ourinhos - SP', 900, '2010-10-10', '2010-10-10');
INSERT INTO public.departamentos VALUES ('Z99', 'Desenvolvimento de Usinas eólicas', 100, 'Z97', 'Centro Empresarial de Fortaleza - CE', 150, '2010-10-10', '2010-10-10');


--
-- Data for Name: departamentostels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.departamentostels VALUES (2, 'F22', 15, '1145874567     ', NULL, NULL);
INSERT INTO public.departamentostels VALUES (4, 'A01', 15, '1425412145     ', NULL, NULL);
INSERT INTO public.departamentostels VALUES (5, 'A01', 15, '14 33256214    ', NULL, NULL);
INSERT INTO public.departamentostels VALUES (3, 'F22', 20, '11452145241    ', NULL, NULL);


--
-- Data for Name: disciplinas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.disciplinas VALUES (1, 1, 'CALCULO I', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (2, 1, 'CALCULO II', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (3, 1, 'CALCULO IV', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (4, 1, 'CALCULO III', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (5, 1, 'FISICA I', 'Desenvolvimento dos conceitos fundamentais da Física: Força, ação e reação, inércia, campos de força', 100, '2010-10-10', NULL);
INSERT INTO public.disciplinas VALUES (6, 1, 'FISICA II', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (7, 1, 'FISICA III', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (8, 3, 'FISICA IV', 'asdfasf', 100, '2012-10-05', NULL);
INSERT INTO public.disciplinas VALUES (9, 1, 'PORTUGUES I', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (10, 1, 'PORTUGUES II', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (11, 1, 'ALGORITMOS DE PROGRAMACAO I', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (12, 1, 'ALGORITMOS DE PROGRAMACAO II', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (13, 1, 'LINGUAGEM DE PROGRAMACAO I', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (14, 1, 'LINGUAGEM DE PROGRAMACAO II', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (15, 1, 'LINGUAGEM DE PROGRAMACAO III', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (16, 1, 'LINGUAGEM DE PROGRAMACAO IV', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (17, 1, 'CALCULO NUMERICO', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (18, 1, 'APLICACOES DE CALCULO NUMERICO I', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (19, 1, 'ETICA NA TECNOLOGIA DA INFORMA', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (20, 1, 'TECNICAS DE APRESENTA', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (21, 1, 'Avaliação de Qualidade em Fábrica de Software', 'Apresenta métricas e métodos de avaliação de Qualidade de So', 120, '2010-10-10', NULL);
INSERT INTO public.disciplinas VALUES (22, 1, 'ENGENHARIA DE SOFTWARE I', '', 0, '1980-01-01', NULL);
INSERT INTO public.disciplinas VALUES (27, 7, 'Antropologia moderna', 'Estudos dos comportamentos humanos no contexto dos séculos 20 e 21.', 120, '2010-10-10', NULL);


--
-- Data for Name: duplicatas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.duplicatas VALUES (10, 13, '2016-01-10', NULL, 50, 5, 45, 5, '2015-12-10');
INSERT INTO public.duplicatas VALUES (15, 13, '2016-02-10', NULL, 50, 5, 45, 5, '2015-12-10');
INSERT INTO public.duplicatas VALUES (5, 8, '2015-10-10', NULL, 50, 0, 50, 10, '2015-10-10');
INSERT INTO public.duplicatas VALUES (20, 8, '2016-01-10', NULL, 50, 5, 45, 10, '2015-12-10');


--
-- Data for Name: editoras; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.editoras VALUES (1, 'Abril                                                                 ', 'Abril Editora S/C Ltda.', NULL, 450, ' 1234', '12345678', NULL, NULL, NULL, '2010-10-10');
INSERT INTO public.editoras VALUES (2, 'McGraw-Books                                                          ', 'Editora McGraw-Books S.A.', NULL, 290, ' 234', '1245124 ', NULL, NULL, NULL, '2005-05-20');
INSERT INTO public.editoras VALUES (3, 'Nova                                                                  ', 'Nova Editora S.A.', NULL, 330, ' 1450', '1452142 ', NULL, NULL, NULL, '2006-04-20');
INSERT INTO public.editoras VALUES (4, 'FDT Editores                                                          ', 'FDT - Editores Associados S/C Ltda.', NULL, 460, ' 1254', '98765432', NULL, NULL, NULL, '2010-10-10');
INSERT INTO public.editoras VALUES (5, 'Ericas                                                                ', 'Editora e produtora Erica S/C Ltda.', NULL, 430, ' 234', '14512412', NULL, NULL, NULL, '2010-10-10');


--
-- Data for Name: editorastels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.editorastels VALUES (5, 1, 10, '11856985221    ', 'Luiz                          ', '2019-02-20');
INSERT INTO public.editorastels VALUES (6, 1, 10, '1145152463     ', 'Antonio Lima                  ', '2019-02-10');
INSERT INTO public.editorastels VALUES (1, 4, 15, '4345124512     ', 'Marsilla                      ', '2018-12-10');
INSERT INTO public.editorastels VALUES (2, 4, 15, '4389562356     ', 'Edivaldo                      ', '2019-03-15');
INSERT INTO public.editorastels VALUES (3, 4, 15, '4356234556     ', 'Guimarães                     ', '2019-03-15');
INSERT INTO public.editorastels VALUES (7, 2, 15, '11451552144    ', 'Carlos Molina                 ', '2019-02-04');
INSERT INTO public.editorastels VALUES (8, 2, 15, '11748451254    ', 'Marilice                      ', '2019-02-04');


--
-- Data for Name: empresas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.empresas VALUES (2, 'Lorenzetti', 'Fabrica de Produtos Elétricos Lorenzetti S/C Ltda.', '4567646546546   ', 420, ' 234', '11452145', 1, 'P', '1986-05-20', '2010-10-10');
INSERT INTO public.empresas VALUES (3, 'Supermack', 'Equipamentos Frigoríficos  Supermack S/C Ltda.', '34564643456     ', 560, ' 234', '11451245', 1, 'G', '1996-04-20', '2012-10-10');
INSERT INTO public.empresas VALUES (4, 'TecMon', 'Tecnica de Montagens e Ajustes de Equip. Domiciliares S/C Ltda', '3456354675467856', 440, ' 456', '41452145', 1, 'G', '1966-06-20', '2010-10-10');
INSERT INTO public.empresas VALUES (1, 'FAME', 'Fabrica Americana de Materiais Elétricos S.A.', '45674567456     ', 530, ' 1456', '11452145', 2, 'M', '2005-08-10', '2011-06-10');


--
-- Data for Name: empresastels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.empresastels VALUES (5, 1, 15, '1145265236     ', 'José', '2016-05-02');
INSERT INTO public.empresastels VALUES (6, 1, 20, '154221512150221', 'Nabucodonosor', '2016-05-02');
INSERT INTO public.empresastels VALUES (7, 1, 20, '4152241251121  ', 'Ana', '2016-05-20');


--
-- Data for Name: especialidadesmedicas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.especialidadesmedicas VALUES (1, 'Clínica Geral', '', '2010-10-05');
INSERT INTO public.especialidadesmedicas VALUES (2, 'Pediatria', '', '2010-10-05');
INSERT INTO public.especialidadesmedicas VALUES (3, 'Geriatria', '', '2010-10-05');
INSERT INTO public.especialidadesmedicas VALUES (4, 'Cardiolgia', '', '2010-10-05');
INSERT INTO public.especialidadesmedicas VALUES (5, 'Ortopedia', '', '2010-10-05');
INSERT INTO public.especialidadesmedicas VALUES (6, 'Gastroenterologia', '', '2010-10-05');
INSERT INTO public.especialidadesmedicas VALUES (7, 'Infectologista', '', '2010-12-10');
INSERT INTO public.especialidadesmedicas VALUES (8, 'Oncolologista', '', '2010-12-10');


--
-- Data for Name: estadosdauniao; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.estadosdauniao VALUES ('AC', 'Acre', 'Rio Branco', NULL, 100, NULL, '2018-09-30');
INSERT INTO public.estadosdauniao VALUES ('AL', 'Alagoas', 'Maceio', NULL, 150, NULL, '2018-09-30');
INSERT INTO public.estadosdauniao VALUES ('AM', 'Amazonas', 'Manaus', NULL, 250, NULL, '2018-09-30');
INSERT INTO public.estadosdauniao VALUES ('BA', 'Bahia', 'Salvador', NULL, 400, NULL, '2018-09-30');
INSERT INTO public.estadosdauniao VALUES ('ES', 'Espírito Santo', 'Vitória', NULL, 150, NULL, '2018-09-30');
INSERT INTO public.estadosdauniao VALUES ('DF', 'Distrito Federal', 'Brasilia', NULL, 10, NULL, '2018-09-30');
INSERT INTO public.estadosdauniao VALUES ('SP', 'São Paulo', 'São Paulo', NULL, 500, NULL, '2018-09-30');


--
-- Data for Name: fabricantes; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.fabricantes VALUES (1, 'Volkswagen', 'Fábrica de Veículos Brasileiros VolksWagen S.A.', NULL, 100, ' 34000', '14512413', NULL, NULL, NULL, '2001-05-20');
INSERT INTO public.fabricantes VALUES (2, 'FIAT', 'Fabrica Italiana de Automóveis S.A', NULL, 90, ' 3450', '12987456', NULL, NULL, NULL, '2001-05-20');
INSERT INTO public.fabricantes VALUES (3, 'GM', 'Montador de Veículos General Motors Cia. Ltda.', NULL, 100, ' Km 50', '0232345 ', NULL, NULL, NULL, '1962-10-10');
INSERT INTO public.fabricantes VALUES (4, 'Autolatina', 'Fabrica de veículos automotivos Autolatina S.A.', NULL, 460, '4500', '0451245 ', NULL, NULL, NULL, '2010-10-10');
INSERT INTO public.fabricantes VALUES (5, 'Nissan', 'Fábrica de automóveis Nissan do Brasil S.A.', NULL, 170, '1452', '12345678', NULL, NULL, NULL, '2010-10-10');


--
-- Data for Name: fabricantestels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.fabricantestels VALUES (5, 1, 10, '1178754745     ', 'Hermann', '2019-05-10');
INSERT INTO public.fabricantestels VALUES (4, 2, 10, '1144566776     ', 'Ennio', '2019-04-20');
INSERT INTO public.fabricantestels VALUES (1, 2, 20, '1144566776     ', 'Ennio', '2019-04-20');
INSERT INTO public.fabricantestels VALUES (2, 2, 20, '1144566776     ', 'Ennio', '2019-04-21');
INSERT INTO public.fabricantestels VALUES (3, 2, 20, '1144566776     ', 'Ennio', '2019-05-10');
INSERT INTO public.fabricantestels VALUES (6, 3, 10, '1197654678     ', 'Smith', '2019-09-01');
INSERT INTO public.fabricantestels VALUES (7, 4, 10, '1147574845     ', 'Joselva', '2019-09-01');
INSERT INTO public.fabricantestels VALUES (8, 5, 10, '1174851245     ', 'Jose Kualker', '2019-09-01');


--
-- Data for Name: faturas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.faturas VALUES (5, 1, '2016-11-10', NULL, 2105, 0, 2255, 150, '2016-11-12');
INSERT INTO public.faturas VALUES (10, 1, '2016-12-10', NULL, 850, 0, 850, 0, '2016-10-10');
INSERT INTO public.faturas VALUES (15, 2, '2016-11-10', NULL, 2500, 0, 2500, 0, '2016-11-10');
INSERT INTO public.faturas VALUES (20, 3, '2016-11-10', NULL, 2500, 0, 2500, 0, '2016-11-10');
INSERT INTO public.faturas VALUES (25, 3, '2015-12-10', NULL, 650, 0, 650, 0, '2016-11-10');
INSERT INTO public.faturas VALUES (30, 1, '2010-10-10', NULL, 500, 80, 420, 120, '2010-10-05');


--
-- Data for Name: feitospor; Type: TABLE DATA; Schema: public; Owner: postgres
--



--
-- Data for Name: fornecedores; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.fornecedores VALUES (1, 'Fazenda Rio Branco', 'Latic', NULL, 370, ' Km 350', '12345678', 1, 100000, NULL, NULL, NULL, '2008-01-20');
INSERT INTO public.fornecedores VALUES (2, 'Leite Mont Blanc', 'Laticinio Mont Blanc S/C Ltda.', NULL, 590, ' Km 289', '12345678', 2, 120000, NULL, NULL, NULL, '2010-10-10');
INSERT INTO public.fornecedores VALUES (5, 'Hamburgueria Girafa', 'Restaurante Franco-Italiano Girafa S/C Ltda.', NULL, 70, ' 4345', '12345678', 2, 5000, NULL, NULL, NULL, '1998-10-10');
INSERT INTO public.fornecedores VALUES (10, 'Fazenda Rio Claro', 'Fazenda de produtos laticionios Rio Claro S/C Ltda.', NULL, 240, 'Km 35', '74512845', 2, 50000, NULL, NULL, NULL, '2010-10-10');


--
-- Data for Name: fornecedorestels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.fornecedorestels VALUES (1, 1, 10, '1174185296     ', NULL, '2019-09-02');
INSERT INTO public.fornecedorestels VALUES (2, 2, 10, '5474185296     ', NULL, '2019-09-02');
INSERT INTO public.fornecedorestels VALUES (3, 5, 10, '1196385274     ', NULL, '2019-09-02');
INSERT INTO public.fornecedorestels VALUES (4, 10, 10, '3145124512     ', NULL, '2019-09-02');
INSERT INTO public.fornecedorestels VALUES (5, 1, 15, '43985264521    ', NULL, '2019-09-02');


--
-- Data for Name: fornecimentos; Type: TABLE DATA; Schema: public; Owner: postgres
--



--
-- Data for Name: funcionarios; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.funcionarios VALUES (40, 'MAUDE', 'SETRIGHT', 'E11', 10, 99, 470, ' 234', '3332', '1994-09-12', 'F', '1961-04-21', '', 35900, 300, 1272, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (60, 'IRVING', 'STERN', 'D11', 4, 16, 380, ' 125 - 15And Ap 156', '6423', '2003-09-14', 'M', '1975-07-07', '', 72250, 500, 2580, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (100, 'THEODORE', 'SPENSER', 'E21', 6, 14, 600, ' 985', '0972', '2000-06-19', 'M', '1980-12-18', '', 86150, 500, 2092, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (110, 'VINCENZO', 'LUCCHESSI', 'A01', 7, 19, 570, ' 25 - Vila Siqueira', '3490', '1988-05-16', 'M', '1959-11-05', '', 66500, 900, 3720, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (160, 'ELIZABETH', 'PIANKA', 'D11', 6, 17, 550, ' 567', '3782', '2006-10-11', 'F', '1980-04-12', '', 62250, 400, 1780, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (170, 'MASATOSHI', 'YOSHIMURA', 'D11', 7, 16, 540, ' 234', '2890', '1999-09-15', 'M', '1981-01-05', '', 44680, 500, 1974, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (180, 'MARILYN', 'SCOUTTEN', 'D11', 7, 17, 450, ' 1234', '1682', '2003-07-07', 'F', '1979-02-21', '', 51340, 500, 1707, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (210, 'WILLIAM', 'JONES', 'D11', 10, 17, 460, ' 1254', '0942', '1998-04-11', 'M', '2003-02-23', '', 68270, 400, 1462, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (220, 'JENNIFER', 'LUTZ', 'D11', 10, 18, 430, ' 234', '0672', '1998-08-29', 'F', '1978-03-19', '', 49840, 600, 2387, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (230, 'JAMES', 'JEFFERSON', 'A11', 7, 16, 530, ' 1456', '2094', '1996-11-21', 'M', '1980-05-30', '', 42180, 400, 1774, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (240, 'SALVATORE', 'MARINO', 'D01', 10, 17, 420, ' 234', '3780', '2004-12-05', 'M', '2002-03-31', '', 48760, 600, 2301, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (250, 'DANIEL', 'SMITH', 'D01', 9, 15, 560, ' 234', '0961', '1999-10-30', 'M', '1969-11-12', '', 49180, 400, 1534, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (260, 'SYBIL', 'JOHNSON', 'D01', 9, 16, 440, ' 456', '8953', '2005-09-11', 'F', '1976-10-05', '', 47250, 300, 1380, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (270, 'MARIA', 'PEREZ', 'D01', 10, 15, 100, ' 34000', '9001', '2006-09-30', 'F', '2003-05-26', '', 37380, 500, 2190, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (280, 'ETHEL', 'SCHNEidER', 'E11', 10, 17, 490, ' 452', '8997', '1997-03-24', 'F', '1980-01-01', 'Um teste de troca', 36250, 500, 2100, '12345678', '2010-10-10');
INSERT INTO public.funcionarios VALUES (330, 'DIAN', 'HEMMINGER', 'A01', 8, 18, 470, ' 1492', '3978', '1995-01-01', 'F', '1973-08-14', '', 46500, 1000, 4220, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (340, 'GREG', 'ORLANDO', 'A01', 7, 14, 470, ' 234', '2167', '2002-05-05', 'M', '1972-10-18', '', 39250, 600, 2340, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (350, 'KIM', 'NATZ', 'C01', 8, 18, 470, ' 234', '1793', '2006-12-15', 'F', '1976-01-19', '', 68420, 600, 2274, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (360, 'KIYOSHI', 'YAMAMOTO', 'D11', 7, 16, 470, ' 234', '2890', '2005-09-15', 'M', '1981-01-05', '', 64680, 500, 1974, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (370, 'REBA', 'JOHN', 'D11', 8, 18, 610, ' 6500', '0672', '2005-08-29', 'F', '1978-03-19', '', 69840, 600, 2387, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (380, 'ROBERT', 'MONTEVERDE', 'D01', 8, 17, 610, ' 6500', '3780', '2004-12-05', 'M', '1984-03-31', '', 37760, 600, 2301, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (390, 'EILEEN', 'SCHWARTZ', 'E11', 9, 17, 360, ' 1400', '8997', '1997-03-24', 'F', '1966-03-28', '', 46250, 500, 2100, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (400, 'MICHELLE', 'SPRINGER', 'E11', 9, 99, 520, ' 1245', '3332', '1994-09-12', 'F', '1961-04-21', '', 35900, 300, 1272, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (410, 'HELENA', 'WONG', 'E21', 9, 14, 600, ' 985', '2103', '2006-02-23', 'F', '1971-07-18', '', 35370, 500, 2030, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (420, 'ROY', 'ALONZO', 'E21', 10, 16, 590, ' 35 - Camp', '5698', '1997-07-05', 'M', '1956-05-17', '', 31840, 500, 1907, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (430, 'JOSE', 'BUENO', 'D01', 9, 14, 570, ' 25 - Vila Siqueira', '2145', '1980-01-01', 'M', '1980-01-01', '', 1250, 100, 500, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (440, 'Teste', 'Silva', 'A01', 12, 14, 570, ' 25 - Vila Siqueira', '3232', '2010-05-10', 'M', '1985-10-20', '', 1600, 200, 200, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (450, 'Louis', 'Armstrong', 'A01', 1, 18, 590, ' 35 - Camp', '452 ', '2002-10-20', 'M', '1958-05-15', 'Músico', 2500, 500, 400, '1452151 ', '2002-10-20');
INSERT INTO public.funcionarios VALUES (460, 'Ella', 'Frintgerald', 'B01', 1, 18, 600, ' 985', '452 ', '2002-10-20', 'F', '1958-05-14', 'Cantora', 2500, 500, 400, '14511254', '2002-10-05');
INSERT INTO public.funcionarios VALUES (470, 'Leonidas', 'Spartacus', 'D11', 5, 20, 600, ' 985', '666 ', '1901-10-10', 'M', '1960-05-05', 'Forte pacas', 12000, 1000, 500, '0451245 ', '1902-10-10');
INSERT INTO public.funcionarios VALUES (310, 'WING WONG', 'LEE', 'E21', 8, 14, 600, ' 985', '2103', '2006-02-23', 'M', '1971-07-18', '', 45370, 500, 2030, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (20, 'MICHAEL', 'THOMPSON', 'B01', 3, 18, 470, ' 1492', '3476', '2003-10-10', 'M', '1978-02-02', '', 94250, 800, 3300, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (30, 'SALLY', 'KWAN', 'C01', 2, 20, 470, ' 234', '4738', '2005-04-05', 'F', '1971-05-11', '', 98250, 800, 3060, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (320, 'JASON MORISON', 'GOUNOT', 'E21', 9, 16, 590, ' 35 - Camp', '5698', '1977-05-05', 'M', '1956-05-17', '', 43840, 500, 1907, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (10, 'CHRISTINE MARIE', 'HAAS', 'A01', 1, 18, 350, ' 1243', '3978', '1995-01-01', 'F', '1963-08-24', '', 152750, 1000, 4220, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (290, 'JOHN CARPENTER', 'PARKER', 'E11', 10, 99, 350, ' 1243', '4502', '2006-05-30', 'M', '1985-07-09', '', 35340, 300, 1227, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (300, 'PHILIP MORIS', 'SMITH', 'E11', 10, 14, 550, ' 567', '2095', '2002-06-19', 'M', '1976-10-27', '', 37750, 400, 1420, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (120, 'SEAN PEAN', 'O CONNELL', 'A01', 8, 14, 590, ' 35 - Camp', '2167', '1993-12-05', 'M', '1972-10-18', '', 49250, 600, 2340, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (130, 'DOLORES MARIA', 'QUINTANA', 'C01', 7, 16, 580, ' 345', '4578', '2001-07-28', 'F', '1955-09-15', '', 73800, 500, 1904, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (150, 'BRUCE TAYLOR', 'ADAMSON', 'A01', 7, 16, 490, ' 452', '4510', '2002-02-12', 'M', '1977-05-17', NULL, 55280, 500, 2022, '12312312', '2010-10-10');
INSERT INTO public.funcionarios VALUES (190, 'JAMES PAUL', 'WALKER', 'D11', 9, 16, 290, ' 234', '2986', '2004-07-26', 'M', '1982-06-25', '', 50450, 400, 1636, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (200, 'DAVID CHARLES', 'BROWN', 'D11', 9, 16, 330, ' 1450', '4501', '2002-03-03', 'M', '1971-05-29', '', 57740, 600, 2217, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (50, 'JOHN SILVESTER', 'GEYER', 'E01', 5, 16, 610, ' 6500', '6789', '1979-08-17', 'M', '1955-09-15', '', 80175, 800, 3214, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (70, 'EVA MARIA', 'PULASKI', 'D01', 10, 16, 360, ' 1400', '7831', '2005-09-30', 'F', '2003-05-26', '', 96170, 700, 2893, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (80, 'RAMLAL ABDUL', 'MEHTA', 'E21', 10, 16, 520, ' 1245', '9990', '1995-07-07', 'M', '1962-08-11', '', 39950, 400, 1596, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (90, 'EILEEN B''ORGN', 'HENDERSON', 'E11', 10, 16, 390, ' 150', '5498', '2000-08-15', 'F', '1971-05-15', '', 89750, 600, 2380, '        ', '1980-01-01');
INSERT INTO public.funcionarios VALUES (480, 'HELENA', 'WONG', 'E21', 9, 14, 600, ' 985', '2103', '2006-02-23', 'F', '1971-07-18', '', 35370, 500, 2030, '        ', '1980-01-01');


--
-- Data for Name: funcionariosplanos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.funcionariosplanos VALUES (5, 10, 1, '2016-12-07', '2016-12-07', '2016-12-07');
INSERT INTO public.funcionariosplanos VALUES (10, 20, 1, '2016-12-07', '2016-12-07', '2016-12-07');
INSERT INTO public.funcionariosplanos VALUES (15, 10, 2, '2016-12-07', '2016-12-07', '2016-12-07');
INSERT INTO public.funcionariosplanos VALUES (20, 10, 4, '2016-12-07', '2016-12-07', '2016-12-07');


--
-- Data for Name: funcionariostels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.funcionariostels VALUES (4, 20, 5, '2345345        ', 'José', '2017-05-20');
INSERT INTO public.funcionariostels VALUES (2, 10, 10, '2342345        ', 'Ana', '2018-04-10');
INSERT INTO public.funcionariostels VALUES (3, 10, 15, '23453245       ', 'Rui', '2018-05-10');
INSERT INTO public.funcionariostels VALUES (1, 10, 20, '1231313        ', 'Abel', '2018-06-25');


--
-- Data for Name: funcoes; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.funcoes VALUES (1, 'Presidente', '', 15, '1980-01-01');
INSERT INTO public.funcoes VALUES (2, 'Diretor Comercial', '', 5, '1980-01-01');
INSERT INTO public.funcoes VALUES (3, 'Diretor Administrativo', '', 5, '1980-01-01');
INSERT INTO public.funcoes VALUES (4, 'Diretor Produ', '', 5, '1980-01-01');
INSERT INTO public.funcoes VALUES (5, 'Gerente De Vendas', '', 1, '1980-01-01');
INSERT INTO public.funcoes VALUES (6, 'Gerente de Compras', '', 1, '1980-01-01');
INSERT INTO public.funcoes VALUES (7, 'Gerente de contas', '', 1, '1980-01-01');
INSERT INTO public.funcoes VALUES (8, 'Gerente de Recursos Humanos', '', 1, '1980-01-01');
INSERT INTO public.funcoes VALUES (9, 'Gerente de Rela', '', 1, '1980-01-01');
INSERT INTO public.funcoes VALUES (10, 'Gerente de Opera', '', 1, '1980-01-01');
INSERT INTO public.funcoes VALUES (11, 'Professor', '', 2, '1980-01-01');
INSERT INTO public.funcoes VALUES (12, 'Auxiliar Administrativo', '', 1, '1980-01-01');


--
-- Data for Name: grausdeescolaridade; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.grausdeescolaridade VALUES (14, 'Ensino fundamental I', 4, '1980-01-01');
INSERT INTO public.grausdeescolaridade VALUES (15, 'Ensino Fundamental II', 4, '1980-01-01');
INSERT INTO public.grausdeescolaridade VALUES (16, 'Jardim I', 1, '1980-01-01');
INSERT INTO public.grausdeescolaridade VALUES (17, 'Jardim II', 2, '1980-01-01');
INSERT INTO public.grausdeescolaridade VALUES (18, 'Ensino Medio', 3, '1980-01-01');
INSERT INTO public.grausdeescolaridade VALUES (19, 'Superior', 5, '1980-01-01');
INSERT INTO public.grausdeescolaridade VALUES (20, 'Pos-Graduacao (Mestrado)', 3, '1980-01-01');
INSERT INTO public.grausdeescolaridade VALUES (99, 'Pos-Graduacao (Doutorado)', 5, '1980-01-01');
INSERT INTO public.grausdeescolaridade VALUES (30, 'Pos-Graduacao (MBA)', 1, '1980-01-01');
INSERT INTO public.grausdeescolaridade VALUES (31, 'Mestrado', 3, '2011-12-10');


--
-- Data for Name: habilitacoes; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.habilitacoes VALUES (10, 3, 2, '2010-05-05', '2010-05-05', '2010-05-10');
INSERT INTO public.habilitacoes VALUES (15, 3, 2, '2010-10-10', '2010-10-10', '2010-10-10');
INSERT INTO public.habilitacoes VALUES (20, 3, 2, '2012-10-10', '2012-10-10', '2012-10-15');
INSERT INTO public.habilitacoes VALUES (30, 3, 4, '2010-05-05', '2010-05-05', '2010-05-10');
INSERT INTO public.habilitacoes VALUES (35, 3, 4, '2012-10-10', '2012-10-10', '2012-10-15');
INSERT INTO public.habilitacoes VALUES (40, 3, 6, '2012-10-10', '2012-10-10', '2012-10-15');
INSERT INTO public.habilitacoes VALUES (45, 3, 21, '2012-10-10', '2012-10-10', '2012-10-15');
INSERT INTO public.habilitacoes VALUES (55, 3, 24, '2012-10-10', '2012-10-10', '2012-10-15');
INSERT INTO public.habilitacoes VALUES (60, 4, 2, '2010-10-10', '2010-10-10', '2010-10-10');
INSERT INTO public.habilitacoes VALUES (70, 5, 1, '2012-10-10', '2012-10-10', '2012-10-15');


--
-- Data for Name: historicoprofissional; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.historicoprofissional VALUES (4, 90, 1, 25, '2002-06-26', '2004-07-30', '2012-10-01');
INSERT INTO public.historicoprofissional VALUES (11, 150, 1, 5, '2007-05-10', '2007-09-10', '2007-05-10');
INSERT INTO public.historicoprofissional VALUES (1, 10, NULL, 15, '2001-01-20', '2002-06-25', '2010-10-01');
INSERT INTO public.historicoprofissional VALUES (3, 60, 1, 20, '2001-01-20', '2002-06-25', '2012-08-12');
INSERT INTO public.historicoprofissional VALUES (5, 70, 1, 30, '2012-10-10', '2013-11-10', '2013-06-19');
INSERT INTO public.historicoprofissional VALUES (6, 150, 1, 30, '2010-10-10', '2011-10-10', '2013-06-21');


--
-- Data for Name: instituicoesensino; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.instituicoesensino VALUES (1, 'Faculdade de Belas Artes', 60, ' 1500', 'P', '1958-05-10', '12767890', '2001-01-10');
INSERT INTO public.instituicoesensino VALUES (2, 'Faculdade de Arqitetura de Urbanismo de S', 120, ' 500', 'G', '1952-05-10', '        ', '2001-01-10');
INSERT INTO public.instituicoesensino VALUES (3, 'Escola Politecnica da USP', 10, ' 564 - sob a escada', 'G', '1892-01-10', '14514251', '2001-10-10');
INSERT INTO public.instituicoesensino VALUES (4, 'Escola de 1 e 2 Grau Amadeu Amaral', 500, ' 1200', 'G', '1918-06-20', '14215125', '1996-01-01');
INSERT INTO public.instituicoesensino VALUES (5, 'Escola Superior de Propaganda e Marketing', 470, ' 3456', 'P', '1950-01-10', '15642854', '2010-10-10');


--
-- Data for Name: instituicoestels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.instituicoestels VALUES (1, 5, 15, '1433526523     ', NULL, '2016-08-28');
INSERT INTO public.instituicoestels VALUES (2, 5, 20, '1545124512     ', NULL, '2016-08-28');
INSERT INTO public.instituicoestels VALUES (3, 5, 20, '1124512542     ', NULL, '2016-08-28');
INSERT INTO public.instituicoestels VALUES (4, 3, 20, '1425252541     ', NULL, '2016-08-28');
INSERT INTO public.instituicoestels VALUES (5, 3, 20, '1145215213     ', NULL, '2016-08-28');
INSERT INTO public.instituicoestels VALUES (7, 3, 20, '545454         ', NULL, '2016-08-28');


--
-- Data for Name: livros; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.livros VALUES (10, 'Preparando pratos com Lagostas', NULL, 1, '2010-10-12', '2010', NULL, 20, 2, '2011-08-01');
INSERT INTO public.livros VALUES (20, 'Cálculo Diferencial e Integral', NULL, 1, '2010-10-12', '2010', NULL, 40, 10, '2011-08-01');
INSERT INTO public.livros VALUES (30, 'exercicios de matematica', NULL, 3, '2008-10-10', '2008', NULL, 50, 10, '2011-08-01');
INSERT INTO public.livros VALUES (50, 'Física Quantica', NULL, 3, '2008-10-10', '2008', NULL, 60, 20, '2011-08-01');
INSERT INTO public.livros VALUES (60, 'Introdução a Bancos de Dados', NULL, 1, '2008-10-10', '2008', NULL, 80, 20, '2011-08-01');
INSERT INTO public.livros VALUES (70, 'Cálculo Diferencial e Integral', NULL, 2, '2010-10-12', '2010', NULL, 120, 20, '2011-08-01');
INSERT INTO public.livros VALUES (80, 'Projetos de Grandes Estruturas', NULL, 3, '2010-10-10', '2010', NULL, 150, 25, '2011-08-01');
INSERT INTO public.livros VALUES (90, 'Cálculo Estrutural I', NULL, 1, '2010-10-12', '2010', NULL, 200, 50, '2011-08-01');
INSERT INTO public.livros VALUES (40, 'O Alfabeto dos Numeros', NULL, 1, '2008-10-10', '2008', NULL, 20, 5, '2011-08-01');
INSERT INTO public.livros VALUES (92, 'A Menina que roubava Livros', NULL, 1, '2007-04-10', '2007', NULL, 75, 10, '2007-05-10');


--
-- Data for Name: logradouros; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.logradouros VALUES (10, 'R. dos alfineiros', NULL, 2, NULL, '1996-01-01');
INSERT INTO public.logradouros VALUES (20, 'Av. Horacio Soares', NULL, 1, NULL, '1998-10-10');
INSERT INTO public.logradouros VALUES (40, 'R. Luiz Antonio', NULL, 5, NULL, '2000-05-29');
INSERT INTO public.logradouros VALUES (50, 'Av. Ricardo Berrini', NULL, 4, NULL, '2000-06-14');
INSERT INTO public.logradouros VALUES (60, 'Av. Universitária', NULL, 2, NULL, '2001-01-10');
INSERT INTO public.logradouros VALUES (70, 'R. Brigadeiro Luis Antonio', NULL, 1, NULL, '2001-01-10');
INSERT INTO public.logradouros VALUES (80, 'R. 12 de Outubro', NULL, 5, NULL, '2001-05-16');
INSERT INTO public.logradouros VALUES (90, 'R. Troncoso', NULL, 4, NULL, '2001-05-20');
INSERT INTO public.logradouros VALUES (100, 'Rod. Anchieta', NULL, 5, NULL, '2001-05-20');
INSERT INTO public.logradouros VALUES (110, 'R. Miguel Faria Lima', NULL, 1, NULL, '2001-08-21');
INSERT INTO public.logradouros VALUES (120, 'Av. Politécnica', NULL, 1, NULL, '2001-10-10');
INSERT INTO public.logradouros VALUES (130, 'R. das Laranjeiras', NULL, 3, NULL, '2002-01-21');
INSERT INTO public.logradouros VALUES (140, 'R. Direita', NULL, 1, NULL, '2002-05-13');
INSERT INTO public.logradouros VALUES (150, 'R. Roberto Simonsen', NULL, 3, NULL, '2002-05-16');
INSERT INTO public.logradouros VALUES (160, 'R. dos Alfineiros', NULL, 4, NULL, '2002-05-28');
INSERT INTO public.logradouros VALUES (170, 'R Quintino Bocaiuva', NULL, 4, NULL, '2002-10-21');
INSERT INTO public.logradouros VALUES (180, 'Av. João Cabral de Mello Netto', NULL, 6, NULL, '2003-04-23');
INSERT INTO public.logradouros VALUES (190, 'R. Sta Maria da Conceição', NULL, 6, NULL, '2003-05-27');
INSERT INTO public.logradouros VALUES (200, 'R. Tavares de Miranda', NULL, 1, NULL, '2004-02-10');
INSERT INTO public.logradouros VALUES (210, 'R. MMDC', NULL, 1, NULL, '2004-02-14');
INSERT INTO public.logradouros VALUES (220, 'Av. Celso Garcia', NULL, 3, NULL, '2005-01-10');
INSERT INTO public.logradouros VALUES (230, 'R. Circular', NULL, 2, NULL, '2005-02-16');
INSERT INTO public.logradouros VALUES (240, 'Al. das Trombetas', NULL, 2, NULL, '2005-03-12');
INSERT INTO public.logradouros VALUES (250, 'R. Celso Garcia', NULL, 3, NULL, '2005-03-25');
INSERT INTO public.logradouros VALUES (260, 'Av. dos Autonomistas', NULL, 3, NULL, '2005-05-12');
INSERT INTO public.logradouros VALUES (270, 'R. Brigadeiro Faria Lima', NULL, 6, NULL, '2005-05-14');
INSERT INTO public.logradouros VALUES (280, 'R. Troncoso Perez', NULL, 3, NULL, '2005-05-20');
INSERT INTO public.logradouros VALUES (290, 'Av. dos Timbiras', NULL, 1, NULL, '2005-05-20');
INSERT INTO public.logradouros VALUES (300, 'Av. Campos Elíseos', NULL, 1, NULL, '2005-05-28');
INSERT INTO public.logradouros VALUES (310, 'Av. Filadélfia', NULL, 5, NULL, '2005-09-18');
INSERT INTO public.logradouros VALUES (320, 'Av. Maranhão', NULL, 2, NULL, '2005-12-13');
INSERT INTO public.logradouros VALUES (330, 'Av. Liberdade', NULL, 1, NULL, '2006-04-20');
INSERT INTO public.logradouros VALUES (340, 'R. Almeida Lima Gutemberg', NULL, 1, NULL, '2006-05-13');
INSERT INTO public.logradouros VALUES (350, 'Al. Pamplona', NULL, 2, NULL, '2007-01-20');
INSERT INTO public.logradouros VALUES (360, 'R. Augusta', NULL, 1, NULL, '2007-02-02');
INSERT INTO public.logradouros VALUES (370, 'Estrada Ibitirama', NULL, 6, NULL, '2008-01-20');
INSERT INTO public.logradouros VALUES (380, 'Praça Pérola Bygton', NULL, 2, NULL, '2009-10-10');
INSERT INTO public.logradouros VALUES (390, 'R. Paulo Sá', NULL, 1, NULL, '2009-12-10');
INSERT INTO public.logradouros VALUES (400, 'R. Altino Arantes', NULL, 4, NULL, '2010-02-12');
INSERT INTO public.logradouros VALUES (410, 'R. Rui Barbosa', NULL, 6, NULL, '2010-02-12');
INSERT INTO public.logradouros VALUES (420, 'R. dos Alfineiros', NULL, 1, NULL, '2010-10-10');
INSERT INTO public.logradouros VALUES (430, 'R. São Joaquim', NULL, 3, NULL, '2010-10-10');
INSERT INTO public.logradouros VALUES (440, 'R. Alba', NULL, 4, NULL, '2010-10-10');
INSERT INTO public.logradouros VALUES (450, 'Av. Rubens de Almeida Falcão', NULL, 1, NULL, '2010-10-10');
INSERT INTO public.logradouros VALUES (460, 'Av. Rio Branco', NULL, 7, NULL, '2010-10-10');
INSERT INTO public.logradouros VALUES (470, 'Av. Ruben Berta', NULL, 2, NULL, '2010-10-10');
INSERT INTO public.logradouros VALUES (480, 'R. dos Maias', NULL, 1, NULL, '2010-10-10');
INSERT INTO public.logradouros VALUES (490, 'Av. Arthur Thomas', NULL, 2, NULL, '2010-10-10');
INSERT INTO public.logradouros VALUES (500, 'R. Bela Cintra', NULL, 1, NULL, '2010-10-10');
INSERT INTO public.logradouros VALUES (510, 'R. Quintino Bocaiuva', NULL, 5, NULL, '2010-10-10');
INSERT INTO public.logradouros VALUES (520, 'R. Pamplona', NULL, 1, NULL, '2011-06-01');
INSERT INTO public.logradouros VALUES (530, 'R. Bresser', NULL, 1, NULL, '2011-06-10');
INSERT INTO public.logradouros VALUES (540, 'R. Cristóvão Bueno', NULL, 3, NULL, '2011-10-22');
INSERT INTO public.logradouros VALUES (550, 'R. Gaspar Bueno de Almeida', NULL, 2, NULL, '2011-10-24');
INSERT INTO public.logradouros VALUES (560, 'R. Paraisópolis', NULL, 1, NULL, '2012-10-10');
INSERT INTO public.logradouros VALUES (570, 'Rod. Anhaguera', NULL, 1, NULL, '2012-10-10');
INSERT INTO public.logradouros VALUES (580, 'R. Alvarenga Peixoto', NULL, 2, NULL, '2013-03-20');
INSERT INTO public.logradouros VALUES (590, 'Rod. Castelo Branco', NULL, 1, NULL, '2014-01-20');
INSERT INTO public.logradouros VALUES (600, 'R. Pelotas', NULL, 1, NULL, '2014-03-10');
INSERT INTO public.logradouros VALUES (610, 'Av. Vital Brasil', NULL, 1, NULL, '2014-03-14');
INSERT INTO public.logradouros VALUES (620, 'Av das Nações Unidas', NULL, 5, NULL, '2013-10-10');


--
-- Data for Name: matriculas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.matriculas VALUES (2, 1, 20, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (3, 1, 30, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (4, 1, 40, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (5, 2, 10, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (6, 2, 20, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (7, 2, 30, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (8, 2, 40, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (9, 3, 10, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (10, 3, 20, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (11, 3, 30, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (12, 3, 40, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (13, 4, 10, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (14, 4, 20, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (15, 4, 30, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (16, 4, 40, '2014-08-01', '2015-06-30', '2015-07-05');
INSERT INTO public.matriculas VALUES (21, 5, 230, '2012-10-10', '2013-10-10', '2012-10-05');
INSERT INTO public.matriculas VALUES (1, 1, 70, '2014-08-01', '2015-06-30', '2015-07-05');


--
-- Data for Name: medicos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.medicos VALUES (1, 'Sebastião', 1234, 5, NULL, 350, '', 350, '', NULL, '2010-10-05');
INSERT INTO public.medicos VALUES (2, 'Franco da Rocha', 1233, 1, NULL, 470, '', 350, '', NULL, '2010-10-05');
INSERT INTO public.medicos VALUES (3, 'Rogerio Albuquerque de Oliveira', 1235678, 2, NULL, 240, '', 350, '', NULL, '1986-05-10');
INSERT INTO public.medicos VALUES (7, 'Natalia', 123123, 2, NULL, 470, '', 470, '', NULL, '2010-10-10');
INSERT INTO public.medicos VALUES (9, 'Geraldo Luiz Albuquerque Ramos', 7765765, 1, NULL, 610, '', 300, '', NULL, '2010-10-10');
INSERT INTO public.medicos VALUES (8, 'Alberto Clementino dos Santos', 332222, 3, NULL, 20, '500', 470, '456', NULL, '2001-10-05');
INSERT INTO public.medicos VALUES (16, 'Marina Emanuela Carolina Bizeo', 123452, 4, NULL, 240, '450', 620, '540', NULL, '2010-10-10');


--
-- Data for Name: medicostels; Type: TABLE DATA; Schema: public; Owner: postgres
--



--
-- Data for Name: movimentos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.movimentos VALUES (1, 10, 50, '2010-10-10', 10, '2010-10-10', '2010-10-10', '2010-10-15');
INSERT INTO public.movimentos VALUES (2, 40, 80, '2011-08-25', 10, '2011-08-25', '2011-08-25', '2011-08-25');
INSERT INTO public.movimentos VALUES (3, 40, 70, '2011-08-31', 20, '2011-08-31', '2011-08-31', '2011-08-31');
INSERT INTO public.movimentos VALUES (4, 40, 200, '2011-08-31', 30, '2011-08-31', '2011-08-31', '2011-08-31');
INSERT INTO public.movimentos VALUES (5, 10, 50, '2010-10-11', 30, '2010-10-11', '2010-10-11', '2010-10-15');
INSERT INTO public.movimentos VALUES (7, 10, 50, '2010-10-10', 20, '2010-10-10', '2010-10-10', '2010-10-15');
INSERT INTO public.movimentos VALUES (6, 20, 150, '2010-10-10', 20, '2010-10-15', '2010-10-14', '2010-10-10');


--
-- Data for Name: movimentostipos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.movimentostipos VALUES (10, 'Entrada em Tombamento', 'A', '2011-08-20');
INSERT INTO public.movimentostipos VALUES (20, 'Saida de Tombamento', 'A', '2011-08-20');
INSERT INTO public.movimentostipos VALUES (30, 'Disponibilização em Acervo', 'A', '2011-08-20');
INSERT INTO public.movimentostipos VALUES (40, 'Retirada da Acervo', 'S', '2011-08-20');
INSERT INTO public.movimentostipos VALUES (50, 'Devolução de Retirada do Acervo', 'E', '2011-08-20');
INSERT INTO public.movimentostipos VALUES (60, 'Consulta do Acervo', 'S', '2011-08-20');
INSERT INTO public.movimentostipos VALUES (70, 'Devolução de Consulta do Acervo', 'E', '2014-05-26');
INSERT INTO public.movimentostipos VALUES (80, 'Empréstimo entre Bibliotecas', 'S', '2014-03-29');
INSERT INTO public.movimentostipos VALUES (90, 'Devolução de Empréstimo entre Bibliotecas', 'E', '2014-03-29');
INSERT INTO public.movimentostipos VALUES (100, 'Retirada para Manutenção da Peça do Acervo', 'A', '2014-03-29');
INSERT INTO public.movimentostipos VALUES (110, 'Devolução de Manutenção de Peça do Acervo', 'A', '2014-03-29');


--
-- Data for Name: nfcompras; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.nfcompras VALUES (2, 2, 10, '2016-10-10', 2500, 'A', 'Bons profutos na última compra', '2016-10-10');
INSERT INTO public.nfcompras VALUES (1, 5, 10, '2016-10-10', 3105, 'A', 'Fornecedor com bom histórico de compra', '2016-10-10');
INSERT INTO public.nfcompras VALUES (3, 1, 20, '2016-10-10', 3150, 'A', 'Ótimo gado de Corte', '2016-10-10');


--
-- Data for Name: nfcomprasitens; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.nfcomprasitens VALUES (1, '001001001001', 10, 38);
INSERT INTO public.nfcomprasitens VALUES (1, '001001001002', 25, 45);
INSERT INTO public.nfcomprasitens VALUES (1, '001001001003', 40, 40);
INSERT INTO public.nfcomprasitens VALUES (2, '001003001001', 50, 40);
INSERT INTO public.nfcomprasitens VALUES (2, '001002001004', 10, 50);
INSERT INTO public.nfcomprasitens VALUES (3, '001001001001', 20, 45);
INSERT INTO public.nfcomprasitens VALUES (3, '001001001003', 50, 45);


--
-- Data for Name: nfvendas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.nfvendas VALUES (41, 5, 50, 1, 90, '2012-05-01', '2012-05-01', '2012-05-01');
INSERT INTO public.nfvendas VALUES (42, 30, 50, 3, 90, '2012-05-01', '2012-05-01', '2012-05-01');
INSERT INTO public.nfvendas VALUES (43, 25, 50, 2, 53, '2012-05-01', '2012-05-01', '2012-05-01');
INSERT INTO public.nfvendas VALUES (44, 25, 50, 1, 90, '2012-05-01', '2012-05-01', '2012-05-01');
INSERT INTO public.nfvendas VALUES (45, 30, 60, 2, 90, '2012-05-01', '2012-05-01', '2012-05-01');
INSERT INTO public.nfvendas VALUES (46, 10, 60, 3, 90, '2012-05-01', '2012-05-01', '2012-05-01');
INSERT INTO public.nfvendas VALUES (47, 30, 50, 1, 90, '2012-05-01', '2012-05-01', '2012-05-01');
INSERT INTO public.nfvendas VALUES (48, 35, 200, 2, 65.5, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (49, 20, 90, 3, 90, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (50, 10, 50, 2, 90, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (51, 10, 60, 1, 90, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (53, 5, 200, 3, 90, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (54, 25, 50, 1, 90, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (55, 30, 50, 2, 90, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (56, 30, 60, 1, 90, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (57, 5, 200, 2, 56, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (58, 35, 150, 3, 90, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (59, 35, 200, 3, 90, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (60, 35, 190, 3, 90, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (61, 40, 190, 1, 44, '2012-05-02', '2012-05-02', '2012-05-02');
INSERT INTO public.nfvendas VALUES (62, 35, 190, 1, 90, '2012-05-03', '2012-05-03', '2012-05-03');
INSERT INTO public.nfvendas VALUES (63, 40, 170, 2, 90, '2012-05-03', '2012-05-03', '2012-05-03');
INSERT INTO public.nfvendas VALUES (64, 35, 200, 3, 90, '2012-05-03', '2012-05-03', '2012-05-03');
INSERT INTO public.nfvendas VALUES (65, 5, 170, 1, 90, '2012-05-03', '2012-05-03', '2012-05-03');
INSERT INTO public.nfvendas VALUES (66, 10, 170, 2, 58.5, '2012-05-03', '2012-05-03', '2012-05-03');
INSERT INTO public.nfvendas VALUES (67, 15, 180, 2, 56, '2012-05-03', '2012-05-03', '2012-05-03');
INSERT INTO public.nfvendas VALUES (68, 10, 170, 3, 90, '2012-05-03', '2012-05-03', '2012-05-03');
INSERT INTO public.nfvendas VALUES (69, 10, 150, 1, 90, '2012-05-03', '2012-05-03', '2012-05-03');
INSERT INTO public.nfvendas VALUES (70, 10, 190, 2, 90, '2012-05-03', '2012-05-03', '2012-05-03');
INSERT INTO public.nfvendas VALUES (101, 40, 470, 2, 37, '2012-05-09', '2012-05-09', '2012-05-09');
INSERT INTO public.nfvendas VALUES (102, 10, 460, 3, 77.5, '2012-05-09', '2012-05-09', '2012-05-09');
INSERT INTO public.nfvendas VALUES (103, 10, 200, 1, 77.5, '2012-05-10', '2012-05-10', '2012-05-10');
INSERT INTO public.nfvendas VALUES (104, 10, 470, 2, 46, '2012-05-10', '2012-05-10', '2012-05-10');
INSERT INTO public.nfvendas VALUES (105, 5, 460, 2, 37, '2012-05-10', '2012-05-10', '2012-05-10');
INSERT INTO public.nfvendas VALUES (106, 35, 460, 3, 65.5, '2012-05-10', '2012-05-10', '2012-05-10');
INSERT INTO public.nfvendas VALUES (107, 40, 450, 1, 58.5, '2012-05-11', '2012-05-11', '2012-05-11');
INSERT INTO public.nfvendas VALUES (108, 40, 370, 2, 90, '2012-05-11', '2012-05-11', '2012-05-11');
INSERT INTO public.nfvendas VALUES (109, 40, 200, 3, 77.5, '2012-05-11', '2012-05-11', '2012-05-11');
INSERT INTO public.nfvendas VALUES (110, 40, 350, 1, 90, '2012-05-11', '2012-05-11', '2012-05-11');
INSERT INTO public.nfvendas VALUES (111, 10, 360, 3, 90, '2012-05-11', '2012-05-11', '2012-05-11');
INSERT INTO public.nfvendas VALUES (112, 35, 200, 2, 65.5, '2012-05-12', '2012-05-12', '2012-05-12');
INSERT INTO public.nfvendas VALUES (113, 40, 450, 2, 65.5, '2012-05-12', '2012-05-12', '2012-05-12');
INSERT INTO public.nfvendas VALUES (114, 40, 450, 1, 68.5, '2012-05-12', '2012-05-12', '2012-05-12');
INSERT INTO public.nfvendas VALUES (115, 30, 450, 1, 58.5, '2012-05-13', '2012-05-13', '2012-05-13');
INSERT INTO public.nfvendas VALUES (116, 10, 440, 1, 77.5, '2012-05-13', '2012-05-13', '2012-05-13');
INSERT INTO public.nfvendas VALUES (117, 10, 200, 1, 90, '2012-05-13', '2012-05-13', '2012-05-13');
INSERT INTO public.nfvendas VALUES (118, 15, 370, 3, 56, '2012-05-14', '2012-05-14', '2012-05-14');
INSERT INTO public.nfvendas VALUES (119, 35, 200, 2, 90, '2012-05-14', '2012-05-14', '2012-05-14');
INSERT INTO public.nfvendas VALUES (120, 15, 200, 1, 56, '2012-05-14', '2012-05-14', '2012-05-14');
INSERT INTO public.nfvendas VALUES (121, 20, 370, 2, 58.5, '2012-05-14', '2012-05-14', '2012-05-14');
INSERT INTO public.nfvendas VALUES (122, 10, 200, 3, 77.5, '2012-05-15', '2012-05-15', '2012-05-15');
INSERT INTO public.nfvendas VALUES (123, 20, 200, 1, 56, '2012-05-15', '2012-05-15', '2012-05-15');
INSERT INTO public.nfvendas VALUES (124, 30, 350, 2, 58.5, '2012-05-15', '2012-05-15', '2012-05-15');
INSERT INTO public.nfvendas VALUES (125, 15, 360, 3, 77.5, '2012-05-15', '2012-05-15', '2012-05-15');
INSERT INTO public.nfvendas VALUES (126, 10, 460, 2, 34, '2012-05-15', '2012-05-15', '2012-05-15');
INSERT INTO public.nfvendas VALUES (127, 5, 200, 1, 90, '2012-05-16', '2012-05-16', '2012-05-16');
INSERT INTO public.nfvendas VALUES (129, 10, 450, 3, 90, '2012-05-16', '2012-05-16', '2012-05-16');
INSERT INTO public.nfvendas VALUES (130, 10, 370, 1, 90, '2012-05-16', '2012-05-16', '2012-05-16');
INSERT INTO public.nfvendas VALUES (131, 10, 200, 2, 90, '2012-05-16', '2012-05-16', '2012-05-16');
INSERT INTO public.nfvendas VALUES (132, 30, 360, 1, 34, '2012-05-16', '2012-05-16', '2012-05-16');
INSERT INTO public.nfvendas VALUES (133, 10, 200, 2, 90, '2012-05-17', '2012-05-17', '2012-05-17');
INSERT INTO public.nfvendas VALUES (134, 20, 190, 3, 56, '2012-05-17', '2012-05-17', '2012-05-17');
INSERT INTO public.nfvendas VALUES (135, 25, 200, 3, 90, '2012-05-17', '2012-05-17', '2012-05-17');
INSERT INTO public.nfvendas VALUES (136, 35, 350, 3, 56, '2012-05-17', '2012-05-17', '2012-05-17');
INSERT INTO public.nfvendas VALUES (137, 40, 460, 1, 90, '2012-05-17', '2012-05-17', '2012-05-17');
INSERT INTO public.nfvendas VALUES (138, 5, 200, 1, 56, '2012-05-17', '2012-05-17', '2012-05-17');
INSERT INTO public.nfvendas VALUES (139, 20, 440, 2, 90, '2012-05-18', '2012-05-18', '2012-05-18');
INSERT INTO public.nfvendas VALUES (140, 5, 350, 3, 68.5, '2012-05-18', '2012-05-18', '2012-05-18');
INSERT INTO public.nfvendas VALUES (141, 15, 340, 1, 68.5, '2012-05-18', '2012-05-18', '2012-05-18');
INSERT INTO public.nfvendas VALUES (142, 10, 180, 2, 58.5, '2012-05-19', '2012-05-19', '2012-05-19');
INSERT INTO public.nfvendas VALUES (143, 5, 120, 2, 58.5, '2012-05-19', '2012-05-19', '2012-05-19');
INSERT INTO public.nfvendas VALUES (145, 10, 200, 1, 65.5, '2012-05-20', '2012-05-20', '2012-05-20');
INSERT INTO public.nfvendas VALUES (146, 35, 350, 2, 90, '2012-05-20', '2012-05-20', '2012-05-20');
INSERT INTO public.nfvendas VALUES (147, 35, 450, 3, 90, '2012-05-20', '2012-05-20', '2012-05-20');
INSERT INTO public.nfvendas VALUES (149, 35, 170, 3, 90, '2012-05-22', '2012-05-22', '2012-05-22');
INSERT INTO public.nfvendas VALUES (150, 30, 460, 2, 56, '2012-05-22', '2012-05-22', '2012-05-22');
INSERT INTO public.nfvendas VALUES (151, 30, 360, 2, 90, '2012-05-22', '2012-05-22', '2012-05-22');
INSERT INTO public.nfvendas VALUES (152, 30, 150, 3, 132, '2010-10-10', '2010-10-10', '2010-10-10');
INSERT INTO public.nfvendas VALUES (1, 35, 170, 1, 55.5, '2012-04-24', '2012-04-24', '2012-04-24');
INSERT INTO public.nfvendas VALUES (2, 35, 160, 1, 68.5, '2012-04-24', '2012-04-24', '2012-04-24');
INSERT INTO public.nfvendas VALUES (3, 10, 150, 1, 90, '2012-04-25', '2012-04-25', '2012-04-25');
INSERT INTO public.nfvendas VALUES (4, 5, 110, 3, 68.5, '2012-04-25', '2012-04-25', '2012-04-25');
INSERT INTO public.nfvendas VALUES (5, 20, 200, 2, 65.5, '2012-04-25', '2012-04-25', '2012-04-25');
INSERT INTO public.nfvendas VALUES (6, 40, 200, 1, 65.5, '2012-04-25', '2012-04-25', '2012-04-25');
INSERT INTO public.nfvendas VALUES (7, 5, 150, 2, 34, '2012-04-25', '2012-04-25', '2012-04-25');
INSERT INTO public.nfvendas VALUES (8, 10, 160, 3, 90, '2012-04-25', '2012-04-25', '2012-04-25');
INSERT INTO public.nfvendas VALUES (9, 10, 200, 1, 90, '2012-04-25', '2012-04-25', '2012-04-25');
INSERT INTO public.nfvendas VALUES (10, 25, 200, 2, 90, '2012-04-27', '2012-04-27', '2012-04-27');
INSERT INTO public.nfvendas VALUES (11, 10, 50, 3, 90, '2012-04-27', '2012-04-27', '2012-04-27');
INSERT INTO public.nfvendas VALUES (12, 10, 50, 2, 58.5, '2012-04-27', '2012-04-27', '2012-04-27');
INSERT INTO public.nfvendas VALUES (13, 40, 200, 1, 90, '2012-04-28', '2012-04-28', '2012-04-28');
INSERT INTO public.nfvendas VALUES (15, 5, 50, 3, 90, '2012-04-28', '2012-04-28', '2012-04-28');
INSERT INTO public.nfvendas VALUES (16, 5, 200, 1, 58.5, '2012-04-28', '2012-04-28', '2012-04-28');
INSERT INTO public.nfvendas VALUES (17, 40, 200, 2, 90, '2012-04-28', '2012-04-28', '2012-04-28');
INSERT INTO public.nfvendas VALUES (18, 10, 100, 1, 90, '2012-04-28', '2012-04-28', '2012-04-28');
INSERT INTO public.nfvendas VALUES (19, 10, 100, 2, 90, '2012-04-29', '2012-04-29', '2012-04-29');
INSERT INTO public.nfvendas VALUES (20, 10, 100, 3, 90, '2012-04-29', '2012-04-29', '2012-04-29');
INSERT INTO public.nfvendas VALUES (21, 10, 100, 3, 90, '2012-04-29', '2012-04-29', '2012-04-29');
INSERT INTO public.nfvendas VALUES (22, 10, 100, 3, 90, '2012-04-29', '2012-04-29', '2012-04-29');
INSERT INTO public.nfvendas VALUES (23, 10, 90, 1, 90, '2012-04-29', '2012-04-29', '2012-04-29');
INSERT INTO public.nfvendas VALUES (24, 10, 100, 1, 90, '2012-04-29', '2012-04-29', '2012-04-29');
INSERT INTO public.nfvendas VALUES (25, 5, 100, 2, 68.5, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (26, 25, 100, 3, 68.5, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (27, 25, 100, 1, 90, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (28, 20, 100, 2, 90, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (29, 5, 100, 2, 90, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (30, 15, 100, 3, 90, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (31, 25, 50, 1, 90, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (32, 5, 200, 2, 90, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (33, 10, 200, 3, 90, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (34, 10, 50, 1, 90, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (35, 15, 50, 3, 77.5, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (36, 10, 200, 2, 77.5, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (37, 10, 50, 2, 90, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (38, 10, 50, 1, 90, '2012-04-30', '2012-04-30', '2012-04-30');
INSERT INTO public.nfvendas VALUES (39, 10, 200, 1, 90, '2012-05-01', '2012-05-01', '2012-05-01');
INSERT INTO public.nfvendas VALUES (40, 10, 200, 1, 90, '2012-05-01', '2012-05-01', '2012-05-01');
INSERT INTO public.nfvendas VALUES (71, 15, 180, 3, 58.5, '2012-05-04', '2012-05-04', '2012-05-04');
INSERT INTO public.nfvendas VALUES (72, 10, 180, 1, 77.5, '2012-05-04', '2012-05-04', '2012-05-04');
INSERT INTO public.nfvendas VALUES (73, 10, 200, 3, 90, '2012-05-04', '2012-05-04', '2012-05-04');
INSERT INTO public.nfvendas VALUES (74, 25, 180, 2, 90, '2012-05-04', '2012-05-04', '2012-05-04');
INSERT INTO public.nfvendas VALUES (75, 30, 130, 2, 90, '2012-05-04', '2012-05-04', '2012-05-04');
INSERT INTO public.nfvendas VALUES (76, 15, 180, 1, 90, '2012-05-05', '2012-05-05', '2012-05-05');
INSERT INTO public.nfvendas VALUES (77, 10, 360, 1, 56, '2012-05-05', '2012-05-05', '2012-05-05');
INSERT INTO public.nfvendas VALUES (78, 40, 50, 1, 90, '2012-05-05', '2012-05-05', '2012-05-05');
INSERT INTO public.nfvendas VALUES (79, 15, 200, 1, 90, '2012-05-05', '2012-05-05', '2012-05-05');
INSERT INTO public.nfvendas VALUES (80, 35, 160, 3, 90, '2012-05-06', '2012-05-06', '2012-05-06');
INSERT INTO public.nfvendas VALUES (81, 15, 160, 2, 65.5, '2012-05-06', '2012-05-06', '2012-05-06');
INSERT INTO public.nfvendas VALUES (82, 20, 200, 1, 68.5, '2012-05-06', '2012-05-06', '2012-05-06');
INSERT INTO public.nfvendas VALUES (83, 25, 120, 2, 68.5, '2012-05-06', '2012-05-06', '2012-05-06');
INSERT INTO public.nfvendas VALUES (84, 30, 110, 3, 90, '2012-05-06', '2012-05-06', '2012-05-06');
INSERT INTO public.nfvendas VALUES (85, 25, 190, 1, 90, '2012-05-07', '2012-05-07', '2012-05-07');
INSERT INTO public.nfvendas VALUES (86, 35, 90, 2, 68.5, '2012-05-07', '2012-05-07', '2012-05-07');
INSERT INTO public.nfvendas VALUES (87, 5, 60, 3, 58.5, '2012-05-07', '2012-05-07', '2012-05-07');
INSERT INTO public.nfvendas VALUES (88, 40, 200, 2, 58.5, '2012-05-07', '2012-05-07', '2012-05-07');
INSERT INTO public.nfvendas VALUES (89, 10, 360, 1, 90, '2012-05-07', '2012-05-07', '2012-05-07');
INSERT INTO public.nfvendas VALUES (91, 40, 200, 3, 90, '2012-05-07', '2012-05-07', '2012-05-07');
INSERT INTO public.nfvendas VALUES (92, 15, 200, 1, 90, '2012-05-07', '2012-05-07', '2012-05-07');
INSERT INTO public.nfvendas VALUES (93, 20, 200, 2, 90, '2012-05-08', '2012-05-08', '2012-05-08');
INSERT INTO public.nfvendas VALUES (94, 20, 180, 1, 34, '2012-05-08', '2012-05-08', '2012-05-08');
INSERT INTO public.nfvendas VALUES (95, 15, 360, 2, 90, '2012-05-08', '2012-05-08', '2012-05-08');
INSERT INTO public.nfvendas VALUES (96, 10, 200, 3, 44, '2012-05-08', '2012-05-08', '2012-05-08');
INSERT INTO public.nfvendas VALUES (97, 30, 200, 3, 68.5, '2012-05-08', '2012-05-08', '2012-05-08');
INSERT INTO public.nfvendas VALUES (98, 20, 200, 3, 68.5, '2012-05-09', '2012-05-09', '2012-05-09');
INSERT INTO public.nfvendas VALUES (99, 15, 440, 1, 68.5, '2012-05-09', '2012-05-09', '2012-05-09');
INSERT INTO public.nfvendas VALUES (100, 40, 360, 1, 68.5, '2012-05-09', '2012-05-09', '2012-05-09');


--
-- Data for Name: nfvendasitens; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.nfvendasitens VALUES (1, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (1, '001001001002', 20, 2.15);
INSERT INTO public.nfvendasitens VALUES (2, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (2, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (2, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (3, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (3, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (3, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (3, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (4, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (4, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (4, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (5, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (5, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (5, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (6, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (6, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (6, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (7, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (7, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (8, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (8, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (8, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (8, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (9, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (9, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (9, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (9, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (10, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (10, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (10, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (10, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (11, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (11, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (11, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (11, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (12, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (12, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (12, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (13, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (13, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (13, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (13, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (15, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (15, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (15, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (15, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (16, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (16, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (16, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (17, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (17, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (17, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (17, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (18, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (18, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (18, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (18, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (19, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (19, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (19, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (19, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (20, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (20, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (20, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (20, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (21, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (21, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (21, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (21, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (22, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (22, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (22, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (22, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (23, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (23, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (23, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (23, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (24, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (24, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (24, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (24, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (25, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (25, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (25, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (26, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (26, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (26, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (27, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (27, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (27, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (27, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (28, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (28, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (28, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (28, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (29, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (29, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (29, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (29, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (30, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (30, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (30, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (30, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (31, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (31, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (31, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (31, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (32, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (32, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (32, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (32, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (33, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (33, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (33, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (33, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (34, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (34, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (34, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (34, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (35, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (35, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (35, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (36, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (36, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (36, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (37, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (37, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (37, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (37, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (38, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (38, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (38, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (38, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (39, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (39, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (39, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (39, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (40, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (40, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (40, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (40, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (41, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (41, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (41, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (41, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (42, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (42, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (42, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (42, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (43, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (43, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (44, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (44, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (44, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (44, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (45, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (45, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (45, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (45, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (46, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (46, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (46, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (46, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (47, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (47, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (47, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (47, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (48, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (48, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (48, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (49, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (49, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (49, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (49, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (50, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (50, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (50, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (50, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (51, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (51, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (51, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (51, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (53, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (53, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (53, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (53, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (54, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (54, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (54, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (54, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (55, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (55, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (55, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (55, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (56, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (56, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (56, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (56, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (57, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (57, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (58, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (58, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (58, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (58, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (59, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (59, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (59, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (59, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (60, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (60, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (60, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (60, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (61, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (61, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (62, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (62, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (62, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (62, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (63, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (63, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (63, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (63, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (64, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (64, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (64, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (64, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (65, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (65, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (65, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (65, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (66, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (66, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (66, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (67, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (67, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (68, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (68, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (68, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (68, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (69, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (69, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (69, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (69, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (70, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (70, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (70, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (70, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (71, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (71, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (71, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (72, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (72, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (72, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (73, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (73, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (73, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (73, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (74, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (74, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (74, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (74, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (75, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (75, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (75, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (75, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (76, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (76, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (76, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (76, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (77, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (77, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (78, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (78, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (78, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (78, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (79, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (79, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (79, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (79, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (80, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (80, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (80, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (80, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (81, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (81, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (81, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (82, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (82, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (82, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (83, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (83, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (83, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (84, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (84, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (84, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (84, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (85, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (85, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (85, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (85, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (86, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (86, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (86, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (87, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (87, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (87, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (88, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (88, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (88, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (89, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (89, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (89, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (89, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (91, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (91, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (91, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (91, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (92, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (92, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (92, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (92, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (93, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (93, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (93, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (93, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (94, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (94, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (95, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (95, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (95, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (95, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (96, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (96, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (97, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (97, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (97, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (98, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (98, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (98, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (99, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (99, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (99, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (100, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (100, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (100, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (101, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (101, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (102, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (102, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (102, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (103, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (103, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (103, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (104, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (104, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (105, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (105, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (106, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (106, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (106, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (107, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (107, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (107, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (108, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (108, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (108, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (108, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (109, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (109, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (109, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (110, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (110, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (110, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (110, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (111, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (111, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (111, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (111, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (112, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (112, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (112, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (113, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (113, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (113, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (114, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (114, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (114, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (115, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (115, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (115, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (116, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (116, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (116, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (117, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (117, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (117, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (117, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (118, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (118, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (119, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (119, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (119, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (119, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (120, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (120, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (121, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (121, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (121, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (122, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (122, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (122, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (123, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (123, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (124, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (124, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (124, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (125, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (125, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (125, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (126, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (126, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (127, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (127, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (127, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (127, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (129, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (129, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (129, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (129, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (130, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (130, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (130, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (130, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (131, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (131, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (131, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (131, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (132, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (132, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (133, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (133, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (133, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (133, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (134, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (134, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (135, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (135, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (135, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (135, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (136, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (136, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (137, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (137, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (137, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (137, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (138, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (138, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (139, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (139, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (139, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (139, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (140, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (140, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (140, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (141, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (141, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (141, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (142, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (142, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (142, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (143, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (143, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (143, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (145, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (145, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (145, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (146, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (146, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (146, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (146, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (147, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (147, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (147, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (147, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (149, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (149, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (149, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (149, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (150, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (150, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (151, '001001001001', 10, 1.25);
INSERT INTO public.nfvendasitens VALUES (151, '001001001002', 10, 2.15);
INSERT INTO public.nfvendasitens VALUES (151, '001001001003', 10, 2.45);
INSERT INTO public.nfvendasitens VALUES (151, '001001001005', 10, 3.15);
INSERT INTO public.nfvendasitens VALUES (152, '001001001003', 20, 2.45);
INSERT INTO public.nfvendasitens VALUES (152, '001001001005', 20, 3.15);
INSERT INTO public.nfvendasitens VALUES (152, '001002001004', 10, 2);


--
-- Data for Name: ocorrencias; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.ocorrencias VALUES (5, 1, 5, 145241, 120, 130, 'Colisão lateral dos veículos trafegando pela Av. Politécnica e logo a seguir colindo com um muro e um poste no cruzamento da R. das Laranjeiras.', '2010-10-10');
INSERT INTO public.ocorrencias VALUES (6, 3, 8, 145241, 170, 300, 'Roubo com uso de arma de fogo por volta das 23h00', '2010-10-10');


--
-- Data for Name: oficinas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.oficinas VALUES (1, 'Oficina Mecânica de Reparos Gerais Luiz Porto S/C Ltda.', '01245241521   ', 'Luizinho', 520, NULL, '2010-10-10');
INSERT INTO public.oficinas VALUES (2, 'Oficina de Reparos Gerais "Marreco" S/C Ltda.', '123123        ', 'Marreco', 240, NULL, '2015-10-10');


--
-- Data for Name: oficinastels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.oficinastels VALUES (1, 1, 10, '1174185296     ', NULL, '2019-09-02');
INSERT INTO public.oficinastels VALUES (2, 2, 10, '5474185296     ', NULL, '2019-09-02');
INSERT INTO public.oficinastels VALUES (3, 2, 10, '1196385274     ', NULL, '2019-09-02');
INSERT INTO public.oficinastels VALUES (4, 1, 10, '3145124512     ', NULL, '2019-09-02');
INSERT INTO public.oficinastels VALUES (5, 2, 15, '43985264521    ', NULL, '2019-09-02');


--
-- Data for Name: palavraschaves; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.palavraschaves VALUES (1, 'Amor', '2010-12-13');
INSERT INTO public.palavraschaves VALUES (2, 'Carinho', '2010-12-13');
INSERT INTO public.palavraschaves VALUES (3, 'Amizade', '2010-12-13');
INSERT INTO public.palavraschaves VALUES (4, 'Convivencia', '2010-12-13');
INSERT INTO public.palavraschaves VALUES (7, 'Solidariedade', '2010-12-10');
INSERT INTO public.palavraschaves VALUES (5, 'Compreensão', '2010-12-10');
INSERT INTO public.palavraschaves VALUES (6, 'Confiança', '2010-12-10');
INSERT INTO public.palavraschaves VALUES (8, 'Lógica', '2016-12-07');
INSERT INTO public.palavraschaves VALUES (9, 'Matemática', '2016-12-07');
INSERT INTO public.palavraschaves VALUES (10, 'Física', '2016-12-07');
INSERT INTO public.palavraschaves VALUES (11, 'Cálculo Diferencial', '2016-12-07');


--
-- Data for Name: palavraslivros; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.palavraslivros VALUES (1, 92, '2016-12-07');
INSERT INTO public.palavraslivros VALUES (2, 92, '2016-12-07');
INSERT INTO public.palavraslivros VALUES (11, 90, '2016-12-07');
INSERT INTO public.palavraslivros VALUES (9, 90, '2016-12-07');
INSERT INTO public.palavraslivros VALUES (9, 40, '2016-12-07');
INSERT INTO public.palavraslivros VALUES (10, 50, '2016-12-07');


--
-- Data for Name: planosdesaude; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.planosdesaude VALUES (1, 'Unimed', 'zvfzxfasdfsdfasdf', NULL, 350, ' 1243', '2354235 ', '2010-10-27');
INSERT INTO public.planosdesaude VALUES (2, 'SulAmericana', 'Trocando os valores', NULL, 470, ' 1492', '14524515', '2010-10-27');
INSERT INTO public.planosdesaude VALUES (4, 'MedialSaude', NULL, NULL, 470, ' 1492', NULL, '2010-10-27');
INSERT INTO public.planosdesaude VALUES (5, 'teter', 'sadfsdf', NULL, 470, ' 234', '12313123', '2010-10-10');


--
-- Data for Name: planosmedicos; Type: TABLE DATA; Schema: public; Owner: postgres
--



--
-- Data for Name: planostels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.planostels VALUES (5, 2, 5, '12341234       ', NULL, '2016-06-10');
INSERT INTO public.planostels VALUES (8, 4, 5, '141514541242   ', NULL, '2016-07-05');
INSERT INTO public.planostels VALUES (2, 4, 10, '1452451255     ', NULL, '2016-05-20');
INSERT INTO public.planostels VALUES (3, 4, 15, '5642151651     ', NULL, '2016-06-20');
INSERT INTO public.planostels VALUES (1, 4, 20, '1421254412     ', NULL, '2016-05-20');
INSERT INTO public.planostels VALUES (4, 2, 20, '12341234       ', NULL, '2016-05-25');
INSERT INTO public.planostels VALUES (7, 1, 20, '2134523453     ', NULL, '2016-07-08');


--
-- Data for Name: produtos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.produtos VALUES ('001003001002', 'Trocando de Valor na Descricao Curta', 123.00, 120.00, 120.00, 0.00, 15, 'Trocando de Valor na Descricao completa', '2010-10-10');
INSERT INTO public.produtos VALUES ('001001001001', 'metafluocoreto de potássio', 40.00, 35.00, 26.00, 0.00, 0, 'o metafluocoreto ', '1980-01-01');
INSERT INTO public.produtos VALUES ('001001001002', 'sulfito de sódio', 45.00, 20.00, 10.00, 0.00, 0, 'asdfasdfadsf', '2010-10-10');
INSERT INTO public.produtos VALUES ('001001001003', 'enxofre', 42.00, 12.00, 23.00, 0.00, 0, 'laskfjsdf', '1980-01-01');
INSERT INTO public.produtos VALUES ('001001001005', 'Permanganato de Silício', 35.00, 1450.00, 1400.00, 0.00, 0, NULL, '2011-01-20');
INSERT INTO public.produtos VALUES ('001002001004', 'amianto de sódio', 40.00, 22.00, 20.00, 0.00, 0, 'asdfsadf', '1980-01-01');
INSERT INTO public.produtos VALUES ('001002003001', 'Acido Sulfúrico', 15.00, 1100.00, 950.00, 0.00, 0, 'Este ', '1980-01-01');
INSERT INTO public.produtos VALUES ('001003001001', 'Resfriador de Sódio', 40.00, 1450.00, 1100.00, 0.00, 0, NULL, '2010-10-20');


--
-- Data for Name: professores; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.professores VALUES (1, 'ANA MARIA VERDIM', 470, ' 3456', '3436567 ', '1960-12-19', '2005-05-11');
INSERT INTO public.professores VALUES (2, 'ABEL DA SILVA', 110, ' 234', '1233536 ', '1964-07-11', '2001-08-21');
INSERT INTO public.professores VALUES (3, 'ABRAO ABUJANRA', 240, ' 451', '1342545 ', '1975-06-12', '2005-03-12');
INSERT INTO public.professores VALUES (4, 'CARLOS TAKESHI UENDO', 340, ' 475', '1865456 ', '1984-07-19', '2006-05-13');
INSERT INTO public.professores VALUES (5, 'DAVid GUTEMBERG', 260, ' 4521', '5680567 ', '1966-06-16', '2005-05-12');
INSERT INTO public.professores VALUES (6, 'FRANCISCO ROMEU DA CRUZ', 140, ' 75 23And, Cj 23', '5670479 ', '1974-12-05', '2002-05-13');
INSERT INTO public.professores VALUES (7, 'GERALDO BANDEIRAS PONTES', 170, ' 234', '4656589 ', '1987-09-06', '2002-10-21');
INSERT INTO public.professores VALUES (8, 'HEITOR DE TROIA', 120, ' 7458', '5656745 ', '1964-10-08', '2003-02-21');
INSERT INTO public.professores VALUES (9, 'HERCULES OLIMPIANO', 130, ' 345', '7643587 ', '1976-07-29', '2002-01-21');
INSERT INTO public.professores VALUES (10, 'IRINEU EVANGELISTA DE SOUZA', 270, ' 456', '4669908 ', '1984-11-28', '2005-05-14');
INSERT INTO public.professores VALUES (11, 'JOAO HEULALIO DE BUENO VIDIGAL', 360, ' 2569', '4794477 ', '1967-08-24', '2005-05-27');
INSERT INTO public.professores VALUES (12, 'JAIME DE ABREU POMPEU DE LIMA', 150, ' 75', '6298666 ', '1975-12-19', '2002-05-16');
INSERT INTO public.professores VALUES (13, 'JOSE RAMOS DE ALMEIDA', 160, ' 54', '7489455 ', '1988-07-29', '2002-05-28');
INSERT INTO public.professores VALUES (14, 'LEONIDAS DE PERCEPOLIS', 80, ' 345', '8405674 ', '1964-10-11', '2001-05-16');
INSERT INTO public.professores VALUES (15, 'LEOPOLDO DE COUTO E SILVA', 250, ' 3879', '8486453 ', '1976-10-10', '2005-03-25');
INSERT INTO public.professores VALUES (16, 'MARIA MAURA CORREIA ALVES LIMA', 310, ' 25', '8504467 ', '1984-12-21', '2005-09-18');
INSERT INTO public.professores VALUES (17, 'MARCIA DE ALBUQUERQUE LIMA', NULL, ' 25415', '8674645 ', '1966-09-21', '2000-05-25');
INSERT INTO public.professores VALUES (18, 'MARIO QUINTANA DRUMOND DE ANDRADE', 50, ' 345', '7605555 ', '1974-06-30', '2000-06-14');
INSERT INTO public.professores VALUES (19, 'NAIR DE MELLO CUNHA', 180, ' 4521', '6407626 ', '1987-05-30', '2003-04-23');
INSERT INTO public.professores VALUES (20, 'NEIRE GONCALVES DE ALBUQUERQUE LINS', 230, ' 345', '5567715 ', '1965-11-29', '2005-02-16');
INSERT INTO public.professores VALUES (21, 'OLIVIA CRUZ DO NASCIMENTO', 300, ' 657', '5456600 ', '1977-11-13', '2005-05-28');
INSERT INTO public.professores VALUES (22, 'ODUVALDO VIANNA', 460, ' 456', '5235683 ', '1966-09-24', '2004-05-15');
INSERT INTO public.professores VALUES (23, 'PASCOAL DE LIMA ROSA CRUZ', 190, ' 190', '5329444 ', '1987-10-25', '2003-05-27');
INSERT INTO public.professores VALUES (24, 'RENATO CORTE REAL', 210, ' 3456', '5444753 ', '1965-05-06', '2004-02-14');
INSERT INTO public.professores VALUES (25, 'SEBASTIAO MELLO DA SILVA CRUZ', 280, ' 867', '6534756 ', '1987-12-07', '2005-05-20');
INSERT INTO public.professores VALUES (26, 'TADEU BUARQUE DE HOLANDA', 320, ' 2145', '5644642 ', '1965-07-19', '2005-12-13');
INSERT INTO public.professores VALUES (27, 'ULISSES ODEBRECHT', 40, ' 2767', '5744548 ', '1987-11-17', '2000-05-29');
INSERT INTO public.professores VALUES (28, 'VINICIUS HUMBRTO PINHEIRO DA SILVA', 220, ' 4512', '5844426 ', '1965-11-05', '2005-01-10');
INSERT INTO public.professores VALUES (29, 'VERA ADRIANA HUANG AZEVEDO', 200, ' 745', '15122222', '1970-02-10', '2010-10-10');
INSERT INTO public.professores VALUES (35, 'EURIPEDES SOARES DE ALMEIDA', 170, '450', '12345678', '1957-05-10', '1975-10-10');


--
-- Data for Name: professorestels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.professorestels VALUES (4, 1, 5, '99999777       ', NULL);
INSERT INTO public.professorestels VALUES (3, 7, 20, '88887777       ', NULL);


--
-- Data for Name: projetos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.projetos VALUES ('AD3100', 'ADMIN SERVICES       ', 'A01', 10, 6.50, '2002-01-01', '2003-02-01', 'AD3100', '1980-01-01');
INSERT INTO public.projetos VALUES ('AD3110', 'GENERAL ADMIN SYSTEMS', 'A01', 20, 6.00, '2002-01-01', '2003-02-01', 'AD3100', '1980-01-01');
INSERT INTO public.projetos VALUES ('AD3112', 'PERSONNEL PROGRAMMING', 'B01', 20, 1.00, '2002-01-01', '2003-02-01', 'AD3110', '1980-01-01');
INSERT INTO public.projetos VALUES ('AD3113', 'ACCOUNT PROGRAMMING  ', 'B01', 20, 2.00, '2002-01-01', '2003-02-01', 'AD3110', '1980-01-01');
INSERT INTO public.projetos VALUES ('IF1000', 'QUERY SERVICES       ', 'B01', 30, 2.00, '2002-01-01', '2003-02-01', 'IF1000', '1980-01-01');
INSERT INTO public.projetos VALUES ('IF2000', 'USER EDUCATION       ', 'C01', 30, 1.00, '2002-01-01', '2003-02-01', 'IF2000', '1980-01-01');
INSERT INTO public.projetos VALUES ('MA2100', 'WELD LINE AUTOMATION ', 'C01', 20, 12.00, '2002-01-01', '2003-02-01', 'MA2100', '1980-01-01');
INSERT INTO public.projetos VALUES ('MA2110', 'W L PROGRAMMING      ', 'D01', 10, 9.00, '2002-01-01', '2003-02-01', 'MA2100', '1980-01-01');
INSERT INTO public.projetos VALUES ('MA2111', 'W L PROGRAM DESIGN   ', 'D01', 40, 2.00, '2002-01-01', '1982-12-01', 'MA2110', '1980-01-01');
INSERT INTO public.projetos VALUES ('MA2112', 'W L ROBOT DESIGN     ', 'D91', 50, 3.00, '2002-01-01', '1982-12-01', 'MA2110', '1980-01-01');
INSERT INTO public.projetos VALUES ('MA2113', 'W L PROD CONT PROGS  ', 'D91', 40, 3.00, '2002-02-15', '1982-12-01', 'MA2110', '1980-01-01');
INSERT INTO public.projetos VALUES ('OP2000', 'GEN SYSTEMS SERVICES ', 'E01', 50, 999.99, '2002-01-01', '2003-02-01', 'OP2000', '1980-01-01');
INSERT INTO public.projetos VALUES ('OP2010', 'SYSTEMS SUPPORT      ', 'E01', 50, 4.00, '2002-01-01', '2003-02-01', 'OP2000', '1980-01-01');
INSERT INTO public.projetos VALUES ('OP2011', 'SCP SYSTEMS SUPPORT  ', 'E11', 30, 1.00, '2002-01-01', '2003-02-01', 'OP2010', '1980-01-01');
INSERT INTO public.projetos VALUES ('OP2012', 'APPLICATIONS SUPPORT ', 'E11', 10, 1.00, '2002-01-01', '2003-02-01', 'OP2010', '1980-01-01');
INSERT INTO public.projetos VALUES ('OP2013', 'DB/DC SUPPORT        ', 'E21', 40, 1.00, '2002-01-01', '2003-02-01', 'OP2010', '1980-01-01');
INSERT INTO public.projetos VALUES ('123457', 'alterando', 'Z97', 200, 280000.00, '2010-10-10', '2010-10-10', 'AD3112', '2010-10-10');
INSERT INTO public.projetos VALUES ('AD2323', 'BIG DATA/SSP', 'E21', 40, 850.00, '2016-03-01', '2017-02-28', 'OP2010', '2016-02-10');
INSERT INTO public.projetos VALUES ('Z90   ', 'teste', 'B01', 160, 45000.00, '2011-10-10', '2010-10-10', 'AD3100', '2010-10-10');


--
-- Data for Name: rotasviarias; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.rotasviarias VALUES (1, 'Rota 1', 'passa em Chavantes, Ipaussu, Sta Cruz do Rio Pardo e vai pela Castelo Brancos', 40, 5, '2010-10-10');
INSERT INTO public.rotasviarias VALUES (2, 'Rota 2', 'passa em Chavantes, Ipaussu, Sta Cruz do Rio Pardo e vai pela Raposo Tavares até Avaré depois pela Castelo Branco', 40, 5, '2010-10-10');
INSERT INTO public.rotasviarias VALUES (3, 'Rota 3', 'Passa por Cambará, Andirá, Bandeirantes, Cornélio Procópio, Ibaití pela BR153 (Transbrasiliana)', 40, 35, '2010-10-10');
INSERT INTO public.rotasviarias VALUES (4, 'Rota 66', 'asdasdsa as asd sd ffads', 40, 5, '2012-10-10');
INSERT INTO public.rotasviarias VALUES (8, 'Rota 88', 'Rod. Castelo Branco (até Avaré), Rod. Ildebrando Castanho (até a Rod. Raposo Tavares), Rod', 5, 40, '2013-12-11');


--
-- Data for Name: roteiros; Type: TABLE DATA; Schema: public; Owner: postgres
--



--
-- Data for Name: seguradoras; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.seguradoras VALUES (1, 'Transamerica', 200, ' 745', '        ', '2004-02-10');
INSERT INTO public.seguradoras VALUES (5, 'Porto Seguro', 510, ' 450', '123132  ', '2010-10-10');
INSERT INTO public.seguradoras VALUES (6, 'Altavista Seguros', 160, '224', '12345678', '2010-10-10');
INSERT INTO public.seguradoras VALUES (2, 'Bradesco Seguros', 200, '1452', NULL, '2016-03-28');
INSERT INTO public.seguradoras VALUES (11, 'Seguros Lunares S/C Ltda.', 260, '1452', '04512456', '2016-11-11');
INSERT INTO public.seguradoras VALUES (3, 'Mapfre Seguros', 400, ' 2345', '14512412', '2010-02-12');


--
-- Data for Name: seguradorastels; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.seguradorastels VALUES (1, 2, 20, '1452112212     ', NULL, NULL);
INSERT INTO public.seguradorastels VALUES (2, 2, 20, '14421151       ', NULL, NULL);
INSERT INTO public.seguradorastels VALUES (3, 3, 20, '1452155122     ', NULL, NULL);
INSERT INTO public.seguradorastels VALUES (4, 3, 20, '1122323231     ', NULL, NULL);


--
-- Data for Name: seguros; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.seguros VALUES (145241, 5, 1, '2010-10-10', '2011-10-10', 15000, '2010-10-10');
INSERT INTO public.seguros VALUES (145246, 55, 2, '2010-10-10', '2011-10-10', 15000, '2010-10-07');
INSERT INTO public.seguros VALUES (145251, 90, 11, '2000-05-05', '2001-05-05', 25000, '2000-05-02');


--
-- Data for Name: servicos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.servicos VALUES (5, 'Funilaria', 'serviços de ajuste da lataria de veículos', 300.00, '2010-10-10');
INSERT INTO public.servicos VALUES (10, 'Pintura', 'Pintura simples de veículos', 350.00, '2010-10-10');
INSERT INTO public.servicos VALUES (15, 'Mecânica de suspensão', 'Substituição ou ajustes do conjunto de suspensão', 500.00, '2010-10-10');
INSERT INTO public.servicos VALUES (20, 'Mecânica do Motor', 'Sustituição ou ajustes de partes do motor', 600.00, '2010-10-10');


--
-- Data for Name: servicosprestados; Type: TABLE DATA; Schema: public; Owner: postgres
--



--
-- Data for Name: setoresdeatuacao; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.setoresdeatuacao VALUES (1, 'Industria', 'Manufaturados', '2011-06-10');
INSERT INTO public.setoresdeatuacao VALUES (2, 'Comercio', 'Lojas de vendas em Atacado', '2011-06-10');


--
-- Data for Name: sinistros; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.sinistros VALUES (1, 'colisão com um ou mais veículos em via publica', 'colisão em via publica envolvendo um ou mais veículos além do segurado', '2013-03-20');
INSERT INTO public.sinistros VALUES (2, 'Colisão com um ou mais veículos em via privada', 'colisão em via privada (pátios de estacionamento, rampa de garagem, acesso à sítios ou chacaras), envolvendo um ou mais veículos além do segurado', '2013-03-20');
INSERT INTO public.sinistros VALUES (3, 'Roubo simples', 'Veículo foi roubado sem a presença do proprietário em via pública', '2013-03-20');
INSERT INTO public.sinistros VALUES (4, 'Roubo privado', 'Veículo roubado de dentro de casa ou estacionamento particular sem a presença do proprietário', '2013-03-20');


--
-- Data for Name: tarefas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.tarefas VALUES (10, 'Gerenciar                               ', 'Gerenciar/Advertir', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (20, 'Orçar                                   ', 'Estimar orçamentos de Projetos', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (30, 'Definir                                 ', 'Definir Especifica', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (40, 'Liderar                                 ', 'Liderar times de programação', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (50, 'Especificar                             ', 'Documentador de Especifica', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (60, 'An.Neg                                  ', 'Descritor das regras de neg', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (70, 'Codificar                               ', 'Codificar linhas de programas', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (80, 'Testar Progrszd                         ', 'Teste de programas conclu', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (90, 'AdmPesqSist                             ', 'Administrar o Sistema de Pesquisa (Prospec', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (100, 'Ensinar                                 ', 'Dar aulas de TI', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (110, 'Montar Cursos                           ', 'Desenvolver material de Cursos', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (120, 'Suporte Pessoal                         ', 'Surporte de Pessoal', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (130, 'Operar                                  ', 'Operar sistemas de informa', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (140, 'Manutenir                               ', 'Fazer a manuten', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (150, 'AdmSistInfor                            ', 'Administrar Sistemas de Informa', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (160, 'AdmDataBase                             ', 'Administrar Bases de Dados', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (170, 'Adm Com. Dados                          ', 'Administrar a rede de Dados', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (180, 'troca                                   ', 'troca', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (190, 'Treinar                                 ', 'Treinamento de Usuários', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (200, 'Portar Dados                            ', 'Efetuar porte de dados existentes em sistemas', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (210, 'Desenvolvimento                         ', 'Desenvolvimento', 80, '2011-10-05');
INSERT INTO public.tarefas VALUES (230, 'aDSas                                   ', 'ASDasd', 234, '2010-10-10');


--
-- Data for Name: tarefasprojetos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.tarefasprojetos VALUES (1, 'AD2323', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (2, 'AD2323', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (3, 'AD3100', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (4, 'AD3100', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (5, 'AD3100', 30, 200, 3, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (6, 'AD3100', 40, 200, 4, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (7, 'AD3100', 50, 200, 5, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (8, 'AD3100', 60, 200, 6, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (9, 'AD3100', 70, 200, 7, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (10, 'AD3100', 80, 200, 8, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (11, 'AD3100', 140, 200, 9, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (12, 'AD3100', 100, 200, 10, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (13, 'AD3100', 110, 200, 11, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (14, 'AD3100', 120, 200, 12, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (15, 'AD3100', 130, 200, 13, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (16, 'AD3100', 140, 200, 14, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (17, 'AD3100', 150, 200, 15, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (18, 'AD3100', 160, 200, 16, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (19, 'AD3100', 170, 200, 17, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (20, 'AD3110', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (21, 'AD3110', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (22, 'AD3112', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (23, 'AD3112', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (24, 'AD3112', 60, 200, 6, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (25, 'AD3112', 70, 200, 7, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (26, 'AD3112', 80, 200, 8, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (27, 'AD3113', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (28, 'AD3113', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (29, 'AD3113', 60, 200, 6, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (30, 'AD3113', 70, 200, 7, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (31, 'AD3113', 80, 200, 8, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (32, 'IF1000', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (33, 'IF1000', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (34, 'IF1000', 30, 200, 3, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (35, 'IF1000', 40, 200, 4, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (36, 'IF1000', 50, 200, 5, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (37, 'IF1000', 60, 200, 6, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (38, 'IF1000', 70, 200, 7, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (39, 'IF1000', 80, 200, 8, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (40, 'IF1000', 90, 200, 9, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (41, 'IF1000', 100, 200, 10, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (42, 'IF1000', 110, 200, 11, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (43, 'IF1000', 120, 200, 12, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (44, 'IF1000', 130, 200, 13, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (45, 'IF1000', 140, 200, 14, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (46, 'IF1000', 150, 200, 15, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (47, 'IF1000', 160, 200, 16, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (48, 'IF1000', 170, 200, 17, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (49, 'IF2000', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (50, 'IF2000', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (51, 'IF2000', 100, 200, 10, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (52, 'IF2000', 110, 200, 11, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (53, 'MA2100', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (54, 'MA2100', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (55, 'MA2100', 30, 200, 3, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (56, 'MA2100', 40, 200, 4, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (57, 'MA2100', 50, 200, 5, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (58, 'MA2100', 60, 200, 6, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (59, 'MA2100', 70, 200, 7, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (60, 'MA2100', 80, 200, 8, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (61, 'MA2100', 90, 200, 9, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (62, 'MA2100', 100, 200, 10, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (63, 'MA2100', 110, 200, 11, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (64, 'MA2100', 120, 200, 12, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (65, 'MA2100', 130, 200, 13, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (66, 'MA2100', 140, 200, 14, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (67, 'MA2100', 150, 200, 15, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (68, 'MA2100', 160, 200, 16, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (69, 'MA2100', 170, 200, 17, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (70, 'MA2110', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (71, 'MA2110', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (72, 'MA2110', 30, 200, 3, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (73, 'MA2110', 40, 200, 4, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (74, 'MA2110', 50, 200, 5, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (75, 'MA2110', 60, 200, 6, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (76, 'MA2110', 70, 200, 7, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (77, 'MA2110', 80, 200, 8, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (78, 'MA2110', 90, 200, 9, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (79, 'MA2110', 100, 200, 10, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (80, 'MA2110', 110, 200, 11, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (81, 'MA2110', 120, 200, 12, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (82, 'MA2110', 130, 200, 13, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (83, 'MA2110', 140, 200, 14, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (84, 'MA2110', 150, 200, 15, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (85, 'MA2110', 160, 200, 16, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (86, 'MA2110', 170, 200, 17, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (87, 'MA2111', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (88, 'MA2111', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (89, 'MA2111', 40, 200, 4, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (90, 'MA2111', 50, 200, 5, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (91, 'MA2111', 60, 200, 6, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (92, 'MA2112', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (93, 'MA2112', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (94, 'MA2112', 30, 200, 3, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (95, 'MA2112', 40, 200, 4, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (96, 'MA2112', 50, 200, 5, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (97, 'MA2112', 60, 200, 6, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (98, 'MA2112', 70, 200, 7, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (99, 'MA2112', 80, 200, 8, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (100, 'MA2112', 90, 200, 9, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (101, 'MA2112', 100, 200, 10, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (102, 'MA2112', 110, 200, 11, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (103, 'MA2112', 120, 200, 12, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (104, 'MA2112', 130, 200, 13, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (105, 'MA2112', 140, 200, 14, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (106, 'MA2112', 150, 200, 15, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (107, 'MA2112', 160, 200, 16, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (108, 'MA2112', 170, 200, 17, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (109, 'MA2113', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (110, 'MA2113', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (111, 'MA2113', 60, 200, 6, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (112, 'MA2113', 70, 200, 7, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (114, 'OP2000', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (115, 'OP2000', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (116, 'OP2010', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (117, 'OP2010', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (118, 'OP2011', 10, 200, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (119, 'OP2011', 20, 200, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (120, 'OP2012', 10, 120, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (121, 'OP2012', 20, 100, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (122, 'OP2013', 10, 120, 1, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (123, 'OP2013', 20, 90, 2, '2010-10-10');
INSERT INTO public.tarefasprojetos VALUES (124, 'MA2110', 40, 200, 1, '2010-10-10');


--
-- Data for Name: telefonestipos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.telefonestipos VALUES (5, 'Fixo - Residencial', '2011-10-25');
INSERT INTO public.telefonestipos VALUES (10, 'Celular Particular', '2011-10-25');
INSERT INTO public.telefonestipos VALUES (15, 'Fixo - Comercial', '2011-10-25');
INSERT INTO public.telefonestipos VALUES (20, 'Celular Empresa', '2011-10-25');


--
-- Data for Name: titulacoes; Type: TABLE DATA; Schema: public; Owner: postgres
--



--
-- Data for Name: veiculos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.veiculos VALUES (1, 'ABC1593', 1, 1, 40, 'P', NULL, 5, '2015', 'C', '2018-02-20');
INSERT INTO public.veiculos VALUES (2, 'BBC1593', 2, 1, 50, 'P', NULL, 5, '2010', 'C', '2017-02-20');
INSERT INTO public.veiculos VALUES (3, 'CBC1593', 1, 1, 60, 'P', NULL, 5, '1999', 'C', '2018-02-20');
INSERT INTO public.veiculos VALUES (4, 'DBC1593', 2, 1, 90, 'P', NULL, 5, '2012', 'C', '2016-02-20');
INSERT INTO public.veiculos VALUES (5, 'EBC2604', 1, 1, 110, 'P', NULL, 4, '2015', 'C', '2016-02-20');
INSERT INTO public.veiculos VALUES (6, 'FBC1593', 2, 1, 90, 'P', NULL, 5, '2013', 'C', '2016-02-20');
INSERT INTO public.veiculos VALUES (7, 'ABC3715', 1, 1, 120, 'P', NULL, 5, '2015', 'C', '2015-04-20');
INSERT INTO public.veiculos VALUES (8, 'ABC4826', 2, 1, 110, 'P', NULL, 5, '2016', 'C', '2015-05-04');
INSERT INTO public.veiculos VALUES (9, 'ABD4826', 2, 1, NULL, NULL, 'Orion', 45, '2016', 'O', '2015-05-04');
INSERT INTO public.veiculos VALUES (10, 'AYH4826', 2, 1, NULL, NULL, 'Morpheus', 45, '2016', 'O', '2015-05-04');
INSERT INTO public.veiculos VALUES (11, 'AUJ4826', 2, 1, NULL, NULL, 'Centauro', 45, '2016', 'O', '2015-05-04');
INSERT INTO public.veiculos VALUES (12, 'AJO4826', 2, 1, NULL, NULL, 'Vega', 45, '2016', 'O', '2015-05-04');


--
-- Data for Name: veiculosmarcas; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.veiculosmarcas VALUES (2, 'Toruga', 1, '2010-05-10');
INSERT INTO public.veiculosmarcas VALUES (3, 'Elba', 2, '2005-10-10');
INSERT INTO public.veiculosmarcas VALUES (4, 'Bravo', 2, '2015-01-10');
INSERT INTO public.veiculosmarcas VALUES (5, 'Uno Mille', 2, '2001-01-10');
INSERT INTO public.veiculosmarcas VALUES (6, 'teste', 2, '2011-05-10');
INSERT INTO public.veiculosmarcas VALUES (1, 'Jetta', 1, '2016-03-26');


--
-- Data for Name: veiculosmodelos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.veiculosmodelos VALUES (2, 1, 'Santana 2.0', 'A', '2002-02-02');
INSERT INTO public.veiculosmodelos VALUES (3, 6, 'voyage 1.6', 'Z', '2002-02-02');
INSERT INTO public.veiculosmodelos VALUES (4, 1, 'Golf 2.0', 'Z', '2002-02-02');
INSERT INTO public.veiculosmodelos VALUES (9, 3, 'Elba WeekEnd 1.8 turbo', 'G', '2010-10-10');
INSERT INTO public.veiculosmodelos VALUES (1, 4, 'Bravo Cellera 2.2', 'G', '2002-05-20');
INSERT INTO public.veiculosmodelos VALUES (14, 4, 'Bravo Pallas 2.2', 'F', '2010-10-10');


--
-- Data for Name: veiculostipos; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.veiculostipos VALUES (1, 'Automóvel', '2013-01-20');
INSERT INTO public.veiculostipos VALUES (2, 'Embarcação Fluvial', '2013-01-20');
INSERT INTO public.veiculostipos VALUES (3, 'Embarcação Marítima', '2013-01-20');
INSERT INTO public.veiculostipos VALUES (4, 'Avião Comercial para até 20 passageiros', '2013-01-20');


--
-- Data for Name: viagens; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.viagens VALUES (1, 1, '2012-06-23', '00:00:00', '2012-06-23', NULL, NULL);
INSERT INTO public.viagens VALUES (2, 1, '2012-06-24', '00:00:00', '2012-06-23', NULL, NULL);
INSERT INTO public.viagens VALUES (3, 1, '2012-06-25', '00:00:00', '2012-06-23', NULL, NULL);
INSERT INTO public.viagens VALUES (4, 1, '2012-06-26', '00:00:00', '2012-06-23', NULL, NULL);
INSERT INTO public.viagens VALUES (5, 2, '2012-06-23', '16:50:00', '2012-06-23', NULL, NULL);
INSERT INTO public.viagens VALUES (6, 2, '2012-06-24', '00:00:00', '2012-06-23', NULL, NULL);
INSERT INTO public.viagens VALUES (7, 1, '2012-06-30', '23:59:00', '2012-06-23', NULL, NULL);
INSERT INTO public.viagens VALUES (8, 2, '2012-06-30', '23:59:00', '2012-06-23', NULL, NULL);


--
-- Name: agencias agenciaspk; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.agencias
    ADD CONSTRAINT agenciaspk PRIMARY KEY (fkbanco, pkagencia);


--
-- Name: autorias autoriaspk; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.autorias
    ADD CONSTRAINT autoriaspk PRIMARY KEY (fklivro, fkautor);


--
-- Name: bairroslogradouros bairroslogradouros_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bairroslogradouros
    ADD CONSTRAINT bairroslogradouros_pkey PRIMARY KEY (pkbairrologradouro);


--
-- Name: bancos bancospk; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bancos
    ADD CONSTRAINT bancospk PRIMARY KEY (pkbanco);


--
-- Name: logradouros logradourospk; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.logradouros
    ADD CONSTRAINT logradourospk PRIMARY KEY (pklogradouro);


--
-- Name: autorias BIUautorias; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER "BIUautorias" BEFORE INSERT OR UPDATE ON public.autorias FOR EACH ROW EXECUTE FUNCTION public."autoriasBIU"();


--
-- Name: agencias agenciasfk1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.agencias
    ADD CONSTRAINT agenciasfk1 FOREIGN KEY (fkbanco) REFERENCES public.bancos(pkbanco) ON UPDATE CASCADE ON DELETE RESTRICT DEFERRABLE INITIALLY DEFERRED;


--
-- Name: agencias agenciasfk2; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.agencias
    ADD CONSTRAINT agenciasfk2 FOREIGN KEY (fklogradouro) REFERENCES public.logradouros(pklogradouro) ON UPDATE CASCADE ON DELETE RESTRICT DEFERRABLE INITIALLY DEFERRED;


--
-- PostgreSQL database dump complete
--

