--
-- PostgreSQL database dump
--

\restrict NkLZPgiIuy1DEwGxiddM38TIL7f97hE2jK7DUCZtx3dZAdwepDWiHdqf075r6Nt

-- Dumped from database version 16.13
-- Dumped by pg_dump version 16.13

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;

SET default_tablespace = '';

SET default_table_access_method = heap;

--
-- Name: Registro501; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro501" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "TipoOperacion" character varying(5),
    "ClaveDocumento" character varying(10),
    "SeccionAduaneraEntrada" character varying(10),
    "CurpContribuyente" character varying(25),
    "Rfc" character varying(20),
    "CurpAgenteA" character varying(25),
    "TipoCambio" numeric(15,5),
    "TotalFletes" numeric(18,2),
    "TotalSeguros" numeric(18,2),
    "TotalEmbalajes" numeric(18,2),
    "TotalIncrementables" numeric(18,2),
    "TotalDeducibles" numeric(18,2),
    "PesoBrutoMercancia" numeric(18,3),
    "MedioTransporteSalida" character varying(5),
    "MedioTransporteArribo" character varying(5),
    "MedioTransporteEntrada_Salida" character varying(5),
    "DestinoMercancia" character varying(5),
    "NombreContribuyente" character varying(200),
    "CalleContribuyente" character varying(200),
    "NumInteriorContribuyente" character varying(20),
    "NumExteriorContribuyente" character varying(20),
    "CPContribuyente" character varying(10),
    "MunicipioContribuyente" character varying(100),
    "EntidadFedContribuyente" character varying(5),
    "PaisContribuyente" character varying(5),
    "TipoPedimento" character varying(5),
    "FechaRecepcionPedimento" timestamp without time zone,
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro502; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro502" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "RfcTransportista" character varying(20),
    "CurpTransportista" character varying(25),
    "NombreTransportista" character varying(200),
    "PaisTransporte" character varying(5),
    "IdentificadorTransporte" character varying(50),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro503; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro503" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "NumeroGuia" character varying(50),
    "TipoGuia" character varying(5),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro504; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro504" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "NumContenedor" character varying(50),
    "TipoContenedor" character varying(10),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro505; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro505" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "FechaFacturacion" character varying(20),
    "NumeroFactura" character varying(50),
    "TerminoFacturacion" character varying(10),
    "MonedaFacturacion" character varying(10),
    "ValorDolares" numeric(18,2),
    "ValorMonedaExtranjera" numeric(18,2),
    "PaisFacturacion" character varying(5),
    "EntidadFedFacturacion" character varying(5),
    "IndentFiscalProveedor" character varying(50),
    "ProveedorMercancia" character varying(200),
    "CalleProveedor" character varying(200),
    "NumInteriorProveedor" character varying(20),
    "NumExteriorProveedor" character varying(20),
    "CpProveedor" character varying(20),
    "MunicipioProveedor" character varying(100),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro506; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro506" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "TipoFecha" character varying(5),
    "FechaOperacion" character varying(20),
    "FechaValidacionPagoR" timestamp without time zone
);


--
-- Name: Registro507; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro507" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "ClaveCaso" character varying(10),
    "IdentificadorCaso" character varying(50),
    "TipoPedimento" character varying(5),
    "ComplementoCaso" character varying(100),
    "FechaValidacionPagoR" timestamp without time zone
);


--
-- Name: Registro508; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro508" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "InstitucionEmisora" character varying(50),
    "NumeroCuenta" character varying(50),
    "FolioConstancia" character varying(50),
    "FechaConstancia" character varying(20),
    "TipoCuenta" character varying(10),
    "ClaveGarantia" character varying(10),
    "ValorUnitarioTitulo" numeric(18,5),
    "TotalGarantia" numeric(18,2),
    "CantidadUnidades" numeric(18,3),
    "TitulosAsignados" character varying(50),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro509; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro509" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "ClaveContribucion" character varying(10),
    "TasaContribucion" numeric(15,5),
    "TipoTasa" character varying(5),
    "TipoPedimento" character varying(5),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro510; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro510" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "ClaveContribucion" character varying(10),
    "FormaPago" character varying(5),
    "ImportePago" numeric(18,2),
    "TipoPedimento" character varying(5),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro511; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro511" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "SecuenciaObservacion" character varying(10),
    "Observaciones" text,
    "TipoPedimento" character varying(5),
    "FechaValidacionPagoR" timestamp without time zone
);


--
-- Name: Registro512; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro512" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "PatenteAduanalOrig" character varying(10),
    "PedimentoOriginal" character varying(20),
    "SeccionAduaneraDespOrig" character varying(10),
    "DocumentoOriginal" character varying(10),
    "FechaOperacionOrig" character varying(20),
    "FraccionOriginal" character varying(15),
    "UnidadMedida" character varying(5),
    "MercanciaDescargada" numeric(18,3),
    "TipoPedimento" character varying(5),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro520; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro520" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "IndentFiscalDestinatario" character varying(50),
    "NombreDestinatarioMercancia" character varying(200),
    "CalleDestinatario" character varying(200),
    "NumInteriorDestinatario" character varying(20),
    "NumExteriorDestinatario" character varying(20),
    "CpDestinatario" character varying(20),
    "MunicpioDestinatario" character varying(100),
    "PaisDestinatario" character varying(5),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro551; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro551" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "Fraccion" character varying(15),
    "SecuenciaFraccion" character varying(10),
    "SubdivisionFraccion" character varying(10),
    "DescripcionMercancia" text,
    "PrecioUnitario" numeric(18,5),
    "ValorAduana" numeric(18,2),
    "ValorComercial" numeric(18,2),
    "ValorDolares" numeric(18,2),
    "CantidadUMComercial" numeric(18,3),
    "UnidadMedidaComercial" character varying(5),
    "CantidadUMTarifa" numeric(18,5),
    "UnidadMedidaTarifa" character varying(5),
    "ValorAgregado" numeric(18,2),
    "ClaveVinculacion" character varying(5),
    "MetodoValorizacion" character varying(5),
    "CodigoMercanciaProducto" character varying(50),
    "MarcaMercanciaProducto" character varying(100),
    "ModeloMercanciaProducto" character varying(100),
    "PaisOrigenDestino" character varying(5),
    "PaisCompradorVendedor" character varying(5),
    "EntidadFedOrigen" character varying(5),
    "EntidadFedDestino" character varying(5),
    "EntidadFedComprador" character varying(5),
    "EntidadFedVendedor" character varying(5),
    "TipoOperacion" character varying(5),
    "ClaveDocumento" character varying(10),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro552; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro552" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "Fraccion" character varying(15),
    "SecuenciaFraccion" character varying(10),
    "VinNumeroSerie" character varying(50),
    "KilometrajeVehiculo" character varying(20),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro553; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro553" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "Fraccion" character varying(15),
    "SecuenciaFraccion" character varying(10),
    "ClavePermiso" character varying(10),
    "FirmaDescargo" character varying(10),
    "NumeroPermiso" character varying(50),
    "ValorComercialDolares" numeric(18,2),
    "CantidadMUMTarifa" numeric(18,5),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro554; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro554" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "Fraccion" character varying(15),
    "SecuenciaFraccion" character varying(10),
    "ClaveCaso" character varying(10),
    "IdentificadorCaso" character varying(50),
    "ComplementoCaso" character varying(100),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro555; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro555" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "Fraccion" character varying(15),
    "SecuenciaFraccion" character varying(10),
    "InstitucionEmisora" character varying(50),
    "NumeroCuenta" character varying(50),
    "FolioConstancia" character varying(50),
    "FechaConstancia" character varying(20),
    "ClaveGarantia" character varying(10),
    "ValorUnitarioTitulo" numeric(18,5),
    "TotalGarantia" numeric(18,2),
    "CantidadUnidadesMedida" numeric(18,3),
    "TitulosAsignados" character varying(50),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro556; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro556" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "Fraccion" character varying(15),
    "SecuenciaFraccion" character varying(10),
    "ClaveContribucion" character varying(10),
    "TasaContribucion" numeric(15,5),
    "TipoTasa" character varying(5),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro557; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro557" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "Fraccion" character varying(15),
    "SecuenciaFraccion" character varying(10),
    "ClaveContribucion" character varying(10),
    "FormaPago" character varying(5),
    "ImportePago" numeric(18,2),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro558; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro558" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "Fraccion" character varying(15),
    "SecuenciaFraccion" character varying(10),
    "SecuenciaObservacion" character varying(10),
    "Observaciones" text,
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro701; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro701" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "ClaveDocumento" character varying(10),
    "FechaPago" character varying(20),
    "PedimentoAnterior" character varying(20),
    "PatenteAnterior" character varying(10),
    "SeccionAduaneraAnterior" character varying(10),
    "DocumentoAnterior" character varying(10),
    "FechaOperacionAnterior" character varying(20),
    "PedimentoOriginal" character varying(20),
    "PatenteAduanalOrig" character varying(10),
    "SeccionAduaneraDespOrig" character varying(10),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: Registro702; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."Registro702" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "ClaveContribucion" character varying(10),
    "FormaPago" character varying(5),
    "ImportePago" numeric(18,2),
    "TipoPedimento" character varying(5),
    "FechaPagoReal" timestamp without time zone
);


--
-- Name: RegistroInci; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."RegistroInci" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "ConsecutivoRemesa" character varying(10),
    "NumeroSeleccion" character varying(10),
    "FechaInicioReconocimiento" character varying(20),
    "HoraInicioReconocimiento" character varying(10),
    "FechaFinReconocimiento" character varying(20),
    "HoraFinReconocimiento" character varying(10),
    "Fraccion" character varying(15),
    "SecuenciaFraccion" character varying(10),
    "ClaveDocumento" character varying(10),
    "TipoOperacion" character varying(5),
    "GradoIncidencia" character varying(5),
    "FechaSeleccion" character varying(20)
);


--
-- Name: RegistroResumen; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."RegistroResumen" (
    "Folio" character varying(20),
    "RFCoPatenteAduanal" character varying(20),
    "Fecha_Inicial" character varying(20),
    "Fecha_Final" character varying(20),
    "Fecha_Ejecucion" character varying(20),
    "Total_Fracciones" integer,
    "Total_Contribuciones" integer
);


--
-- Name: RegistroSel; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public."RegistroSel" (
    "Patente" character varying(10),
    "Pedimento" character varying(20),
    "SeccionAduanera" character varying(10),
    "ConsecutivoRemesa" character varying(10),
    "NumeroSeleccion" character varying(10),
    "FechaSeleccion" character varying(20),
    "HoraSeleccion" character varying(10),
    "SemaforoFiscal" character varying(5),
    "ClaveDocumento" character varying(10),
    "TipoOperacion" character varying(5)
);


--
-- Name: base_numpartes; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public.base_numpartes (
    numparte text NOT NULL,
    descripcion text,
    unimed text,
    fraccion text
);


--
-- Name: base_numpartes base_numpartes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.base_numpartes
    ADD CONSTRAINT base_numpartes_pkey PRIMARY KEY (numparte);


--
-- PostgreSQL database dump complete
--

\unrestrict NkLZPgiIuy1DEwGxiddM38TIL7f97hE2jK7DUCZtx3dZAdwepDWiHdqf075r6Nt

