-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 09-12-2025 a las 13:54:42
-- Versión del servidor: 10.4.24-MariaDB
-- Versión de PHP: 7.4.29

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


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

--
-- Base de datos: `farmalux_sistema`
--

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

--
-- Estructura de tabla para la tabla `accesos_directos`
--

CREATE TABLE `accesos_directos` (
  `id` int(11) NOT NULL,
  `titulo` varchar(50) NOT NULL,
  `descripcion` varchar(80) NOT NULL,
  `enlace` varchar(100) NOT NULL,
  `imagen` varchar(150) NOT NULL,
  `orden` int(11) NOT NULL,
  `estado` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `accesos_directos` (`id`, `titulo`, `descripcion`, `enlace`, `imagen`, `orden`, `estado`) VALUES
(1, 'Receta Digital', 'Envia tu receta fácil', 'http://localhost/FARMALUX_WEB/receta_digital.php', 'RECETA-DIGITAL.png', 1, 'Activo'),
(2, 'Pide y Pasa', 'Recoge sin esperar', 'http://localhost/FARMALUX_WEB/index.php', 'RECOJO-EN-TIENDA.png', 2, 'Activo'),
(3, 'Conócenos', 'Nuestros servicios', 'http://localhost/FARMALUX_WEB/conocenos.php', 'CONOCENOS.png', 3, 'Activo'),
(4, 'Delivery', 'Entrega en 2 horas', 'http://localhost/FARMALUX_WEB/delivery.php', 'DELIVERY.png', 4, 'Activo'),
(5, 'Salud', 'Medicamentos', 'http://localhost/FARMALUX_WEB/categorias.php?id=2', 'bandera_colombia.webp', 5, 'Activo'),
(6, 'Ofertas', 'Productos en descuento', 'http://localhost/FARMALUX_WEB/categorias.php?id=3', 'OFERTA.png', 6, 'Activo'),
(7, 'Suplementos', 'Vitaminas y minerales', 'http://localhost/FARMALUX_WEB/suplementos.php', 'SUPLEENTOS.png', 7, 'Activo'),
(8, 'Auto Farmacia', 'Recibe sin bajarte', 'http://localhost/FARMALUX_WEB/auto_farmacia.php', '', 8, 'Activo');

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

--
-- Estructura de tabla para la tabla `almacenes`
--

CREATE TABLE `almacenes` (
  `id` int(11) NOT NULL,
  `cant_producto` decimal(10,2) NOT NULL,
  `id_producto` int(11) NOT NULL,
  `codigo_producto` varchar(80) COLLATE latin1_spanish_ci NOT NULL,
  `id_centro_costo` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_spanish_ci;

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

INSERT INTO `almacenes` (`id`, `cant_producto`, `id_producto`, `codigo_producto`, `id_centro_costo`, `created_at`, `updated_at`) VALUES
(1, '0.00', 91, '', 5, '2025-12-08 19:13:41', '2025-12-08 19:13:41'),
(2, '0.00', 92, '', 5, '2025-12-08 19:13:41', '2025-12-08 19:13:41'),
(3, '0.00', 93, '', 5, '2025-12-08 19:13:41', '2025-12-08 19:13:41'),
(4, '0.00', 94, '', 5, '2025-12-08 19:13:41', '2025-12-08 19:13:41'),
(5, '0.00', 95, '', 5, '2025-12-08 19:13:41', '2025-12-08 19:13:41'),
(6, '0.00', 96, '', 5, '2025-12-08 19:13:41', '2025-12-08 19:13:41'),
(8, '0.00', 98, '', 5, '2025-12-08 19:33:15', '2025-12-08 19:33:15');

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

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

CREATE TABLE `banners` (
  `id` int(11) NOT NULL,
  `titulo` varchar(150) NOT NULL,
  `imagen` varchar(100) NOT NULL,
  `titulo_imagen` varchar(80) NOT NULL,
  `alternativo_imagen` varchar(80) NOT NULL,
  `orden` int(11) NOT NULL,
  `estado` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `banners` (`id`, `titulo`, `imagen`, `titulo_imagen`, `alternativo_imagen`, `orden`, `estado`) VALUES
(1, 'Banner 1', '1.jpg', '', '', 1, 'Activo'),
(2, 'Banner 2', '2.jpg', 'Banner 2', 'ALT XHJ', 2, 'Activo'),
(3, 'Banner 3', '3.jpg', 'Banner 3', 'alt banner 3', 3, 'Activo'),
(4, 'Banner 4', '4.jpg', '', '', 4, 'Activo');

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

--
-- Estructura de tabla para la tabla `banners_secundarios`
--

CREATE TABLE `banners_secundarios` (
  `id` int(11) NOT NULL,
  `titulo` varchar(150) NOT NULL,
  `imagen` varchar(150) NOT NULL,
  `titulo_imagen` varchar(80) NOT NULL,
  `alternativo_imagen` varchar(80) NOT NULL,
  `enlace` varchar(200) NOT NULL,
  `orden` int(11) NOT NULL,
  `estado` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `banners_secundarios` (`id`, `titulo`, `imagen`, `titulo_imagen`, `alternativo_imagen`, `enlace`, `orden`, `estado`) VALUES
(1, 'Sistema Musculoesquelético', 'musculo_esqueletico.png', 'Banner Sec 1', 'Alt 1', 'index.php', 0, 'Activo'),
(2, 'Sistema Circulatorio', 'cardiovascular.png', '', 'Alt 2', 'index.php', 1, 'Activo'),
(3, 'Sistema Nervioso', 'nervioso.png', 'Banner Sec 3', '', 'index.php', 2, 'Activo'),
(4, 'Sistema Respiratorio', 'respiratorio.png', '', '', 'index.php', 3, 'Activo'),
(5, 'Sistema Digestivo', 'digestivo.png', '', '', 'index.php', 4, 'Activo');

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

--
-- Estructura de tabla para la tabla `categorias`
--

CREATE TABLE `categorias` (
  `id` int(11) NOT NULL,
  `categoria` varchar(50) NOT NULL,
  `estado` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `categorias` (`id`, `categoria`, `estado`) VALUES
(1, 'BELLEZA', 'Activo'),
(2, 'FARMACOS', 'Activo'),
(3, 'OFERTAS', 'Activo'),
(4, 'SUPLEMENTOS', 'Activo'),
(15, 'Prueba', 'Activo');

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

--
-- Estructura de tabla para la tabla `centros_costo`
--

CREATE TABLE `centros_costo` (
  `id` int(11) NOT NULL,
  `centro_costo` varchar(100) COLLATE latin1_spanish_ci NOT NULL,
  `direccion` varchar(250) COLLATE latin1_spanish_ci NOT NULL,
  `ciudad` varchar(50) COLLATE latin1_spanish_ci NOT NULL,
  `telefono` varchar(15) COLLATE latin1_spanish_ci NOT NULL,
  `horario` varchar(250) COLLATE latin1_spanish_ci NOT NULL,
  `estado` varchar(15) COLLATE latin1_spanish_ci NOT NULL,
  `tipo` varchar(20) COLLATE latin1_spanish_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_spanish_ci;

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

INSERT INTO `centros_costo` (`id`, `centro_costo`, `direccion`, `ciudad`, `telefono`, `horario`, `estado`, `tipo`, `created_at`, `updated_at`) VALUES
(1, 'Central', 'Av Heroinas & Av. Ayacucho', 'Cochabamba', '63636467', 'De Lunes a Sábado de 8 A.M a 10 P.M Domingos & Feriados 8 A.M a 8 P.M', 'Activo', 'Sucursal', '2025-11-27 20:53:22', '2025-12-08 18:53:23'),
(2, 'Sucursal Sud', 'Av 6 de Agosto & Panamericana', 'Cochabamba', '123123213', '', 'Activo', 'Sucursal', '2025-11-27 20:53:22', '2025-12-08 18:53:28'),
(3, 'Sucursal Norte', 'Av America & Beijing', 'Cochabamba', '465754', 'ABIERTO 24 HORAS Todos los días de la semana', 'Activo', 'Sucursal', '2025-11-27 20:53:22', '2025-12-08 18:53:31'),
(4, 'VICTOR USTARIZ', 'Av. Víctor Ustariz & C.Jose Reyes Morles', 'Cochabamba', '7889765544', 'De lunes a Sábado de 8 A.M a 10 P.M\r\nDomingos & Feriados 9 A.M a 9 P.M', 'Activo', 'Sucursal', '2025-11-27 20:53:22', '2025-12-08 18:53:34'),
(5, 'ALMACEN', '', '', '', '', 'Activo', 'Almacen', '2025-12-08 15:26:21', '2025-12-08 18:53:00');

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

--
-- Estructura de tabla para la tabla `clientes`
--

CREATE TABLE `clientes` (
  `id` int(11) NOT NULL,
  `codigo` varchar(80) COLLATE latin1_spanish_ci NOT NULL,
  `nombre_completo` varchar(100) COLLATE latin1_spanish_ci NOT NULL,
  `razon_social` varchar(100) COLLATE latin1_spanish_ci NOT NULL,
  `tipo_documento` varchar(10) COLLATE latin1_spanish_ci NOT NULL,
  `nro_documento` varchar(50) COLLATE latin1_spanish_ci NOT NULL,
  `fecha_nacimiento` date DEFAULT NULL,
  `celular` varchar(50) COLLATE latin1_spanish_ci NOT NULL,
  `email` varchar(50) COLLATE latin1_spanish_ci NOT NULL,
  `direccion` varchar(250) COLLATE latin1_spanish_ci NOT NULL,
  `departamento` varchar(50) COLLATE latin1_spanish_ci NOT NULL,
  `provincia` varchar(80) COLLATE latin1_spanish_ci NOT NULL,
  `estado` varchar(30) COLLATE latin1_spanish_ci NOT NULL,
  `id_suscriptor` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_spanish_ci;

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

INSERT INTO `clientes` (`id`, `codigo`, `nombre_completo`, `razon_social`, `tipo_documento`, `nro_documento`, `fecha_nacimiento`, `celular`, `email`, `direccion`, `departamento`, `provincia`, `estado`, `id_suscriptor`, `created_at`, `updated_at`) VALUES
(3, 'CL1', 'John Doe', 'JOHN 1111', 'ci', '12', '2025-11-25', '76461885', '', '', '', '', 'Activo', 1, NULL, '2025-12-05 19:38:59'),
(4, 'CL2', 'Juan Rojas', 'sdfdsfdsfds', 'NIT', '65895217', '2025-11-19', '75585565', 'user@gmail.com', '', 'COCHABAMBA', 'Cliza', 'Activo', 20, '2025-11-24 14:30:00', '2025-11-28 18:50:39');

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

--
-- Estructura de tabla para la tabla `cod_movimientos_registros`
--

CREATE TABLE `cod_movimientos_registros` (
  `id` int(11) NOT NULL,
  `tipo` varchar(50) NOT NULL,
  `cod` int(11) NOT NULL,
  `gestion` varchar(10) NOT NULL,
  `id_centro_costo` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estructura de tabla para la tabla `departamentos`
--

CREATE TABLE `departamentos` (
  `id` int(11) NOT NULL,
  `nombre` varchar(100) NOT NULL,
  `estado` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `departamentos` (`id`, `nombre`, `estado`) VALUES
(1, 'COCHABAMBA', 'Activo'),
(2, 'SANTA CRUZ', 'Activo'),
(3, 'LA PAZ', 'Activo'),
(4, 'ORURO', 'Activo'),
(5, 'POTOSI', 'Activo'),
(6, 'PANDO', 'Activo'),
(7, 'BENI', 'Activo'),
(8, 'CHUQUISACA', 'Activo'),
(9, 'TARIJA', 'Activo');

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

--
-- Estructura de tabla para la tabla `laboratorios`
--

CREATE TABLE `laboratorios` (
  `id` int(11) NOT NULL,
  `laboratorio` varchar(50) NOT NULL,
  `estado` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `laboratorios` (`id`, `laboratorio`, `estado`) VALUES
(1, 'Laboratorio 1', 'Activo'),
(3, 'Laboratorio 2', 'Activo');

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

--
-- Estructura de tabla para la tabla `libro_ventas`
--

CREATE TABLE `libro_ventas` (
  `id` int(11) NOT NULL,
  `cantidad` decimal(10,2) NOT NULL,
  `precio_unitario` decimal(10,2) NOT NULL,
  `precio_unitario_desc` decimal(10,2) NOT NULL,
  `precio_subtotal` decimal(10,2) NOT NULL,
  `descuento_producto` decimal(10,2) NOT NULL,
  `precio_subtotal_desc` decimal(10,2) NOT NULL,
  `id_producto` int(11) NOT NULL,
  `id_venta` int(11) NOT NULL,
  `id_centro_costo` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estructura de tabla para la tabla `personal`
--

CREATE TABLE `personal` (
  `id` int(11) NOT NULL,
  `codigo` varchar(30) COLLATE latin1_spanish_ci NOT NULL,
  `nombres` varchar(50) COLLATE latin1_spanish_ci NOT NULL,
  `telefono` varchar(15) COLLATE latin1_spanish_ci NOT NULL,
  `celular` varchar(15) COLLATE latin1_spanish_ci NOT NULL,
  `email` varchar(50) COLLATE latin1_spanish_ci NOT NULL,
  `direccion` varchar(50) COLLATE latin1_spanish_ci NOT NULL,
  `area` varchar(50) COLLATE latin1_spanish_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_spanish_ci;

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

INSERT INTO `personal` (`id`, `codigo`, `nombres`, `telefono`, `celular`, `email`, `direccion`, `area`, `created_at`, `updated_at`) VALUES
(1, 'USR1', 'Jhon Doe', '43536546', '77565043', 'ejemplo@gmail.com', 'AV America', 'ADMINISTRACION', '2025-11-27 20:54:08', '2025-11-27 20:54:08');

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

--
-- Estructura de tabla para la tabla `productos`
--

CREATE TABLE `productos` (
  `id` int(11) NOT NULL,
  `codigo` varchar(80) NOT NULL,
  `codigo_barras` varchar(80) NOT NULL,
  `nombre_web` varchar(250) NOT NULL,
  `nombre_comercial` varchar(250) NOT NULL,
  `nombre_sistema` varchar(150) NOT NULL,
  `principio_activo` varchar(250) NOT NULL,
  `accion_terapeutica` varchar(150) NOT NULL,
  `categoria` varchar(150) NOT NULL,
  `sub_categoria` varchar(100) NOT NULL,
  `concentracion` varchar(150) NOT NULL,
  `presentacion` varchar(150) NOT NULL,
  `forma_farmaceutica` varchar(150) NOT NULL,
  `laboratorio` varchar(150) NOT NULL,
  `caracteristicas` varchar(150) NOT NULL,
  `beneficios` varchar(150) NOT NULL,
  `precio_regular` decimal(10,2) NOT NULL,
  `precio_oferta` decimal(10,2) NOT NULL,
  `descuento` decimal(10,2) NOT NULL,
  `estado` varchar(20) NOT NULL,
  `id_categoria` int(11) NOT NULL,
  `id_sub_categoria` int(11) NOT NULL,
  `id_laboratorio` int(11) NOT NULL,
  `id_seccion` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `productos` (`id`, `codigo`, `codigo_barras`, `nombre_web`, `nombre_comercial`, `nombre_sistema`, `principio_activo`, `accion_terapeutica`, `categoria`, `sub_categoria`, `concentracion`, `presentacion`, `forma_farmaceutica`, `laboratorio`, `caracteristicas`, `beneficios`, `precio_regular`, `precio_oferta`, `descuento`, `estado`, `id_categoria`, `id_sub_categoria`, `id_laboratorio`, `id_seccion`, `created_at`, `updated_at`) VALUES
(1, 'PROD1', '123', 'Heliocare 360 Protector Solar Spf50 Gel Oil Free X 50Ml', 'Heliocare 360 Gel Oil Free', '', 'Fotoprotector Spf50', 'Fotoprotector Spf50', 'BELLEZA', '', '50 ML', 'TUBO', '', 'Cantabria Labs', '', '', '335.00', '300.00', '35.00', 'Activo', 1, 0, 0, 1, '2025-11-27 20:51:44', '2025-12-08 15:07:25'),
(2, '', '', 'Heliocare 360 Protector Solar Spf50 Water Gel X 50Ml', 'Heliocare 360 Water Gel', '', 'Fotoprotector Spf50', '', 'BELLEZA', '', '50 ML', 'TUBO', '', 'Cantabria Labs', '', '', '332.00', '0.00', '0.00', 'Activo', 1, 0, 0, 2, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(3, '', '', 'Crema Facial Sesderma Sesgen 32 X 50Ml', 'Sesgen 32', '', 'Crema Facial', '', 'BELLEZA', '', '50 ML', 'FRASCO', '', 'SESDERMA', '', '', '350.00', '0.00', '0.00', 'Activo', 1, 0, 0, 2, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(4, '', '', 'Espuma Limpiadora Facial Vita Rosa X 150Ml', 'Carla Lorena Espuma Facial', '', 'Espuma de limpieza facial', '', 'BELLEZA', '', '150 ML', 'FRASCO', '', 'VITA', '', '', '167.40', '0.00', '0.00', 'Activo', 1, 0, 0, 3, '2025-11-27 20:51:44', '2025-12-08 15:05:09'),
(5, '', '', 'Betarretin H Crema Tretinoina 0.05 Y Hidroquinona 0.04 X 30G', 'Betarretin H', '', 'Tretinoina 0.05 Y Hidroquinona 0.04', '', 'BELLEZA', '', '30G', 'TUBO', '', 'MEGALABS', '', '', '210.00', '0.00', '0.00', 'Activo', 1, 0, 0, 1, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(6, '', '', 'Betarretin Crema Tretinoina 0.05 X 30G', 'Betarretin 0.05%', '', 'Tretinoina 0.05', '', 'BELLEZA', '', '30G', 'TUBO', '', 'MEGALABS', '', '', '199.00', '0.00', '0.00', 'Activo', 1, 0, 0, 2, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(7, '', '', 'Betarretin Gel Tretinoina 0.025 X 30G', 'Betarretin 0.025%', '', 'Tretinoina 0.025', '', 'BELLEZA', '', '30G', 'TUBO', '', 'MEGALABS', '', '', '188.00', '0.00', '0.00', 'Activo', 1, 0, 0, 3, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(8, '', '', 'MEBIDOX 600 MG. CAJA X 30 CAP., INTI, CAJA', 'MEBIDOX', '', 'IBUPROFENO', '', 'FARMACOS', '', '600 MG', 'CAPSULA BLANDA', '', 'INTI', '', '', '4.50', '0.00', '0.00', 'Inactivo', 2, 0, 0, 2, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(9, '', '', 'QUETOROL 30 MG. CAJA X 10 TAB. SL, INTI', 'QUETOROL', '', 'KETOROLACO TROMETAMINA', '', 'FARMACOS', '', '30 MG', 'TABLETA SUBLINGUAL', '', 'INTI', '', '', '4.30', '0.00', '0.00', 'Inactivo', 2, 0, 0, 0, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(10, '', '', 'COMPLEJO B-VIMIN INTI ', 'COMPLEJO B VIMIN', '', 'VITAMINAS B1,B2,B3,B6,B7,B12, INOSITOL', '', 'FARMACOS', '', '1 MG', 'TABLETA RECUBIERTA', '', 'INTI', '', '', '1.30', '0.00', '0.00', 'Activo', 2, 0, 0, 1, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(11, '', '', 'ABRILAR MENTOLADO JBE. FRASCO X 100 ML, ROEMMERS,', 'ABRILAR', '', 'HEDERA HELIX', '', 'FARMACOS', '', '0.7 MG', 'JARABE', '', 'MEGALABS', '', '', '85.00', '0.00', '0.00', 'Activo', 2, 0, 0, 1, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(12, '', '', 'ULCOZOL 20 OMEPRAZOL  20 MG. CAJA X 20 CAPS., BAGO ', 'ULCOZOL 20', '', 'OMEPRAZOL', '', 'FARMACOS', '', '20 MG', 'CAJA X 20 BLISTERES', '', 'BAGO', '', '', '6.50', '0.00', '0.00', 'Activo', 2, 0, 0, 2, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(13, 'kljhgg', '123123213', 'Ejemplo', 'TEST', '', '', '', '', 'Sub Categoria 1', '', '', '', 'VALENCIA', '', '', '0.00', '0.00', '0.00', '', 1, 1, 0, 0, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(14, '', '', 'Protector Labial Lipstick Spf30 Con Vitamina E', 'Lipstick Portugal Spf30', '', 'Protector Labial Spf30 Con Vitamina E', '', 'OFERTAS', '', '5G', 'BARRA', '', 'PORTUGAL', '', '', '30.00', '27.00', '10.00', 'Inactivo', 3, 0, 0, 0, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(15, '', '', 'Leche Corporal Carla Lorena Almendras X 300ML', 'Leche Corporal Carla Lorena Almend', '', 'Leche Corporal', '', 'OFERTAS', '', '300ML', 'FRASCO', '', 'VITA', '', '', '87.00', '51.30', '10.00', 'Inactivo', 3, 0, 0, 0, '2025-11-27 20:51:44', '2025-11-27 20:51:44'),
(16, '', '', 'Betacaroteno 25000Ui X 100 Capsulas', 'Betacaroteno', '', 'Vitamina A', '', 'OFERTAS', '', '25000 Ul', 'FRASCO X 100 Capsulas', '', 'TERBOL', '', '', '157.00', '109.90', '30.00', 'Activo', 3, 13, 0, 2, '2025-11-27 20:51:44', '2025-11-28 20:31:01'),
(17, '', '', 'Glucerna Vainilla X 850G', 'Glucerna Vainilla', '', 'Suplemento Alimenticio', '', 'OFERTAS', '', '850g', 'LATA', '', 'ABBOTT', '', '', '463.00', '370.40', '20.00', 'Activo', 3, 13, 0, 2, '2025-11-27 20:51:44', '2025-12-08 15:06:52'),
(18, '2233', '3322', 'Ensure Advance Vainilla X 850G', 'Ensure Advance Vainilla', '', 'Suplemento Alimenticio', 'Suplemento Alimenticio', 'OFERTAS', '', '850g', 'LATA', '', 'ABBOTT', '', '', '463.00', '370.40', '20.00', 'Activo', 3, 0, 0, 2, '2025-11-27 20:51:44', '2025-12-08 15:07:00'),
(19, '', '', 'Desodorante Antitranspirante Dr Bell Talco X 75', 'Dr. Bell Talco', '', 'Desodorante Antitranspirante', '', 'OFERTAS', '', '75g', 'FRASCO', '', 'SAE', '', '', '66.00', '59.40', '10.00', 'Activo', 3, 13, 0, 0, '2025-11-27 20:51:44', '2025-12-08 18:33:55'),
(20, '', '', 'Full Spectrum Prenatal X Capsula Blanda', 'Full Espectrum Prenatal', '', 'Multivitaminas', '', 'OFERTAS', '', '', 'CAJA X30 CAP. BLANDAS', '', 'TERBOL', '', '', '140.00', '98.00', '30.00', 'Activo', 3, 13, 0, 0, '2025-11-27 20:51:44', '2025-11-28 20:30:58'),
(21, '', '', 'Efervescentes Biomagnes Magnesio / Zinc X 30', 'Biomagnes Limon', '', 'Citrato De Magnesio / Zinc', '', 'OFERTAS', '', '', 'CAJA X33 SOBRES', '', 'PORTUGAL', '', '', '1815.00', '1361.25', '25.00', 'Activo', 3, 0, 0, 0, '2025-11-27 20:51:44', '2025-11-28 12:18:40'),
(22, '12', '6666', 'Espirulina X 169 com', 'Espirulina Alga', '', 'Espirulina (Spirulina maxima) en polvo 0.4g', 'Espirulina (Spirulina maxima) en polvo 0.4g', 'OFERTAS', '', '0.4g', 'FRASCO X 169 COMPRIMIDOS', '', 'FELIU', '', '', '220.00', '195.80', '11.00', 'Activo', 3, 0, 0, 3, '2025-11-27 20:51:44', '2025-12-08 15:04:20'),
(23, '', '', 'BALLENA AZUL EMULSION X 450 ML CEREYA', 'BALLENA AZUL Sabor Cereza', '', 'Vitamina A, E, B1 y Fluor', '', 'SUPLEMENTOS', '', '450 ML', 'FRASCO', '', 'BALLENA AZUL', '', '', '112.00', '0.00', '0.00', 'Activo', 4, 8, 0, 0, '2025-11-27 20:51:44', '2025-12-08 18:33:54'),
(24, 'dddd', '122222', 'BALLENA AZUL EMULSION X 200 ML CEREYA', 'BALLENA AZUL Sabor Cereza', '', 'Vitamina A, E, B1 y Fluor', 'Vitamina A, E, B1 y Fluor', 'SUPLEMENTOS', 'Sub Categoria Suplementos 1', '200 ML', 'FRASCO', '', 'BALLENA AZUL', '', '', '112.00', '0.00', '0.00', 'Activo', 4, 7, 0, 3, '2025-11-27 20:51:44', '2025-12-08 15:05:06'),
(25, '', '', 'Pym Junior Sabor A Chocolate X 360G', 'Pym Junior Sabor Chocolate', '', 'SUPLEMENTO ALIMENTICIO', '', 'SUPLEMENTOS', '', '360G', 'FRASCO', '', 'HERSIL', '', '', '112.00', '0.00', '0.00', 'Activo', 4, 7, 0, 3, '2025-11-27 20:51:44', '2025-11-28 20:30:02'),
(26, '123123123', '12312312321', 'Ovoprotein Proteina Sabor Vainilla X 960G', 'Ovoprotein Sabor Vainilla', '', 'PROTEINA', 'PROTEINA', 'BELLEZA', 'Sub Categoria A', '960G', 'FRASCO', '', 'OVOPLUS', '', '', '112.00', '0.00', '0.00', 'Activo', 1, 9, 1, 3, '2025-11-27 20:51:44', '2025-11-28 20:30:17'),
(28, '123', '123123', 'Espirulina X 160 comprimidos', 'Espirulina', '', 'SPIRULINA', 'SPIRULINA', 'SUPLEMENTOS', 'Sub Categoria Suplementos 1', '160 comprimidos', 'FRASCO', '', 'ANA MARIA LAJUSTICIA', '', '', '112.00', '0.00', '0.00', 'Activo', 4, 7, 0, 0, '2025-11-27 20:51:44', '2025-12-08 18:33:57'),
(91, 'a1', 'b1', 'Ovoprotein Proteina Sabor Vainilla X 960G', 'Ovoprotein Sabor Vainilla', '', 'PROTEINA', 'PROTEINA', 'BELLEZA', 'Sub Categoria A', '960G', 'FRASCO', '', '', '', '', '112.00', '0.00', '0.00', 'Activo', 1, 9, 0, 0, '2025-12-08 19:13:41', '2025-12-08 19:13:41'),
(92, 'a2', 'b2', 'Pym Junior Sabor A Chocolate X 360G', 'Pym Junior Sabor Chocolate', '', 'SUPLEMENTO ALIMENTICIO', '', 'SUPLEMENTOS', '', '360G', 'FRASCO', '', '', '', '', '112.00', '0.00', '0.00', 'Activo', 4, 0, 0, 0, '2025-12-08 19:13:41', '2025-12-08 19:13:41'),
(93, 'a3', 'b3', 'BALLENA AZUL EMULSION X 200 ML CEREYA', 'BALLENA AZUL Sabor Cereza', '', 'Vitamina A, E, B1 y Fluor', '', 'SUPLEMENTOS', '', '200 ML', 'FRASCO', '', '', '', '', '112.00', '0.00', '0.00', 'Activo', 4, 0, 0, 0, '2025-12-08 19:13:41', '2025-12-08 19:13:41'),
(94, 'a4', 'b4', 'Espirulina X 169 com', 'Espirulina Alga', '', 'Espirulina (Spirulina maxima) en polvo 0.4g', '', 'OFERTAS', '', '0.4g', 'FRASCO X 169 COMPRIMIDOS', '', '', '', '', '220.00', '0.00', '0.00', 'Activo', 3, 0, 0, 0, '2025-12-08 19:13:41', '2025-12-08 19:13:41'),
(95, 'a5', 'b5', 'Betarretin Gel Tretinoina 0.025 X 30G', 'Betarretin 0.025%', '', 'Tretinoina 0.025', '', 'BELLEZA', '', '30G', 'TUBO', '', '', '', '', '188.00', '0.00', '0.00', 'Activo', 1, 0, 0, 0, '2025-12-08 19:13:41', '2025-12-08 19:13:41'),
(96, 'a6', 'b6', 'Espuma Limpiadora Facial Vita Rosa X 150Ml', 'Carla Lorena Espuma Facial', '', 'Espuma de limpieza facial', '', 'BELLEZA', '', '150 ML', 'FRASCO', '', '', '', '', '167.40', '0.00', '0.00', 'Activo', 1, 0, 0, 0, '2025-12-08 19:13:41', '2025-12-08 19:13:41');

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

--
-- Estructura de tabla para la tabla `productos_imagenes`
--

CREATE TABLE `productos_imagenes` (
  `id` int(11) NOT NULL,
  `imagen` varchar(150) NOT NULL,
  `titulo` varchar(100) NOT NULL,
  `alternativo` varchar(150) NOT NULL,
  `estado` varchar(20) NOT NULL,
  `id_producto` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `productos_imagenes` (`id`, `imagen`, `titulo`, `alternativo`, `estado`, `id_producto`) VALUES
(1, 'prod1.png', 'Imagen Producto 1', 'Imagen Prod 31', 'Activo', 1),
(2, 'prod2.png', '', '', 'Activo', 1),
(3, 'prod3.png', '', '', 'Activo', 2),
(4, 'prod4.png', 'Titulo 1A', 'Alt 1A', 'Activo', 3),
(5, 'prod4_1.png', 'Titulo ABCD', 'Alt ABCD', 'Activo', 3),
(124, 'prod2.png', '', '', 'Activo', 54),
(125, 'prod3.png', '', '', 'Activo', 54),
(126, 'prod4.png', '', '', 'Activo', 54),
(130, 'bandera_colombia.webp', 'Titulo 1', 'Text Alt 1', 'Activo', 69),
(131, 'no_image_johns.png', 'Titulo 2', 'Text Alt 2', 'Activo', 69),
(136, 'logo_casaphone_h.png', '', '', 'Activo', 71),
(137, 'logo_base.jpeg', '', '', 'Activo', 71),
(138, 'no_image_johns.png', '', '', 'Activo', 71),
(167, 'bandera_colombia.webp', 'Titulo 1', 'Text Alt 1', 'Activo', 1),
(168, 'no_image_johns.png', 'Titulo 2', 'Text Alt 2', 'Activo', 1),
(174, 'logo_casaphone.png', 'qwe', '2222', 'Activo', 73),
(175, 'logo_casaphone_h.png', '', '', 'Activo', 73),
(176, 'logo_base.jpeg', 'Audifonos', 'Audifonos Alt', 'Activo', 73),
(177, 'no_image_johns.png', '', '', 'Activo', 73),
(178, 'prod_default.png', '', '', 'Activo', 73),
(179, 'logo_casaphone.png', '', '', 'Activo', 73),
(180, 'wp_logo.png', '', '', 'Activo', 73),
(181, 'btn.png', '', '', 'Activo', 73),
(182, 'btn.png', '', '', 'Activo', 73),
(183, 'logo_cocha_house.png', '', '', 'Activo', 73),
(184, 'istockphoto-1220752009-1024x1024.jpg', '', '', 'Activo', 73),
(185, 'bandera_bolivia.png', 'ABC', 'DEF', 'Activo', 74),
(186, 'logo_johns-removebg-preview.png', 'joghns', 'sdsadfsf', 'Activo', 75),
(187, 'johns_logo.jpg', 'bnm', 'mnm', 'Activo', 5),
(188, 'fondo_johns_grande.png', '234234', '33444', 'Activo', 75),
(196, 'logo_base.jpeg', '2', '', 'Activo', 78);

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

--
-- Estructura de tabla para la tabla `secciones`
--

CREATE TABLE `secciones` (
  `id` int(11) NOT NULL,
  `seccion` varchar(250) NOT NULL,
  `estado` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `secciones` (`id`, `seccion`, `estado`) VALUES
(1, 'Ofertas Especiales', 'Activo'),
(2, 'Productos Destacados', 'Activo'),
(3, 'Belleza y Cuidado Personal', 'Activo');

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

--
-- Estructura de tabla para la tabla `sub_categorias`
--

CREATE TABLE `sub_categorias` (
  `id` int(11) NOT NULL,
  `sub_categoria` varchar(50) NOT NULL,
  `estado` varchar(20) NOT NULL,
  `id_categoria` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `sub_categorias` (`id`, `sub_categoria`, `estado`, `id_categoria`) VALUES
(1, 'Sub Categoria 1', 'Activo', 1),
(4, 'Sub Categoria 2', 'Activo', 1),
(5, 'Sub Categoria 3', 'Activo', 2),
(7, 'Sub Categoria Suplementos 1', 'Activo', 4),
(8, 'Sub Categoria Suplementos 2', 'Activo', 4),
(9, 'Sub Categoria A', 'Activo', 1),
(10, 'Sub Categoria B', 'Activo', 1),
(11, 'Sub Categoria C', 'Activo', 1),
(12, 'Sub Categoria D', 'Activo', 1),
(13, 'Sub Categoria X', 'Activo', 3),
(14, 'Sub Categoria Y', 'Activo', 2);

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

--
-- Estructura de tabla para la tabla `sucursales_informacion`
--

CREATE TABLE `sucursales_informacion` (
  `id` int(11) NOT NULL,
  `sucursal` varchar(100) NOT NULL,
  `direccion` varchar(150) NOT NULL,
  `orden` int(11) NOT NULL,
  `estado` varchar(15) NOT NULL,
  `ubicacion` varchar(150) NOT NULL,
  `horario_atencion` varchar(150) NOT NULL,
  `celular` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `sucursales_informacion` (`id`, `sucursal`, `direccion`, `orden`, `estado`, `ubicacion`, `horario_atencion`, `celular`) VALUES
(1, 'Central', 'Av Heroinas & Av. Ayacucho', 5, 'Activo', '', 'De Lunes a Sábado de 8 A.M a 10 P.M Domingos & Feriados 8 A.M a 8 P.M', '63636467'),
(5, 'Sucursal Sud', 'Av 6 de Agosto & Panamericana', 1, 'Activo', '', '', '123123213'),
(6, 'Sucursal Norte', 'Av America & Beijing', 2, 'Activo', '', 'ABIERTO 24 HORAS Todos los días de la semana', '465754'),
(10, 'Central 2', 'Av America esq Beijing', 3, 'Activo', '', '', '5663340540'),
(12, 'VICTOR USTARIZ', 'Av. Víctor Ustariz & C.Jose Reyes Morles', 4, 'Activo', '', 'De lunes a Sábado de 8 A.M a 10 P.M Domingos & Feriados 9 A.M a 9 P.M', '7889765544');

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

--
-- Estructura de tabla para la tabla `suscriptores`
--

CREATE TABLE `suscriptores` (
  `id` int(11) NOT NULL,
  `nombre_completo` varchar(100) NOT NULL,
  `email` varchar(100) NOT NULL,
  `contrasena` varchar(100) NOT NULL,
  `fecha_actualizacion_contrasena` datetime DEFAULT NULL,
  `fecha_nacimiento` date DEFAULT NULL,
  `celular` varchar(15) NOT NULL,
  `estado` varchar(20) NOT NULL,
  `habilitar_notificaciones` varchar(5) NOT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `suscriptores` (`id`, `nombre_completo`, `email`, `contrasena`, `fecha_actualizacion_contrasena`, `fecha_nacimiento`, `celular`, `estado`, `habilitar_notificaciones`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'John Doe', 'admin@gmail.com', '123', '2025-12-08 14:22:05', NULL, '76461885', 'Activo', 'No', NULL, '2025-12-08 18:22:21', '2025-12-08 16:04:30'),
(20, 'Juan Rojas', 'user@gmail.com', '123', NULL, NULL, '', 'Inactivo', '', '2025-11-24 14:29:12', '2025-12-05 13:20:39', NULL),
(36, 'Lucy Qasd', '123@gmail.com', '123', NULL, '2025-11-26', '', 'Eliminado', '', '2025-12-05 13:15:12', '2025-12-05 13:51:25', '2025-12-05 13:17:48');

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

--
-- Estructura de tabla para la tabla `usuarios`
--

CREATE TABLE `usuarios` (
  `id` int(11) NOT NULL,
  `usuario` varchar(50) NOT NULL,
  `contrasena` varchar(50) NOT NULL,
  `nivel_acceso` varchar(50) NOT NULL,
  `estado` varchar(30) NOT NULL,
  `id_personal` int(11) NOT NULL,
  `id_centro_costo` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `usuarios` (`id`, `usuario`, `contrasena`, `nivel_acceso`, `estado`, `id_personal`, `id_centro_costo`, `created_at`, `updated_at`) VALUES
(1, 'admin', '123', 'SUPER ADMINISTRADOR', 'Activo', 1, 1, '2025-11-27 21:22:13', '2025-11-27 21:22:13');

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

--
-- Estructura de tabla para la tabla `ventas`
--

CREATE TABLE `ventas` (
  `id` int(11) NOT NULL,
  `nro_orden` varchar(80) NOT NULL,
  `gestion` varchar(15) NOT NULL,
  `fecha` date NOT NULL,
  `hora` time NOT NULL,
  `forma_pago` varchar(100) NOT NULL,
  `forma_entrega` varchar(50) NOT NULL,
  `tipo_doc` varchar(30) NOT NULL,
  `nro_doc` varchar(30) NOT NULL,
  `metodo_pago` varchar(30) NOT NULL,
  `total_con_descuento` decimal(10,2) NOT NULL,
  `total_sin_descuento` decimal(10,2) NOT NULL,
  `descuento` decimal(10,2) NOT NULL,
  `observaciones` varchar(200) NOT NULL,
  `estado_pago` varchar(30) NOT NULL,
  `estado` varchar(17) NOT NULL,
  `id_encargado_venta` int(11) NOT NULL,
  `id_personal` int(11) NOT NULL,
  `id_cliente` int(11) NOT NULL,
  `id_centro_costo` int(11) NOT NULL,
  `created_at` int(11) NOT NULL,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estructura de tabla para la tabla `ventas_cliente`
--

CREATE TABLE `ventas_cliente` (
  `id` int(11) NOT NULL,
  `nombre_completo` varchar(150) NOT NULL,
  `email` varchar(50) NOT NULL,
  `celular` varchar(50) NOT NULL,
  `id_venta` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estructura de tabla para la tabla `ventas_entrega`
--

CREATE TABLE `ventas_entrega` (
  `id` int(11) NOT NULL,
  `departamento` varchar(50) NOT NULL,
  `zona` varchar(80) NOT NULL,
  `direccion_exacta` varchar(120) NOT NULL,
  `latitud` varchar(20) NOT NULL,
  `longitud` varchar(20) NOT NULL,
  `notas_entrega` varchar(150) NOT NULL,
  `id_venta` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estructura de tabla para la tabla `ventas_facturacion`
--

CREATE TABLE `ventas_facturacion` (
  `id` int(11) NOT NULL,
  `nombre_factura` varchar(120) NOT NULL,
  `nit` varchar(50) NOT NULL,
  `id_venta` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estructura de tabla para la tabla `venta_historial_estados`
--

CREATE TABLE `venta_historial_estados` (
  `id` int(11) NOT NULL,
  `fecha_hora_modificacion` datetime NOT NULL,
  `estado` varchar(50) NOT NULL,
  `observaciones` varchar(200) NOT NULL,
  `id_encargado` int(11) NOT NULL,
  `id_venta` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estructura de tabla para la tabla `zonas`
--

CREATE TABLE `zonas` (
  `id` int(11) NOT NULL,
  `nombre` varchar(100) NOT NULL,
  `estado` varchar(30) NOT NULL,
  `id_departamento` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `zonas` (`id`, `nombre`, `estado`, `id_departamento`) VALUES
(1, 'Cala Cala', 'Activo', 1),
(2, 'Sarcobamba', 'Activo', 1),
(3, 'Queru Queru', 'Activo', 1),
(4, 'Muyurina', 'Activo', 1),
(5, 'Valle Hermoso', 'Activo', 1),
(6, 'Uspha Uspha', 'Activo', 1),
(7, 'Coña Coña', 'Activo', 1),
(8, 'Hipódromo', 'Activo', 1),
(9, 'Tupuraya', 'Activo', 1);

--
-- Índices para tablas volcadas
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT de las tablas volcadas
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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