-- phpMyAdmin SQL Dump
-- version 4.6.6deb4+deb9u2
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost:3306
-- Tiempo de generación: 24-02-2022 a las 08:28:52
-- Versión del servidor: 5.7.26-log
-- Versión de PHP: 7.3.19-1+0~20200612.60+debian9~1.gbp6c8fe1

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `bee`
--

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

--
-- Estructura de tabla para la tabla `ads`
--

CREATE TABLE `ads` (
  `id_ads` int(11) NOT NULL,
  `name_ads` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `image_ads` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `description_ads` text COLLATE utf8_unicode_ci NOT NULL,
  `link_ads` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `id_section` int(11) NOT NULL,
  `click_ads` int(11) NOT NULL DEFAULT '0',
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Estructura de tabla para la tabla `advisers`
--

CREATE TABLE `advisers` (
  `id_adviser` int(11) NOT NULL,
  `id_agency` int(11) NOT NULL,
  `name_adviser` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `surname_adviser` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `code_advise` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `email_adviser` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `pass_adviser` text COLLATE utf8_unicode_ci,
  `token` text COLLATE utf8_unicode_ci,
  `token_adviser` text COLLATE utf8_unicode_ci,
  `sesion_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date_sesion` date DEFAULT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `advisers` (`id_adviser`, `id_agency`, `name_adviser`, `surname_adviser`, `code_advise`, `email_adviser`, `id_status`, `id_user`, `pass_adviser`, `token`, `token_adviser`, `sesion_token`, `date_sesion`, `create_date`) VALUES
(1, 1, 'd', 'd', 'f', 'f@hot.com', 1, 1, NULL, NULL, NULL, '', NULL, '2022-02-18 14:47:17'),
(2, 1, 'gfgf', 'fgfg', 'gfg', 'fgf@hot.com', 1, 1, NULL, NULL, NULL, '', NULL, '2022-02-21 08:41:09'),
(3, 15, 'Asesor 2', 'Asesor 2 apellidos', '02205', 'asesor2@hot.com', 1, 15, NULL, NULL, NULL, '', NULL, '2022-02-18 16:07:01'),
(4, 15, 'sdsd', 'ssd', '333', 'ssd@hot.com', 1, 15, NULL, NULL, NULL, '', NULL, '2022-02-18 16:13:19'),
(5, 17, 'sss', 'ssss', 'sssss', 'diazbasket5@hotmail.com', 1, 17, '$2y$12$RJbCoXoVhbm4zV9OfKwrw.IwXceJ938saoaYN.GuFhWRqHoyFOpgq', 'bb82ce6f9d334849603442a2e48ba371', '$2y$12$x4zcN08zLL0inN5HYNTLYe2CIZ5wguAxzV1gK/e6Xt2slXATPJnQy', '7hfg213fpd6kobivnaaatl8uoi', '2022-02-24', '2022-02-21 08:10:22');

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

--
-- Estructura de tabla para la tabla `advisers_commissions`
--

CREATE TABLE `advisers_commissions` (
  `id_adviser` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  `commission` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `advisers_commissions` (`id_adviser`, `id_product`, `commission`) VALUES
(5, 1, 20);

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

--
-- Estructura de tabla para la tabla `advisers_schedules`
--

CREATE TABLE `advisers_schedules` (
  `id_schedule` int(11) NOT NULL,
  `id_adviser` int(11) NOT NULL,
  `date_schedule` date NOT NULL,
  `event_schedule` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
  `color_event` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Estructura de tabla para la tabla `agencies`
--

CREATE TABLE `agencies` (
  `id_agency` int(11) NOT NULL,
  `name_agency` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `level_agency` int(11) NOT NULL,
  `id_father` int(11) DEFAULT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL,
  `email_agency` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `phones_agency` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `pass_agency` text COLLATE utf8_unicode_ci,
  `token` text COLLATE utf8_unicode_ci,
  `token_agency` text COLLATE utf8_unicode_ci,
  `id_profile` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `agencies` (`id_agency`, `name_agency`, `level_agency`, `id_father`, `id_status`, `id_user`, `create_date`, `email_agency`, `phones_agency`, `pass_agency`, `token`, `token_agency`, `id_profile`) VALUES
(1, 'Bee', 0, NULL, 1, 3, '2022-01-31 12:11:09', 'bee@hotmail.com', '04242', '$2y$12$48sMaxT1gHBtzk4bYNVsf.OekkWAwafnOBqx4YqEUqAm50pX1GWzy', '72edb05b5f2a3af763004932736ac597', '$2y$12$afNpg6a4FYsaAaVLKjrrmucBJTIcm6tiXOGPRJkkRsdcwOknMq9SW', 3),
(12, 'Agencia prueba', 1, 1, 1, 1, '2022-02-18 15:02:42', 'prueba@hotmail.com', 'prueba', '$2y$12$48sMaxT1gHBtzk4bYNVsf.OekkWAwafnOBqx4YqEUqAm50pX1GWzy', '14b1b8dd89c31f1d02aa83fd824e27b5', '$2y$12$99ydcUJikCbTR7OUJZlEy.45UAbW8IUNMPVLsep9BAZH0FUEBQGmy', 4),
(14, 'Develop', 2, 12, 1, 12, '2022-02-18 16:00:37', 'develop@hotmail.com', '+2451111', NULL, NULL, NULL, 5),
(15, 'Agencia 2', 2, 12, 1, 12, '2022-02-18 16:03:35', 'agencia2@hot.com', 'Agencia 2', '$2y$12$48sMaxT1gHBtzk4bYNVsf.OekkWAwafnOBqx4YqEUqAm50pX1GWzy', 'd3035a9c7fc9867ed862152f88b9785c', '$2y$12$25G5/rPFmM6zMi.Aa3W2o.ni0TjoUxOBCiTUQj9eZvBPOC.uFX08y', 5),
(16, 'Prueba', 1, 1, 1, 1, '2022-02-21 08:36:51', 'yoward05@gmail.com', '04215784', '$2y$12$7YeuYX5fEPUaY9WYNKQ0nun9N2MhIp2M69bFZ2sCMu27rfaZ.C.CS', '3d7e6428ba96f1994abbcd11e6cb765c', '$2y$12$tUlKEQek4zQfYviAXXYGMOA7a9K6VE8H5TNT0fwjuHfmO3YQ1DZZq', 4),
(17, 'Nueva', 2, 16, 1, 16, '2022-02-21 08:42:48', 'diazbasket5@hotmail.com', 'asas', '$2y$12$P9TqNsGQ8LBXagWkBEbsrO3De/PfHlxX3ySsglw93lMjeIvJogXfW', '95fa1de3589a9fd6030a11671363cde0', '$2y$12$hyKUdLtsed/Kjne.oqhXd.OH1A58fqpSxODcTvqu31ADtQs6/.Wae', 5),
(18, 'ffgfgdf', 1, 1, 1, 1, '2022-02-21 08:36:55', 'nuevadiazyoward@hotmail.com', 'gdfgdfg', '$2y$12$ufuU0qLDtuf.v03m6lGia.x4o3qG9gvAbJYElytgNgEU/l.CbV8mu', NULL, NULL, 4);

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

--
-- Estructura de tabla para la tabla `agencies_commissions`
--

CREATE TABLE `agencies_commissions` (
  `id_agency` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  `commission` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `agencies_commissions` (`id_agency`, `id_product`, `commission`) VALUES
(16, 1, 29),
(17, 1, 25),
(18, 3, 10);

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

--
-- Estructura de tabla para la tabla `banners`
--

CREATE TABLE `banners` (
  `id_banner` int(11) NOT NULL,
  `name_banner` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `image_banner` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `description_banner` text COLLATE utf8_unicode_ci NOT NULL,
  `link_banner` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `banners` (`id_banner`, `name_banner`, `image_banner`, `description_banner`, `link_banner`, `id_status`, `id_user`, `create_date`) VALUES
(1, 'nueva', 'nueva.jpg', 'nueva', '#', 1, 3, '2022-01-20 11:58:35');

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

--
-- Estructura de tabla para la tabla `blogs`
--

CREATE TABLE `blogs` (
  `id_blog` int(11) NOT NULL,
  `title_blog` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `description_blog` longtext COLLATE utf8_unicode_ci NOT NULL,
  `coverpage_blog` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `alt_img` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Estructura de tabla para la tabla `blog_categories`
--

CREATE TABLE `blog_categories` (
  `id_category` int(11) NOT NULL,
  `id_blog` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Estructura de tabla para la tabla `blog_tags`
--

CREATE TABLE `blog_tags` (
  `id_tag` int(11) NOT NULL,
  `id_blog` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Estructura de tabla para la tabla `campaigns`
--

CREATE TABLE `campaigns` (
  `id_campaign` int(11) NOT NULL,
  `name_campaign` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `subject_campaign` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `send_date` date NOT NULL,
  `description_campaign` longtext COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL,
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `campaigns` (`id_campaign`, `name_campaign`, `subject_campaign`, `send_date`, `description_campaign`, `id_status`, `id_user`, `create_date`) VALUES
(1, 'Campaña por aprobar', 'Campaña por aprobar', '2022-01-30', '<h1>Campaña por aprobar<br></h1>', 3, 3, '2022-01-30 02:11:18'),
(3, 'Campaña por aprobar Duplicada', 'Campaña por aprobar', '2022-01-30', '<h1>Campaña por aprobar<br></h1>', 3, 3, '2022-01-30 02:14:41'),
(4, 'Campaña con la Tílde', 'Campaña con la Tílde', '2022-01-30', '<p>Campaña con la Tílde<br></p>', 3, 3, '2022-01-30 02:20:17'),
(5, 'Campaña con la Tílde Duplicada', 'Campaña con la Tílde', '2022-01-30', '<p>Campaña con la Tílde<br></p>', 3, 3, '2022-01-30 02:21:22'),
(6, 'Campaña con la Tílde Duplicada Duplicada', 'Campaña con la Tílde', '2022-01-30', '<p>Campaña con la Tílde<br></p>', 3, 3, '2022-01-30 02:23:14');

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

--
-- Estructura de tabla para la tabla `campaigns_push`
--

CREATE TABLE `campaigns_push` (
  `id_push` int(11) NOT NULL,
  `name_push` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `id_status` int(11) NOT NULL,
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `campaigns_push` (`id_push`, `name_push`, `start_date`, `end_date`, `id_status`, `id_user`, `create_date`) VALUES
(3, 'Campaña Push 111111', '2022-01-31', '2022-02-02', 1, 3, '2022-01-31 04:31:39'),
(15, 'Nueva Campaña', '2022-01-31', '2022-02-02', 1, 3, '2022-01-31 04:44:15'),
(16, 'Campaña de vuelo', '2022-01-31', '2022-02-02', 1, 3, '2022-01-31 04:46:50');

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

--
-- Estructura de tabla para la tabla `campaigns_push_details`
--

CREATE TABLE `campaigns_push_details` (
  `id_detail` int(11) NOT NULL,
  `id_push` int(11) NOT NULL,
  `subject_push` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `type_push` int(1) NOT NULL,
  `period_days` int(11) DEFAULT NULL,
  `description_push` longtext COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `campaigns_push_details` (`id_detail`, `id_push`, `subject_push`, `type_push`, `period_days`, `description_push`, `id_status`, `id_user`, `create_date`) VALUES
(2, 3, 'Campaña Push tttt', 1, NULL, '<p></p><h1>Campaña Push {{Nombre_Completo}}<br></h1>', 1, 3, '2022-01-31 04:37:36'),
(28, 3, 'aaaaaaaaa', 2, 11, '<p>aaaaaaaaaaaaaaaaaa</p>', 1, 3, '2022-01-31 04:37:17'),
(30, 15, 'Nueva Campaña', 1, NULL, '<p>Nueva Campaña {{Nombre_Completo}}<br></p>', 1, 3, '2022-01-31 04:44:15'),
(31, 15, 'Nueva Campaña item 1', 2, 2, '<p>Nueva Campaña item 1<br></p>', 1, 3, '2022-01-31 04:44:15'),
(32, 15, 'Nueva Campaña item 2', 2, 4, '<p>Nueva Campaña item 2<br></p>', 1, 3, '2022-01-31 04:44:15'),
(33, 16, 'Campaña de vuelo', 1, NULL, '<p>Campaña de vuelo<br></p>', 1, 3, '2022-01-31 04:46:50'),
(34, 16, 'Campaña de vuelo 1', 2, 2, '<p>Campaña de vuelo 1<br></p>', 1, 3, '2022-01-31 04:46:53');

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

--
-- Estructura de tabla para la tabla `campaigns_push_fails`
--

CREATE TABLE `campaigns_push_fails` (
  `id_detail` int(11) NOT NULL,
  `id_subscriber` int(11) NOT NULL,
  `id_list` int(11) NOT NULL,
  `date_send` date NOT NULL,
  `id_user` int(11) DEFAULT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Estructura de tabla para la tabla `campaigns_push_lists`
--

CREATE TABLE `campaigns_push_lists` (
  `id_push` int(11) NOT NULL,
  `id_list` int(11) NOT NULL,
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `campaigns_push_lists` (`id_push`, `id_list`, `id_user`, `create_date`) VALUES
(3, 4, 3, '2022-01-30 19:23:53'),
(3, 3, 3, '2022-01-31 04:30:21'),
(15, 4, 3, '2022-01-31 04:44:15'),
(16, 4, 3, '2022-01-31 04:46:50');

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

--
-- Estructura de tabla para la tabla `campaigns_push_send`
--

CREATE TABLE `campaigns_push_send` (
  `id_detail` int(11) NOT NULL,
  `id_subscriber` int(11) NOT NULL,
  `id_list` int(11) NOT NULL,
  `date_send` date NOT NULL,
  `id_user` int(11) DEFAULT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `campaigns_push_send` (`id_detail`, `id_subscriber`, `id_list`, `date_send`, `id_user`, `create_date`) VALUES
(33, 3, 4, '2022-01-31', 3, '2022-01-31 04:46:53');

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

--
-- Estructura de tabla para la tabla `campaign_fails`
--

CREATE TABLE `campaign_fails` (
  `id_campaign` int(11) NOT NULL,
  `id_subscriber` int(11) NOT NULL,
  `id_list` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Estructura de tabla para la tabla `campaign_lists`
--

CREATE TABLE `campaign_lists` (
  `id_campaign` int(11) NOT NULL,
  `id_list` int(11) NOT NULL,
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `campaign_lists` (`id_campaign`, `id_list`, `id_user`, `create_date`) VALUES
(1, 3, 3, '2022-01-30 01:55:05'),
(3, 3, 3, '2022-01-30 02:14:12'),
(4, 1, 3, '2022-01-30 02:20:17'),
(5, 1, 3, '2022-01-30 02:21:14'),
(6, 1, 3, '2022-01-30 02:22:56'),
(6, 3, 3, '2022-01-30 02:23:14');

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

--
-- Estructura de tabla para la tabla `campaign_send`
--

CREATE TABLE `campaign_send` (
  `id_campaign` int(11) NOT NULL,
  `id_subscriber` int(11) NOT NULL,
  `id_list` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `campaign_send` (`id_campaign`, `id_subscriber`, `id_list`, `create_date`) VALUES
(1, 1, 3, '2022-01-30 02:11:30'),
(1, 3, 3, '2022-01-30 02:11:30'),
(1, 4, 3, '2022-01-30 02:11:30'),
(1, 6, 3, '2022-01-30 02:11:30'),
(3, 1, 3, '2022-01-30 02:14:50'),
(3, 3, 3, '2022-01-30 02:14:50'),
(3, 4, 3, '2022-01-30 02:14:50'),
(3, 6, 3, '2022-01-30 02:14:50'),
(4, 4, 1, '2022-01-30 02:20:19'),
(5, 4, 1, '2022-01-30 02:21:24'),
(6, 4, 1, '2022-01-30 02:23:36'),
(6, 1, 3, '2022-01-30 02:23:36'),
(6, 3, 3, '2022-01-30 02:23:36'),
(6, 4, 3, '2022-01-30 02:23:36'),
(6, 6, 3, '2022-01-30 02:23:36');

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

--
-- Estructura de tabla para la tabla `categories`
--

CREATE TABLE `categories` (
  `id_category` int(11) NOT NULL,
  `name_category` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL,
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Estructura de tabla para la tabla `contacts`
--

CREATE TABLE `contacts` (
  `phone_contact` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `email_contact` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `address_contact` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `map_contact` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `facebook_contact` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `instagram_contact` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `twitter_contact` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `whatsapp_contact` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `contacts` (`phone_contact`, `email_contact`, `address_contact`, `map_contact`, `facebook_contact`, `instagram_contact`, `twitter_contact`, `whatsapp_contact`, `id_status`, `id_user`, `create_date`) VALUES
('+578411111', 'eeeeee@hot.com', 'https://bee-insurance.com/contact/', 'https://bee-insurance.com/contact/', 'https://bee-insurance.com/contact/', 'https://bee-insurance.com/contact/', 'https://bee-insurance.com/contact/', 'https://bee-insurance.com/contact/', 1, 3, '2022-01-17 13:21:08');

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

--
-- Estructura de tabla para la tabla `countries`
--

CREATE TABLE `countries` (
  `id_country` int(11) NOT NULL,
  `iso` varchar(2) DEFAULT NULL,
  `name_country` varchar(80) DEFAULT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

INSERT INTO `countries` (`id_country`, `iso`, `name_country`, `id_status`) VALUES
(1, 'AF', 'Afganistán', 1),
(2, 'AX', 'Islas Gland', 1),
(3, 'AL', 'Albania', 1),
(4, 'DE', 'Alemania', 1),
(5, 'AD', 'Andorra', 1),
(6, 'AO', 'Angola', 1),
(7, 'AI', 'Anguilla', 1),
(8, 'AQ', 'Antártida', 1),
(9, 'AG', 'Antigua y Barbuda', 1),
(10, 'AN', 'Antillas Holandesas', 1),
(11, 'SA', 'Arabia Saudí', 1),
(12, 'DZ', 'Argelia', 1),
(13, 'AR', 'Argentina', 1),
(14, 'AM', 'Armenia', 1),
(15, 'AW', 'Aruba', 1),
(16, 'AU', 'Australia', 1),
(17, 'AT', 'Austria', 1),
(18, 'AZ', 'Azerbaiyán', 1),
(19, 'BS', 'Bahamas', 1),
(20, 'BH', 'Bahréin', 1),
(21, 'BD', 'Bangladesh', 1),
(22, 'BB', 'Barbados', 1),
(23, 'BY', 'Bielorrusia', 1),
(24, 'BE', 'Bélgica', 1),
(25, 'BZ', 'Belice', 1),
(26, 'BJ', 'Benin', 1),
(27, 'BM', 'Bermudas', 1),
(28, 'BT', 'Bhután', 1),
(29, 'BO', 'Bolivia', 1),
(30, 'BA', 'Bosnia y Herzegovina', 1),
(31, 'BW', 'Botsuana', 1),
(32, 'BV', 'Isla Bouvet', 1),
(33, 'BR', 'Brasil', 1),
(34, 'BN', 'Brunéi', 1),
(35, 'BG', 'Bulgaria', 1),
(36, 'BF', 'Burkina Faso', 1),
(37, 'BI', 'Burundi', 1),
(38, 'CV', 'Cabo Verde', 1),
(39, 'KY', 'Islas Caimán', 1),
(40, 'KH', 'Camboya', 1),
(41, 'CM', 'Camerún', 1),
(42, 'CA', 'Canadá', 1),
(43, 'CF', 'República Centroafricana', 1),
(44, 'TD', 'Chad', 1),
(45, 'CZ', 'República Checa', 1),
(46, 'CL', 'Chile', 1),
(47, 'CN', 'China', 1),
(48, 'CY', 'Chipre', 1),
(49, 'CX', 'Isla de Navidad', 1),
(50, 'VA', 'Ciudad del Vaticano', 1),
(51, 'CC', 'Islas Cocos', 1),
(52, 'CO', 'Colombia', 1),
(53, 'KM', 'Comoras', 1),
(54, 'CD', 'República Democrática del Congo', 1),
(55, 'CG', 'Congo', 1),
(56, 'CK', 'Islas Cook', 1),
(57, 'KP', 'Corea del Norte', 1),
(58, 'KR', 'Corea del Sur', 1),
(59, 'CI', 'Costa de Marfil', 1),
(60, 'CR', 'Costa Rica', 1),
(61, 'HR', 'Croacia', 1),
(62, 'CU', 'Cuba', 1),
(63, 'DK', 'Dinamarca', 1),
(64, 'DM', 'Dominica', 1),
(65, 'DO', 'República Dominicana', 1),
(66, 'EC', 'Ecuador', 1),
(67, 'EG', 'Egipto', 1),
(68, 'SV', 'El Salvador', 1),
(69, 'AE', 'Emiratos Árabes Unidos', 1),
(70, 'ER', 'Eritrea', 1),
(71, 'SK', 'Eslovaquia', 1),
(72, 'SI', 'Eslovenia', 1),
(73, 'ES', 'España', 1),
(74, 'UM', 'Islas ultramarinas de Estados Unidos', 1),
(75, 'US', 'Estados Unidos', 1),
(76, 'EE', 'Estonia', 1),
(77, 'ET', 'Etiopía', 1),
(78, 'FO', 'Islas Feroe', 1),
(79, 'PH', 'Filipinas', 1),
(80, 'FI', 'Finlandia', 1),
(81, 'FJ', 'Fiyi', 1),
(82, 'FR', 'Francia', 1),
(83, 'GA', 'Gabón', 1),
(84, 'GM', 'Gambia', 1),
(85, 'GE', 'Georgia', 1),
(86, 'GS', 'Islas Georgias del Sur y Sandwich del Sur', 1),
(87, 'GH', 'Ghana', 1),
(88, 'GI', 'Gibraltar', 1),
(89, 'GD', 'Granada', 1),
(90, 'GR', 'Grecia', 1),
(91, 'GL', 'Groenlandia', 1),
(92, 'GP', 'Guadalupe', 1),
(93, 'GU', 'Guam', 1),
(94, 'GT', 'Guatemala', 1),
(95, 'GF', 'Guayana Francesa', 1),
(96, 'GN', 'Guinea', 1),
(97, 'GQ', 'Guinea Ecuatorial', 1),
(98, 'GW', 'Guinea-Bissau', 1),
(99, 'GY', 'Guyana', 1),
(100, 'HT', 'Haití', 1),
(101, 'HM', 'Islas Heard y McDonald', 1),
(102, 'HN', 'Honduras', 1),
(103, 'HK', 'Hong Kong', 1),
(104, 'HU', 'Hungría', 1),
(105, 'IN', 'India', 1),
(106, 'ID', 'Indonesia', 1),
(107, 'IR', 'Irán', 1),
(108, 'IQ', 'Iraq', 1),
(109, 'IE', 'Irlanda', 1),
(110, 'IS', 'Islandia', 1),
(111, 'IL', 'Israel', 1),
(112, 'IT', 'Italia', 1),
(113, 'JM', 'Jamaica', 1),
(114, 'JP', 'Japón', 1),
(115, 'JO', 'Jordania', 1),
(116, 'KZ', 'Kazajstán', 1),
(117, 'KE', 'Kenia', 1),
(118, 'KG', 'Kirguistán', 1),
(119, 'KI', 'Kiribati', 1),
(120, 'KW', 'Kuwait', 1),
(121, 'LA', 'Laos', 1),
(122, 'LS', 'Lesotho', 1),
(123, 'LV', 'Letonia', 1),
(124, 'LB', 'Líbano', 1),
(125, 'LR', 'Liberia', 1),
(126, 'LY', 'Libia', 1),
(127, 'LI', 'Liechtenstein', 1),
(128, 'LT', 'Lituania', 1),
(129, 'LU', 'Luxemburgo', 1),
(130, 'MO', 'Macao', 1),
(131, 'MK', 'ARY Macedonia', 1),
(132, 'MG', 'Madagascar', 1),
(133, 'MY', 'Malasia', 1),
(134, 'MW', 'Malawi', 1),
(135, 'MV', 'Maldivas', 1),
(136, 'ML', 'Malí', 1),
(137, 'MT', 'Malta', 1),
(138, 'FK', 'Islas Malvinas', 1),
(139, 'MP', 'Islas Marianas del Norte', 1),
(140, 'MA', 'Marruecos', 1),
(141, 'MH', 'Islas Marshall', 1),
(142, 'MQ', 'Martinica', 1),
(143, 'MU', 'Mauricio', 1),
(144, 'MR', 'Mauritania', 1),
(145, 'YT', 'Mayotte', 1),
(146, 'MX', 'México', 1),
(147, 'FM', 'Micronesia', 1),
(148, 'MD', 'Moldavia', 1),
(149, 'MC', 'Mónaco', 1),
(150, 'MN', 'Mongolia', 1),
(151, 'MS', 'Montserrat', 1),
(152, 'MZ', 'Mozambique', 1),
(153, 'MM', 'Myanmar', 1),
(154, 'NA', 'Namibia', 1),
(155, 'NR', 'Nauru', 1),
(156, 'NP', 'Nepal', 1),
(157, 'NI', 'Nicaragua', 1),
(158, 'NE', 'Níger', 1),
(159, 'NG', 'Nigeria', 1),
(160, 'NU', 'Niue', 1),
(161, 'NF', 'Isla Norfolk', 1),
(162, 'NO', 'Noruega', 1),
(163, 'NC', 'Nueva Caledonia', 1),
(164, 'NZ', 'Nueva Zelanda', 1),
(165, 'OM', 'Omán', 1),
(166, 'NL', 'Países Bajos', 1),
(167, 'PK', 'Pakistán', 1),
(168, 'PW', 'Palau', 1),
(169, 'PS', 'Palestina', 1),
(170, 'PA', 'Panamá', 1),
(171, 'PG', 'Papúa Nueva Guinea', 1),
(172, 'PY', 'Paraguay', 1),
(173, 'PE', 'Perú', 1),
(174, 'PN', 'Islas Pitcairn', 1),
(175, 'PF', 'Polinesia Francesa', 1),
(176, 'PL', 'Polonia', 1),
(177, 'PT', 'Portugal', 1),
(178, 'PR', 'Puerto Rico', 1),
(179, 'QA', 'Qatar', 1),
(180, 'GB', 'Reino Unido', 1),
(181, 'RE', 'Reunión', 1),
(182, 'RW', 'Ruanda', 1),
(183, 'RO', 'Rumania', 1),
(184, 'RU', 'Rusia', 1),
(185, 'EH', 'Sahara Occidental', 1),
(186, 'SB', 'Islas Salomón', 1),
(187, 'WS', 'Samoa', 1),
(188, 'AS', 'Samoa Americana', 1),
(189, 'KN', 'San Cristóbal y Nevis', 1),
(190, 'SM', 'San Marino', 1),
(191, 'PM', 'San Pedro y Miquelón', 1),
(192, 'VC', 'San Vicente y las Granadinas', 1),
(193, 'SH', 'Santa Helena', 1),
(194, 'LC', 'Santa Lucía', 1),
(195, 'ST', 'Santo Tomé y Príncipe', 1),
(196, 'SN', 'Senegal', 1),
(197, 'CS', 'Serbia y Montenegro', 1),
(198, 'SC', 'Seychelles', 1),
(199, 'SL', 'Sierra Leona', 1),
(200, 'SG', 'Singapur', 1),
(201, 'SY', 'Siria', 1),
(202, 'SO', 'Somalia', 1),
(203, 'LK', 'Sri Lanka', 1),
(204, 'SZ', 'Suazilandia', 1),
(205, 'ZA', 'Sudáfrica', 1),
(206, 'SD', 'Sudán', 1),
(207, 'SE', 'Suecia', 1),
(208, 'CH', 'Suiza', 1),
(209, 'SR', 'Surinam', 1),
(210, 'SJ', 'Svalbard y Jan Mayen', 1),
(211, 'TH', 'Tailandia', 1),
(212, 'TW', 'Taiwán', 1),
(213, 'TZ', 'Tanzania', 1),
(214, 'TJ', 'Tayikistán', 1),
(215, 'IO', 'Territorio Británico del Océano Índico', 1),
(216, 'TF', 'Territorios Australes Franceses', 1),
(217, 'TL', 'Timor Oriental', 1),
(218, 'TG', 'Togo', 1),
(219, 'TK', 'Tokelau', 1),
(220, 'TO', 'Tonga', 1),
(221, 'TT', 'Trinidad y Tobago', 1),
(222, 'TN', 'Túnez', 1),
(223, 'TC', 'Islas Turcas y Caicos', 1),
(224, 'TM', 'Turkmenistán', 1),
(225, 'TR', 'Turquía', 1),
(226, 'TV', 'Tuvalu', 1),
(227, 'UA', 'Ucrania', 1),
(228, 'UG', 'Uganda', 1),
(229, 'UY', 'Uruguay', 1),
(230, 'UZ', 'Uzbekistán', 1),
(231, 'VU', 'Vanuatu', 1),
(232, 'VE', 'Venezuela', 1),
(233, 'VN', 'Vietnam', 1),
(234, 'VG', 'Islas Vírgenes Británicas', 1),
(235, 'VI', 'Islas Vírgenes de los Estados Unidos', 1),
(236, 'WF', 'Wallis y Futuna', 1),
(237, 'YE', 'Yemen', 1),
(238, 'DJ', 'Yibuti', 1),
(239, 'ZM', 'Zambia', 1),
(240, 'ZW', 'Zimbabue', 1);

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

--
-- Estructura de tabla para la tabla `declaration_health`
--

CREATE TABLE `declaration_health` (
  `id_declaration_health` int(11) NOT NULL,
  `name_declaration_health` text COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `declaration_health` (`id_declaration_health`, `name_declaration_health`, `id_status`, `id_user`, `create_date`) VALUES
(1, ' Declaro que todos los datos proporcionados son ciertos, completos, libres de falsificación y omisión ', 1, 1, '2022-01-01 10:00:00'),
(2, ' Declaro que no conozco, ni he sido diagnosticado con alguna enfermedad o condición grave de salud que ponga en riesgo mi integridad física o mi vida. ', 1, 1, '2022-01-13 00:00:00');

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

--
-- Estructura de tabla para la tabla `declaration_pathology`
--

CREATE TABLE `declaration_pathology` (
  `id_declaration_pathology` int(11) NOT NULL,
  `name_declaration_pathology` text COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `declaration_pathology` (`id_declaration_pathology`, `name_declaration_pathology`, `id_status`, `id_user`, `create_date`) VALUES
(1, 'Declaro que no he sido diagnosticado con tensión arterial alta ni estoy bajo medicación relacionada ', 1, 1, '2022-01-01 00:00:00'),
(3, 'Declaro que no he sido diagnosticado con diabetes ni estoy bajo medicación relacionada', 1, 3, '2022-01-15 17:49:25');

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

--
-- Estructura de tabla para la tabla `downloadable_files`
--

CREATE TABLE `downloadable_files` (
  `id_file` int(11) NOT NULL,
  `title_file` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `name_file` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `description_file` text COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `downloadable_files` (`id_file`, `title_file`, `name_file`, `description_file`, `id_status`, `id_user`, `create_date`) VALUES
(1, 'Nuevo pdf', 'Nuevo_pdf.pdf', 'Nuevo pdf', 1, 3, '2022-01-24 06:47:02'),
(2, 'prueba poliza', 'prueba_poliza.pdf', 'prueba poliza', 1, 3, '2022-01-24 07:23:37'),
(3, 'rif Bee', 'rif_Bee.pdf', 'rif Bee', 1, 3, '2022-01-24 07:23:54');

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

--
-- Estructura de tabla para la tabla `faqs`
--

CREATE TABLE `faqs` (
  `id_faq` int(11) NOT NULL,
  `question` text COLLATE utf8_unicode_ci NOT NULL,
  `reply` longtext COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Estructura de tabla para la tabla `information`
--

CREATE TABLE `information` (
  `id_information` int(11) NOT NULL,
  `logo_primary` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `logo_secondary` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `information` (`id_information`, `logo_primary`, `logo_secondary`, `id_user`, `create_date`) VALUES
(1, 'logo_primario.png', 'logo_secundario.png', 3, '2022-01-27 00:00:00');

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

--
-- Estructura de tabla para la tabla `insurances`
--

CREATE TABLE `insurances` (
  `id_insurance` int(11) NOT NULL,
  `name_insurance` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description_insurance` text COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `insurances` (`id_insurance`, `name_insurance`, `description_insurance`, `id_status`, `id_user`, `create_date`) VALUES
(1, 'Poliza de vida', 'Poliza de vida', 1, 3, '2022-01-20 11:50:29'),
(2, 'Extensión de poliza', 'Extensión de poliza', 1, 3, '2022-01-24 07:24:23'),
(3, 'fdfdfdf', 'ddfdff', 1, 3, '2022-02-16 13:36:45');

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

--
-- Estructura de tabla para la tabla `insurance_beneficiaries`
--

CREATE TABLE `insurance_beneficiaries` (
  `id_beneficiary` int(11) NOT NULL,
  `id_buy` int(11) NOT NULL,
  `identification` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `name_beneficiary` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
  `percentage_beneficiary` int(11) NOT NULL,
  `id_relationship` int(11) NOT NULL,
  `date_birth` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `insurance_beneficiaries` (`id_beneficiary`, `id_buy`, `identification`, `name_beneficiary`, `percentage_beneficiary`, `id_relationship`, `date_birth`) VALUES
(1, 1, '202458', 'sdfsd', 100, 1, NULL),
(2, 2, 'sdsd', 'sds', 100, 1, NULL);

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

--
-- Estructura de tabla para la tabla `insurance_buy`
--

CREATE TABLE `insurance_buy` (
  `id_buy` int(11) NOT NULL,
  `id_insurance` int(11) NOT NULL,
  `user_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `name_user` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `last_name_user` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `sex_user` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `date_birth` date NOT NULL,
  `age_user` int(11) NOT NULL,
  `smokes_user` int(11) NOT NULL,
  `id_country` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
  `email_user` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `phone_user` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `beneficiaries_user` int(11) NOT NULL,
  `id_price` int(11) NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `id_adviser` int(11) DEFAULT NULL,
  `token_buy` text COLLATE utf8_unicode_ci,
  `create_date` datetime NOT NULL,
  `id_status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `insurance_buy` (`id_buy`, `id_insurance`, `user_id`, `name_user`, `last_name_user`, `sex_user`, `date_birth`, `age_user`, `smokes_user`, `id_country`, `email_user`, `phone_user`, `beneficiaries_user`, `id_price`, `start_date`, `end_date`, `id_adviser`, `token_buy`, `create_date`, `id_status`) VALUES
(1, 1, 'fdhgh', 'fghfgh', 'fghfgh', 'F', '2003-12-31', 18, 0, 'AF', 'diazbasket5@hotmail.com', '04242555063', 1, 3, '2022-02-22', '2023-02-22', 5, 'GNvtD59QaJ', '2022-02-22 17:53:53', 8),
(2, 1, 'fgfgfgf', 'fffg', 'fgfg', 'F', '1992-12-30', 29, 1, 'AF', 'fgfg@hot.com', 'fgfg', 1, 3, '2022-02-24', '2023-02-24', NULL, 'mCswFVpaLI202202240502312', '2022-02-24 05:02:31', 8);

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

--
-- Estructura de tabla para la tabla `insurance_buy_declaration`
--

CREATE TABLE `insurance_buy_declaration` (
  `id_buy` int(11) NOT NULL,
  `id_declaration_health` int(11) NOT NULL,
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `option_select` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `insurance_buy_declaration` (`id_buy`, `id_declaration_health`, `description`, `option_select`) VALUES
(1, 1, ' sdsfssfs', 1);

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

--
-- Estructura de tabla para la tabla `insurance_coupons`
--

CREATE TABLE `insurance_coupons` (
  `id_coupon` int(11) NOT NULL,
  `id_insurance` int(11) NOT NULL,
  `name_coupon` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `code_coupon` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `type_coupon` int(11) NOT NULL,
  `amount_coupon` int(11) NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `insurance_coupons` (`id_coupon`, `id_insurance`, `name_coupon`, `code_coupon`, `type_coupon`, `amount_coupon`, `id_status`, `id_user`, `create_date`, `start_date`, `end_date`) VALUES
(1, 1, 'Bee', 'bee', 1, 10, 1, 3, '2022-01-20 11:55:17', NULL, NULL),
(2, 2, 'dfdf', 'dff', 1, 10, 1, 3, '2022-02-14 22:58:32', '2022-02-18', '2022-02-21'),
(3, 2, 'yyy', 'dff1', 2, 10, 1, 3, '2022-02-14 11:38:59', '2022-02-14', '2022-02-21');

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

--
-- Estructura de tabla para la tabla `insurance_declaration_health`
--

CREATE TABLE `insurance_declaration_health` (
  `id_insurance` int(11) NOT NULL,
  `id_declaration_health` int(11) NOT NULL,
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `insurance_declaration_health` (`id_insurance`, `id_declaration_health`, `id_user`, `create_date`) VALUES
(1, 1, 3, '2022-01-20 11:50:29'),
(1, 2, 3, '2022-01-20 11:50:29'),
(2, 1, 3, '2022-01-24 07:24:23'),
(2, 2, 3, '2022-01-24 07:24:23'),
(3, 2, 3, '2022-02-16 13:03:39'),
(3, 1, 3, '2022-02-16 13:36:45');

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

--
-- Estructura de tabla para la tabla `insurance_declaration_pathology`
--

CREATE TABLE `insurance_declaration_pathology` (
  `id_insurance` int(11) NOT NULL,
  `id_declaration_pathology` int(11) NOT NULL,
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `insurance_declaration_pathology` (`id_insurance`, `id_declaration_pathology`, `id_user`, `create_date`) VALUES
(1, 1, 3, '2022-01-20 11:50:29'),
(1, 3, 3, '2022-01-20 11:50:29'),
(2, 1, 3, '2022-01-24 07:24:23'),
(2, 3, 3, '2022-01-24 07:24:23');

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

--
-- Estructura de tabla para la tabla `insurance_payment`
--

CREATE TABLE `insurance_payment` (
  `id_payment` int(11) NOT NULL,
  `id_buy` int(11) DEFAULT NULL,
  `id_term` int(11) NOT NULL,
  `amount_term` double(20,2) NOT NULL,
  `id_coupon` int(11) DEFAULT NULL,
  `type_coupon` int(11) DEFAULT NULL,
  `amount_coupon` double(20,2) DEFAULT NULL,
  `sub_total_payment` double(20,2) NOT NULL,
  `total_payment` double(20,2) NOT NULL,
  `discount` double(20,2) NOT NULL,
  `transaction_number` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `card_number` int(11) NOT NULL,
  `type_card` varchar(6) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date_payment` date NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `insurance_payment` (`id_payment`, `id_buy`, `id_term`, `amount_term`, `id_coupon`, `type_coupon`, `amount_coupon`, `sub_total_payment`, `total_payment`, `discount`, `transaction_number`, `card_number`, `type_card`, `date_payment`, `create_date`) VALUES
(1, 1, 1, 1200.00, NULL, NULL, 0.00, 1200.00, 1200.00, 0.00, 'ohgTtMnP3U', 1234, 'Visa', '2022-02-22', '2022-02-22 17:53:53'),
(2, 2, 1, 1200.00, NULL, NULL, 0.00, 1200.00, 1200.00, 0.00, 'LUK0nTcp23', 1234, 'Visa', '2022-02-24', '2022-02-24 05:02:31');

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

--
-- Estructura de tabla para la tabla `insurance_prices`
--

CREATE TABLE `insurance_prices` (
  `id_price` int(11) NOT NULL,
  `id_insurance` int(11) NOT NULL,
  `price_insurance` double(20,2) NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `insurance_prices` (`id_price`, `id_insurance`, `price_insurance`, `id_status`, `id_user`, `create_date`) VALUES
(1, 1, 25000.00, 1, 3, '2022-01-20 11:50:52'),
(2, 1, 12000.00, 1, 3, '2022-01-20 11:51:01'),
(3, 1, 5000.00, 1, 3, '2022-01-20 11:51:19'),
(4, 2, 12000.00, 1, 3, '2022-02-19 10:24:40'),
(5, 2, 20000.00, 1, 3, '2022-02-19 10:24:45'),
(6, 2, 50000.00, 1, 3, '2022-02-19 10:24:50'),
(7, 2, 75000.00, 1, 3, '2022-02-19 10:24:55');

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

--
-- Estructura de tabla para la tabla `insurance_terms`
--

CREATE TABLE `insurance_terms` (
  `id_term` int(11) NOT NULL,
  `id_price` int(11) NOT NULL,
  `description_term` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `html_term` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
  `config_term` text COLLATE utf8_unicode_ci NOT NULL,
  `amount_term` double(20,2) NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `insurance_terms` (`id_term`, `id_price`, `description_term`, `html_term`, `config_term`, `amount_term`, `id_status`, `id_user`, `create_date`) VALUES
(1, 3, '$edad > 20 & $edad < 30', 'Si edad es Mayor a 20 & edad es Menor a 30 cobertura 12000.00$ tendra costo de 1200.00$', '1,3,20-1,5,30', 1200.00, 1, 3, '2022-01-20 11:53:14'),
(2, 4, '$edad == 18', 'Si edad es Mayor a 18 & edad es Menor a 25 cobertura 12000.00$ tendra costo de 1200.00$', '1,3,18-1,5,25', 1200.00, 1, 3, '2022-02-19 10:25:30'),
(3, 3, '$edad > 40 & $edad < 50', 'f', 'f', 20000.00, 1, 1, '2022-02-01 00:00:00'),
(4, 4, '$edad > 10 & $edad == 20', 'Si $edad es Mayor a 10 & $edad es Igual a 20 cobertura 12000.00$ tendra costo de 1.20$', '1,3,10-1,1,20', 1.20, 1, 3, '2022-02-24 06:12:19');

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

--
-- Estructura de tabla para la tabla `lists`
--

CREATE TABLE `lists` (
  `id_list` int(11) NOT NULL,
  `name_list` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `lists` (`id_list`, `name_list`, `id_status`, `id_user`, `create_date`) VALUES
(1, 'Tests', 1, 3, '2022-01-29 08:47:08'),
(2, 'Prueba', 1, 3, '2022-01-29 08:47:16'),
(3, 'Gerencia', 1, 3, '2022-01-29 09:42:50'),
(4, 'Bee push', 1, 3, '2022-01-30 19:22:29');

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

--
-- Estructura de tabla para la tabla `newsletters`
--

CREATE TABLE `newsletters` (
  `id_newsletter` int(11) NOT NULL,
  `email_newsletter` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL,
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `newsletters` (`id_newsletter`, `email_newsletter`, `id_status`, `id_user`, `create_date`) VALUES
(1, 'ddd', 1, 3, '2022-01-27 00:00:00');

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

--
-- Estructura de tabla para la tabla `products`
--

CREATE TABLE `products` (
  `id_product` int(11) NOT NULL,
  `id_insurance` int(11) NOT NULL,
  `name_product` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `description_product` longtext COLLATE utf8_unicode_ci NOT NULL,
  `price_product` double(20,2) NOT NULL,
  `image_product` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `percentage_agencies_master` int(11) NOT NULL,
  `percentage_agencies` int(11) NOT NULL,
  `percentage_advisers` int(11) NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '2',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `products` (`id_product`, `id_insurance`, `name_product`, `description_product`, `price_product`, `image_product`, `percentage_agencies_master`, `percentage_agencies`, `percentage_advisers`, `id_status`, `id_user`, `create_date`) VALUES
(1, 1, 'nuevo', '<p>ghhjghjghjghjh<br></p>', 120.00, 'nuevo.png', 33, 25, 20, 1, 3, '2022-01-24 07:40:00'),
(2, 3, 'utyytut', '<p>gghjgjggj<br></p>', 888.88, 'utyytut.png', 20, 10, 5, 1, 3, '2022-01-24 07:45:49'),
(3, 2, 'Bee life', 'rtyryry', 120.00, 'cvxcv.png', 10, 5, 2, 1, 3, '2022-02-19 10:24:07');

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

--
-- Estructura de tabla para la tabla `products_files`
--

CREATE TABLE `products_files` (
  `id_product` int(11) NOT NULL,
  `id_file` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `products_files` (`id_product`, `id_file`) VALUES
(3, 2);

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

--
-- Estructura de tabla para la tabla `profiles`
--

CREATE TABLE `profiles` (
  `id_profile` int(11) NOT NULL,
  `profile_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `profiles` (`id_profile`, `profile_name`) VALUES
(1, 'Webmaster'),
(2, 'Desarrollo'),
(3, 'Super Agencia'),
(4, 'Agencia Master'),
(5, 'Agencia'),
(6, 'Asesor'),
(7, 'Asegurado'),
(8, 'Call Center'),
(9, 'Marketings');

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

--
-- Estructura de tabla para la tabla `quoters`
--

CREATE TABLE `quoters` (
  `id_quoter` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  `price_insurance` double(20,2) NOT NULL,
  `amount_term` double(20,2) NOT NULL,
  `name_user` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `email_user` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `date_birth` date NOT NULL,
  `id_adviser` int(11) DEFAULT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Estructura de tabla para la tabla `sections`
--

CREATE TABLE `sections` (
  `id_section` int(11) NOT NULL,
  `name_section` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `sections` (`id_section`, `name_section`, `id_status`, `id_user`, `create_date`) VALUES
(1, 'Principal', 1, 1, '2022-01-17 00:00:00'),
(2, 'Footer', 1, 1, '2022-01-17 00:00:00'),
(3, 'Costado Derecho', 1, 1, '2022-01-17 00:00:00');

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

--
-- Estructura de tabla para la tabla `services`
--

CREATE TABLE `services` (
  `id_service` int(11) NOT NULL,
  `name_service` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `description_service` longtext COLLATE utf8_unicode_ci NOT NULL,
  `image_service` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Estructura de tabla para la tabla `status`
--

CREATE TABLE `status` (
  `id_status` int(11) NOT NULL,
  `status_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `status_color` varchar(20) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `status` (`id_status`, `status_name`, `status_color`) VALUES
(1, 'Activo', 'success'),
(2, 'Inactivo', 'danger'),
(3, 'Enviado', 'success'),
(4, 'Borrador', 'danger'),
(5, 'En proceso', 'warning'),
(6, 'Agendado', 'primary'),
(7, 'Por aprobar', 'warning'),
(8, 'Pagada', 'success'),
(9, 'Por Pagar', 'danger');

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

--
-- Estructura de tabla para la tabla `subscribers`
--

CREATE TABLE `subscribers` (
  `id_subscriber` int(11) NOT NULL,
  `email_subscriber` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `name_subscriber` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `surname_subscriber` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `image_subscriber` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sex_subscriber` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `smoke_subscriber` int(1) DEFAULT NULL,
  `id_country` int(11) DEFAULT NULL,
  `phones_subscriber` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date_birth` date DEFAULT NULL,
  `date_issue` date DEFAULT NULL,
  `date_start` date DEFAULT NULL,
  `date_expiration` date DEFAULT NULL,
  `days_subscriber` int(11) DEFAULT NULL,
  `ibo_subscriber` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `category_subscriber` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `source_subscriber` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `destination_subscriber` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `agent_subscriber` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `id_status` int(11) NOT NULL DEFAULT '1',
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `subscribers` (`id_subscriber`, `email_subscriber`, `name_subscriber`, `surname_subscriber`, `image_subscriber`, `sex_subscriber`, `smoke_subscriber`, `id_country`, `phones_subscriber`, `date_birth`, `date_issue`, `date_start`, `date_expiration`, `days_subscriber`, `ibo_subscriber`, `category_subscriber`, `source_subscriber`, `destination_subscriber`, `agent_subscriber`, `id_status`, `id_user`, `create_date`) VALUES
(1, 'yoward05@gmail.com', 'Yoward Enrique', 'Diaz Zamora', 'nn.png', 'M', 0, 232, '2020', '2022-01-28', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2020', 1, 3, '2022-01-30 19:23:00'),
(3, 'diazbasket5@hotmail.com', 'Yoward 2', 'Apellido 2', 'Yoward_2.png', 'M', 0, 232, '0424785111', '2022-01-28', NULL, '2022-01-31', '2022-01-31', NULL, NULL, NULL, NULL, NULL, '20245', 1, 3, '2022-01-30 19:22:55'),
(4, 'prueba@ydsystems.com.ve', 'Ydsystems', 'Ydsystems apellidos', 'Ydsystems.png', 'M', 0, 232, '466546', '2022-01-28', NULL, '2022-01-31', '2022-02-28', NULL, NULL, NULL, NULL, NULL, '457', 1, 3, '2022-01-30 01:54:27'),
(5, 'caballero.nestor.10@gmail.com', 'Nestor ', 'Caballero', 'Nestor_.png', 'M', 0, 232, '7676767', '1984-01-12', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2020', 1, 3, '2022-01-29 17:24:00'),
(6, 'terfjhfkf@ydsystems.com.ve', 'Arturo', 'Rendon', 'Arturo.png', 'M', 0, 75, '2566', '2022-01-29', NULL, '2022-01-31', '2022-01-31', NULL, NULL, NULL, NULL, NULL, '5487', 1, 3, '2022-01-31 06:14:59');

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

--
-- Estructura de tabla para la tabla `subscriber_lists`
--

CREATE TABLE `subscriber_lists` (
  `id_list` int(11) NOT NULL,
  `id_subscriber` int(11) NOT NULL,
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `subscriber_lists` (`id_list`, `id_subscriber`, `id_user`, `create_date`) VALUES
(3, 4, 3, '2022-01-29 17:23:50'),
(2, 5, 3, '2022-01-29 17:24:00'),
(3, 6, 3, '2022-01-29 17:25:03'),
(1, 4, 3, '2022-01-30 01:54:27'),
(4, 1, 3, '2022-01-30 19:22:41'),
(4, 3, 3, '2022-01-30 19:22:48');

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

--
-- Estructura de tabla para la tabla `tags`
--

CREATE TABLE `tags` (
  `id_tag` int(11) NOT NULL,
  `name_tag` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `id_status` int(11) NOT NULL,
  `id_user` int(11) NOT NULL,
  `create_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

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

CREATE TABLE `users` (
  `id_user` int(11) NOT NULL,
  `user_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `avatar_img` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'avatar.png',
  `systems_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `user_pass` text COLLATE utf8_unicode_ci NOT NULL,
  `token` text COLLATE utf8_unicode_ci,
  `token_user` text COLLATE utf8_unicode_ci,
  `id_status` int(11) NOT NULL,
  `id_profile` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `users` (`id_user`, `user_name`, `avatar_img`, `systems_name`, `user_pass`, `token`, `token_user`, `id_status`, `id_profile`) VALUES
(1, 'Super Agencia', 'avatar.png', 'agencia', '$2y$12$aM/DKvzXtgETXvHRsa8YG.KbiOSsXFhtFkcPCS0pleD8ZnzAZLP1a', '6b052210b9e27cb42062dfa86b764d60', '$2y$12$iz/ftKMvzsXggdwFViMK8.SoNmAU02fLcHU6mckM/c2X18nRXzY1i', 1, 2),
(3, 'Programador', 'avatar7.png', 'programador', '$2y$12$48sMaxT1gHBtzk4bYNVsf.OekkWAwafnOBqx4YqEUqAm50pX1GWzy', '6c33393236c1c7cb457e1070518d0956', '$2y$12$6x0yTI20pAsgZUTxQfphNedetE3EEvfvo0jMqkdYFFXRUuKs5qi4C', 1, 1),
(4, 'Nestor Caballero', 'avatar.png', 'nestor', '$2y$12$TYOU9w1JupHT1o8odU7XHueuel146wRIeHNpTceSCq88RBMUj.2MG', NULL, NULL, 1, 1);

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

--
-- Estructura de tabla para la tabla `users_permits`
--

CREATE TABLE `users_permits` (
  `id_permit` int(11) NOT NULL,
  `id_profile` int(11) NOT NULL,
  `name_module` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `name_core` varchar(100) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `users_permits` (`id_permit`, `id_profile`, `name_module`, `name_core`) VALUES
(1, 8, 'campanas', ''),
(2, 9, 'blogs', ''),
(3, 9, 'campanas', ''),
(4, 9, 'campanas_push', ''),
(5, 3, 'agencias_master', 'agencies_masters'),
(6, 3, 'asesores', 'advisers'),
(7, 4, 'agencias', 'agencies'),
(8, 5, 'asesores', 'advisers'),
(9, 6, 'emision_asesor', 'emision_asesor'),
(10, 6, 'cotizador_asesor', 'cotizador_asesor');

--
-- Índices para tablas volcadas
--

--
-- Indices de la tabla `ads`
--
ALTER TABLE `ads`
  ADD PRIMARY KEY (`id_ads`),
  ADD KEY `status_ads` (`id_status`),
  ADD KEY `user_ads` (`id_user`);

--
-- Indices de la tabla `advisers`
--
ALTER TABLE `advisers`
  ADD PRIMARY KEY (`id_adviser`),
  ADD KEY `status_adviser` (`id_status`);

--
-- Indices de la tabla `advisers_commissions`
--
ALTER TABLE `advisers_commissions`
  ADD KEY `adviser comision` (`id_adviser`),
  ADD KEY `adviser prouct` (`id_product`);

--
-- Indices de la tabla `advisers_schedules`
--
ALTER TABLE `advisers_schedules`
  ADD PRIMARY KEY (`id_schedule`),
  ADD KEY `adviser_sche` (`id_adviser`),
  ADD KEY `date_schedule` (`date_schedule`);

--
-- Indices de la tabla `agencies`
--
ALTER TABLE `agencies`
  ADD PRIMARY KEY (`id_agency`);

--
-- Indices de la tabla `agencies_commissions`
--
ALTER TABLE `agencies_commissions`
  ADD KEY `product_comission` (`id_product`),
  ADD KEY `agencies_comission` (`id_agency`);

--
-- Indices de la tabla `banners`
--
ALTER TABLE `banners`
  ADD PRIMARY KEY (`id_banner`),
  ADD KEY `status_banner` (`id_status`),
  ADD KEY `user_banner` (`id_user`);

--
-- Indices de la tabla `blogs`
--
ALTER TABLE `blogs`
  ADD PRIMARY KEY (`id_blog`),
  ADD KEY `user_blog` (`id_user`),
  ADD KEY `status_blog` (`id_status`);

--
-- Indices de la tabla `blog_categories`
--
ALTER TABLE `blog_categories`
  ADD KEY `blog_categoria` (`id_blog`);

--
-- Indices de la tabla `blog_tags`
--
ALTER TABLE `blog_tags`
  ADD KEY `blog_tags` (`id_blog`);

--
-- Indices de la tabla `campaigns`
--
ALTER TABLE `campaigns`
  ADD PRIMARY KEY (`id_campaign`),
  ADD KEY `send_date` (`send_date`),
  ADD KEY `status_campaign` (`id_status`),
  ADD KEY `user_campaign` (`id_user`);

--
-- Indices de la tabla `campaigns_push`
--
ALTER TABLE `campaigns_push`
  ADD PRIMARY KEY (`id_push`),
  ADD KEY `status_push` (`id_status`),
  ADD KEY `user_push` (`id_user`),
  ADD KEY `start_date` (`start_date`),
  ADD KEY `end_date` (`end_date`);

--
-- Indices de la tabla `campaigns_push_details`
--
ALTER TABLE `campaigns_push_details`
  ADD PRIMARY KEY (`id_detail`),
  ADD KEY `push_detalle` (`id_push`),
  ADD KEY `status_push_detalle` (`id_status`),
  ADD KEY `user_push_detalle` (`id_user`),
  ADD KEY `subject_push` (`subject_push`);

--
-- Indices de la tabla `campaigns_push_fails`
--
ALTER TABLE `campaigns_push_fails`
  ADD KEY `push_send_push` (`id_detail`),
  ADD KEY `suscriptor_send_push` (`id_subscriber`),
  ADD KEY `lista_send_push` (`id_list`),
  ADD KEY `user_send_push` (`id_user`),
  ADD KEY `date_send` (`date_send`);

--
-- Indices de la tabla `campaigns_push_lists`
--
ALTER TABLE `campaigns_push_lists`
  ADD KEY `push_lista` (`id_push`),
  ADD KEY `lista_push` (`id_list`),
  ADD KEY `user_pushs` (`id_user`);

--
-- Indices de la tabla `campaigns_push_send`
--
ALTER TABLE `campaigns_push_send`
  ADD KEY `suscriptor_send_push` (`id_subscriber`),
  ADD KEY `lista_send_push` (`id_list`),
  ADD KEY `user_send_push` (`id_user`),
  ADD KEY `date_send` (`date_send`),
  ADD KEY `push_send_push` (`id_detail`);

--
-- Indices de la tabla `campaign_fails`
--
ALTER TABLE `campaign_fails`
  ADD KEY `fail_campeing` (`id_campaign`),
  ADD KEY `fail_suscriber` (`id_list`);

--
-- Indices de la tabla `campaign_lists`
--
ALTER TABLE `campaign_lists`
  ADD KEY `list_campaign` (`id_list`),
  ADD KEY `lcampaign_ist` (`id_campaign`),
  ADD KEY `user_campeingl` (`id_user`);

--
-- Indices de la tabla `campaign_send`
--
ALTER TABLE `campaign_send`
  ADD KEY `send_campaing` (`id_campaign`),
  ADD KEY `send_list` (`id_list`),
  ADD KEY `suscribers_list` (`id_subscriber`);

--
-- Indices de la tabla `categories`
--
ALTER TABLE `categories`
  ADD PRIMARY KEY (`id_category`),
  ADD KEY `status_categoria` (`id_status`),
  ADD KEY `user_categoria` (`id_user`);

--
-- Indices de la tabla `countries`
--
ALTER TABLE `countries`
  ADD PRIMARY KEY (`id_country`),
  ADD KEY `iso` (`iso`);

--
-- Indices de la tabla `declaration_health`
--
ALTER TABLE `declaration_health`
  ADD PRIMARY KEY (`id_declaration_health`),
  ADD KEY `user_declaration_sa` (`id_user`),
  ADD KEY `status_declaration_sa` (`id_status`);

--
-- Indices de la tabla `declaration_pathology`
--
ALTER TABLE `declaration_pathology`
  ADD PRIMARY KEY (`id_declaration_pathology`),
  ADD KEY `user_declaratio_pat` (`id_user`),
  ADD KEY `status_declaratio_pat` (`id_status`);

--
-- Indices de la tabla `downloadable_files`
--
ALTER TABLE `downloadable_files`
  ADD PRIMARY KEY (`id_file`),
  ADD KEY `user_file` (`id_user`),
  ADD KEY `status_file` (`id_status`);

--
-- Indices de la tabla `faqs`
--
ALTER TABLE `faqs`
  ADD PRIMARY KEY (`id_faq`),
  ADD KEY `FK_Status_faqs` (`id_status`);

--
-- Indices de la tabla `information`
--
ALTER TABLE `information`
  ADD PRIMARY KEY (`id_information`),
  ADD KEY `user_information` (`id_user`);

--
-- Indices de la tabla `insurances`
--
ALTER TABLE `insurances`
  ADD PRIMARY KEY (`id_insurance`),
  ADD KEY `user_form` (`id_user`),
  ADD KEY `status_form` (`id_status`);

--
-- Indices de la tabla `insurance_beneficiaries`
--
ALTER TABLE `insurance_beneficiaries`
  ADD PRIMARY KEY (`id_beneficiary`),
  ADD KEY `buy_beneficiario` (`id_buy`);

--
-- Indices de la tabla `insurance_buy`
--
ALTER TABLE `insurance_buy`
  ADD PRIMARY KEY (`id_buy`),
  ADD KEY `price_buy` (`id_price`),
  ADD KEY `asesor_buy` (`id_adviser`),
  ADD KEY `status_buy` (`id_status`),
  ADD KEY `from_buy` (`id_insurance`);

--
-- Indices de la tabla `insurance_buy_declaration`
--
ALTER TABLE `insurance_buy_declaration`
  ADD KEY `buy_declaraction` (`id_buy`),
  ADD KEY `declaraction_buy` (`id_declaration_health`);

--
-- Indices de la tabla `insurance_coupons`
--
ALTER TABLE `insurance_coupons`
  ADD PRIMARY KEY (`id_coupon`),
  ADD KEY `user_coupon` (`id_user`),
  ADD KEY `status_coupon` (`id_status`),
  ADD KEY `form_coupon` (`id_insurance`);

--
-- Indices de la tabla `insurance_declaration_health`
--
ALTER TABLE `insurance_declaration_health`
  ADD KEY `user_declaration_u` (`id_user`),
  ADD KEY `form_declaration_u` (`id_insurance`),
  ADD KEY `declaration_declaration_u` (`id_declaration_health`);

--
-- Indices de la tabla `insurance_declaration_pathology`
--
ALTER TABLE `insurance_declaration_pathology`
  ADD KEY `form_declaration_p` (`id_insurance`),
  ADD KEY `declaration_declaration_p` (`id_declaration_pathology`),
  ADD KEY `user_declaration_p` (`id_user`);

--
-- Indices de la tabla `insurance_payment`
--
ALTER TABLE `insurance_payment`
  ADD PRIMARY KEY (`id_payment`),
  ADD KEY `buy_payment` (`id_buy`),
  ADD KEY `term_payment` (`id_term`),
  ADD KEY `cupon_payment` (`id_coupon`);

--
-- Indices de la tabla `insurance_prices`
--
ALTER TABLE `insurance_prices`
  ADD PRIMARY KEY (`id_price`),
  ADD KEY `status_prices` (`id_status`),
  ADD KEY `user_prices` (`id_user`),
  ADD KEY `form_prices` (`id_insurance`);

--
-- Indices de la tabla `insurance_terms`
--
ALTER TABLE `insurance_terms`
  ADD PRIMARY KEY (`id_term`),
  ADD KEY `price_term` (`id_price`),
  ADD KEY `status_term` (`id_status`),
  ADD KEY `user_term` (`id_user`);

--
-- Indices de la tabla `lists`
--
ALTER TABLE `lists`
  ADD PRIMARY KEY (`id_list`),
  ADD KEY `status_list` (`id_status`),
  ADD KEY `user_list` (`id_user`);

--
-- Indices de la tabla `newsletters`
--
ALTER TABLE `newsletters`
  ADD PRIMARY KEY (`id_newsletter`),
  ADD UNIQUE KEY `email_newsletter` (`email_newsletter`);

--
-- Indices de la tabla `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`id_product`),
  ADD KEY `status_product` (`id_status`),
  ADD KEY `user_product` (`id_user`),
  ADD KEY `poliza_product` (`id_insurance`);

--
-- Indices de la tabla `products_files`
--
ALTER TABLE `products_files`
  ADD KEY `products_files` (`id_product`),
  ADD KEY `products_files2` (`id_file`);

--
-- Indices de la tabla `profiles`
--
ALTER TABLE `profiles`
  ADD PRIMARY KEY (`id_profile`);

--
-- Indices de la tabla `quoters`
--
ALTER TABLE `quoters`
  ADD PRIMARY KEY (`id_quoter`),
  ADD KEY `prduc_quoter` (`id_product`);

--
-- Indices de la tabla `sections`
--
ALTER TABLE `sections`
  ADD PRIMARY KEY (`id_section`),
  ADD KEY `status_section` (`id_status`),
  ADD KEY `user_section` (`id_user`);

--
-- Indices de la tabla `services`
--
ALTER TABLE `services`
  ADD PRIMARY KEY (`id_service`),
  ADD KEY `status_service` (`id_status`),
  ADD KEY `user_service` (`id_user`);

--
-- Indices de la tabla `status`
--
ALTER TABLE `status`
  ADD PRIMARY KEY (`id_status`);

--
-- Indices de la tabla `subscribers`
--
ALTER TABLE `subscribers`
  ADD PRIMARY KEY (`id_subscriber`),
  ADD KEY `country_suscriptores` (`id_country`),
  ADD KEY `status_suscriptores` (`id_status`),
  ADD KEY `user_suscriptores` (`id_user`);

--
-- Indices de la tabla `subscriber_lists`
--
ALTER TABLE `subscriber_lists`
  ADD KEY `subscriber_lists` (`id_subscriber`),
  ADD KEY `lists_subscriber` (`id_list`),
  ADD KEY `user_subscriber_lists` (`id_user`);

--
-- Indices de la tabla `tags`
--
ALTER TABLE `tags`
  ADD PRIMARY KEY (`id_tag`),
  ADD KEY `status_tags` (`id_status`),
  ADD KEY `user_tags` (`id_user`);

--
-- Indices de la tabla `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id_user`),
  ADD KEY `status_user` (`id_status`);

--
-- Indices de la tabla `users_permits`
--
ALTER TABLE `users_permits`
  ADD PRIMARY KEY (`id_permit`);

--
-- AUTO_INCREMENT de las tablas volcadas
--

--
-- AUTO_INCREMENT de la tabla `ads`
--
ALTER TABLE `ads`
  MODIFY `id_ads` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `advisers`
--
ALTER TABLE `advisers`
  MODIFY `id_adviser` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT de la tabla `advisers_schedules`
--
ALTER TABLE `advisers_schedules`
  MODIFY `id_schedule` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `agencies`
--
ALTER TABLE `agencies`
  MODIFY `id_agency` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT de la tabla `banners`
--
ALTER TABLE `banners`
  MODIFY `id_banner` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT de la tabla `blogs`
--
ALTER TABLE `blogs`
  MODIFY `id_blog` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `campaigns`
--
ALTER TABLE `campaigns`
  MODIFY `id_campaign` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT de la tabla `campaigns_push`
--
ALTER TABLE `campaigns_push`
  MODIFY `id_push` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT de la tabla `campaigns_push_details`
--
ALTER TABLE `campaigns_push_details`
  MODIFY `id_detail` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;
--
-- AUTO_INCREMENT de la tabla `categories`
--
ALTER TABLE `categories`
  MODIFY `id_category` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `countries`
--
ALTER TABLE `countries`
  MODIFY `id_country` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=241;
--
-- AUTO_INCREMENT de la tabla `declaration_health`
--
ALTER TABLE `declaration_health`
  MODIFY `id_declaration_health` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT de la tabla `declaration_pathology`
--
ALTER TABLE `declaration_pathology`
  MODIFY `id_declaration_pathology` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT de la tabla `downloadable_files`
--
ALTER TABLE `downloadable_files`
  MODIFY `id_file` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT de la tabla `faqs`
--
ALTER TABLE `faqs`
  MODIFY `id_faq` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `information`
--
ALTER TABLE `information`
  MODIFY `id_information` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT de la tabla `insurances`
--
ALTER TABLE `insurances`
  MODIFY `id_insurance` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT de la tabla `insurance_beneficiaries`
--
ALTER TABLE `insurance_beneficiaries`
  MODIFY `id_beneficiary` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT de la tabla `insurance_buy`
--
ALTER TABLE `insurance_buy`
  MODIFY `id_buy` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT de la tabla `insurance_coupons`
--
ALTER TABLE `insurance_coupons`
  MODIFY `id_coupon` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT de la tabla `insurance_payment`
--
ALTER TABLE `insurance_payment`
  MODIFY `id_payment` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT de la tabla `insurance_prices`
--
ALTER TABLE `insurance_prices`
  MODIFY `id_price` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT de la tabla `insurance_terms`
--
ALTER TABLE `insurance_terms`
  MODIFY `id_term` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT de la tabla `lists`
--
ALTER TABLE `lists`
  MODIFY `id_list` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT de la tabla `newsletters`
--
ALTER TABLE `newsletters`
  MODIFY `id_newsletter` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT de la tabla `products`
--
ALTER TABLE `products`
  MODIFY `id_product` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT de la tabla `profiles`
--
ALTER TABLE `profiles`
  MODIFY `id_profile` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT de la tabla `quoters`
--
ALTER TABLE `quoters`
  MODIFY `id_quoter` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `sections`
--
ALTER TABLE `sections`
  MODIFY `id_section` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT de la tabla `services`
--
ALTER TABLE `services`
  MODIFY `id_service` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `status`
--
ALTER TABLE `status`
  MODIFY `id_status` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT de la tabla `subscribers`
--
ALTER TABLE `subscribers`
  MODIFY `id_subscriber` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT de la tabla `tags`
--
ALTER TABLE `tags`
  MODIFY `id_tag` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `users`
--
ALTER TABLE `users`
  MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT de la tabla `users_permits`
--
ALTER TABLE `users_permits`
  MODIFY `id_permit` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- Restricciones para tablas volcadas
--

--
-- Filtros para la tabla `ads`
--
ALTER TABLE `ads`
  ADD CONSTRAINT `status_ads` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_ads` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `advisers`
--
ALTER TABLE `advisers`
  ADD CONSTRAINT `status_adviser` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `advisers_commissions`
--
ALTER TABLE `advisers_commissions`
  ADD CONSTRAINT `adviser comision` FOREIGN KEY (`id_adviser`) REFERENCES `advisers` (`id_adviser`) ON UPDATE CASCADE,
  ADD CONSTRAINT `adviser prouct` FOREIGN KEY (`id_product`) REFERENCES `products` (`id_product`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `advisers_schedules`
--
ALTER TABLE `advisers_schedules`
  ADD CONSTRAINT `adviser_sche` FOREIGN KEY (`id_adviser`) REFERENCES `advisers` (`id_adviser`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Filtros para la tabla `agencies_commissions`
--
ALTER TABLE `agencies_commissions`
  ADD CONSTRAINT `agencies_comission` FOREIGN KEY (`id_agency`) REFERENCES `agencies` (`id_agency`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `product_comission` FOREIGN KEY (`id_product`) REFERENCES `products` (`id_product`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `banners`
--
ALTER TABLE `banners`
  ADD CONSTRAINT `status_banner` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_banner` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `blogs`
--
ALTER TABLE `blogs`
  ADD CONSTRAINT `status_blog` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_blog` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `blog_categories`
--
ALTER TABLE `blog_categories`
  ADD CONSTRAINT `blog_categoria` FOREIGN KEY (`id_blog`) REFERENCES `blogs` (`id_blog`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Filtros para la tabla `blog_tags`
--
ALTER TABLE `blog_tags`
  ADD CONSTRAINT `blog_tags` FOREIGN KEY (`id_blog`) REFERENCES `blogs` (`id_blog`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Filtros para la tabla `campaigns`
--
ALTER TABLE `campaigns`
  ADD CONSTRAINT `status_campaign` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_campaign` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `campaigns_push`
--
ALTER TABLE `campaigns_push`
  ADD CONSTRAINT `status_push` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_push` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `campaigns_push_details`
--
ALTER TABLE `campaigns_push_details`
  ADD CONSTRAINT `push_detalle` FOREIGN KEY (`id_push`) REFERENCES `campaigns_push` (`id_push`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `status_push_detalle` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_push_detalle` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `campaigns_push_fails`
--
ALTER TABLE `campaigns_push_fails`
  ADD CONSTRAINT `lista_fail_push` FOREIGN KEY (`id_list`) REFERENCES `lists` (`id_list`) ON UPDATE CASCADE,
  ADD CONSTRAINT `push_fail_push` FOREIGN KEY (`id_detail`) REFERENCES `campaigns_push_details` (`id_detail`) ON UPDATE CASCADE,
  ADD CONSTRAINT `suscriptor_fail_push` FOREIGN KEY (`id_subscriber`) REFERENCES `subscribers` (`id_subscriber`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_fail_push` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `campaigns_push_lists`
--
ALTER TABLE `campaigns_push_lists`
  ADD CONSTRAINT `lista_push` FOREIGN KEY (`id_list`) REFERENCES `lists` (`id_list`) ON UPDATE CASCADE,
  ADD CONSTRAINT `push_lista` FOREIGN KEY (`id_push`) REFERENCES `campaigns_push` (`id_push`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `user_pushs` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `campaigns_push_send`
--
ALTER TABLE `campaigns_push_send`
  ADD CONSTRAINT `lista_send_push` FOREIGN KEY (`id_list`) REFERENCES `lists` (`id_list`) ON UPDATE CASCADE,
  ADD CONSTRAINT `push_send_push` FOREIGN KEY (`id_detail`) REFERENCES `campaigns_push_details` (`id_detail`) ON UPDATE CASCADE,
  ADD CONSTRAINT `suscriptor_send_push` FOREIGN KEY (`id_subscriber`) REFERENCES `subscribers` (`id_subscriber`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_send_push` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `campaign_fails`
--
ALTER TABLE `campaign_fails`
  ADD CONSTRAINT `fail_campeing` FOREIGN KEY (`id_campaign`) REFERENCES `campaigns` (`id_campaign`) ON UPDATE CASCADE,
  ADD CONSTRAINT `fail_list` FOREIGN KEY (`id_list`) REFERENCES `lists` (`id_list`) ON UPDATE CASCADE,
  ADD CONSTRAINT `fail_suscriber` FOREIGN KEY (`id_list`) REFERENCES `lists` (`id_list`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `campaign_lists`
--
ALTER TABLE `campaign_lists`
  ADD CONSTRAINT `lcampaign_ist` FOREIGN KEY (`id_campaign`) REFERENCES `campaigns` (`id_campaign`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `list_campaign` FOREIGN KEY (`id_list`) REFERENCES `lists` (`id_list`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `user_campeingl` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `campaign_send`
--
ALTER TABLE `campaign_send`
  ADD CONSTRAINT `send_campaing` FOREIGN KEY (`id_campaign`) REFERENCES `campaigns` (`id_campaign`) ON UPDATE CASCADE,
  ADD CONSTRAINT `send_list` FOREIGN KEY (`id_list`) REFERENCES `lists` (`id_list`) ON UPDATE CASCADE,
  ADD CONSTRAINT `suscribers_list` FOREIGN KEY (`id_subscriber`) REFERENCES `subscribers` (`id_subscriber`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `categories`
--
ALTER TABLE `categories`
  ADD CONSTRAINT `status_categoria` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_categoria` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `declaration_health`
--
ALTER TABLE `declaration_health`
  ADD CONSTRAINT `status_declaration_sa` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_declaration_sa` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `declaration_pathology`
--
ALTER TABLE `declaration_pathology`
  ADD CONSTRAINT `status_declaratio_pat` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_declaratio_pat` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `downloadable_files`
--
ALTER TABLE `downloadable_files`
  ADD CONSTRAINT `status_file` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_file` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `faqs`
--
ALTER TABLE `faqs`
  ADD CONSTRAINT `status_faqs` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `information`
--
ALTER TABLE `information`
  ADD CONSTRAINT `user_information` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `insurances`
--
ALTER TABLE `insurances`
  ADD CONSTRAINT `status_form` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_form` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `insurance_beneficiaries`
--
ALTER TABLE `insurance_beneficiaries`
  ADD CONSTRAINT `buy_beneficiario` FOREIGN KEY (`id_buy`) REFERENCES `insurance_buy` (`id_buy`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Filtros para la tabla `insurance_buy`
--
ALTER TABLE `insurance_buy`
  ADD CONSTRAINT `asesor_buy` FOREIGN KEY (`id_adviser`) REFERENCES `advisers` (`id_adviser`),
  ADD CONSTRAINT `from_buy` FOREIGN KEY (`id_insurance`) REFERENCES `insurances` (`id_insurance`) ON UPDATE CASCADE,
  ADD CONSTRAINT `price_buy` FOREIGN KEY (`id_price`) REFERENCES `insurance_prices` (`id_price`),
  ADD CONSTRAINT `status_buy` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `insurance_buy_declaration`
--
ALTER TABLE `insurance_buy_declaration`
  ADD CONSTRAINT `buy_declaraction` FOREIGN KEY (`id_buy`) REFERENCES `insurance_buy` (`id_buy`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `declaraction_buy` FOREIGN KEY (`id_declaration_health`) REFERENCES `declaration_health` (`id_declaration_health`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `insurance_coupons`
--
ALTER TABLE `insurance_coupons`
  ADD CONSTRAINT `form_coupon` FOREIGN KEY (`id_insurance`) REFERENCES `insurances` (`id_insurance`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `status_coupon` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_coupon` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `insurance_declaration_health`
--
ALTER TABLE `insurance_declaration_health`
  ADD CONSTRAINT `declaration_declaration_u` FOREIGN KEY (`id_declaration_health`) REFERENCES `declaration_health` (`id_declaration_health`),
  ADD CONSTRAINT `form_declaration_u` FOREIGN KEY (`id_insurance`) REFERENCES `insurances` (`id_insurance`),
  ADD CONSTRAINT `user_declaration_u` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `insurance_declaration_pathology`
--
ALTER TABLE `insurance_declaration_pathology`
  ADD CONSTRAINT `declaration_declaration_p` FOREIGN KEY (`id_declaration_pathology`) REFERENCES `declaration_pathology` (`id_declaration_pathology`) ON UPDATE CASCADE,
  ADD CONSTRAINT `form_declaration_p` FOREIGN KEY (`id_insurance`) REFERENCES `insurances` (`id_insurance`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `user_declaration_p` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `insurance_payment`
--
ALTER TABLE `insurance_payment`
  ADD CONSTRAINT `buy_payment` FOREIGN KEY (`id_buy`) REFERENCES `insurance_buy` (`id_buy`) ON UPDATE CASCADE,
  ADD CONSTRAINT `cupon_payment` FOREIGN KEY (`id_coupon`) REFERENCES `insurance_coupons` (`id_coupon`),
  ADD CONSTRAINT `term_payment` FOREIGN KEY (`id_term`) REFERENCES `insurance_terms` (`id_term`);

--
-- Filtros para la tabla `insurance_prices`
--
ALTER TABLE `insurance_prices`
  ADD CONSTRAINT `form_prices` FOREIGN KEY (`id_insurance`) REFERENCES `insurances` (`id_insurance`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `status_prices` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_prices` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `insurance_terms`
--
ALTER TABLE `insurance_terms`
  ADD CONSTRAINT `price_term` FOREIGN KEY (`id_price`) REFERENCES `insurance_prices` (`id_price`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `status_term` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_term` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `lists`
--
ALTER TABLE `lists`
  ADD CONSTRAINT `status_list` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_list` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `products`
--
ALTER TABLE `products`
  ADD CONSTRAINT `poliza_product` FOREIGN KEY (`id_insurance`) REFERENCES `insurances` (`id_insurance`) ON UPDATE CASCADE,
  ADD CONSTRAINT `status_product` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_product` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `products_files`
--
ALTER TABLE `products_files`
  ADD CONSTRAINT `products_files` FOREIGN KEY (`id_product`) REFERENCES `products` (`id_product`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `products_files2` FOREIGN KEY (`id_file`) REFERENCES `downloadable_files` (`id_file`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `quoters`
--
ALTER TABLE `quoters`
  ADD CONSTRAINT `prduc_quoter` FOREIGN KEY (`id_product`) REFERENCES `products` (`id_product`);

--
-- Filtros para la tabla `sections`
--
ALTER TABLE `sections`
  ADD CONSTRAINT `status_section` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_section` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `services`
--
ALTER TABLE `services`
  ADD CONSTRAINT `status_service` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_service` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `subscribers`
--
ALTER TABLE `subscribers`
  ADD CONSTRAINT `country_suscriptores` FOREIGN KEY (`id_country`) REFERENCES `countries` (`id_country`) ON UPDATE CASCADE,
  ADD CONSTRAINT `status_suscriptores` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_suscriptores` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `subscriber_lists`
--
ALTER TABLE `subscriber_lists`
  ADD CONSTRAINT `lists_subscriber` FOREIGN KEY (`id_list`) REFERENCES `lists` (`id_list`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `subscriber_lists` FOREIGN KEY (`id_subscriber`) REFERENCES `subscribers` (`id_subscriber`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `user_subscriber_lists` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `tags`
--
ALTER TABLE `tags`
  ADD CONSTRAINT `status_tags` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_tags` FOREIGN KEY (`id_user`) REFERENCES `users` (`id_user`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `status_user` FOREIGN KEY (`id_status`) REFERENCES `status` (`id_status`) ON UPDATE CASCADE;

/*!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 */;
