-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost
-- Tiempo de generación: 22-01-2018 a las 11:56:26
-- Versión del servidor: 5.6.37
-- Versión de PHP: 7.1.13

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

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

--
-- Estructura de tabla para la tabla `Proxium_Inventarios`
--

CREATE TABLE `Proxium_Inventarios` (
  `Id` int(11) NOT NULL,
  `Empresa` varchar(255) COLLATE utf8_spanish_ci NOT NULL,
  `Ejercicio` char(4) COLLATE utf8_spanish_ci NOT NULL,
  `Inventario` char(8) COLLATE utf8_spanish_ci NOT NULL,
  `Usuario` varchar(255) COLLATE utf8_spanish_ci NOT NULL,
  `FechaHora` datetime NOT NULL,
  `Ubicacion` varchar(255) COLLATE utf8_spanish_ci NOT NULL,
  `Contenedor` varchar(255) COLLATE utf8_spanish_ci DEFAULT NULL,
  `Almacen` varchar(255) COLLATE utf8_spanish_ci NOT NULL,
  `Codigo` varchar(255) COLLATE utf8_spanish_ci NOT NULL,
  `Descripcion` varchar(255) COLLATE utf8_spanish_ci DEFAULT NULL,
  `EAN` varchar(13) COLLATE utf8_spanish_ci DEFAULT NULL,
  `DUN` varchar(14) COLLATE utf8_spanish_ci DEFAULT NULL,
  `EmbalajePrimario` int(11) DEFAULT NULL,
  `Lote` varchar(255) COLLATE utf8_spanish_ci DEFAULT NULL,
  `NumeroSerie` varchar(255) COLLATE utf8_spanish_ci DEFAULT NULL,
  `FechaCaducidad` date DEFAULT NULL,
  `Estado` char(1) COLLATE utf8_spanish_ci NOT NULL,
  `Cantidad` decimal(10,2) NOT NULL,
  `Enviado` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;

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

--
-- Estructura de tabla para la tabla `Proxium_PackingList`
--

CREATE TABLE `Proxium_PackingList` (
  `Id` int(11) NOT NULL,
  `NOrden` varchar(20) COLLATE utf8_spanish_ci NOT NULL,
  `Usuario` varchar(10) COLLATE utf8_spanish_ci NOT NULL,
  `Abierta` datetime NOT NULL,
  `Cerrada` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;

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

--
-- Estructura de tabla para la tabla `Proxium_Preparacion`
--

CREATE TABLE `Proxium_Preparacion` (
  `Id` int(11) NOT NULL,
  `NOrden` varchar(20) COLLATE utf8_spanish_ci NOT NULL,
  `Usuario` varchar(10) COLLATE utf8_spanish_ci NOT NULL,
  `Abierta` datetime NOT NULL,
  `Cerrada` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;

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

--
-- Estructura de tabla para la tabla `Proxium_PreparacionCajas`
--

CREATE TABLE `Proxium_PreparacionCajas` (
  `NOrden` varchar(20) COLLATE utf8_spanish_ci NOT NULL,
  `NumCaja` varchar(10) COLLATE utf8_spanish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;

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

--
-- Estructura de tabla para la tabla `Proxium_PreparacionProductos`
--

CREATE TABLE `Proxium_PreparacionProductos` (
  `Id` int(11) NOT NULL,
  `NOrden` varchar(20) COLLATE utf8_spanish_ci NOT NULL,
  `NumCaja` varchar(10) COLLATE utf8_spanish_ci NOT NULL,
  `Codigo` varchar(30) COLLATE utf8_spanish_ci NOT NULL,
  `Descripcion` varchar(255) COLLATE utf8_spanish_ci DEFAULT NULL,
  `Idioma` varchar(10) COLLATE utf8_spanish_ci DEFAULT NULL,
  `Precinta` varchar(30) COLLATE utf8_spanish_ci DEFAULT NULL,
  `Ubicacion` varchar(30) COLLATE utf8_spanish_ci DEFAULT NULL,
  `Contenedor` varchar(30) COLLATE utf8_spanish_ci DEFAULT NULL,
  `Lote` varchar(80) COLLATE utf8_spanish_ci DEFAULT NULL,
  `FechaCaducidad` varchar(8) COLLATE utf8_spanish_ci DEFAULT NULL,
  `NumSerie` varchar(20) COLLATE utf8_spanish_ci DEFAULT NULL,
  `NumEntrada` varchar(20) COLLATE utf8_spanish_ci DEFAULT NULL,
  `LinEntrada` varchar(10) COLLATE utf8_spanish_ci DEFAULT NULL,
  `Cantidad` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;

--
-- Índices para tablas volcadas
--

--
-- Indices de la tabla `Proxium_Inventarios`
--
ALTER TABLE `Proxium_Inventarios`
  ADD PRIMARY KEY (`Id`);

--
-- Indices de la tabla `Proxium_PackingList`
--
ALTER TABLE `Proxium_PackingList`
  ADD PRIMARY KEY (`Id`);

--
-- Indices de la tabla `Proxium_Preparacion`
--
ALTER TABLE `Proxium_Preparacion`
  ADD PRIMARY KEY (`Id`);

--
-- Indices de la tabla `Proxium_PreparacionCajas`
--
ALTER TABLE `Proxium_PreparacionCajas`
  ADD PRIMARY KEY (`NOrden`,`NumCaja`);

--
-- Indices de la tabla `Proxium_PreparacionProductos`
--
ALTER TABLE `Proxium_PreparacionProductos`
  ADD PRIMARY KEY (`Id`);

--
-- AUTO_INCREMENT de las tablas volcadas
--

--
-- AUTO_INCREMENT de la tabla `Proxium_Inventarios`
--
ALTER TABLE `Proxium_Inventarios`
  MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4259;

--
-- AUTO_INCREMENT de la tabla `Proxium_PackingList`
--
ALTER TABLE `Proxium_PackingList`
  MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=97;

--
-- AUTO_INCREMENT de la tabla `Proxium_Preparacion`
--
ALTER TABLE `Proxium_Preparacion`
  MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=667;

--
-- AUTO_INCREMENT de la tabla `Proxium_PreparacionProductos`
--
ALTER TABLE `Proxium_PreparacionProductos`
  MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36550;
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 */;
