Está en la página 1de 2

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";

SET time_zone = "+00:00";


--- Base de datos: `chocolates`
--- ---------------------------------------------------------- Estructura de tabla para la tabla `chocolate_nsvd`
-CREATE TABLE IF NOT EXISTS `chocolate_nsvd` (
`cod_chocolate_NSVD` int(30) NOT NULL DEFAULT '0',
`direccion` varchar(20) DEFAULT NULL,
`telefono` int(10) DEFAULT NULL,
`productos` varchar(30) DEFAULT NULL,
`distribuidor` char(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ---------------------------------------------------------- Estructura de tabla para la tabla `empleados`
-CREATE TABLE IF NOT EXISTS `empleados` (
`cod_empleados` int(20) NOT NULL DEFAULT '0',
`id` int(20) DEFAULT NULL,
`nombre` char(10) DEFAULT NULL,
`apellido` char(10) DEFAULT NULL,
`fecha_nacimiento` int(30) DEFAULT NULL,
`oficio` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ---------------------------------------------------------- Estructura de tabla para la tabla `empresa`
-CREATE TABLE IF NOT EXISTS `empresa` (
`cod_mat_prima` int(20) NOT NULL DEFAULT '0',
`ind` int(20) DEFAULT NULL,
`cantidad` int(20) DEFAULT NULL,
`tectura` varchar(20) DEFAULT NULL,
`importada` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ---------------------------------------------------------- Estructura de tabla para la tabla `personal_admin`
-CREATE TABLE IF NOT EXISTS `personal_admin` (
`cod_personal_admin` int(30) NOT NULL DEFAULT '0',
`id` int(30) DEFAULT NULL,
`nombre` char(20) DEFAULT NULL,

`apellido` char(15) DEFAULT NULL,


`ciudad` varchar(20) DEFAULT NULL,
`cargo` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ---------------------------------------------------------- Estructura de tabla para la tabla `ventas`
-CREATE TABLE IF NOT EXISTS `ventas` (
`Cod_Ventas` int(30) NOT NULL DEFAULT '0',
`id` int(40) DEFAULT NULL,
`cantidad` int(40) DEFAULT NULL,
`precio` int(30) DEFAULT NULL,
`peso` int(30) DEFAULT NULL,
`masa` int(39) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- ndices para tablas volcadas
---- Indices de la tabla `chocolate_nsvd`
-ALTER TABLE `chocolate_nsvd`
ADD PRIMARY KEY (`cod_chocolate_NSVD`);
--- Indices de la tabla `empleados`
-ALTER TABLE `empleados`
ADD PRIMARY KEY (`cod_empleados`);
--- Indices de la tabla `empresa`
-ALTER TABLE `empresa`
ADD PRIMARY KEY (`cod_mat_prima`);
--- Indices de la tabla `personal_admin`
-ALTER TABLE `personal_admin`
ADD PRIMARY KEY (`cod_personal_admin`);
--- Indices de la tabla `ventas`
-ALTER TABLE `ventas`
ADD PRIMARY KEY (`Cod_Ventas`);

También podría gustarte