-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 04-12-2018 a las 07:03:51
-- Versión del servidor: 5.5.62-0ubuntu0.14.04.1
-- Versión de PHP: 5.5.9-1ubuntu4.26




--
-- Base de datos: `pagoswinecta`
--

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

--
-- Estructura de tabla para la tabla `briefing`
--

CREATE TABLE IF NOT EXISTS `briefing` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `usuario_id` int(11) DEFAULT NULL,
  `categoria_id` int(11) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `subcategory_id` int(11) DEFAULT NULL,
  `nombre` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nombretienda` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `descripcion` longtext COLLATE utf8_unicode_ci,
  `lema` longtext COLLATE utf8_unicode_ci,
  `servicio1titulo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `servicio1descripcion` longtext COLLATE utf8_unicode_ci,
  `servicio2titulo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `servicio2descripcion` longtext COLLATE utf8_unicode_ci,
  `servicio3titulo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `servicio3descripcion` longtext COLLATE utf8_unicode_ci,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emailpedidos` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `telefono` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `direccion` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `horario` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `facebook` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `twitter` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `instagram` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `linkedin` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pathlogo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pathbanner` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `numerosubidas` int(11) NOT NULL,
  `plantilla` int(11) NOT NULL,
  `colorweb` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `parecidas` longtext COLLATE utf8_unicode_ci,
  `textolegal` longtext COLLATE utf8_unicode_ci,
  `condicioneslegales` longtext COLLATE utf8_unicode_ci,
  `politicaprivacidad` longtext COLLATE utf8_unicode_ci,
  `observaciones` longtext COLLATE utf8_unicode_ci,
  `zipimagenes` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `productosparaadultos` tinyint(1) NOT NULL,
  `codigotemporal` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_83D1F5A0DB38439E` (`usuario_id`),
  KEY `IDX_83D1F5A03397707A` (`categoria_id`),
  KEY `IDX_83D1F5A012469DE2` (`category_id`),
  KEY `IDX_83D1F5A05DC6FE57` (`subcategory_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=14 ;

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

INSERT INTO `briefing` (`id`, `usuario_id`, `categoria_id`, `category_id`, `subcategory_id`, `nombre`, `nombretienda`, `descripcion`, `lema`, `servicio1titulo`, `servicio1descripcion`, `servicio2titulo`, `servicio2descripcion`, `servicio3titulo`, `servicio3descripcion`, `email`, `emailpedidos`, `telefono`, `direccion`, `horario`, `facebook`, `twitter`, `instagram`, `linkedin`, `pathlogo`, `pathbanner`, `numerosubidas`, `plantilla`, `colorweb`, `parecidas`, `textolegal`, `condicioneslegales`, `politicaprivacidad`, `observaciones`, `zipimagenes`, `productosparaadultos`, `codigotemporal`) VALUES
(1, 4, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
(2, 16, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '16-682-logo.jpg', '16-136-banner.png', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'R68QlK3P4tZGJ1yncjR1'),
(3, 17, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '17-51-logo.jpeg', '17-457-banner.jpeg', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
(4, 18, NULL, 1, 1, 'javisa', 'Mellado', 'asdf', 'eslogan', 'asd', 'adf', 'adsf', 'adf', 'asdf', 'adsf', 'franciscojavier@appandweb.es', 'franciscojavier@appandweb.es', '655891808', 'Paseo Peñon de la Mata', 'adf', 'asd', 'asdf', 'asdf', 'asdf', '18-908-logo.jpeg', '18-665-banner.jpeg', 0, 0, 'FFFFFF', 'el actual me gusta', NULL, NULL, NULL, 'asdf', NULL, 0, 'llego'),
(5, 19, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '19-328-logo.jpg', '19-683-banner.jpg', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'llego'),
(6, 20, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '20-167-logo.jpeg', '20-722-banner.jpeg', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'llego'),
(7, 22, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
(8, 25, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '25-526-logo.jpg', '25-537-banner.jpg', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'llego'),
(9, 24, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
(10, 27, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '1j3XQffvkrf7ySc4PCu1'),
(11, 29, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'vRfAI4opiIlhFfZhkJev'),
(12, 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'w24MC8EvPTED6bV43fHe'),
(13, 31, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '09881d0723ba1edc6c70f93017e3bbf3');

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

--
-- Estructura de tabla para la tabla `business`
--

CREATE TABLE IF NOT EXISTS `business` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `contactinfo_id` int(11) DEFAULT NULL,
  `legalinfo_id` int(11) DEFAULT NULL,
  `socialnetwork_id` int(11) DEFAULT NULL,
  `style_id` int(11) DEFAULT NULL,
  `nif` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nombre` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `domain` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `subdomain` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `backgroundcolor` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `font` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fontcolor` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fonttitlesize` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fonttextsize` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fontcolorcta` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorcta` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fontcolorheaders` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorheaders` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tpvkeyproduction` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tpvkeydevelopment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tpvproduction` tinyint(1) NOT NULL,
  `fuc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `urlpaypal` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `usuariopaypal` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `estadopaypal` int(11) DEFAULT NULL,
  `currency` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `estilo` int(11) DEFAULT NULL,
  `faq` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `manualuso` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `importerenovacion` double NOT NULL,
  `taxes` double NOT NULL,
  `eliminado` tinyint(1) NOT NULL,
  `terminal` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tpvversion` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fucdevelopment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `moneda` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `trans` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `urlregistro` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `planpararegistro_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_8D36E38A7A91E0B` (`domain`),
  UNIQUE KEY `UNIQ_8D36E38C1D5962E` (`subdomain`),
  UNIQUE KEY `UNIQ_8D36E38342A11FA` (`contactinfo_id`),
  UNIQUE KEY `UNIQ_8D36E38488EFC00` (`legalinfo_id`),
  UNIQUE KEY `UNIQ_8D36E384BD877FB` (`socialnetwork_id`),
  KEY `IDX_8D36E38BACD6074` (`style_id`),
  KEY `IDX_8D36E3898E7DD7B` (`planpararegistro_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ;

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

INSERT INTO `business` (`id`, `contactinfo_id`, `legalinfo_id`, `socialnetwork_id`, `style_id`, `nif`, `nombre`, `domain`, `subdomain`, `phone`, `backgroundcolor`, `font`, `fontcolor`, `fonttitlesize`, `fonttextsize`, `fontcolorcta`, `colorcta`, `fontcolorheaders`, `colorheaders`, `tpvkeyproduction`, `tpvkeydevelopment`, `tpvproduction`, `fuc`, `urlpaypal`, `usuariopaypal`, `estadopaypal`, `currency`, `estilo`, `faq`, `manualuso`, `importerenovacion`, `taxes`, `eliminado`, `terminal`, `tpvversion`, `fucdevelopment`, `moneda`, `trans`, `email`, `urlregistro`, `planpararegistro_id`) VALUES
(1, NULL, NULL, NULL, 1, '7788999A', 'Prueba pagoswinecta', 'local.pagos-winecta.com', NULL, '666778899', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'w4oMbsHUa40EqYTtPyr9T/Wfa7rhkAz0', 'sq7HjrUOBfKmC576ILgskD5srU870gJ7', 0, '333145555', 'https://www.sandbox.paypal.com/cgi-bin/webscr', 'paypal@appandweb.es', 1, 'EUR', 0, NULL, NULL, 20, 21, 0, '1', 'HMAC_SHA256_V1', '999008881', '978', '0', 'business@edewis.com', 'local.pagos-winecta.com', 1),
(2, NULL, NULL, NULL, 1, '77888999A', 'Creatuweb', 'creatuweb.com', NULL, '677889900', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'aaaaaa', 'sq7HjrUOBfKmC576ILgskD5srU870gJ7', 0, 'aaaaaa', 'https://www.sandbox.paypal.com/cgi-bin/webscr', 'creatuweb@paypal.com', 1, 'EUR', NULL, NULL, NULL, 10, 21, 1, '1', 'HMAC_SHA256_V1', '999008881', '978', '0', 'creatuweb@info.com', 'local.creatuweb.com', NULL),
(4, NULL, NULL, NULL, 1, '77889988', 'Creatuweb', 'creatuweb2.com', NULL, '666778899', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'ddddd', 'sq7HjrUOBfKmC576ILgskD5srU870gJ7', 0, 'ssssss', 'https://www.sandbox.paypal.com/cgi-bin/webscr', 'creatuweb@paypal.com', 1, 'EUR', NULL, NULL, NULL, 28, 21, 0, '1', 'HMAC_SHA256_V1', '999008881', '978', '0', 'creatuweb@info.com', 'local.creatuweb.com', NULL);

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

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

CREATE TABLE IF NOT EXISTS `categoria` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `categoria` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `isdeleted` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `category`
--

CREATE TABLE IF NOT EXISTS `category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `sort` int(11) NOT NULL,
  `datecreated` datetime NOT NULL,
  `deleted` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ;

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

INSERT INTO `category` (`id`, `name`, `sort`, `datecreated`, `deleted`) VALUES
(1, 'Casa y construcción', 1, '2017-05-07 08:34:33', 0),
(2, 'Deportes', 2, '2017-05-07 08:35:42', 0),
(3, 'Eventos', 3, '2017-05-07 08:35:49', 0),
(4, 'Hotel y Turismo', 4, '2017-05-07 08:35:58', 0),
(5, 'Negocios', 6, '2017-05-07 08:36:10', 0),
(6, 'Portafolio', 7, '2017-05-07 08:36:19', 0),
(7, 'Salud y bienestar', 8, '2017-05-07 08:36:27', 0),
(8, 'Servicios', 9, '2017-05-07 08:36:39', 0);

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

--
-- Estructura de tabla para la tabla `contactinfo`
--

CREATE TABLE IF NOT EXISTS `contactinfo` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `business_id` int(11) DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `telephone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mobilephone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fax` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `latitude` double DEFAULT NULL,
  `longitude` double DEFAULT NULL,
  `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `schedule` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `datecreated` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_7BD84995A89DB457` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `contadorsubdominios`
--

CREATE TABLE IF NOT EXISTS `contadorsubdominios` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `numero` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;

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

INSERT INTO `contadorsubdominios` (`id`, `numero`) VALUES
(1, 225);

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

--
-- Estructura de tabla para la tabla `legalinfo`
--

CREATE TABLE IF NOT EXISTS `legalinfo` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `business_id` int(11) DEFAULT NULL,
  `legalwarning` longtext COLLATE utf8_unicode_ci,
  `privacypolicy` longtext COLLATE utf8_unicode_ci,
  `cookiespolicy` longtext COLLATE utf8_unicode_ci,
  `legalconditions` longtext COLLATE utf8_unicode_ci,
  `datecreated` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_FFE31252A89DB457` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `order`
--

CREATE TABLE IF NOT EXISTS `order` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `usuario_id` int(11) DEFAULT NULL,
  `business_id` int(11) DEFAULT NULL,
  `number` int(11) NOT NULL,
  `subtotal` double NOT NULL,
  `taxes` double NOT NULL,
  `descuento` double NOT NULL,
  `total` double NOT NULL,
  `totaldescuento` double NOT NULL,
  `pagado` tinyint(1) NOT NULL,
  `estado` int(11) NOT NULL,
  `authorizationcode` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `datepayment` datetime DEFAULT NULL,
  `eliminado` int(11) NOT NULL,
  `updatedAt` datetime DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `paymentform` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_F5299398DB38439E` (`usuario_id`),
  KEY `IDX_F5299398A89DB457` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `pago`
--

CREATE TABLE IF NOT EXISTS `pago` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `usuario_id` int(11) DEFAULT NULL,
  `business_id` int(11) DEFAULT NULL,
  `subtotal` double NOT NULL,
  `taxes` double NOT NULL,
  `descuento` double NOT NULL,
  `total` double NOT NULL,
  `totaldescuento` double NOT NULL,
  `pagado` tinyint(1) NOT NULL,
  `estado` int(11) NOT NULL,
  `authorizationcode` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `datepayment` datetime DEFAULT NULL,
  `eliminado` int(11) NOT NULL,
  `updatedAt` datetime DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `deliveryName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `paymentform` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_F4DF5F3EDB38439E` (`usuario_id`),
  KEY `IDX_F4DF5F3EA89DB457` (`business_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=140 ;

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

INSERT INTO `pago` (`id`, `usuario_id`, `business_id`, `subtotal`, `taxes`, `descuento`, `total`, `totaldescuento`, `pagado`, `estado`, `authorizationcode`, `datepayment`, `eliminado`, `updatedAt`, `createdAt`, `deliveryName`, `paymentform`) VALUES
(1, 8, 1, 20, 21, 0, 3, 3, 0, 1, NULL, '2018-11-12 14:32:33', 0, '2018-11-12 14:32:33', '2018-11-12 14:32:33', '', 0),
(2, 8, 1, 20, 21, 0, 3, 3, 0, 1, NULL, '2018-11-12 14:34:53', 0, '2018-11-12 14:34:53', '2018-11-12 14:34:53', '', 0),
(3, 8, 1, 20, 21, 0, 3, 3, 0, 1, NULL, '2018-11-12 14:36:34', 0, '2018-11-12 14:36:34', '2018-11-12 14:36:34', '', 0),
(4, 8, 1, 20, 21, 0, 0, 0, 0, 1, NULL, NULL, 0, '2018-11-12 14:39:52', '2018-11-12 14:39:52', '', 0),
(5, 8, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 10:29:31', '2018-11-13 10:29:31', '', 0),
(6, 8, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 10:29:31', '2018-11-13 10:29:31', '', 0),
(7, 8, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 10:29:31', '2018-11-13 10:29:31', '', 0),
(8, 8, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 10:29:37', '2018-11-13 10:29:37', '', 0),
(9, 14, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 10:30:41', '2018-11-13 10:30:41', '', 0),
(10, 14, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 10:30:41', '2018-11-13 10:30:41', '', 0),
(11, 14, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 10:30:41', '2018-11-13 10:30:41', '', 0),
(12, 14, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 10:30:46', '2018-11-13 10:30:46', '', 0),
(13, 14, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 10:31:17', '2018-11-13 10:31:17', '', 0),
(14, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:00:25', '2018-11-13 12:00:25', '', 0),
(15, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:00:25', '2018-11-13 12:00:25', '', 0),
(16, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:00:25', '2018-11-13 12:00:25', '', 0),
(17, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:00:31', '2018-11-13 12:00:31', '', 0),
(18, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:07:42', '2018-11-13 12:07:42', '', 0),
(19, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:07:42', '2018-11-13 12:07:42', '', 0),
(20, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:07:43', '2018-11-13 12:07:43', '', 0),
(21, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:07:48', '2018-11-13 12:07:48', '', 0),
(22, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:08:18', '2018-11-13 12:08:18', '', 0),
(23, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:08:29', '2018-11-13 12:08:29', '', 0),
(24, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:24:09', '2018-11-13 12:24:09', '', 0),
(25, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:24:32', '2018-11-13 12:24:32', '', 0),
(26, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:27:51', '2018-11-13 12:27:51', '', 0),
(27, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:28:11', '2018-11-13 12:28:11', '', 0),
(28, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:49:26', '2018-11-13 12:49:26', '', 0),
(29, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:50:47', '2018-11-13 12:50:47', '', 0),
(30, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:52:24', '2018-11-13 12:52:24', '', 0),
(31, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:53:08', '2018-11-13 12:53:08', '', 0),
(32, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:53:38', '2018-11-13 12:53:38', '', 0),
(33, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:54:05', '2018-11-13 12:54:05', '', 0),
(34, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:54:26', '2018-11-13 12:54:26', '', 0),
(35, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 12:56:00', '2018-11-13 12:56:00', 'Plan renove', 0),
(36, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:10:51', '2018-11-13 14:10:51', 'Plan renove', 0),
(37, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:19:48', '2018-11-13 14:19:48', 'Plan renove', 0),
(38, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:24:03', '2018-11-13 14:24:03', 'Plan renove', 0),
(39, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:27:06', '2018-11-13 14:27:06', 'Plan renove', 0),
(40, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:27:41', '2018-11-13 14:27:41', 'Plan renove', 0),
(41, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:30:16', '2018-11-13 14:30:16', 'Plan renove', 0),
(42, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:31:52', '2018-11-13 14:31:52', 'Plan renove', 0),
(43, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:32:26', '2018-11-13 14:32:26', 'Plan renove', 0),
(44, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:33:13', '2018-11-13 14:33:13', 'Plan renove', 0),
(45, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:33:57', '2018-11-13 14:33:57', 'Plan renove', 0),
(46, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:33:58', '2018-11-13 14:33:58', 'Plan renove', 0),
(47, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:34:48', '2018-11-13 14:34:48', 'Plan renove', 0),
(48, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:34:49', '2018-11-13 14:34:49', 'Plan renove', 0),
(49, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:34:49', '2018-11-13 14:34:49', 'Plan renove', 0),
(50, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:35:04', '2018-11-13 14:35:04', 'Plan renove', 0),
(51, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:35:51', '2018-11-13 14:35:51', 'Plan renove', 0),
(52, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:36:17', '2018-11-13 14:36:17', 'Plan renove', 0),
(53, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:37:18', '2018-11-13 14:37:18', 'Plan renove', 0),
(54, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:41:57', '2018-11-13 14:41:57', 'Plan renove', 0),
(55, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:42:49', '2018-11-13 14:42:49', 'Plan renove', 0),
(56, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:46:48', '2018-11-13 14:46:48', 'Plan renove', 0),
(57, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:49:10', '2018-11-13 14:49:10', 'Plan renove', 0),
(58, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:50:19', '2018-11-13 14:50:19', 'Plan renove', 0),
(59, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:50:37', '2018-11-13 14:50:37', 'Plan renove', 0),
(60, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:50:57', '2018-11-13 14:50:57', 'Plan renove', 0),
(61, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:54:57', '2018-11-13 14:54:57', 'Plan renove', 0),
(62, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:54:58', '2018-11-13 14:54:58', 'Plan renove', 0),
(63, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:55:15', '2018-11-13 14:55:15', 'Plan renove', 0),
(64, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:55:30', '2018-11-13 14:55:30', 'Plan renove', 0),
(65, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:55:31', '2018-11-13 14:55:31', 'Plan renove', 0),
(66, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-13 14:55:41', '2018-11-13 14:55:41', 'Plan renove', 0),
(67, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:06:28', '2018-11-14 07:06:28', 'Plan renove', 0),
(68, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:11:49', '2018-11-14 07:11:49', 'Plan renove', 0),
(69, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:12:08', '2018-11-14 07:12:08', 'Plan renove', 0),
(70, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:12:21', '2018-11-14 07:12:21', 'Plan renove', 0),
(71, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:13:28', '2018-11-14 07:13:28', 'Plan renove', 0),
(72, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:32:56', '2018-11-14 07:32:56', 'Plan renove', 0),
(73, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:33:01', '2018-11-14 07:33:01', 'Plan renove', 0),
(74, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:33:21', '2018-11-14 07:33:21', 'Plan renove', 0),
(75, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:33:43', '2018-11-14 07:33:43', 'Plan renove', 0),
(76, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:34:05', '2018-11-14 07:34:05', 'Plan renove', 0),
(77, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:34:06', '2018-11-14 07:34:06', 'Plan renove', 0),
(78, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:34:07', '2018-11-14 07:34:07', 'Plan renove', 0),
(79, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:34:08', '2018-11-14 07:34:08', 'Plan renove', 0),
(80, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:34:09', '2018-11-14 07:34:09', 'Plan renove', 0),
(81, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:34:09', '2018-11-14 07:34:09', 'Plan renove', 0),
(82, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:34:10', '2018-11-14 07:34:10', 'Plan renove', 0),
(83, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:34:11', '2018-11-14 07:34:11', 'Plan renove', 0),
(84, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:47:11', '2018-11-14 07:47:11', 'Plan renove', 0),
(85, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 07:58:30', '2018-11-14 07:58:30', 'Plan renove', 0),
(86, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 08:36:16', '2018-11-14 08:36:16', 'Plan renove', 0),
(87, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 08:36:39', '2018-11-14 08:36:39', 'Plan renove', 0),
(88, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 08:44:14', '2018-11-14 08:44:14', 'Plan renove', 0),
(89, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 08:45:12', '2018-11-14 08:45:12', 'Plan renove', 0),
(90, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 08:46:49', '2018-11-14 08:46:49', 'Plan renove', 0),
(91, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 08:48:00', '2018-11-14 08:48:00', 'Plan renove', 0),
(92, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 08:48:54', '2018-11-14 08:48:54', 'Plan renove', 0),
(93, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 08:49:04', '2018-11-14 08:49:04', 'Plan renove', 0),
(94, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 08:55:02', '2018-11-14 08:55:02', 'Plan renove', 0),
(95, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 08:58:47', '2018-11-14 08:58:47', 'Plan renove', 0),
(96, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 08:59:38', '2018-11-14 08:59:38', 'Plan renove', 0),
(97, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 09:10:44', '2018-11-14 09:10:44', 'Plan renove', 0),
(98, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 09:19:13', '2018-11-14 09:19:13', 'Plan renove', 0),
(99, 15, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 13:42:26', '2018-11-14 13:42:26', 'Plan renove', 0),
(100, 15, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 13:42:41', '2018-11-14 13:42:41', 'Plan renove', 0),
(101, 15, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 13:42:42', '2018-11-14 13:42:42', 'Plan renove', 0),
(102, 15, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 13:55:13', '2018-11-14 13:55:13', 'Plan renove', 0),
(103, 15, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 14:02:18', '2018-11-14 14:02:18', 'Plan renove', 0),
(104, 15, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 14:02:27', '2018-11-14 14:02:27', 'Plan renove', 0),
(105, 15, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-14 14:04:14', '2018-11-14 14:04:14', 'Plan renove', 0),
(106, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-15 08:22:20', '2018-11-15 08:22:20', 'Plan renove', 0),
(107, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-15 08:22:43', '2018-11-15 08:22:43', 'Plan renove', 0),
(108, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-15 11:56:10', '2018-11-15 11:56:10', 'Plan renove', 0),
(109, 7, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-16 13:20:03', '2018-11-16 13:20:03', 'Plan renove', 0),
(110, 17, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-21 14:31:32', '2018-11-21 14:31:32', 'Plan renove', 0),
(111, 17, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-21 14:55:01', '2018-11-21 14:55:01', 'Plan renove', 0),
(112, 31, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-22 09:47:45', '2018-11-22 09:47:45', 'Plan renove', 0),
(113, 31, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-22 09:48:04', '2018-11-22 09:48:04', 'Plan renove', 0),
(114, 31, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-22 09:50:50', '2018-11-22 09:50:50', 'Plan renove', 0),
(115, 31, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-22 09:55:23', '2018-11-22 09:55:23', 'Plan renove', 0),
(116, 31, 1, 20, 21, 0, 20, 20, 0, 1, NULL, NULL, 0, '2018-11-22 09:59:32', '2018-11-22 09:59:32', 'Plan renove', 0),
(117, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-11-22 10:00:59', '2018-11-22 10:00:59', 'Plan renove', 0),
(118, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-11-22 10:07:46', '2018-11-22 10:07:46', 'Plan renove', 0),
(119, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-11-22 10:13:29', '2018-11-22 10:13:29', 'Plan renove', 0),
(120, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-11-22 10:16:37', '2018-11-22 10:16:37', 'Plan renove', 0),
(121, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-11-22 10:28:26', '2018-11-22 10:28:26', 'Plan renove', 0),
(122, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-11-22 10:29:48', '2018-11-22 10:29:48', 'Plan renove', 0),
(123, 17, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-11-28 12:10:55', '2018-11-28 12:10:55', 'Plan renove', 0),
(124, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 10:10:37', '2018-12-03 10:10:37', 'Plan renove', 0),
(125, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 10:12:38', '2018-12-03 10:12:38', 'Plan renove', 0),
(126, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 10:17:33', '2018-12-03 10:17:33', 'Plan renove', 0),
(127, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 10:21:26', '2018-12-03 10:21:26', 'Plan renove', 0),
(128, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 10:22:19', '2018-12-03 10:22:19', 'Plan renove', 0),
(129, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 10:25:19', '2018-12-03 10:25:19', 'Plan renove', 0),
(130, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 10:26:32', '2018-12-03 10:26:32', 'Plan renove', 0),
(131, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 10:26:33', '2018-12-03 10:26:33', 'Plan renove', 0),
(132, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 10:26:41', '2018-12-03 10:26:41', 'Plan renove', 0),
(133, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 10:27:45', '2018-12-03 10:27:45', 'Plan renove', 0),
(134, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 10:28:36', '2018-12-03 10:28:36', 'Plan renove', 0),
(135, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 11:24:16', '2018-12-03 11:24:16', 'Plan renove', 0),
(136, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 11:24:36', '2018-12-03 11:24:36', 'Plan renove', 0),
(137, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 11:26:56', '2018-12-03 11:26:56', 'Plan renove', 0),
(138, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 11:27:13', '2018-12-03 11:27:13', 'Plan renove', 0),
(139, 31, 1, 1, 21, 0, 1, 1, 0, 1, NULL, NULL, 0, '2018-12-03 11:27:29', '2018-12-03 11:27:29', 'Plan renove', 0);

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

--
-- Estructura de tabla para la tabla `plan`
--

CREATE TABLE IF NOT EXISTS `plan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `business_id` int(11) DEFAULT NULL,
  `subtotal` double NOT NULL,
  `taxes` double NOT NULL,
  `descuento` double NOT NULL,
  `total` double NOT NULL,
  `totaldescuento` double NOT NULL,
  `meses` int(11) NOT NULL,
  `eliminado` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_DD5A5B7DA89DB457` (`business_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;

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

INSERT INTO `plan` (`id`, `business_id`, `subtotal`, `taxes`, `descuento`, `total`, `totaldescuento`, `meses`, `eliminado`, `name`) VALUES
(1, 1, 1, 21, 0, 1, 0, 1, 0, 'Mes a mes');

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

--
-- Estructura de tabla para la tabla `socialnetwork`
--

CREATE TABLE IF NOT EXISTS `socialnetwork` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `business_id` int(11) DEFAULT NULL,
  `twitter` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `facebook` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `instagram` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `youtube` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `whatsapp` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `linkedin` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `google` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `flickr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `datecreated` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_87FC02E3A89DB457` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `style`
--

CREATE TABLE IF NOT EXISTS `style` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nombre` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nombrelogo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pathimagen` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `classimagen` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fondomenu` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorletramenu` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorseparadoresmenu` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorcabeceramodal` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colortabfondo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorbotonfondo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorbotonletra` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `eliminado` tinyint(1) NOT NULL,
  `colortopmenu` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorfondoadministracion` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorfondopublic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorbotonpublic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorletraspublic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorcabeceramodalpublic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorlateralmenu` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorletramenulateral` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pathlogin` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorbotonpreviaedita` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorbotonpublicacontinua` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colorbotonarchivopublic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `colortextoavisopublic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;

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

INSERT INTO `style` (`id`, `nombre`, `nombrelogo`, `pathimagen`, `classimagen`, `fondomenu`, `colorletramenu`, `colorseparadoresmenu`, `colorcabeceramodal`, `colortabfondo`, `colorbotonfondo`, `colorbotonletra`, `eliminado`, `colortopmenu`, `colorfondoadministracion`, `colorfondopublic`, `colorbotonpublic`, `colorletraspublic`, `colorcabeceramodalpublic`, `colorlateralmenu`, `colorletramenulateral`, `pathlogin`, `colorbotonpreviaedita`, `colorbotonpublicacontinua`, `colorbotonarchivopublic`, `colortextoavisopublic`) VALUES
(1, 'Edewis', 'LogoMulticolor', 'pathimagen-1-86.png', 'edewis', '#FFEEE4', '#110407', '#DCFF9A', '#FF896F', '#9795FF', '#FFB983', '#AEFF81', 0, '#FF1B5A', NULL, '#FFEEE4', '#FF4466', '#110407', '#FF9EC4', '#4E77FF', '#FF4466', 'pathlogin-1-67.png', '#6435FF', '#FF4466', '#6435FF', '#FF4466');

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

--
-- Estructura de tabla para la tabla `subcategory`
--

CREATE TABLE IF NOT EXISTS `subcategory` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `category_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `sort` int(11) NOT NULL,
  `datecreated` datetime NOT NULL,
  `deleted` tinyint(1) NOT NULL,
  `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_DDCA448989D9B62` (`slug`),
  KEY `IDX_DDCA44812469DE2` (`category_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=43 ;

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

INSERT INTO `subcategory` (`id`, `category_id`, `name`, `sort`, `datecreated`, `deleted`, `slug`) VALUES
(1, 1, 'Arquitectura', 1, '2017-05-07 08:47:06', 0, 'arquitectura'),
(2, 1, 'Carpintería', 100, '2017-05-07 08:48:48', 0, 'carpinteria'),
(3, 1, 'Construcción', 100, '2017-05-07 08:49:07', 0, 'construccion'),
(4, 1, 'Diseño de interiores', 100, '2017-05-07 08:49:27', 0, 'diseno_de_interiores'),
(5, 1, 'Inmobiliaria', 100, '2017-05-07 08:49:46', 0, 'inmobiliaria'),
(6, 1, 'Mantenimiento', 100, '2017-05-07 08:50:01', 0, 'mantenimiento'),
(7, 2, 'Actividades deportivas', 100, '2017-05-07 09:19:26', 0, 'actividades_deportivas'),
(8, 2, 'Deporte', 100, '2017-05-07 09:19:38', 0, 'deporte'),
(9, 2, 'Gimnasio', 100, '2017-05-07 09:19:54', 0, 'gimnasio'),
(10, 3, 'Bodas', 100, '2017-05-07 09:20:19', 0, 'bodas'),
(11, 3, 'Fiestas y Celebraciones', 100, '2017-05-07 09:20:42', 0, 'fiestas_celebraciones'),
(12, 4, 'Agencia de viajes', 100, '2017-05-07 09:21:08', 0, 'agencia-de-viajes'),
(13, 4, 'Café', 100, '2017-05-07 09:21:20', 0, 'cafe'),
(14, 4, 'Club', 100, '2017-05-07 09:21:28', 0, 'club'),
(15, 4, 'Hotel', 100, '2017-05-07 09:21:37', 0, 'hotel'),
(16, 4, 'Restaurante', 100, '2017-05-07 09:21:45', 0, 'restaurante'),
(17, 5, 'Artes y Oficios', 100, '2017-05-07 09:22:06', 0, 'artes_y_oficios'),
(18, 5, 'Comida rápida', 100, '2017-05-07 09:22:24', 0, 'comida_rapida'),
(19, 5, 'Tiendas de ropa', 100, '2017-05-07 09:22:41', 0, 'tiendas_de_ropa'),
(20, 5, 'Vendedor de coches', 100, '2017-05-07 09:22:59', 0, 'vendedor_de_coches'),
(21, 6, 'Agencia web', 100, '2017-05-07 09:23:22', 0, 'agencia-web'),
(22, 6, 'Banda de música', 100, '2017-05-07 09:23:42', 0, 'banda_de_musica'),
(23, 6, 'Estudio de diseño', 100, '2017-05-07 09:24:03', 0, 'estudio_de_diseno'),
(24, 6, 'Foto y Video', 100, '2017-05-07 09:24:24', 0, 'foto_y_video'),
(25, 6, 'Galería de arte', 100, '2017-05-07 09:24:47', 0, 'galeria_de_arte'),
(26, 6, 'Moda', 100, '2017-05-07 09:25:01', 0, 'moda'),
(27, 7, 'Centro de belleza', 100, '2017-05-07 09:25:23', 0, 'centro_de_belleza'),
(28, 7, 'Clínica', 100, '2017-05-07 09:26:02', 0, 'clinica'),
(29, 7, 'Clínica veterinaria', 100, '2017-05-07 09:26:18', 0, 'clinica_veterinaria'),
(30, 7, 'Farmacia', 100, '2017-05-07 09:26:41', 0, 'Farmacia'),
(31, 7, 'Fisioterapia', 100, '2017-05-07 09:27:05', 0, 'fisioterapia'),
(32, 7, 'Spa', 100, '2017-05-07 09:27:14', 0, 'spa'),
(33, 8, 'Consultoría', 100, '2017-05-07 09:27:38', 0, 'consultoria'),
(34, 8, 'Guardería', 100, '2017-05-07 09:27:50', 0, 'guarderia'),
(35, 8, 'Imprenta', 100, '2017-05-07 09:28:07', 0, 'imprenta'),
(36, 8, 'Informática', 100, '2017-05-07 09:28:25', 0, 'informatica'),
(37, 8, 'Ingeniería RD', 100, '2017-05-07 09:28:48', 0, 'ingenieria_r_d'),
(38, 8, 'Ong', 100, '2017-05-07 09:29:04', 0, 'ong'),
(39, 3, 'Cumpleaños', 100, '2017-05-07 09:30:32', 0, 'cumpleanos'),
(40, 5, 'Pequeños negocios', 100, '2017-05-07 09:31:46', 0, 'pequenos_negocios'),
(41, 8, 'Seguridad', 100, '2017-05-07 09:32:19', 0, 'seguridad'),
(42, 5, 'Transporte', 100, '2017-05-07 09:32:48', 0, 'transporte');

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

--
-- Estructura de tabla para la tabla `superadmin`
--

CREATE TABLE IF NOT EXISTS `superadmin` (
  `id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Estructura de tabla para la tabla `usuario`
--

CREATE TABLE IF NOT EXISTS `usuario` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `apellidos` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `telefono` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `role` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `salt` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `date` datetime NOT NULL,
  `activo` tinyint(1) NOT NULL,
  `bloqueado` tinyint(1) NOT NULL,
  `expirado` tinyint(1) NOT NULL,
  `tipo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `codigoverificacion` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `subcategory_id` int(11) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `urlweb` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `completadainformacion` tinyint(1) NOT NULL,
  `fechainformacion` datetime DEFAULT NULL,
  `web_id` int(11) DEFAULT NULL,
  `passcifrada` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fechaexpiracion` datetime NOT NULL,
  `planactivo` tinyint(1) NOT NULL,
  `zipimagenes` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `business_id` int(11) DEFAULT NULL,
  `briefing_id` int(11) DEFAULT NULL,
  `terminosaceptados` tinyint(1) NOT NULL,
  `configuracion` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_2265B05DE7927C74` (`email`),
  UNIQUE KEY `UNIQ_2265B05DFE18474D` (`web_id`),
  UNIQUE KEY `UNIQ_2265B05D27266F69` (`briefing_id`),
  KEY `IDX_2265B05D5DC6FE57` (`subcategory_id`),
  KEY `IDX_2265B05D12469DE2` (`category_id`),
  KEY `IDX_2265B05DA89DB457` (`business_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=33 ;

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

INSERT INTO `usuario` (`id`, `nombre`, `apellidos`, `telefono`, `email`, `password`, `role`, `salt`, `date`, `activo`, `bloqueado`, `expirado`, `tipo`, `codigoverificacion`, `subcategory_id`, `category_id`, `urlweb`, `completadainformacion`, `fechainformacion`, `web_id`, `passcifrada`, `fechaexpiracion`, `planactivo`, `zipimagenes`, `business_id`, `briefing_id`, `terminosaceptados`, `configuracion`) VALUES
(1, 'Admin', NULL, NULL, 'admin@admin.es', 'RIroZy18P+sFrZjLoiY5l4fmqZa6/NMtYj8rXjYRhJF6DdyskYWdIL3nDpGaXgtqBQNeR0CTdEu+aVrbAvTCCA==', 'ROLE_SUPER_ADMIN', '1735cbe1bacc00c4be4b69421ee09f65', '2018-11-12 00:00:00', 1, 1, 1, 'superadmin', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, '2099-11-01 00:00:00', 0, NULL, NULL, NULL, 0, 0),
(3, '', 'Mellado', '655891808', 'pepito@gmail.com', 'A/s8I+qF0QLl4BlS9km/zPcczBzkBHm/hiW/2TrSU+vWZpjy8ZqedGXfUQdM0O6cK68GYCku7k548TFR/UaEbg==', 'ROLE_USER', '8d2e54b78867ce4ee078b63a94879325', '2018-11-08 08:01:53', 1, 1, 0, 'usuario', 'bb12bf662a471db21e91e5b75041c9b9', 9, 2, 'pruebaregis', 0, NULL, NULL, NULL, '0000-00-00 00:00:00', 0, NULL, 1, NULL, 0, 0),
(4, '', 'Mellado', '655891808', 'prueba@gmail.com', 'R6KJW9aDRbbueatosCXCSpU8fzcGt6gdfcoyHVwJTtI6jH7Ge1CPOSCM2YT6rUmiyqxvKkt0LI+NRVwCB9ohtg==', 'ROLE_USER', '9b96fd6078026e9e20c63a43d649024e', '2018-11-08 10:29:35', 1, 1, 0, 'usuario', NULL, 1, 1, 'prueba.com', 1, '2018-11-15 13:51:11', 1, 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE1NDE2ODQ1NTgsInBhc3Njb2RpZmljYWRhIjoiYXBwYW5kd2ViIiwiZXhwIjoxNTQxNjg4MTU4fQ.Bg7uSw0_GxzmHY_U9xuPPDJYMwQVvdDnUux9O3eL4xEih1Z-i4pT2iM9y-ctrbICGUjt_QrFW6-XiGGpLJFFwOJTZl__XQQMyOlM0_0hfGk0Z1pYDL9RsObaAwUTsxrEl5r', '0000-00-00 00:00:00', 1, NULL, 1, 1, 0, 0),
(5, '', 'juan', '77777777', 'pepepe@gmail.com', '3pr50BWwjmJeO2o4artoa0sKm/3BonqgxymdIP51mK3ktvU+M5eCd2ytk6YCJYLLZuqVYLkrXmOF3Jp8GIhNSQ==', 'ROLE_USER', '68cd3512f5a7951878683549a016e5d6', '2018-11-08 14:44:43', 1, 1, 0, 'usuario', '329a928b47f9e4414db8bdf2c9358649', 1, 1, 'aaaa', 1, '2018-11-08 14:45:41', 2, 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE1NDE2ODQ3MzAsInBhc3Njb2RpZmljYWRhIjoiYXBwYW5kd2ViIiwiZXhwIjoxNTQxNjg4MzMwfQ.MqYhSjOuomXYhteifQyG-ZiH_hcPsVpleZc3HuhoZs8SyFcMzNLz2lc_OnLW_sEYL9h1h1AZlB5MmnaC8gaHpVi8TvTQXgoa7E4uxH6yc3pzAmLL44h1N3c4jHrbfaZU87D', '0000-00-00 00:00:00', 0, NULL, 1, NULL, 0, 0),
(6, '', 'prueba', '666778899', 'pruebaaa@hotmail.com', 'GGCADD/ohdhzRoSjgSQrZDRUAnvOWMvx/0OmcrM70lwXQNM0216GnnxKHTK8/t6IDwd9+q8xjOnNb1akvbH1fw==', 'ROLE_USER', '5db662145bb1afc8d86e8438360064da', '2018-11-09 07:07:05', 1, 1, 0, 'usuario', '733e3d181f09943659de12361ebe6518', 1, 1, 'prueba.com', 1, '2018-11-09 10:28:08', 3, 'iLGSpPzOnLmqqddRjRBIeA==', '0000-00-00 00:00:00', 0, NULL, 1, NULL, 0, 0),
(7, 'Pepito', 'pepito', '666778899', 'contacto@appandweb.es', 'oN1dxDQ9H79NfNElKKouRz7Yr/JPdxRHSFIhl7vESs5ChyyTc9vUIVllG4jRySsD5684gikRze9MFNwKrH7eEg==', 'ROLE_USER', '8bd7dfaf6e13ea160d46be3624671c8e', '2018-11-09 10:33:54', 1, 1, 1, 'usuario', 'be67f33e980208e9fce5b5d0fa6b5826', 30, 7, 'pruebaregistro.com', 1, '2018-11-09 13:18:30', 4, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-11-01 10:33:54', 1, NULL, 1, NULL, 1, 1),
(8, '', 'PRUEBA', '666778899', 'javigarrido@gmail.com', 'RIroZy18P+sFrZjLoiY5l4fmqZa6/NMtYj8rXjYRhJF6DdyskYWdIL3nDpGaXgtqBQNeR0CTdEu+aVrbAvTCCA==', 'ROLE_USER', '1735cbe1bacc00c4be4b69421ee09f65', '2018-11-09 13:46:57', 1, 1, 1, 'usuario', 'be4577b162aeb701c43c26732bddc827', 1, 1, 'miweb.com', 1, '2018-11-09 13:48:27', 5, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-11-24 13:46:57', 0, NULL, 1, NULL, 0, 0),
(9, '', 'json', '666778899', 'pruebajson@hotmail.com', 'rM4VKPLNNDwazcw/y/HmssXYTKcZ/9+eZl7A+NKSJ4nl2g2cuZ/ZsOcwSHqH6l0Uc1wjoaC4bC+I/a7mOStvlA==', 'ROLE_USER', '1858026b26e38a7f2319c604bcdbf397', '2018-11-13 08:15:31', 0, 1, 1, 'usuario', NULL, 1, 1, 'pruebajson.com', 1, '2018-11-13 08:33:51', 6, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-11-28 08:15:31', 1, NULL, 1, NULL, 0, 0),
(10, '', 'pepepete', '667788999', 'pruebababa@gmail.com', 'Fj4TQqaEH9dtp4d2CD53rt2EsJ6eFgnGzr6tnxIhgLYLkhBIAQA4k26TFyrx9r6T+QgEz0FirH0Flne4rHA4Xg==', 'ROLE_USER', 'ffa77988be76f89ae517ae964a1260fd', '2018-11-13 08:35:23', 0, 1, 1, 'usuario', '108949ed3c8d681370187880cc627128', 1, 1, 'prueba.com', 1, '2018-11-13 09:58:26', 7, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-11-28 08:35:23', 1, NULL, 1, NULL, 0, 0),
(11, '', 'garcia', '666778899', 'pruebaoeoete@gmail.com', 'SNEdyng+sy2Tr0nUdr3LHhB3Li43DWMTadgt4yJjDjSgHAYNN5v6CcsKtJIcIP1pOi0sVKB5BDjSKwQP27o3Yw==', 'ROLE_USER', 'a945aa11369f93bbc6d8985b6c026705', '2018-11-13 10:00:44', 0, 1, 1, 'usuario', NULL, 1, 1, 'pruebaweb.com', 1, '2018-11-13 10:02:07', 8, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-11-28 10:00:44', 1, NULL, 1, NULL, 0, 0),
(12, '', 'Mellado', '655891808', 'franciscojavieyyr@appandweb.es', 'tiIzXCrgrZkeCzD6D6rYg+DBUnoz6HAesu4xDv+goj3tsXb7onJjnIQOpxubtjFs2hJ+EhEXMvtRFtpjLXYi8w==', 'ROLE_USER', '868796a88c5fb2ce1a2bcf4b6689f589', '2018-11-13 10:05:28', 0, 1, 1, 'usuario', NULL, 1, 1, 'pruebajson.com', 1, '2018-11-13 10:18:16', 9, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-11-28 10:05:28', 1, '12-zipimagenes.', 1, NULL, 0, 0),
(13, '', 'Perez', '666778899', 'Adrianct2017@yahoo.com', 'oyBtEGF/b5yc6hBcKx0iw2gNA5d2IyQImhOvheEKle2SBLD+pAYCQlHmAd2MiLwNQzKHfTmb9Iq65t1Ru3/b2g==', 'ROLE_USER', '2e6768c7ee926a99b6f41f6c1e466006', '2018-11-13 10:18:30', 0, 1, 1, 'usuario', NULL, 1, 1, 'pruebacurlo.com', 1, '2018-11-13 10:19:21', 10, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-11-28 10:18:30', 1, NULL, 1, NULL, 0, 0),
(14, '', 'Pago', '766554433', 'pruebapago@gmail.com', 'soeQZV56PAhZFMaYlGN+7jJ1EEpKs94AeE9WaakqFPtT0LyyejCiCwGCiNDXHC6CVK2IicONfRIPoS9uu4sxLQ==', 'ROLE_USER', '4053afac2bba6483f81e418cbda78ac7', '2018-11-13 10:25:56', 1, 1, 1, 'usuario', 'c99cfca1d7e86fac25283fec4fbe3bee', 1, 1, 'pruebapago.com', 1, '2018-11-13 10:26:51', 11, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-11-28 10:25:56', 1, NULL, 1, NULL, 0, 0),
(15, '', 'garcia', '666778899', 'jojojose@gmail.com', '2mSBTN3HJDURIEdC4mBHC1za14t93ZJJX58Yc9hCgucw6kZkUdUpnBabMgJKuVbfvnSOjox5pJ7LeDHW37EY8w==', 'ROLE_USER', '2d1d21dac01535b771b43e375a6a0dfa', '2018-11-14 13:12:50', 1, 1, 1, 'usuario', NULL, 1, 1, 'prueba.com', 1, '2018-11-14 13:37:11', 12, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-10-29 13:12:50', 0, NULL, 1, NULL, 0, 0),
(16, '', 'Garcia', '666666', 'pepitoasdas@gmail.com', 'mhb1tXnetLFoK7P+haf5Xi6FCrv60ACTZypRBqtm1SdtC7XwPlgMqV1SCQQa8Pm7tGgqhzgqfyphAuA9q3xCQw==', 'ROLE_USER', '5ff5d7937f5ed84ce549ba32f7893973', '2018-11-15 12:07:08', 1, 1, 1, 'usuario', 'fecaa7cdb3e8981ba08353f15029c0af', 1, 1, 'pepito.com', 1, '2018-11-16 08:51:56', 15, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-11-30 12:07:08', 1, NULL, 1, 2, 0, 0),
(17, '', 'Perez', '666778899', 'franciscojavier@appandweb.es', 'QBpmEXjVfpkH2WSPTJzOX3cZjAg3BXy616G7zdhq5gfQq9K1aSd6oMXW+QTf/E4iS+TfjrLpzyi4m1r29kD4mw==', 'ROLE_USER', '504c6685705452e2158aaa10cf72724d', '2018-11-16 08:56:10', 1, 1, 1, 'usuario', 'e832238fbf817004c502a148c36449e3', 1, 1, 'prueba.com', 1, '2018-11-16 09:09:31', 18, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-12-01 08:56:10', 0, NULL, 1, 3, 0, 0),
(18, '', 'Mellado', '655891808', 'ppp@gmail.com', 'gaRaX2KeTdX6i9uZOtyluYrTsInub+wJ2W5E5FS0PTZK71RebIUm+KPlX0qfnecYpVHbo9sCNH5DZSM5zUQmdQ==', 'ROLE_USER', 'e0b7c28be7b7c1c7501c3b4ec21d4493', '2018-11-16 09:10:12', 1, 1, 1, 'usuario', '5377b3d8d21f78f4863d6e8652a259b7', 1, 1, 'pruebaregistroprueba.com', 1, '2018-11-19 14:10:15', 19, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-12-01 09:10:12', 1, NULL, 1, 4, 1, 1),
(19, '', 'prueba', '666778899', 'pruebaregistro@appandweb.es', 'eSvNOjBMt80LhlfGXKNX4KRPa7QV9NRuMyzrQideuvKBvE6l9TZTJuioRAyVg7emJeOYJcV7jj2PZ3khYKHIsQ==', 'ROLE_USER', '46396d070ec925cffa193bfe14f2e68f', '2018-11-19 14:18:09', 1, 1, 1, 'usuario', 'b15ca1bd6ce57ceada940f12c99b9178', 14, 4, 'www.pruebaregistro.com', 0, '2018-11-19 14:22:32', 20, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-12-04 14:18:09', 1, NULL, 1, 5, 0, 0),
(20, '', 'user', '666778899', 'nuevouser@gmail.com', 'K0WO2/AbnDr+63+E4YOD086IS3dbrYrwJWJ5qgfm2j/aXCXWqoOoiW5fWumSM+SV/uYMkQOe5KXvS3Xb7xsuyA==', 'ROLE_USER', '428242a44ea454ce4b664ce97e83d989', '2018-11-20 07:06:04', 1, 1, 1, 'usuario', 'bd2a34cebd70c6d19d2c444df787377b', 1, 1, 'www.nuevouser.com', 0, '2018-11-20 07:07:26', 21, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-12-05 07:06:04', 1, NULL, 1, 6, 0, 1),
(21, 'Introduzca su nombre', NULL, NULL, 'useredewus', 'sdlVUrRR85cJrC7V8snUrQYctyxR+oOw8QWUw2DZq+t0UPj6aZEb1+Pn1IAkI4eFlDFcXKGyPbCLqlpHJsxz4Q==', 'ROLE_USER', '5e0b86e0cda0991678703d017d23c190', '2018-11-20 07:24:00', 0, 1, 1, 'usuario', '5e0b86e0cda0991678703d017d23c190', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2018-12-05 07:24:00', 0, NULL, 1, NULL, 0, 0),
(22, '', 'edewis', '666778899', 'useredewis@gmail.com', '2c+yhzFPH220yFPKuJ8DdM5/6mk3EVk6sBgg+YzCEq4IDNf0mtSIK6lv1fBlcu2/RHEAnLFdwzkIDUMEE+4/Kw==', 'ROLE_USER', '5e1e766ef44fa8ea19066bfba5ec663f', '2018-11-20 07:25:24', 1, 1, 1, 'usuario', '0406555a5b85ffaf8c8f0bc2fb73fa99', 1, 1, 'edewisuser.com', 0, '2018-11-20 07:26:22', 22, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-12-05 07:25:24', 1, NULL, 1, 7, 0, 0),
(23, 'Introduzca su nombre', NULL, NULL, 'Adrianct2017@yahoos.com', '/Tepbyb40dB6eje/dntrWfxVkVhGargdNE6jz3zlhXp4a8sNE6iQUThEq8VUhWvHxbDVWu8SswtgPXLKwXJ+kA==', 'ROLE_USER', '2f6d19b555c784bdbc970b12e1a6a95e', '2018-11-20 14:52:18', 0, 1, 1, 'usuario', '2f6d19b555c784bdbc970b12e1a6a95e', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2018-12-05 14:52:18', 0, NULL, 1, NULL, 0, 0),
(24, '', 'Perez', '666778899', 'pepe@gmail.com', 'Xpen/98/uUJxgt/8gtkAiggenSgL6bgdh57KkL11eZu91pq7ORX9PZClZuSvvK2uWCtQisI/ojd+opeUlv8VLA==', 'ROLE_USER', 'ccb38af471dc7ee0b273fef92ab2123a', '2018-11-21 13:46:38', 1, 1, 1, 'usuario', 'a7f24e405ebbf2f15ec7c44bf7cdaefc', 1, 1, 'prueba.com', 0, '2018-11-22 08:06:14', 24, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-12-06 13:46:38', 1, NULL, 1, 9, 0, 0),
(25, '', 'adria', '666778899', 'Adrianct20171@yahoo.com', 'MoA/6hZUVS6Lq+7NdzNvSX501wyEuYldM9t8jENNuir8J/KtLdzBE2NPG6UNBBgVCK9t0mc6sNygaNMTnNJBfw==', 'ROLE_USER', '00d54b3e50fd604c610c6c7cd4792ccc', '2018-11-21 14:22:19', 1, 1, 1, 'usuario', '699e8f1a013dafed591922d18da85410', 1, 1, 'www.prueba.com', 0, '2018-11-21 14:51:53', 23, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-12-06 14:22:19', 1, NULL, 1, 8, 0, 0),
(26, 'Introduzca su nombre', NULL, NULL, 'franciscojavier@appandweb.esa', 'PQbSoArohun/9T+pACPg/B+8QM8bqhRj20t0Pzcg2JO3eRON6HyFd9VcESMniDcZXno4BAPpFK/diRLnMx9pdQ==', 'ROLE_USER', '0b0a2181dfa0bd4d460f9960144c597f', '2018-11-21 14:52:32', 0, 1, 1, 'usuario', '0b0a2181dfa0bd4d460f9960144c597f', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2018-12-06 14:52:32', 0, NULL, 1, NULL, 0, 0),
(27, '', 'prueba', '666778899', 'prueba1@prueba.com', '/gSzLIMAddhwdDJyIQX1tLMVWTY5q65M1ZqBO3ZbNSB0xBAyb79dAo/TkvkhuCxez5pR5Oc6JNmbHDYsn6a3EQ==', 'ROLE_USER', '9f20a8310c574bcf1070d3756f67dfc5', '2018-11-22 08:27:52', 1, 1, 1, 'usuario', '6ba0a0cd24d95dc37b424ed89faa806b', 1, 1, 'prueba.com', 0, '2018-11-22 08:28:47', 25, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-12-07 08:27:52', 1, NULL, 1, 10, 0, 0),
(28, 'Introduzca su nombre', NULL, NULL, 'prueba3@prueba.com', 'H9nclvowJhG6RDdvWPh3GO/DPAcJngdE0PFLrx3pCWySQWO/X8VCWE0DF7MUBvtJ8YC1s2dEsmrMCV/lVWX4Gg==', 'ROLE_USER', 'f925a0a41237e1441074965ffc74dc5f', '2018-11-22 08:37:10', 0, 1, 1, 'usuario', 'f925a0a41237e1441074965ffc74dc5f', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2018-12-07 08:37:10', 0, NULL, 1, NULL, 0, 0),
(29, '', 'prueba4', '666778899', 'prueba4@prueba.com', 'boxBO6Ar1NYDBn4yqBEy3jQgn90eh4LLpCRqpvKl3pJxTwXZVfANB6HlJwLxJr5B2RIJ+qHWp80G7XF8DS0E5Q==', 'ROLE_USER', 'dc722e1f7cce6d736a84200a7d88b1ee', '2018-11-22 08:43:24', 1, 1, 1, 'usuario', '2dac8108bc26c080698587f150157fdd', 1, 1, 'prueba4.com', 0, '2018-11-22 08:44:55', 26, 'YFtNk334fUiRT/gILWnQEg==', '2018-12-07 08:43:24', 1, NULL, 1, 11, 0, 0),
(30, '', 'prueba5', '666778899', 'prueba5@prueba.com', 'ipwUWmbHKvsmOk5ZPPm0qWyuVwFchRL8is4QgXeYnNTfpbg+zDz2i55t9IQgwSos9W6UHnVwEX44f+Y3K7aPtw==', 'ROLE_USER', '0d5581143d3df45a5640dcb6c4b1fa2d', '2018-11-22 08:45:35', 1, 1, 1, 'usuario', '916e13da37107ece2f6e7116e3fbf332', 1, 1, 'prueba5.com', 0, '2018-11-22 08:46:33', 27, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-12-07 08:45:35', 1, NULL, 1, 12, 0, 0),
(31, 'pepito', 'prueba6', '666778899', 'prueba6@prueba.com', 'EppqoYAoOQE3Dr2l+hy+eaEX2fReGVZuqn+VEYLwZNBwr7eLXQCZFdtYIKdCkgo/HgM3dIcevWhpUypsEo55Zg==', 'ROLE_USER', '852af4f3a3feca7fae52374818b230f1', '2018-11-22 08:49:48', 1, 1, 1, 'usuario', NULL, 1, 1, 'prueba6.com', 0, '2018-11-22 08:52:20', 28, 'iLGSpPzOnLmqqddRjRBIeA==', '2018-12-07 08:49:48', 1, NULL, 1, 13, 1, 1),
(32, 'Introduzca su nombre', NULL, NULL, 'prueba7@hotmail.com', '5k69Ge2RalyjyvP+Ax32u+D9OsJIwratoz9nO9i/cc8zJPMsML7n+v5eJWwNG2IY30+4uQ/tmqHYWx5tg26eeQ==', 'ROLE_USER', 'd39fc31d0abfafb0256248d896428cb2', '2018-12-03 13:13:46', 0, 1, 1, 'usuario', '4672e620355d3267f3a677ab4946641a', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2018-12-18 13:13:46', 0, NULL, 1, NULL, 0, 0);

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

--
-- Estructura de tabla para la tabla `web`
--

CREATE TABLE IF NOT EXISTS `web` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `usuario_id` int(11) DEFAULT NULL,
  `dominio` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dominiopropio` tinyint(1) NOT NULL,
  `suddominio` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fechasolicitud` datetime DEFAULT NULL,
  `dominioaceptado` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_15C93851DB38439E` (`usuario_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=29 ;

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

INSERT INTO `web` (`id`, `usuario_id`, `dominio`, `dominiopropio`, `suddominio`, `fechasolicitud`, `dominioaceptado`) VALUES
(1, 4, NULL, 0, 'a143.pagoswinecta.com', NULL, 0),
(2, 5, NULL, 0, NULL, NULL, 0),
(3, 6, NULL, 0, NULL, NULL, 0),
(4, 7, NULL, 0, NULL, NULL, 0),
(5, 8, NULL, 0, NULL, NULL, 0),
(6, 9, NULL, 0, 'a055.pagoswinecta.com', NULL, 0),
(7, 10, NULL, 0, 'a114.pagoswinecta.com', NULL, 0),
(8, 11, NULL, 0, 'a115.pagoswinecta.com', NULL, 0),
(9, 12, NULL, 0, 'a125.pagoswinecta.com', NULL, 0),
(10, 13, NULL, 0, 'a126.pagoswinecta.com', NULL, 0),
(11, 14, NULL, 0, NULL, NULL, 0),
(12, 15, NULL, 0, NULL, NULL, 0),
(15, 16, NULL, 0, NULL, NULL, 0),
(18, 17, NULL, 0, NULL, NULL, 0),
(19, 18, NULL, 0, 'a214.pagoswinecta.com', NULL, 0),
(20, 19, NULL, 0, 'a215.pagoswinecta.com', NULL, 0),
(21, 20, NULL, 0, 'a216.pagoswinecta.com', NULL, 0),
(22, 22, NULL, 0, NULL, NULL, 0),
(23, 25, NULL, 0, 'a219.pagoswinecta.com', NULL, 0),
(24, NULL, NULL, 0, NULL, NULL, 0),
(25, 27, NULL, 0, 'a222.pagoswinecta.com', NULL, 0),
(26, 29, NULL, 0, 'a223.pagoswinecta.com', NULL, 0),
(27, 30, NULL, 0, 'a224.pagoswinecta.com', NULL, 0),
(28, 31, NULL, 0, 'a225.pagoswinecta.com', NULL, 0);

--
-- Restricciones para tablas volcadas
--

--
-- Filtros para la tabla `briefing`
--
ALTER TABLE `briefing`
  ADD CONSTRAINT `FK_83D1F5A012469DE2` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`),
  ADD CONSTRAINT `FK_83D1F5A03397707A` FOREIGN KEY (`categoria_id`) REFERENCES `categoria` (`id`),
  ADD CONSTRAINT `FK_83D1F5A05DC6FE57` FOREIGN KEY (`subcategory_id`) REFERENCES `subcategory` (`id`),
  ADD CONSTRAINT `FK_83D1F5A0DB38439E` FOREIGN KEY (`usuario_id`) REFERENCES `usuario` (`id`);

--
-- Filtros para la tabla `business`
--
ALTER TABLE `business`
  ADD CONSTRAINT `FK_8D36E38342A11FA` FOREIGN KEY (`contactinfo_id`) REFERENCES `contactinfo` (`id`),
  ADD CONSTRAINT `FK_8D36E38488EFC00` FOREIGN KEY (`legalinfo_id`) REFERENCES `legalinfo` (`id`),
  ADD CONSTRAINT `FK_8D36E384BD877FB` FOREIGN KEY (`socialnetwork_id`) REFERENCES `socialnetwork` (`id`),
  ADD CONSTRAINT `FK_8D36E3898E7DD7B` FOREIGN KEY (`planpararegistro_id`) REFERENCES `plan` (`id`),
  ADD CONSTRAINT `FK_8D36E38BACD6074` FOREIGN KEY (`style_id`) REFERENCES `style` (`id`);

--
-- Filtros para la tabla `contactinfo`
--
ALTER TABLE `contactinfo`
  ADD CONSTRAINT `FK_7BD84995A89DB457` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`);

--
-- Filtros para la tabla `legalinfo`
--
ALTER TABLE `legalinfo`
  ADD CONSTRAINT `FK_FFE31252A89DB457` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`);

--
-- Filtros para la tabla `order`
--
ALTER TABLE `order`
  ADD CONSTRAINT `FK_F5299398A89DB457` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`),
  ADD CONSTRAINT `FK_F5299398DB38439E` FOREIGN KEY (`usuario_id`) REFERENCES `usuario` (`id`);

--
-- Filtros para la tabla `pago`
--
ALTER TABLE `pago`
  ADD CONSTRAINT `FK_F4DF5F3EA89DB457` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`),
  ADD CONSTRAINT `FK_F4DF5F3EDB38439E` FOREIGN KEY (`usuario_id`) REFERENCES `usuario` (`id`);

--
-- Filtros para la tabla `plan`
--
ALTER TABLE `plan`
  ADD CONSTRAINT `FK_DD5A5B7DA89DB457` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`);

--
-- Filtros para la tabla `socialnetwork`
--
ALTER TABLE `socialnetwork`
  ADD CONSTRAINT `FK_87FC02E3A89DB457` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`);

--
-- Filtros para la tabla `subcategory`
--
ALTER TABLE `subcategory`
  ADD CONSTRAINT `FK_DDCA44812469DE2` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`);

--
-- Filtros para la tabla `superadmin`
--
ALTER TABLE `superadmin`
  ADD CONSTRAINT `FK_39D87404BF396750` FOREIGN KEY (`id`) REFERENCES `usuario` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `usuario`
--
ALTER TABLE `usuario`
  ADD CONSTRAINT `FK_2265B05D12469DE2` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`),
  ADD CONSTRAINT `FK_2265B05D27266F69` FOREIGN KEY (`briefing_id`) REFERENCES `briefing` (`id`),
  ADD CONSTRAINT `FK_2265B05D5DC6FE57` FOREIGN KEY (`subcategory_id`) REFERENCES `subcategory` (`id`),
  ADD CONSTRAINT `FK_2265B05DA89DB457` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`),
  ADD CONSTRAINT `FK_2265B05DFE18474D` FOREIGN KEY (`web_id`) REFERENCES `web` (`id`);

--
-- Filtros para la tabla `web`
--
ALTER TABLE `web`
  ADD CONSTRAINT `FK_15C93851DB38439E` FOREIGN KEY (`usuario_id`) REFERENCES `usuario` (`id`);

