-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 14-05-2023 a las 18:32:07
-- Versión del servidor: 10.4.27-MariaDB
-- Versión de PHP: 8.0.25

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Base de datos: `miralova`
--

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ano`
--

CREATE TABLE `ano` (
  `idano` int(11) NOT NULL,
  `nombreano` varchar(10) NOT NULL,
  `registro` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `ano`
--

INSERT INTO `ano` (`idano`, `nombreano`, `registro`) VALUES
(1, '2023', '2023-03-05 17:07:48');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `categoria`
--

CREATE TABLE `categoria` (
  `id` int(11) NOT NULL,
  `categoria` varchar(50) DEFAULT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp(),
  `idTipo` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `categoria`
--

INSERT INTO `categoria` (`id`, `categoria`, `registro`, `idTipo`) VALUES
(1, 'Centro Comercial', '2023-02-20 19:59:40', 1),
(2, 'Comida', '2023-02-20 20:01:00', 1),
(3, 'Institución', '2023-02-20 20:01:51', 1),
(4, 'Tienda', '2023-02-20 20:02:25', 1),
(5, 'Servicio', '2023-02-20 20:02:44', 1),
(6, 'Conciertos', '2023-02-20 21:20:04', 2),
(7, 'Diversión', '2023-02-20 21:20:17', 2),
(8, 'Bodas', '2023-02-20 21:20:47', 2),
(9, 'Almuerzos', '2023-02-20 21:21:15', 2),
(10, 'Cumpleaños', '2023-02-20 21:23:11', 2),
(11, 'Paseos', '2023-02-20 21:23:43', 2),
(12, 'Colegios', '2023-02-20 21:24:06', 2),
(13, 'Universidades', '2023-02-20 21:24:17', 2),
(14, 'Trabajos', '2023-02-20 21:24:48', 2);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `claseservicio`
--

CREATE TABLE `claseservicio` (
  `idclaseservicio` int(11) NOT NULL,
  `nomclaseservicio` varchar(50) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `claseservicio`
--

INSERT INTO `claseservicio` (`idclaseservicio`, `nomclaseservicio`, `registro`) VALUES
(1, 'Propaganda', '2023-02-21 01:23:12'),
(2, 'Evento', '2023-02-21 01:24:17');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `claseubicacion`
--

CREATE TABLE `claseubicacion` (
  `idClaseUbicacion` int(11) NOT NULL,
  `NomUbicacion` varchar(50) DEFAULT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cliente`
--

CREATE TABLE `cliente` (
  `tipopersona` int(11) NOT NULL,
  `idpersonanatural` bigint(20) DEFAULT NULL,
  `idpersonajuridica` bigint(20) DEFAULT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp(),
  `idcliente` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ctacteservicio`
--

CREATE TABLE `ctacteservicio` (
  `idpagoservicio` bigint(20) NOT NULL,
  `pagoservicio` decimal(8,3) NOT NULL DEFAULT 0.000,
  `idcliente` bigint(20) NOT NULL,
  `usuario` varchar(45) NOT NULL,
  `iddocventa` bigint(20) NOT NULL,
  `periodo` varchar(6) NOT NULL,
  `idtipocliente` int(11) NOT NULL,
  `montopagado` decimal(8,3) NOT NULL DEFAULT 0.000,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `departamento`
--

CREATE TABLE `departamento` (
  `idDepartamento` int(11) NOT NULL,
  `NomDepartamento` varchar(45) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `distrito`
--

CREATE TABLE `distrito` (
  `iddistrito` int(11) NOT NULL,
  `Nomdistrito` varchar(45) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `docventa`
--

CREATE TABLE `docventa` (
  `iddocventa` bigint(20) NOT NULL,
  `periodo` varchar(6) NOT NULL,
  `fechahora` varchar(45) NOT NULL,
  `idtipocliente` int(11) NOT NULL,
  `idcliente` int(11) NOT NULL,
  `monto` decimal(8,3) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `docventadetalle`
--

CREATE TABLE `docventadetalle` (
  `iddocventa` bigint(20) NOT NULL,
  `item` int(11) NOT NULL,
  `idservicio` int(11) NOT NULL,
  `descripservicio` varchar(50) DEFAULT NULL,
  `montoparcial` decimal(8,3) NOT NULL DEFAULT 0.000,
  `igv` decimal(8,3) NOT NULL DEFAULT 0.000,
  `porcigv` decimal(8,3) NOT NULL DEFAULT 0.000,
  `isc` int(11) NOT NULL DEFAULT 0,
  `porcisc` decimal(8,3) NOT NULL DEFAULT 0.000,
  `cantidad` int(11) NOT NULL DEFAULT 0,
  `preciouni` decimal(8,3) NOT NULL DEFAULT 0.000,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `evento`
--

CREATE TABLE `evento` (
  `idevento` bigint(20) NOT NULL,
  `idproducto` int(11) NOT NULL,
  `hipervin1` varchar(250) NOT NULL,
  `hipervin2` varchar(250) NOT NULL,
  `imagen` longblob NOT NULL,
  `nomevento` varchar(100) NOT NULL,
  `registro` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `evento`
--

INSERT INTO `evento` (`idevento`, `idproducto`, `hipervin1`, `hipervin2`, `imagen`, `nomevento`, `registro`) VALUES
(1, 14, 'Estadio Monumental', 'La Molina', 0x32303233303332373033313830352e6a7067, '1 LOCAL', '2023-03-26 20:18:05'),
(2, 14, 'Posicion dentro del local', 'Escoje el qu mejor se te ajuste...', 0x32303233303332373033343435322e6a7067, '2 SERVICIO', '2023-03-26 20:44:52'),
(3, 14, 'Estadio Monumental', 'url', 0x32303233303332373033343731322e6a7067, '3 UBICACION ', '2023-03-26 20:47:12'),
(4, 19, 'Estadio Mansicche - Trujillo - Trujillo - La Libertad.  ', 'Av. Manuel Vera Enriquez cuadra N°1, al costado del Coliseo Gran Chimu.', 0x32303233303432343033353233372e6a7067, '1 LOCAL', '2023-04-23 20:52:37'),
(5, 19, 'Posición dentro del estadio', 'https://teleticket.com.pe/evento/barak-en-lima-estadio-san-marcos', 0x32303233303432343034303034362e6a7067, '2 SECTOR POSICION', '2023-04-23 21:00:46'),
(6, 19, 'Mapa Referencia', 'https://www.google.com/maps/place/Estadio+Mansiche/@-8.1055495,-79.0316309,16.75z/data=!4m6!3m5!1s0x91ad3d9ab2e1c74f:0x70ac7746b4bf27c5!8m2!3d-8.1063439!4d-79.0309564!16zL20vMGJkeHp3?authuser=0', 0x32303233303432343034303332352e6a7067, '3 UBICACION', '2023-04-23 21:03:25');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mes`
--

CREATE TABLE `mes` (
  `idmes` int(11) NOT NULL,
  `nombremes` varchar(20) NOT NULL,
  `registro` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `mes`
--

INSERT INTO `mes` (`idmes`, `nombremes`, `registro`) VALUES
(1, 'Enero', '2023-03-05 10:49:34'),
(2, 'Febrero', '2023-03-05 10:49:34'),
(3, 'Marzo', '2023-03-05 10:49:52'),
(4, 'Abril', '2023-03-05 10:49:52'),
(5, 'Mayo', '2023-03-05 10:50:06'),
(6, 'Junio', '2023-03-05 10:50:06'),
(7, 'Julio', '2023-03-05 10:50:22'),
(8, 'Agosto', '2023-03-05 10:50:22'),
(9, 'Setiembre', '2023-03-05 10:50:45'),
(10, 'Octubre', '2023-03-05 10:50:45'),
(11, 'Noviembre', '2023-03-05 10:51:01'),
(12, 'Diciembre', '2023-03-05 10:51:01');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `personajuridica`
--

CREATE TABLE `personajuridica` (
  `idpersonajuridica` bigint(20) NOT NULL,
  `razonsocial` varchar(80) NOT NULL,
  `nombrecomercial` varchar(45) NOT NULL,
  `ruc` varchar(9) NOT NULL,
  `direccion` varchar(45) NOT NULL,
  `representantelegal` int(11) NOT NULL,
  `idregion` int(11) NOT NULL,
  `iddepartamento` int(11) NOT NULL,
  `idprovincia` int(11) NOT NULL,
  `iddistrito` int(11) NOT NULL,
  `idurbe` int(11) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `personanatural`
--

CREATE TABLE `personanatural` (
  `idpersonanatural` bigint(20) NOT NULL,
  `Nombres` varchar(50) DEFAULT NULL,
  `apellidos` varchar(50) DEFAULT NULL,
  `direccion` varchar(80) DEFAULT NULL,
  `idregion` int(11) NOT NULL,
  `iddepartamento` int(11) NOT NULL,
  `idprovincia` int(11) NOT NULL,
  `iddistrito` int(11) NOT NULL,
  `idurbe` int(11) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `posts1`
--

CREATE TABLE `posts1` (
  `id` bigint(20) NOT NULL,
  `images` varchar(1000) NOT NULL,
  `description` varchar(1000) NOT NULL,
  `date` datetime NOT NULL DEFAULT current_timestamp(),
  `path` varchar(500) NOT NULL,
  `idpublicidad` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `posts1`
--

INSERT INTO `posts1` (`id`, `images`, `description`, `date`, `path`, `idpublicidad`) VALUES
(35, '3da3abb1a36b236919728e666da3f68b.jpg,911a7353c966c6c1c7b68f2c71e97556.jpg,7e50890e1a80f8b853d01a59644b43fd.jpg,4d933aedd4b9e821c5d23f36d668058a.jpg,c7dd32599b5aabc6a571c02504e0ddbf.jpg,27feb596c5aef5f308f934c05d9c9e8e.jpg,aaf68e0f5ce1dd95b2bb3744fa32bfa5.jpg', '1 OFICINA-REUNION-EVENTO 2018-2019', '0000-00-00 00:00:00', 'U', 57),
(38, '2259668ab888b0544ca2e66278b40f54.jpg,3d3bd8b6cb25e4be4e0cf2a29000fefd.jpg,174b105f378e4b76759b9a1cbadf8095.jpg,4608c187bdd87f145efb6a679c803d98.jpg,6b1e529a21e661e1aa0d7c4f0db32254.jpg', '3 OFICINA-TRABAJANDO 2019', '0000-00-00 00:00:00', 'U', 57),
(39, '9c52f8f1faceade8a264795854aa983a.jpg,65539370559650180e7b7e1fa61fc559.jpg,8268236a01fd2a5cb5b346c78ed62ba8.jpg,4f74e025be334612701669eef47c6004.jpg,9068ec99eb6fc2989c53951d79c16cb0.jpg,49b5a702e392a33c270d80d600d00776.jpg', '2 OFICINA TRABAJANDO 2019', '0000-00-00 00:00:00', 'U', 57),
(41, '2d389fb9ba70e595cf5a55daa2c88075.jpg,ff4a714c2e43ec590972cd842b0a6fd2.jpg,faa0f9588676b8393d9afc8477949513.jpg,4ac0bf80f8868e37ee9c1e728091e54b.jpg,ba33b6a46b82e5f7de196e1cf49ef075.jpg', '4 OFICINA TRABAJANDO REUNIDOS 2020-2021\r\n00', '0000-00-00 00:00:00', 'u', 57),
(42, '3ea29e0a29f48b80e2f7455c946e9b43.jpg,1fda934ac5c22b68e1e4aba5b61cc29f.jpg,db9014162aed2c0f4f88d97ab1ff824c.jpg,d784bf0602835de2f6d1b067fd084eb9.jpg,86b2acfd7978e5ca55e817d49045b817.jpg', '5 REUNION OFICINA 2022', '0000-00-00 00:00:00', 'U', 57),
(43, '5f9767c109f38eeed6f12ac5f57fd3c7.jpg,a50debc01590cdda3bd40de202552bf2.jpg,f3c04ea4c2bcb82055630eadb63b8568.jpg', '0 REUNION TRABAJO 2018', '0000-00-00 00:00:00', 'U', 57),
(44, '98f45681bd7873bcc130e8c4e9fc062e.jpg,e7a7f957a057883c39d286d0ce58972c.jpg,65be6a6ed4da4d2288f7755be2692df3.jpg,5e95f346874cd47b82569490948d4fa6.jpg,763851e5f99395af573b2d897cef46de.jpg,074ac5097f5680728a78b6c8f5152954.jpg,169860ea2130e3d7237072391ae832dc.jpg,59e49b98a2eb5549db1d97dbe860bd3b.jpg', 'TRABAJO REUNION 2021-2022', '0000-00-00 00:00:00', 'U', 52);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `posts2`
--

CREATE TABLE `posts2` (
  `id` bigint(20) NOT NULL,
  `images` longblob NOT NULL,
  `description` varchar(1000) NOT NULL,
  `date` datetime NOT NULL DEFAULT current_timestamp(),
  `path` varchar(500) NOT NULL,
  `idevento` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `posts2`
--

INSERT INTO `posts2` (`id`, `images`, `description`, `date`, `path`, `idevento`) VALUES
(18, 0x36396235386635373437343833306264306462353032363033363737376562612e706e672c64643738333733386631353562643633326462373735353464313766643433322e706e67, 'año 2022', '0000-00-00 00:00:00', '/assets/img/Conciertos', 14);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `producto`
--

CREATE TABLE `producto` (
  `idproducto` bigint(11) NOT NULL,
  `nomproducto` varchar(50) DEFAULT NULL,
  `descripcion` varchar(250) DEFAULT NULL,
  `precioproducto` decimal(8,2) NOT NULL DEFAULT 0.00,
  `precio_rebajado` decimal(8,2) NOT NULL DEFAULT 0.00,
  `cantidad` int(11) DEFAULT NULL,
  `id_categoria` int(11) DEFAULT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp(),
  `idurbe` int(11) NOT NULL,
  `idubicacion` int(11) NOT NULL,
  `idtiposervicio` int(11) NOT NULL,
  `idclaseservicio` int(11) NOT NULL,
  `fecha` date NOT NULL,
  `imagen` longblob NOT NULL,
  `idsubproducto` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `producto`
--

INSERT INTO `producto` (`idproducto`, `nomproducto`, `descripcion`, `precioproducto`, `precio_rebajado`, `cantidad`, `id_categoria`, `registro`, `idurbe`, `idubicacion`, `idtiposervicio`, `idclaseservicio`, `fecha`, `imagen`, `idsubproducto`) VALUES
(14, 'Bad Bunny', 'Lima Monumental 11-2022', '2000.00', '1700.00', 1, NULL, '2023-03-15 16:40:17', 6, 91, 16, 2, '0000-00-00', 0x32303233303331353137343031372e6a7067, 10),
(19, 'BARAK', 'TRUJILLO 11 MAYO 2023 - ESTADIO MANSICHE 19 HRS', '274.00', '55.00', 1, NULL, '2023-04-24 00:49:25', 3, 4, 16, 2, '2023-05-11', 0x32303233303432343032343932352e6a7067, 10);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `proveedor`
--

CREATE TABLE `proveedor` (
  `idproveedor` bigint(20) NOT NULL,
  `tipopersona` int(11) NOT NULL,
  `idpersonanatural` int(11) DEFAULT NULL,
  `idpersonajuridica` int(11) DEFAULT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `provincia`
--

CREATE TABLE `provincia` (
  `idprovincia` int(11) NOT NULL,
  `Nomprovincia` varchar(50) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `publicidad`
--

CREATE TABLE `publicidad` (
  `idpublicidad` bigint(20) NOT NULL,
  `idservicio` int(11) NOT NULL,
  `hipervin1` varchar(250) NOT NULL,
  `hipervin2` varchar(250) NOT NULL,
  `imagen` longblob NOT NULL,
  `nompublicidad` varchar(100) NOT NULL,
  `registro` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `publicidad`
--

INSERT INTO `publicidad` (`idpublicidad`, `idservicio`, `hipervin1`, `hipervin2`, `imagen`, `nompublicidad`, `registro`) VALUES
(1, 57, 'Calle Mauricio Simons 561 Urb. Las Quintanas Celular 960825546 correo vasal.asesores@gmail.com\r\nC:/Program Files/xampp/htdocs/TiendaVirtual/card', '//assets/img/Institucion/Estudios/VASAL/100000022.jpg', 0x32303233303331373233303330382e6a7067, '1 Oficina...', '2023-03-17 17:03:08'),
(3, 57, 'Navidad', 'https://www.tiktok.com/@sibenitoo/video/7204971368947928326?is_from_webapp=1&sender_device=pc', 0x32303233303331383030313435352e6a7067, '5 REUNION', '2023-03-17 18:14:55'),
(6, 57, 'Materias Judiciales Penal, Civil, Familia y Administrativo...', 'https://www.facebook.com/profile.php?id=100065142693000&mibextid=ZbWKwL', 0x32303233303331383030323635312e6a7067, '2 SERVICIOS', '2023-03-17 18:26:51'),
(7, 57, 'La Libertad, Trujillo, Trujillo, Urb. Las Quintanas 4ta Etapa', 'https://www.google.com/maps/place/VASAL+ASESORES/@-8.0973957,-79.0280271,17z/data=!3m1!4b1!4m6!3m5!1s0x91ad3d0c7e7c9abb:0xf315262fa5c9c480!8m2!3d-8.097401!4d-79.0258384!16s%2Fg%2F11gvzl1z5p', 0x32303233303331383139333432312e6a7067, '3 UBICACION', '2023-03-18 13:34:21'),
(8, 57, 'Año 2019', 'En Brasa de Oro ... ', 0x32303233303331383231333335332e6a7067, '6 CUMPLEAÑOS', '2023-03-18 15:33:53'),
(15, 52, 'Calle Mauricio Simon 569 Urb, Las Quintanas. Celular 948640091 Correo pactocerrado.cce@gmail.com', 'Materias CIvil, Familia con Personas Naturales y Juridicas asi como el Estado', 0x32303233303431303034353635342e6a7067, '1 OFICINA', '2023-04-09 21:56:54'),
(17, 52, 'Celebrando 2022 ...', '.', 0x32303233303431303035303434332e6a7067, '5 CUMPLEAÑOS', '2023-04-09 22:04:43'),
(19, 52, 'La Libertad, Trujillo, Trujillo', 'https://goo.gl/maps/VPwazqGPK1vSCdjdA', 0x32303233303431303035313430352e6a7067, '3 UBICACION', '2023-04-09 22:14:05'),
(20, 52, 'Materias CIvil, Familia con Personas Naturales y Juridicas asi como el Estado', 'https://www.facebook.com/profile.php?id=100071224402486', 0x32303233303431303035323033382e6a7067, '2 SERVICIOS', '2023-04-09 22:20:38'),
(21, 57, 'Universidad UPN', 'https://www.youtube.com/watch?v=7lDmy5c0j0c', 0x32303233303431313035333435302e6a7067, '4 EVENTO', '2023-04-10 22:34:50'),
(22, 52, 'Compartiendo....', '.', 0x32303233303431323138313732362e6a7067, '4 REUNION', '2023-04-12 11:17:26');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `region`
--

CREATE TABLE `region` (
  `idRegion` int(11) NOT NULL,
  `NomRegion` varchar(50) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `servicio`
--

CREATE TABLE `servicio` (
  `idserviciof` bigint(11) NOT NULL,
  `nomservicio` varchar(50) NOT NULL,
  `idtiposervicio` int(11) NOT NULL,
  `idclaseservicio` int(11) NOT NULL,
  `precioservicio` decimal(8,3) NOT NULL DEFAULT 0.000,
  `registro` timestamp NULL DEFAULT current_timestamp(),
  `precio_rebajado` decimal(8,3) NOT NULL DEFAULT 0.000,
  `cantidad` bigint(20) NOT NULL DEFAULT 0,
  `descripcion` varchar(250) DEFAULT NULL,
  `imagen` longblob NOT NULL,
  `idurbe` int(11) NOT NULL,
  `idubicacion` int(11) NOT NULL,
  `idsubservicio` int(11) NOT NULL,
  `fecha` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `servicio`
--

INSERT INTO `servicio` (`idserviciof`, `nomservicio`, `idtiposervicio`, `idclaseservicio`, `precioservicio`, `registro`, `precio_rebajado`, `cantidad`, `descripcion`, `imagen`, `idurbe`, `idubicacion`, `idsubservicio`, `fecha`) VALUES
(52, 'Centro Conciliatorio Extrajudicial', 5, 1, '2000.000', '2023-03-13 00:21:49', '1700.000', 1, 'Solución de Conflictos Extrajudicial en materia Civil, Laboral y Familia.', 0x32303233303331333031323134392e6a7067, 6, 91, 93, NULL),
(57, 'VASAL ASESORES', 5, 1, '2000.000', '2023-03-17 03:22:07', '1700.000', 1, 'Especialistas Area de Tecnolg. de la Información y Area Legal: Penal, Laboral, Civil, Familia y Administrativos... ', 0x32303233303331373034323230372e6a7067, 6, 91, 92, '2023-03-16');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `subproducto`
--

CREATE TABLE `subproducto` (
  `idsubproducto` int(11) NOT NULL,
  `nomsubproducto` varchar(50) DEFAULT NULL,
  `descripcion` varchar(50) DEFAULT NULL,
  `precioproducto` decimal(8,3) NOT NULL DEFAULT 0.000,
  `precio_rebajado` decimal(8,3) NOT NULL DEFAULT 0.000,
  `cantidad` int(11) DEFAULT NULL,
  `id_categoria` int(11) DEFAULT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp(),
  `idurbe` int(11) NOT NULL,
  `idubicacion` int(11) NOT NULL,
  `idtiposervicio` int(11) NOT NULL,
  `idclaseservicio` int(11) NOT NULL,
  `fecha` date NOT NULL,
  `imagen` longblob NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `subproducto`
--

INSERT INTO `subproducto` (`idsubproducto`, `nomsubproducto`, `descripcion`, `precioproducto`, `precio_rebajado`, `cantidad`, `id_categoria`, `registro`, `idurbe`, `idubicacion`, `idtiposervicio`, `idclaseservicio`, `fecha`, `imagen`) VALUES
(2, 'Boda', 'Acompañando la Unión...', '2000.000', '1700.000', 1, NULL, '2023-03-08 22:35:54', 6, 91, 9, 2, '2023-01-01', 0x32303233303330383233333535342e6a7067),
(3, 'Diversión', 'Liberando Stres....', '2000.000', '1700.000', 1, NULL, '2023-03-08 23:09:46', 3, 4, 8, 2, '2023-02-01', 0x32303233303330393030303934362e6a7067),
(4, 'Almuerzos', 'Reunidos  ...', '2000.000', '1700.000', 1, 2, '2023-03-08 23:25:38', 3, 21, 10, 2, '2023-03-09', 0x32303233303330393030323533382e6a7067),
(5, 'Cumpleaños', 'Festejando el Honomastico...', '2000.000', '1700.000', 1, NULL, '2023-03-08 23:38:53', 6, 113, 11, 2, '2023-03-09', 0x32303233303330393030333835332e6a7067),
(6, 'Paseo Tours', 'Distraccion ...', '2000.000', '1700.000', 1, NULL, '2023-03-08 23:41:08', 5, 72, 12, 2, '2023-03-09', 0x32303233303330393030343130382e6a7067),
(9, 'Colegio', 'Actividades escolares...', '2000.000', '1700.000', 1, NULL, '2023-03-08 23:49:35', 6, 115, 13, 2, '2023-03-09', 0x32303233303330393030343933352e6a7067),
(10, 'Concierto', 'Disfrutando la Musica...', '2000.000', '1700.000', 1, NULL, '2023-03-08 23:56:43', 2, 4, 16, 2, '2023-03-09', 0x32303233303330393030353634332e6a7067),
(11, 'Universidad', 'Convensiones estudiantiles...', '2000.000', '1700.000', 1, NULL, '2023-03-09 00:35:30', 1, 1, 14, 2, '2023-03-09', 0x32303233303330393031333533302e6a7067),
(12, 'Trabajo', 'Labores compartidas', '2000.000', '1700.000', 1, NULL, '2023-03-09 00:52:10', 5, 74, 15, 2, '2023-03-09', 0x32303233303330393031353231302e6a7067);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `subservicio`
--

CREATE TABLE `subservicio` (
  `idsubservicio` int(11) NOT NULL,
  `nomsubservicio` varchar(50) NOT NULL,
  `idtiposervicio` int(11) NOT NULL,
  `idclaseservicio` int(11) NOT NULL,
  `precioservicio` decimal(8,3) NOT NULL DEFAULT 0.000,
  `registro` timestamp NULL DEFAULT current_timestamp(),
  `precio_rebajado` decimal(8,3) NOT NULL DEFAULT 0.000,
  `cantidad` bigint(20) NOT NULL DEFAULT 0,
  `descripcion` varchar(250) DEFAULT NULL,
  `imagen` longblob NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `subservicio`
--

INSERT INTO `subservicio` (`idsubservicio`, `nomsubservicio`, `idtiposervicio`, `idclaseservicio`, `precioservicio`, `registro`, `precio_rebajado`, `cantidad`, `descripcion`, `imagen`) VALUES
(52, 'Abarrotes', 6, 1, '2000.000', '2023-02-25 16:47:12', '1700.000', 1, 'Venta al por mayor y menor de alimentos ', 0x32303233303232353137343731322e6a7067),
(53, 'Hotel', 7, 1, '2000.000', '2023-02-25 16:54:38', '1700.000', 1, 'Alojamiento camas matrimoniales, dobles y simples', 0x32303233303232353137353433382e6a7067),
(54, 'Hostal', 7, 1, '2000.000', '2023-02-26 18:54:17', '1700.000', 1, 'Alojamiento con Cama Matrimonial, Cama Simple, Doble, Triple', 0x32303233303232363139353431372e6a7067),
(55, 'Hospedaje', 7, 1, '2000.000', '2023-02-26 19:00:57', '1700.000', 1, 'Alojamiento en grupos, Cama Simple, Doble, Triple, Cuadruple', 0x32303233303232363230303035372e6a7067),
(56, 'Grifo', 6, 1, '2000.000', '2023-02-26 20:16:13', '1700.000', 1, 'Venta de Combustible 84, 90, 95\r\nGLP\r\nGNV', 0x32303233303232363231313631332e6a7067),
(58, 'Banco', 7, 1, '2000.000', '2023-02-27 02:06:56', '1700.000', 1, 'Servicio de prestamos de dinero, compra venta de acciones, depositos a plazo', 0x32303233303232373033303635362e6a7067),
(59, 'Financiera', 7, 1, '2000.000', '2023-02-27 02:19:18', '1700.000', 1, 'Prestamo de dinero a plazo', 0x32303233303232373033313931382e6a7067),
(60, 'Cooperativa', 7, 1, '2000.000', '2023-02-27 02:29:49', '1700.000', 1, 'Ahorro y Prestamo', 0x32303233303232373033323934392e6a7067),
(61, 'Spa', 7, 1, '2000.000', '2023-02-27 02:35:59', '1700.000', 1, 'Masajes y Sauna', 0x32303233303232373033333535392e6a7067),
(62, 'Gimnasio', 7, 1, '2000.000', '2023-02-27 02:49:10', '1700.000', 1, 'Asistencia personalizada en uso de equipos para fortalecer los musculos', 0x32303233303232373033343931302e6a7067),
(63, 'Barberia', 7, 1, '2000.000', '2023-02-27 03:06:25', '1700.000', 1, 'Corte con estilo de Pelo', 0x32303233303232373034303632352e6a7067),
(64, 'Peluqueria', 7, 1, '2000.000', '2023-02-27 03:20:04', '1700.000', 1, 'Corte, Pintado de cabello.', 0x32303233303232373034323030342e6a7067),
(65, 'Libreria', 6, 1, '2000.000', '2023-02-27 03:29:22', '1700.000', 1, 'Venta de materiles escolares y de oficina', 0x32303233303232373034323932322e6a7067),
(66, 'Farmacia', 6, 1, '2000.000', '2023-02-27 03:35:27', '1700.000', 1, 'Venta de medicina y cosmeticos', 0x32303233303232373034333532372e6a7067),
(67, 'Perfumería', 6, 1, '2000.000', '2023-02-27 03:40:16', '1700.000', 1, 'Venta de permufes', 0x32303233303232373034343031362e6a7067),
(68, 'Regalos', 6, 1, '2000.000', '2023-02-27 03:47:28', '1700.000', 1, 'Venta de regalos en general', 0x32303233303232373034343732382e6a7067),
(69, 'Panadería', 6, 1, '2000.000', '2023-02-27 03:53:29', '1700.000', 1, 'Venta de todo tipo de pan y pasteles', 0x32303233303232373034353332392e6a7067),
(70, 'Muebleria', 6, 1, '2000.000', '2023-02-27 03:59:28', '1700.000', 1, 'Venta de muebles en general', 0x32303233303232373034353932382e6a7067),
(71, 'Colchones', 6, 1, '2000.000', '2023-02-27 04:07:38', '1700.000', 1, 'Venta de colchones y camas en general', 0x32303233303232373035303733382e6a7067),
(72, 'Licoreria', 6, 1, '2000.000', '2023-02-27 04:12:20', '1700.000', 1, 'Venta de licores en general', 0x32303233303232373035313232302e6a7067),
(73, 'Zapateria', 6, 1, '2000.000', '2023-02-27 04:24:07', '1700.000', 1, 'Venta de zapatos en general', 0x32303233303232373035323430372e6a7067),
(74, 'Tapiceria', 6, 1, '2000.000', '2023-02-27 04:31:35', '1700.000', 1, 'Venta de Tapiz para muebles en General', 0x32303233303232373035333133352e6a7067),
(75, 'Ferreteria', 6, 1, '2000.000', '2023-02-27 04:35:14', '1700.000', 1, 'Venta de herramientas y productos de construccion en general', 0x32303233303232373035333531342e6a7067),
(76, 'Mercado de Abastos', 1, 1, '5000.000', '2023-02-28 15:07:38', '4500.000', 1, 'Articulos de primera necesidad....\r\nUbicación ... Contacto', 0x32303233303232383136303733382e6a7067),
(78, 'Tiendas x Departamento', 1, 1, '10000.000', '2023-02-28 15:17:34', '9000.000', 1, 'Productos y Servicios de primera necesidad... Ubicación... Contacto', 0x32303233303232383136313733342e6a7067),
(79, 'Restaurant', 4, 1, '2000.000', '2023-02-28 15:21:47', '1700.000', 1, 'Venta de Comida, Menu Ejecutivo y mas ...', 0x32303233303232383136323134372e6a7067),
(80, 'Bar', 4, 1, '2000.000', '2023-02-28 15:28:06', '1700.000', 1, 'Bar con los mejores tragos', 0x32303233303232383136323830362e6a7067),
(81, 'Heladeria', 4, 1, '2000.000', '2023-02-28 15:31:28', '1700.000', 1, 'Heladeria para todos los gustos', 0x32303233303232383136333132382e6a7067),
(82, 'Polleria', 4, 1, '2000.000', '2023-02-28 15:34:38', '1700.000', 1, 'Polleria en todas sus variedades', 0x32303233303232383136333433382e6a7067),
(83, 'Parrilla', 4, 1, '2000.000', '2023-02-28 15:37:55', '1700.000', 1, 'Carnes en todas sus variedades', 0x32303233303232383136333735352e6a7067),
(84, 'Sandwicheria', 4, 1, '2000.000', '2023-02-28 15:41:36', '1700.000', 1, 'Sanwich especiales de todas las carnes', 0x32303233303232383136343133362e6a7067),
(85, 'Pizzeria', 4, 1, '2000.000', '2023-02-28 15:44:13', '1700.000', 1, 'Venta de todo tipo de pizzas', 0x32303233303232383136343431332e6a7067),
(86, 'Jugueria', 4, 1, '2000.000', '2023-02-28 15:50:30', '1700.000', 0, 'Venta de todo tipo de jugos', 0x32303233303232383136353033302e6a7067),
(87, 'Cafeteria', 4, 1, '2000.000', '2023-02-28 15:56:21', '1700.000', 1, 'Venta en todas sus variedades', 0x32303233303232383136353632312e6a7067),
(88, 'Iglesia', 5, 1, '2000.000', '2023-02-28 16:08:15', '1700.000', 1, 'Iglesia ....', 0x32303233303232383137303831352e6a7067),
(89, 'Colegio', 5, 1, '2000.000', '2023-02-28 16:36:55', '1700.000', 1, 'Servicio de educación Inicial, Primaria y Secundaria', 0x32303233303232383137333635352e6a7067),
(90, 'Academia', 5, 1, '2000.000', '2023-02-28 16:40:24', '17000.000', 1, 'Servicio de educacion especializada', 0x32303233303232383137343032342e6a7067),
(91, 'Odontología', 5, 1, '2000.000', '2023-02-28 16:44:33', '1700.000', 1, 'Servicio profesional del cuidado de los dientes', 0x32303233303232383137343433332e6a7067),
(92, 'Estudio Jurídico', 5, 1, '2000.000', '2023-02-28 16:50:47', '1700.000', 1, 'Servicio Asesoria & Consultoria Penal, Laboral, Civil, Familia, Administrativos Indecopi, AFP, SBS, ONP, etc... ', 0x32303233303232383137353034372e6a7067),
(93, 'Centro Conciliatorio Extrajudicial', 5, 1, '2000.000', '2023-02-28 16:55:55', '1700.000', 1, 'Establecimiento autorizado por el Ministerio de Justicia y Derechos Humanos para la realización de Conciliaciones Extrajudiciales.', 0x32303233303232383137353535352e6a7067),
(94, 'Inmobiliario', 5, 1, '2000.000', '2023-02-28 17:02:05', '1700.000', 1, 'Servicio de Asistencia y Consultoria en bienes raices', 0x32303233303232383138303230352e6a7067),
(95, 'Centro Medico', 5, 1, '2000.000', '2023-02-28 17:17:00', '1700.000', 1, 'Centro de atencion medica', 0x32303233303232383138313730302e6a7067),
(96, 'Limpieza', 7, 1, '1000.000', '2023-02-28 17:19:22', '800.000', 14, 'Servicio de limpieza a domicilio', 0x32303233303232383138313932322e6a7067),
(97, 'Gasfiteria', 7, 1, '1000.000', '2023-03-01 00:35:10', '800.000', 1, 'Servicio de arrreglo de conexiones de agua y alcantarillado', 0x32303233303330313031333531302e6a7067),
(98, 'Ebanisteria', 7, 1, '1000.000', '2023-03-01 01:01:08', '800.000', 1, 'Servicio de elaboración de muebles decorativos', 0x32303233303330313032303130382e6a7067),
(99, 'Herrajería', 7, 1, '1000.000', '2023-03-01 01:11:45', '800.000', 1, 'Servicio de eleboración de estructuras metalicas', 0x32303233303330313032313134352e6a7067),
(100, 'Pintado', 7, 1, '1000.000', '2023-03-01 01:24:12', '800.000', 1, 'Servicio de Pintado en General', 0x32303233303330313032323431322e6a7067),
(105, 'Arbitraje', 5, 1, '2000.000', '2023-03-17 01:18:45', '1700.000', 1, 'Tribunal Arbitral controversia Nacional o Internacional', 0x32303233303331373032313834352e6a7067);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `subtipoubicacion`
--

CREATE TABLE `subtipoubicacion` (
  `idSubTipoUbicacion` int(11) NOT NULL,
  `SubTipoUbicacioncol` varchar(50) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `tipo`
--

CREATE TABLE `tipo` (
  `idTipo` int(11) NOT NULL,
  `Nombre` varchar(50) DEFAULT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `tipo`
--

INSERT INTO `tipo` (`idTipo`, `Nombre`, `registro`) VALUES
(1, 'Propaganda', '2023-02-20 21:07:15'),
(2, 'Propaganda', '2023-02-20 21:07:46'),
(3, 'Evento', '2023-02-20 21:08:06');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `tipopersona`
--

CREATE TABLE `tipopersona` (
  `idtipopersona` int(11) NOT NULL,
  `nomtipopersona` varchar(45) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `tiposervicio`
--

CREATE TABLE `tiposervicio` (
  `idtiposervicio` int(11) NOT NULL,
  `nomtiposervicio` varchar(45) NOT NULL,
  `idclaseservicio` int(11) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `tiposervicio`
--

INSERT INTO `tiposervicio` (`idtiposervicio`, `nomtiposervicio`, `idclaseservicio`, `registro`) VALUES
(1, 'Centro Comercial', 1, '2023-02-21 01:26:11'),
(4, 'Comida', 1, '2023-02-21 01:28:28'),
(5, 'Institución', 1, '2023-02-21 01:28:44'),
(6, 'Tienda', 1, '2023-02-21 01:29:03'),
(7, 'Servicio', 1, '2023-02-21 01:29:16'),
(8, 'Diversión', 2, '2023-02-21 01:30:22'),
(9, 'Bodas', 2, '2023-02-21 01:30:46'),
(10, 'Almuerzos', 2, '2023-02-21 01:31:17'),
(11, 'Cumpleaños', 2, '2023-02-21 01:31:28'),
(12, 'Paseo', 2, '2023-02-21 01:31:46'),
(13, 'Colegio', 2, '2023-02-21 01:31:57'),
(14, 'Universidades', 2, '2023-02-21 01:32:42'),
(15, 'Trabajos', 2, '2023-02-21 01:33:16'),
(16, 'Conciertos', 2, '2023-02-21 01:33:29');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `tipoubicacion`
--

CREATE TABLE `tipoubicacion` (
  `idTipoUbicacion` int(11) NOT NULL,
  `idClaseUbicacioncol` varchar(45) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ubicacion`
--

CREATE TABLE `ubicacion` (
  `idubicacion` int(11) NOT NULL,
  `nomubicacion` varchar(50) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp(),
  `idurbe` int(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `ubicacion`
--

INSERT INTO `ubicacion` (`idubicacion`, `nomubicacion`, `registro`, `idurbe`) VALUES
(1, 'La Libertad', '2023-03-05 02:30:27', 1),
(2, 'Lambayeque', '2023-03-05 02:34:06', 1),
(3, 'Ancash', '2023-03-05 02:34:28', 1),
(4, 'Trujillo', '2023-03-05 02:37:17', 2),
(5, 'Chiclayo', '2023-03-05 02:37:17', 2),
(6, 'Lambayeque ', '2023-03-05 02:44:16', 2),
(7, 'Del Santa', '2023-03-05 02:44:16', 2),
(8, 'Ferreñafe', '2023-03-05 02:47:13', 2),
(9, 'Casma', '2023-03-05 02:47:13', 2),
(10, 'Huarmey', '2023-03-05 02:52:09', 2),
(11, 'Chimbote', '2023-03-05 02:52:09', 3),
(12, 'Nuevo Chimbote', '2023-03-05 02:53:55', 3),
(13, 'Chiclayo', '2023-03-05 02:53:55', 3),
(14, 'Jose Leonardo Ortiz', '2023-03-05 02:54:53', 3),
(15, 'La Victoria', '2023-03-05 02:54:53', 3),
(16, 'Coishco', '2023-03-05 02:59:06', 3),
(17, 'Huanchaco', '2023-03-05 02:59:06', 3),
(18, 'Victor Larco Herrera', '2023-03-05 03:00:04', 3),
(19, 'Villa del Mar', '2023-03-05 03:00:04', 3),
(20, 'Tropico', '2023-03-05 03:00:47', 3),
(21, 'La Esperanza', '2023-03-05 03:00:47', 3),
(22, 'El Porvenir', '2023-03-05 03:01:28', 3),
(23, 'Florencia de Mora', '2023-03-05 03:01:28', 3),
(24, 'Laredo', '2023-03-05 03:02:13', 3),
(25, 'Moche', '2023-03-05 03:02:13', 3),
(26, 'Campiña de Moche', '2023-03-05 03:02:55', 3),
(27, 'Salaverry', '2023-03-05 03:02:55', 3),
(28, 'Viru', '2023-03-05 03:03:14', 3),
(29, 'Chao', '2023-03-05 03:03:14', 3),
(30, 'Nuevo Chao', '2023-03-05 03:06:32', 3),
(31, 'Chicama', '2023-03-05 03:06:32', 0),
(32, 'Simbal', '2023-03-05 03:08:02', 3),
(33, 'Territorio Vecinal-03', '2023-03-05 03:08:02', 5),
(34, 'Territorio Vecinal-04', '2023-03-05 03:08:24', 5),
(35, 'Territorio Vecinal-05', '2023-03-05 03:08:24', 5),
(36, 'Territorio Vecinal-06', '2023-03-05 03:09:09', 5),
(37, 'Territorio Vecinal-07', '2023-03-05 03:09:23', 5),
(38, 'Territorio Vecinal-08', '2023-03-05 03:09:38', 3),
(39, 'Territorio Vecinal-09', '2023-03-05 03:09:49', 5),
(40, 'Territorio Vecinal-01', '2023-03-05 03:11:29', 5),
(41, 'Territorio Vecinal-02', '2023-03-05 03:11:29', 5),
(42, 'Territorio Vecinal-10', '2023-03-05 03:15:07', 5),
(43, 'Territorio Vecinal-11', '2023-03-05 03:15:07', 5),
(44, 'Territorio Vecinal-12', '2023-03-05 03:15:26', 5),
(45, 'Territorio Vecinal-39', '2023-03-05 03:15:26', 5),
(46, 'Territorio Vecinal-13', '2023-03-05 03:15:38', 5),
(47, 'Territorio Vecinal-40', '2023-03-05 03:15:38', 5),
(48, 'Territorio Vecinal-14', '2023-03-05 03:15:48', 5),
(49, 'Territorio Vecinal-41', '2023-03-05 03:15:48', 5),
(50, 'Territorio Vecinal-15', '2023-03-05 03:15:58', 5),
(51, 'Territorio Vecinal-42', '2023-03-05 03:15:58', 5),
(52, 'Territorio Vecinal-16', '2023-03-05 03:16:07', 5),
(53, 'Territorio Vecinal-43', '2023-03-05 03:16:07', 5),
(54, 'Territorio Vecinal-17', '2023-03-05 03:16:32', 5),
(55, 'Territorio Vecinal-18', '2023-03-05 03:16:32', 5),
(56, 'Territorio Vecinal-19', '2023-03-05 03:16:41', 5),
(57, 'Territorio Vecinal-38', '2023-03-05 03:16:41', 5),
(58, 'Territorio Vecinal-20', '2023-03-05 03:16:49', 5),
(59, 'Territorio Vecinal-44', '2023-03-05 03:16:49', 5),
(60, 'Territorio Vecinal-21', '2023-03-05 03:16:58', 5),
(61, 'Territorio Vecinal-45', '2023-03-05 03:16:58', 5),
(62, 'Territorio Vecinal-22', '2023-03-05 03:17:09', 5),
(63, 'Territorio Vecinal-46', '2023-03-05 03:17:09', 5),
(64, 'Territorio Vecinal-23', '2023-03-05 03:17:17', 5),
(65, 'Territorio Vecinal-47', '2023-03-05 03:17:17', 5),
(66, 'Territorio Vecinal-24', '2023-03-05 03:17:25', 5),
(67, 'Territorio Vecinal-48', '2023-03-05 03:17:25', 5),
(68, 'Territorio Vecinal-25', '2023-03-05 03:17:33', 5),
(69, 'Territorio Vecinal-49', '2023-03-05 03:17:33', 5),
(70, 'Territorio Vecinal-26', '2023-03-05 03:17:41', 5),
(71, 'Territorio Vecinal-50', '2023-03-05 03:17:41', 5),
(72, 'Territorio Vecinal-27', '2023-03-05 03:17:48', 5),
(73, 'Territorio Vecinal-51', '2023-03-05 03:17:48', 5),
(74, 'Territorio Vecinal-28', '2023-03-05 03:17:57', 5),
(75, 'Territorio Vecinal-52', '2023-03-05 03:17:57', 5),
(76, 'Territorio Vecinal-29', '2023-03-05 03:18:04', 5),
(77, 'Territorio Vecinal-53', '2023-03-05 03:18:04', 5),
(78, 'Territorio Vecinal-30', '2023-03-05 03:18:13', 5),
(79, 'Territorio Vecinal-54', '2023-03-05 03:18:13', 5),
(80, 'Territorio Vecinal-31', '2023-03-05 03:18:22', 5),
(81, 'Territorio Vecinal-55', '2023-03-05 03:18:22', 5),
(82, 'Territorio Vecinal-32', '2023-03-05 03:18:30', 5),
(83, 'Territorio Vecinal-56', '2023-03-05 03:18:30', 5),
(84, 'Territorio Vecinal-33', '2023-03-05 03:18:39', 5),
(85, 'Territorio Vecinal-57', '2023-03-05 03:18:39', 5),
(86, 'Territorio Vecinal-34', '2023-03-05 03:18:46', 5),
(87, 'Territorio Vecinal-58', '2023-03-05 03:18:46', 5),
(88, 'Territorio Vecinal-35', '2023-03-05 03:18:54', 5),
(89, 'Territorio Vecinal-59', '2023-03-05 03:18:54', 5),
(90, 'Territorio Vecinal-36', '2023-03-05 03:19:00', 5),
(91, 'Las Quintanas', '2023-03-05 03:19:00', 6),
(92, 'Territorio Vecinal-37', '2023-03-05 03:19:12', 5),
(93, 'Primavera', '2023-03-05 03:19:12', 5),
(94, 'Villa Contador', '2023-03-05 03:37:13', 6),
(95, 'Mochica', '2023-03-05 03:37:28', 6),
(96, 'Los Cedros', '2023-03-05 03:37:51', 6),
(97, 'Santa Ines', '2023-03-05 03:38:16', 6),
(98, 'San Isidro', '2023-03-05 03:38:52', 6),
(99, 'Santa Rosa', '2023-03-05 03:39:30', 6),
(100, 'Cortijo', '2023-03-05 03:40:01', 6),
(101, 'Santa Isabel', '2023-03-05 03:40:28', 6),
(102, 'San Judas Tadeo', '2023-03-05 03:40:43', 6),
(103, 'Covicorti', '2023-03-05 03:41:04', 6),
(104, 'Natasha', '2023-03-05 03:41:22', 6),
(105, 'San Nicolas', '2023-03-05 03:41:49', 6),
(106, 'El Alambre', '2023-03-05 03:42:06', 6),
(107, 'San Salvador', '2023-03-05 03:42:20', 6),
(108, 'San Andres', '2023-03-05 03:43:13', 6),
(109, 'San Andres V', '2023-03-05 03:43:29', 6),
(110, 'La Merced', '2023-03-05 03:43:41', 6),
(111, 'Upao', '2023-03-05 03:44:00', 6),
(112, 'Ingenieria', '2023-03-05 03:44:19', 6),
(113, 'La Arboleda ', '2023-03-05 03:44:39', 6),
(114, 'Monserrate', '2023-03-05 03:45:19', 6),
(115, 'La Perla', '2023-03-05 03:45:52', 6),
(116, 'El Golf', '2023-03-05 03:46:05', 6),
(117, 'Hortencias del Golf', '2023-03-05 03:46:22', 6),
(118, 'Jardines del Golf', '2023-03-05 03:46:35', 6),
(119, 'Huaman', '2023-03-05 03:46:50', 6),
(120, 'Buenos Aires Sur', '2023-03-05 03:47:25', 6),
(121, 'Buenos Aires Norte', '2023-03-05 03:47:39', 6),
(122, 'Liberacion', '2023-03-05 03:47:59', 6),
(123, 'Fatima', '2023-03-05 03:48:29', 6),
(124, 'Razuri', '2023-03-05 03:48:51', 6),
(125, 'Palermo', '2023-03-05 03:49:01', 6),
(126, 'La Noria', '2023-03-05 03:49:11', 6),
(127, 'Torres Araujo', '2023-03-05 03:49:30', 6),
(128, 'California', '2023-03-05 03:50:21', 6),
(129, 'Los Granados', '2023-03-05 03:50:31', 6),
(130, 'El Molino', '2023-03-05 03:50:48', 6),
(131, 'La Constancia', '2023-03-05 03:50:59', 6),
(132, 'Santo Domingo', '2023-03-05 03:51:14', 6),
(133, 'Santo Dominguito', '2023-03-05 03:51:27', 6),
(134, 'Aranjuez', '2023-03-05 03:51:56', 6),
(135, 'Pesqueda', '2023-03-05 03:52:11', 6),
(136, 'Libertad', '2023-03-05 03:52:27', 6),
(137, 'Rinconada', '2023-03-05 03:52:48', 6),
(138, 'Los Fresnos', '2023-03-05 03:52:59', 6),
(139, 'Miraflores', '2023-03-05 03:53:21', 6),
(140, 'San Fernando', '2023-03-05 03:53:35', 6),
(141, 'La contancia', '2023-03-05 03:53:55', 6),
(142, 'Sanchez Carrion', '2023-03-05 03:54:11', 6);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `urbe`
--

CREATE TABLE `urbe` (
  `idurbe` int(11) NOT NULL,
  `nomurbe` varchar(45) NOT NULL,
  `registro` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `urbe`
--

INSERT INTO `urbe` (`idurbe`, `nomurbe`, `registro`) VALUES
(1, 'Región', '2023-03-05 02:23:26'),
(2, 'Provincia', '2023-03-05 02:24:22'),
(3, 'Distrito', '2023-03-05 02:24:22'),
(4, 'Departamento', '2023-03-05 02:24:47'),
(5, 'Territorio Vecinal', '2023-03-05 02:25:22'),
(6, 'Urbanización', '2023-03-05 02:25:39'),
(7, 'Sector', '2023-03-05 02:25:53'),
(8, 'AAHH', '2023-03-05 02:26:03'),
(9, 'Centro Poblado', '2023-03-05 02:26:18'),
(10, 'Caserio', '2023-03-05 02:26:37'),
(11, 'Todos', '2023-03-05 02:26:53');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `users`
--

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `username` varchar(120) NOT NULL,
  `password` varchar(100) NOT NULL,
  `registro` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Volcado de datos para la tabla `users`
--

INSERT INTO `users` (`id`, `username`, `password`, `registro`) VALUES
(1, 'admin', 'mysql123mysql', '2023-02-17 18:37:07'),
(2, 'clavex', 'password2', '2023-02-17 18:39:05'),
(4, 'TEST@MAIL.COM', '$2y$10$HKkqMivZZosTouY/qOpx5Od7xTvHCQUrbHba.FR/D1pjlGoKPPcOy', '2023-02-19 16:31:43'),
(5, 'TEST@MAIL.COM', '$2y$10$sGUbC1y4sJhjL7fPaZ0e1.dBawx8ZRWao68u2nSf7u2zwTuKusiBq', '2023-02-19 17:59:44');

--
-- Índices para tablas volcadas
--

--
-- Indices de la tabla `ano`
--
ALTER TABLE `ano`
  ADD PRIMARY KEY (`idano`);

--
-- Indices de la tabla `categoria`
--
ALTER TABLE `categoria`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `claseservicio`
--
ALTER TABLE `claseservicio`
  ADD PRIMARY KEY (`idclaseservicio`);

--
-- Indices de la tabla `claseubicacion`
--
ALTER TABLE `claseubicacion`
  ADD PRIMARY KEY (`idClaseUbicacion`);

--
-- Indices de la tabla `cliente`
--
ALTER TABLE `cliente`
  ADD PRIMARY KEY (`idcliente`);

--
-- Indices de la tabla `ctacteservicio`
--
ALTER TABLE `ctacteservicio`
  ADD PRIMARY KEY (`idpagoservicio`);

--
-- Indices de la tabla `departamento`
--
ALTER TABLE `departamento`
  ADD PRIMARY KEY (`idDepartamento`);

--
-- Indices de la tabla `distrito`
--
ALTER TABLE `distrito`
  ADD PRIMARY KEY (`iddistrito`);

--
-- Indices de la tabla `docventa`
--
ALTER TABLE `docventa`
  ADD PRIMARY KEY (`iddocventa`);

--
-- Indices de la tabla `docventadetalle`
--
ALTER TABLE `docventadetalle`
  ADD PRIMARY KEY (`iddocventa`,`item`);

--
-- Indices de la tabla `evento`
--
ALTER TABLE `evento`
  ADD PRIMARY KEY (`idevento`);

--
-- Indices de la tabla `mes`
--
ALTER TABLE `mes`
  ADD PRIMARY KEY (`idmes`);

--
-- Indices de la tabla `personajuridica`
--
ALTER TABLE `personajuridica`
  ADD PRIMARY KEY (`idpersonajuridica`);

--
-- Indices de la tabla `personanatural`
--
ALTER TABLE `personanatural`
  ADD PRIMARY KEY (`idpersonanatural`);

--
-- Indices de la tabla `posts1`
--
ALTER TABLE `posts1`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `posts2`
--
ALTER TABLE `posts2`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `producto`
--
ALTER TABLE `producto`
  ADD PRIMARY KEY (`idproducto`);

--
-- Indices de la tabla `proveedor`
--
ALTER TABLE `proveedor`
  ADD PRIMARY KEY (`idproveedor`);

--
-- Indices de la tabla `provincia`
--
ALTER TABLE `provincia`
  ADD PRIMARY KEY (`idprovincia`);

--
-- Indices de la tabla `publicidad`
--
ALTER TABLE `publicidad`
  ADD PRIMARY KEY (`idpublicidad`);

--
-- Indices de la tabla `region`
--
ALTER TABLE `region`
  ADD PRIMARY KEY (`idRegion`);

--
-- Indices de la tabla `servicio`
--
ALTER TABLE `servicio`
  ADD PRIMARY KEY (`idserviciof`);

--
-- Indices de la tabla `subproducto`
--
ALTER TABLE `subproducto`
  ADD PRIMARY KEY (`idsubproducto`);

--
-- Indices de la tabla `subservicio`
--
ALTER TABLE `subservicio`
  ADD PRIMARY KEY (`idsubservicio`);

--
-- Indices de la tabla `subtipoubicacion`
--
ALTER TABLE `subtipoubicacion`
  ADD PRIMARY KEY (`idSubTipoUbicacion`);

--
-- Indices de la tabla `tipo`
--
ALTER TABLE `tipo`
  ADD PRIMARY KEY (`idTipo`);

--
-- Indices de la tabla `tipopersona`
--
ALTER TABLE `tipopersona`
  ADD PRIMARY KEY (`idtipopersona`);

--
-- Indices de la tabla `tiposervicio`
--
ALTER TABLE `tiposervicio`
  ADD PRIMARY KEY (`idtiposervicio`);

--
-- Indices de la tabla `tipoubicacion`
--
ALTER TABLE `tipoubicacion`
  ADD PRIMARY KEY (`idTipoUbicacion`,`idClaseUbicacioncol`);

--
-- Indices de la tabla `ubicacion`
--
ALTER TABLE `ubicacion`
  ADD PRIMARY KEY (`idubicacion`);

--
-- Indices de la tabla `urbe`
--
ALTER TABLE `urbe`
  ADD PRIMARY KEY (`idurbe`);

--
-- Indices de la tabla `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT de las tablas volcadas
--

--
-- AUTO_INCREMENT de la tabla `ano`
--
ALTER TABLE `ano`
  MODIFY `idano` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `categoria`
--
ALTER TABLE `categoria`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT de la tabla `claseservicio`
--
ALTER TABLE `claseservicio`
  MODIFY `idclaseservicio` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `claseubicacion`
--
ALTER TABLE `claseubicacion`
  MODIFY `idClaseUbicacion` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `departamento`
--
ALTER TABLE `departamento`
  MODIFY `idDepartamento` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `distrito`
--
ALTER TABLE `distrito`
  MODIFY `iddistrito` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `docventa`
--
ALTER TABLE `docventa`
  MODIFY `iddocventa` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `evento`
--
ALTER TABLE `evento`
  MODIFY `idevento` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT de la tabla `mes`
--
ALTER TABLE `mes`
  MODIFY `idmes` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT de la tabla `personajuridica`
--
ALTER TABLE `personajuridica`
  MODIFY `idpersonajuridica` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `personanatural`
--
ALTER TABLE `personanatural`
  MODIFY `idpersonanatural` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `posts1`
--
ALTER TABLE `posts1`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;

--
-- AUTO_INCREMENT de la tabla `posts2`
--
ALTER TABLE `posts2`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT de la tabla `producto`
--
ALTER TABLE `producto`
  MODIFY `idproducto` bigint(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT de la tabla `proveedor`
--
ALTER TABLE `proveedor`
  MODIFY `idproveedor` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `provincia`
--
ALTER TABLE `provincia`
  MODIFY `idprovincia` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `publicidad`
--
ALTER TABLE `publicidad`
  MODIFY `idpublicidad` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;

--
-- AUTO_INCREMENT de la tabla `region`
--
ALTER TABLE `region`
  MODIFY `idRegion` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `servicio`
--
ALTER TABLE `servicio`
  MODIFY `idserviciof` bigint(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=59;

--
-- AUTO_INCREMENT de la tabla `subproducto`
--
ALTER TABLE `subproducto`
  MODIFY `idsubproducto` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT de la tabla `subservicio`
--
ALTER TABLE `subservicio`
  MODIFY `idsubservicio` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=106;

--
-- AUTO_INCREMENT de la tabla `subtipoubicacion`
--
ALTER TABLE `subtipoubicacion`
  MODIFY `idSubTipoUbicacion` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `tipo`
--
ALTER TABLE `tipo`
  MODIFY `idTipo` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `tipopersona`
--
ALTER TABLE `tipopersona`
  MODIFY `idtipopersona` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `tiposervicio`
--
ALTER TABLE `tiposervicio`
  MODIFY `idtiposervicio` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT de la tabla `tipoubicacion`
--
ALTER TABLE `tipoubicacion`
  MODIFY `idTipoUbicacion` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `ubicacion`
--
ALTER TABLE `ubicacion`
  MODIFY `idubicacion` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=143;

--
-- AUTO_INCREMENT de la tabla `urbe`
--
ALTER TABLE `urbe`
  MODIFY `idurbe` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT de la tabla `users`
--
ALTER TABLE `users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
