The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
Tablas, Codigos Base De Datos Excelsa
1. Creación de tablas
DROP TABLE IF EXISTS `Emleados`;
CREATE TABLE `Emleados` (
`ID_Empleado` int(4) NOT NULL,
`Nombre_Empleado` char(50) NOT NULL,
`Apellido_Paterno` char(20) NOT NULL,
`Apellido_Materno` char(20) NOT NULL,
`Puesto` char(20) NOT NULL,
`Area` varchar(10) NOT NULL,
`F_Ingreso` date NOT NULL,
`Telefono` int(13) NOT NULL,
`Direccion` char(100) NOT NULL,
`Eficiencia` char(10) DEFAULT NULL,
PRIMARY KEY (`ID_Empleado`)
)
DROP TABLE IF EXISTS `Anuncio`;
CREATE TABLE `Anuncio` (
`ID_Anuncio` int(4) NOT NULL,
`ID_Pedido` int(10) NOT NULL,
`Archivo` char(20) NOT NULL,
PRIMARY KEY (`ID_Anuncio`)
)
DROP TABLE IF EXISTS `Areas`;
CREATE TABLE `Areas` (
`ID_Area` int(4) NOT NULL,
`Area` varchar(10) NOT NULL,
PRIMARY KEY (`ID_Area`)
)
DROP TABLE IF EXISTS `Cobros`;
CREATE TABLE `Cobros` (
`ID_Cobro` int(4) NOT NULL,
`ID_Pedido` int(4) NOT NULL,
`Pago_No` int(2) DEFAULT NULL,
`Fe_Pago` datetime DEFAULT NULL,
`Fe_Pro_Pago` datetime DEFAULT NULL,
`Abono` int(10) NOT NULL,
`Resta` int(10) NOT NULL,
PRIMARY KEY (`ID_Cobro`),
KEY `ID_Pedido` (`ID_Pedido`)
)
2. Creación de tablas
DROP TABLE IF EXISTS `Tamano`;
CREATE TABLE `Tamano` (
`ID_Tamano` int(4) NOT NULL,
`Tamano` char(10) NOT NULL,
PRIMARY KEY (`ID_Tamano`)
)
DROP TABLE IF EXISTS `Cliente`;
CREATE TABLE `Cliente` (
`ID_Cliente` int(4) NOT NULL,
`Nombre_Cliente` char(20) NOT NULL,
`Apellido_Paterno` char(20) NOT NULL,
`Apellido_Materno` char(20) DEFAULT
NULL,
`Direccion` char(100) NOT NULL,
`Nombre_Organizacion` char(50) NOT
NULL,
`Dir_Org` char(100) DEFAULT NULL,
`Telefono_Cli` int(13) DEFAULT NULL,
`e_mail` char(50) DEFAULT NULL,
`RFC` char(13) DEFAULT NULL,
PRIMARY KEY (`ID_Cliente`)
)
DROP TABLE IF EXISTS `Puestos`;
CREATE TABLE `Puestos` (
`ID_Puesto` int(4) NOT NULL,
`Puesto` char(20) NOT NULL,
PRIMARY KEY (`ID_Puesto`)
)
3. Creación de tablas
DROP TABLE IF EXISTS `Eficiencia`;
CREATE TABLE `Eficiencia` (
`ID_Eficiencia` int(4) NOT NULL,
`Nivel` char(10) NOT NULL,
PRIMARY KEY (`ID_Eficiencia`)
)
DROP TABLE IF EXISTS `Imprenta`;
CREATE TABLE `Imprenta` (
`ID_Envio` int(4) NOT NULL,
`ID_Revista` int(4) NOT NULL,
`Fe_Envio` date NOT NULL,
`Fe_Recoger` date NOT NULL,
`ID_Empleado` int(4) DEFAULT NULL,
PRIMARY KEY (`ID_Envio`)
)
DROP TABLE IF EXISTS `Pedido`;
CREATE TABLE `Pedido` (
`ID_Pedido` int(10) NOT NULL,
`ID_Cliente` int(12) NOT NULL,
`F_Pedido` datetime NOT NULL,
`Meses` int(2) NOT NULL,
`Ejemplar` int(4) NOT NULL,
`Tamano` int(4) NOT NULL,
`Total_Pagar` float DEFAULT NULL,
`Forma_Pago` char(8) NOT NULL,
`Pago_Inicial` int(10) NOT NULL,
`Debe` int(10) NOT NULL,
`Archivo` char(20) DEFAULT NULL,
PRIMARY KEY (`ID_Pedido`),
KEY `Forma_Pago` (`Forma_Pago`),
KEY `ID_Cliente` (`ID_Cliente`)
)
4. Creación de tablas
DROP TABLE IF EXISTS `Revista`;
CREATE TABLE `Revista` (
`ID_Revista` int(4) NOT NULL,
`Ejemplar` int(4) NOT NULL,
`Archivo` char(10) NOT NULL,
PRIMARY KEY (`ID_Revista`)
)
DROP TABLE IF EXISTS `Tipo_Pago`;
CREATE TABLE `Tipo_Pago` (
`ID_TipoPago` char(4) NOT NULL,
`Forma_Pago` char(8) DEFAULT NULL,
PRIMARY KEY (`ID_TipoPago`)
) ENGINE=MyISAM DEFAULT
CHARSET=latin1;