[1a2fa9d8] | 1 | -- Fichero de instalación de la base de datos. |
---|
[3ec149c] | 2 | |
---|
[dee9fac] | 3 | SET sql_mode = "NO_AUTO_VALUE_ON_ZERO"; |
---|
| 4 | SET GLOBAL sql_mode = TRIM(BOTH ',' FROM REPLACE(@@sql_mode, 'ONLY_FULL_GROUP_BY', '')); |
---|
[d4f6719] | 5 | SET GLOBAL event_scheduler = ON; |
---|
[3ec149c] | 6 | |
---|
| 7 | -- |
---|
| 8 | -- Base de datos: `ogAdmBD` |
---|
| 9 | -- |
---|
| 10 | |
---|
| 11 | -- -------------------------------------------------------- |
---|
| 12 | |
---|
| 13 | -- |
---|
| 14 | -- Estructura de tabla para la tabla `acciones` |
---|
| 15 | -- |
---|
| 16 | |
---|
[a190d69] | 17 | DROP TABLE IF EXISTS `acciones`; |
---|
| 18 | CREATE TABLE `acciones` ( |
---|
[3ec149c] | 19 | `idaccion` int(11) NOT NULL AUTO_INCREMENT, |
---|
[2ff2099] | 20 | `tipoaccion` smallint(6) NOT NULL DEFAULT '0', |
---|
| 21 | `idtipoaccion` int(11) NOT NULL DEFAULT '0', |
---|
| 22 | `descriaccion` varchar(250) NOT NULL DEFAULT '', |
---|
| 23 | `idordenador` int(11) NOT NULL DEFAULT '0', |
---|
| 24 | `ip` varchar(50) NOT NULL DEFAULT '', |
---|
| 25 | `sesion` int(11) NOT NULL DEFAULT '0', |
---|
| 26 | `idcomando` int(11) NOT NULL DEFAULT '0', |
---|
[3ec149c] | 27 | `parametros` text, |
---|
[31ad046] | 28 | `fechahorareg` datetime NOT NULL DEFAULT '1970-01-01 00:00:00', |
---|
| 29 | `fechahorafin` datetime NOT NULL DEFAULT '1970-01-01 00:00:00', |
---|
[3ec149c] | 30 | `estado` tinyint(1) NOT NULL DEFAULT '0', |
---|
| 31 | `resultado` tinyint(1) NOT NULL DEFAULT '0', |
---|
| 32 | `descrinotificacion` varchar(256) DEFAULT NULL, |
---|
| 33 | `ambito` smallint(6) NOT NULL DEFAULT '0', |
---|
| 34 | `idambito` int(11) NOT NULL DEFAULT '0', |
---|
[d09e1c3] | 35 | `restrambito` text, |
---|
[3ec149c] | 36 | `idprocedimiento` int(11) NOT NULL DEFAULT '0', |
---|
| 37 | `idtarea` int(11) NOT NULL DEFAULT '0', |
---|
| 38 | `idcentro` int(11) NOT NULL DEFAULT '0', |
---|
| 39 | `idprogramacion` int(11) NOT NULL DEFAULT '0', |
---|
[1bc7f09] | 40 | PRIMARY KEY (`idaccion`), |
---|
| 41 | KEY (`idordenador`), |
---|
| 42 | KEY (`idprocedimiento`), |
---|
| 43 | KEY (`idtarea`), |
---|
| 44 | KEY (`idprogramacion`) |
---|
[3ec149c] | 45 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 46 | |
---|
| 47 | -- -------------------------------------------------------- |
---|
| 48 | |
---|
| 49 | -- |
---|
[049ec55c] | 50 | -- Estructura de tabla para la tabla `acciones_log` |
---|
| 51 | -- |
---|
| 52 | |
---|
[a190d69] | 53 | DROP TABLE IF EXISTS `acciones_log`; |
---|
| 54 | CREATE TABLE acciones_log LIKE acciones; |
---|
[049ec55c] | 55 | ALTER TABLE acciones_log ADD fecha_borrado DATETIME; |
---|
| 56 | DELIMITER // |
---|
| 57 | -- Trigger para guardar acciones antes de ser borradas. |
---|
| 58 | CREATE TRIGGER registrar_acciones BEFORE DELETE ON acciones FOR EACH ROW BEGIN |
---|
| 59 | INSERT INTO acciones_log VALUES |
---|
| 60 | (OLD.idaccion, OLD.tipoaccion, OLD.idtipoaccion, OLD.descriaccion, |
---|
| 61 | OLD.idordenador, OLD.ip, OLD.sesion, OLD.idcomando, OLD.parametros, |
---|
| 62 | OLD.fechahorareg, OLD.fechahorafin, OLD.estado, OLD.resultado, |
---|
| 63 | OLD.descrinotificacion, OLD.ambito, OLD.idambito, OLD.restrambito, |
---|
| 64 | OLD.idprocedimiento, OLD.idtarea, OLD.idcentro, OLD.idprogramacion, NOW()); |
---|
| 65 | END// |
---|
| 66 | DELIMITER ; |
---|
| 67 | |
---|
| 68 | -- -------------------------------------------------------- |
---|
| 69 | |
---|
| 70 | -- |
---|
[3ec149c] | 71 | -- Estructura de tabla para la tabla `acciones_menus` |
---|
| 72 | -- |
---|
| 73 | |
---|
[a190d69] | 74 | DROP TABLE IF EXISTS `acciones_menus`; |
---|
| 75 | CREATE TABLE `acciones_menus` ( |
---|
[3ec149c] | 76 | `idaccionmenu` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 77 | `tipoaccion` tinyint(4) NOT NULL DEFAULT '0', |
---|
| 78 | `idtipoaccion` int(11) NOT NULL DEFAULT '0', |
---|
| 79 | `idmenu` int(11) NOT NULL DEFAULT '0', |
---|
| 80 | `tipoitem` tinyint(4) DEFAULT NULL, |
---|
| 81 | `idurlimg` int(11) DEFAULT NULL, |
---|
| 82 | `descripitem` varchar(250) DEFAULT NULL, |
---|
| 83 | `orden` tinyint(4) DEFAULT NULL, |
---|
| 84 | PRIMARY KEY (`idaccionmenu`) |
---|
| 85 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 86 | |
---|
| 87 | -- -------------------------------------------------------- |
---|
| 88 | |
---|
| 89 | -- |
---|
| 90 | -- Estructura de tabla para la tabla `administradores_centros` |
---|
| 91 | -- |
---|
| 92 | |
---|
[a190d69] | 93 | DROP TABLE IF EXISTS `administradores_centros`; |
---|
| 94 | CREATE TABLE `administradores_centros` ( |
---|
[3ec149c] | 95 | `idadministradorcentro` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 96 | `idusuario` int(11) NOT NULL DEFAULT '0', |
---|
| 97 | `idcentro` int(11) NOT NULL DEFAULT '0', |
---|
| 98 | PRIMARY KEY (`idadministradorcentro`) |
---|
| 99 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 100 | |
---|
[7a9f3be] | 101 | INSERT INTO `administradores_centros` (`idadministradorcentro`, `idusuario`, `idcentro`) VALUES |
---|
| 102 | (1, 1, 1); |
---|
| 103 | |
---|
[3ec149c] | 104 | -- -------------------------------------------------------- |
---|
| 105 | |
---|
| 106 | -- |
---|
| 107 | -- Estructura de tabla para la tabla `aulas` |
---|
| 108 | -- |
---|
| 109 | |
---|
[a190d69] | 110 | DROP TABLE IF EXISTS `aulas`; |
---|
| 111 | CREATE TABLE `aulas` ( |
---|
[3ec149c] | 112 | `idaula` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 113 | `nombreaula` varchar(100) NOT NULL DEFAULT '', |
---|
| 114 | `idcentro` int(11) NOT NULL DEFAULT '0', |
---|
| 115 | `urlfoto` varchar(250) DEFAULT NULL, |
---|
| 116 | `cagnon` tinyint(1) DEFAULT NULL, |
---|
| 117 | `pizarra` tinyint(1) DEFAULT NULL, |
---|
| 118 | `grupoid` int(11) DEFAULT NULL, |
---|
| 119 | `ubicacion` varchar(255) DEFAULT NULL, |
---|
| 120 | `comentarios` text, |
---|
[6079bff] | 121 | `puestos` smallint DEFAULT NULL, |
---|
[3ec149c] | 122 | `horaresevini` tinyint(4) DEFAULT NULL, |
---|
| 123 | `horaresevfin` tinyint(4) DEFAULT NULL, |
---|
[2ff2099] | 124 | `modomul` tinyint(4) NOT NULL DEFAULT '0', |
---|
| 125 | `ipmul` varchar(16) NOT NULL DEFAULT '', |
---|
| 126 | `pormul` int(11) NOT NULL DEFAULT '0', |
---|
[b1fd551] | 127 | `velmul` smallint(6) NOT NULL DEFAULT '70', |
---|
[5242394] | 128 | `router` varchar( 30 ), |
---|
| 129 | `netmask` varchar( 30 ), |
---|
| 130 | `dns` varchar (30), |
---|
[8fa6b37] | 131 | `proxy` varchar (30), |
---|
[750388b] | 132 | `ntp` varchar (30), |
---|
[b1fd551] | 133 | `modp2p` enum('seeder','peer','leecher') DEFAULT 'peer', |
---|
[5242394] | 134 | `timep2p` int(11) NOT NULL DEFAULT '60', |
---|
| 135 | `validacion` tinyint(1) DEFAULT '0', |
---|
| 136 | `paginalogin` varchar(100), |
---|
| 137 | `paginavalidacion` varchar(100), |
---|
[2ff2099] | 138 | `inremotepc` tinyint DEFAULT '0', |
---|
[90c670e] | 139 | `oglivedir` varchar(50) NOT NULL DEFAULT 'ogLive', |
---|
[3ec149c] | 140 | PRIMARY KEY (`idaula`) |
---|
| 141 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 142 | |
---|
[cbe1fdf] | 143 | |
---|
[b9a6500] | 144 | -- |
---|
| 145 | -- Estructura de tabla para la tabla `asistentes` |
---|
| 146 | -- |
---|
| 147 | |
---|
[a190d69] | 148 | DROP TABLE IF EXISTS `asistentes`; |
---|
| 149 | CREATE TABLE `asistentes` ( |
---|
[b9a6500] | 150 | `idcomando` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 151 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
[2ff2099] | 152 | `pagina` varchar(256) NOT NULL DEFAULT '', |
---|
| 153 | `gestor` varchar(256) NOT NULL DEFAULT '', |
---|
| 154 | `funcion` varchar(64) NOT NULL DEFAULT '', |
---|
[b9a6500] | 155 | `urlimg` varchar(250) DEFAULT NULL, |
---|
| 156 | `aplicambito` tinyint(4) DEFAULT NULL, |
---|
| 157 | `visuparametros` varchar(250) DEFAULT NULL, |
---|
| 158 | `parametros` varchar(250) DEFAULT NULL, |
---|
| 159 | `comentarios` text, |
---|
[2ff2099] | 160 | `activo` tinyint(1) NOT NULL DEFAULT '0', |
---|
[f9bd401] | 161 | PRIMARY KEY ( `idcomando` , `descripcion` ) |
---|
[b9a6500] | 162 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ; |
---|
| 163 | |
---|
| 164 | |
---|
| 165 | INSERT INTO `asistentes` (`idcomando`, `descripcion`, `pagina`, `gestor`, `funcion`, `urlimg`, `aplicambito`, `visuparametros`, `parametros`, `comentarios`, `activo`) VALUES |
---|
[f9bd401] | 166 | ('8', 'Asistente Clonacion Particiones Remotas', '../asistentes/AsistenteCloneRemotePartition.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1'), |
---|
[294f9e5] | 167 | ('8', 'Asistente Deploy de Imagenes', '../asistentes/AsistenteDeployImage.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1'), |
---|
| 168 | ('8', 'Asistente UpdateCache con Imagenes', '../asistentes/AsistenteUpdateCache.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '0'), |
---|
[f9bd401] | 169 | ('8', 'Asistente Restauracion de Imagenes', '../asistentes/AsistenteRestoreImage.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '0'), |
---|
| 170 | ('8', 'Asistente Particionado', '../asistentes/AsistenteParticionado.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1'); |
---|
[b9a6500] | 171 | |
---|
| 172 | |
---|
[3ec149c] | 173 | -- -------------------------------------------------------- |
---|
| 174 | |
---|
| 175 | -- |
---|
| 176 | -- Estructura de tabla para la tabla `centros` |
---|
| 177 | -- |
---|
| 178 | |
---|
[a190d69] | 179 | DROP TABLE IF EXISTS `centros`; |
---|
| 180 | CREATE TABLE `centros` ( |
---|
[3ec149c] | 181 | `idcentro` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 182 | `nombrecentro` varchar(100) NOT NULL DEFAULT '', |
---|
| 183 | `identidad` int(11) DEFAULT NULL, |
---|
| 184 | `comentarios` text, |
---|
[56529d2] | 185 | `directorio` varchar(50) DEFAULT '', |
---|
[3ec149c] | 186 | PRIMARY KEY (`idcentro`) |
---|
| 187 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 188 | |
---|
| 189 | |
---|
[4329e85] | 190 | -- |
---|
| 191 | -- Volcar la base de datos para la tabla `centros` |
---|
| 192 | -- |
---|
| 193 | INSERT INTO `centros` (`idcentro`,`nombrecentro`,`identidad`,`comentarios`) VALUES |
---|
[049ec55c] | 194 | (1,'Unidad Organizativa (Default)',1,'Esta Unidad Organizativa se crea automáticamente en el proceso de instalación de OpenGnsys'); |
---|
[4329e85] | 195 | |
---|
| 196 | |
---|
[3ec149c] | 197 | -- -------------------------------------------------------- |
---|
| 198 | |
---|
| 199 | -- |
---|
| 200 | -- Estructura de tabla para la tabla `comandos` |
---|
| 201 | -- |
---|
| 202 | |
---|
[a190d69] | 203 | DROP TABLE IF EXISTS `comandos`; |
---|
| 204 | CREATE TABLE `comandos` ( |
---|
[3ec149c] | 205 | `idcomando` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 206 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
[2ff2099] | 207 | `pagina` varchar(256) NOT NULL DEFAULT '', |
---|
| 208 | `gestor` varchar(256) NOT NULL DEFAULT '', |
---|
| 209 | `funcion` varchar(64) NOT NULL DEFAULT '', |
---|
[3ec149c] | 210 | `urlimg` varchar(250) DEFAULT NULL, |
---|
| 211 | `aplicambito` tinyint(4) DEFAULT NULL, |
---|
| 212 | `visuparametros` varchar(250) DEFAULT NULL, |
---|
| 213 | `parametros` varchar(250) DEFAULT NULL, |
---|
| 214 | `comentarios` text, |
---|
[2ff2099] | 215 | `activo` tinyint(1) NOT NULL DEFAULT '0', |
---|
[d866d6b] | 216 | `submenu` varchar(50) NOT NULL DEFAULT '', |
---|
[3ec149c] | 217 | PRIMARY KEY (`idcomando`) |
---|
[4329e85] | 218 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ; |
---|
[3ec149c] | 219 | |
---|
| 220 | -- |
---|
| 221 | -- Volcar la base de datos para la tabla `comandos` |
---|
| 222 | -- |
---|
| 223 | |
---|
[d866d6b] | 224 | INSERT INTO `comandos` (`idcomando`, `descripcion`, `pagina`, `gestor`, `funcion`, `urlimg`, `aplicambito`, `visuparametros`, `parametros`, `comentarios`, `activo`, `submenu`) VALUES |
---|
| 225 | (1, 'Arrancar', '../comandos/Arrancar.php', '../comandos/gestores/gestor_Comandos.php', 'Arrancar', '', 31, '', 'nfn;iph;mac', '', 1, ''), |
---|
| 226 | (2, 'Apagar', '../comandos/Apagar.php', '../comandos/gestores/gestor_Comandos.php', 'Apagar', '', 31, '', 'nfn;iph;mac', '', 1, ''), |
---|
| 227 | (3, 'Restaurar Imagen', '../comandos/RestaurarImagen.php', '../comandos/gestores/gestor_Comandos.php', 'RestaurarImagen', '', 28, 'dsk;par;idi;nci;ipr;ptc', 'nfn;iph;mac;dsk;par;idi;nci;ipr;ifs;ptc', '', 1, ''), |
---|
| 228 | (4, 'Crear Imagen', '../comandos/CrearImagen.php', '../comandos/gestores/gestor_Comandos.php', 'CrearImagen', '', 16, 'dsk;par;idi;nci;ipr;cpt', 'nfn;iph;mac;dsk;par;idi;nci;ipr;cpt;', '', 1, ''), |
---|
| 229 | (5, 'Reiniciar', '../comandos/Reiniciar.php', '../comandos/gestores/gestor_Comandos.php', 'Reiniciar', '', 31, '', 'nfn;iph;mac;', '', 1, ''), |
---|
| 230 | (6, 'Inventario Hardware', '../comandos/InventarioHardware.php', '../comandos/gestores/gestor_Comandos.php', 'InventarioHardware', '', 16, '', 'nfn;iph;mac;', '', 1, ''), |
---|
[503dac8] | 231 | (7, 'Inventario Software', '../comandos/InventarioSoftware.php', '../comandos/gestores/gestor_Comandos.php', 'InventarioSoftware', '', 16, 'dsk;par', 'nfn;iph;mac;dsk;par', '', 1, ''), |
---|
[d866d6b] | 232 | (8, 'Ejecutar Script', '../comandos/EjecutarScripts.php', '../comandos/gestores/gestor_Comandos.php', 'EjecutarScript', '', 31, 'iph;tis;dcr;scp', 'nfn;iph;tis;dcr;scp', '', 1, ''), |
---|
[503dac8] | 233 | (9, 'Iniciar Sesion', '../comandos/IniciarSesion.php', '../comandos/gestores/gestor_Comandos.php', 'IniciarSesion', '', 31, 'dsk;par', 'nfn;iph;dsk;par', '', 1, ''), |
---|
[bbd5b61] | 234 | (10, 'Particionar y Formatear', '../comandos/Configurar.php', '../comandos/gestores/gestor_Comandos.php', 'Configurar', '', 28, 'dsk;cfg;', 'nfn;iph;mac;dsk;cfg;par;cpt;sfi;tam;ope', '', 1, ''), |
---|
[d866d6b] | 235 | (11, 'Eliminar Imagen Cache', '../comandos/EliminarImagenCache.php', '../comandos/gestores/gestor_Comandos.php', 'EliminarImagenCache', '', 31, 'iph;tis;dcr;scp', 'nfn;iph;tis;dcr;scp', '', 1, ''), |
---|
[418464b] | 236 | (12, 'Crear Imagen Basica', '../comandos/CrearImagenBasica.php', '../comandos/gestores/gestor_Comandos.php', 'CrearImagenBasica', '', 16, 'dsk;par;cpt;idi;nci;ipr;iph;bpi;cpc;bpc;rti;nba', 'nfn;dsk;par;cpt;idi;nci;ipr;iph;bpi;cpc;bpc;rti;nba', '', 1, 'Sincronizacion'), |
---|
| 237 | (13, 'Restaurar Imagen Basica', '../comandos/RestaurarImagenBasica.php', '../comandos/gestores/gestor_Comandos.php', 'RestaurarImagenBasica', '', 28, 'dsk;par;idi;nci;ipr;iph;bpi;cpc;bpc;rti;nba;met', 'nfn;dsk;par;idi;nci;ipr;iph;bpi;cpc;bpc;rti;nba;met', '', 1, 'Sincronizacion'), |
---|
| 238 | (14, 'Crear Software Incremental', '../comandos/CrearSoftIncremental.php', '../comandos/gestores/gestor_Comandos.php', 'CrearSoftIncremental', '', 16, 'dsk;par;idi;nci;ipr;idf;ncf;bpi;cpc;bpc;iph;rti;nba', 'nfn;dsk;par;idi;nci;ipr;idf;ncf;bpi;cpc;bpc;iph;rti;nba', '', 1, 'Sincronizacion'), |
---|
[7c4b953] | 239 | (15, 'Restaurar Software Incremental', '../comandos/RestaurarSoftIncremental.php', '../comandos/gestores/gestor_Comandos.php', 'RestaurarSoftIncremental', '', 28, 'dsk;par;idi;nci;ipr;idf;ncf;bpi;cpc;bpc;iph;rti;met;nba', 'nfn;dsk;par;idi;nci;ipr;idf;ncf;bpi;cpc;bpc;iph;rti;met;nba', '', 1, 'Sincronizacion'), |
---|
[e4fc3fd] | 240 | (16, 'Enviar mensaje', '../comandos/EnviarMensaje.php', '../comandos/gestores/gestor_Comandos.php', 'EnviarMensaje', '', 31, 'tit;msj', 'nfn;iph;tit;msj', '', 1, ''); |
---|
[cbe1fdf] | 241 | |
---|
| 242 | |
---|
[3ec149c] | 243 | |
---|
| 244 | -- -------------------------------------------------------- |
---|
| 245 | |
---|
| 246 | -- |
---|
| 247 | -- Estructura de tabla para la tabla `entidades` |
---|
| 248 | -- |
---|
| 249 | |
---|
[a190d69] | 250 | DROP TABLE IF EXISTS `entidades`; |
---|
| 251 | CREATE TABLE `entidades` ( |
---|
[3ec149c] | 252 | `identidad` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 253 | `nombreentidad` varchar(200) NOT NULL DEFAULT '', |
---|
| 254 | `comentarios` text, |
---|
| 255 | `iduniversidad` int(11) DEFAULT NULL, |
---|
| 256 | `grupoid` int(11) DEFAULT NULL, |
---|
[2ff2099] | 257 | `ogunit` tinyint(1) NOT NULL DEFAULT '0', |
---|
[3ec149c] | 258 | PRIMARY KEY (`identidad`) |
---|
| 259 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; |
---|
| 260 | |
---|
| 261 | -- |
---|
| 262 | -- Volcar la base de datos para la tabla `entidades` |
---|
| 263 | -- |
---|
| 264 | |
---|
| 265 | INSERT INTO `entidades` (`identidad`, `nombreentidad`, `comentarios`, `iduniversidad`, `grupoid`) VALUES |
---|
[049ec55c] | 266 | (1, 'Entidad (Default)', 'Esta Entidad se crea automáticamente en el proceso de instalación de OpenGnsys', 1, 0); |
---|
[3ec149c] | 267 | |
---|
| 268 | -- -------------------------------------------------------- |
---|
| 269 | |
---|
| 270 | -- |
---|
| 271 | -- Estructura de tabla para la tabla `entornos` |
---|
| 272 | -- |
---|
| 273 | |
---|
[a190d69] | 274 | DROP TABLE IF EXISTS `entornos`; |
---|
| 275 | CREATE TABLE `entornos` ( |
---|
[3ec149c] | 276 | `identorno` int(11) NOT NULL AUTO_INCREMENT, |
---|
[2ff2099] | 277 | `ipserveradm` varchar(50) NOT NULL DEFAULT '', |
---|
| 278 | `portserveradm` int(20) NOT NULL DEFAULT 2008, |
---|
| 279 | `protoclonacion` varchar(50) NOT NULL DEFAULT '', |
---|
[3ec149c] | 280 | PRIMARY KEY (`identorno`) |
---|
| 281 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; |
---|
| 282 | |
---|
| 283 | -- |
---|
| 284 | -- Volcar la base de datos para la tabla `entornos` |
---|
| 285 | -- |
---|
| 286 | |
---|
| 287 | INSERT INTO `entornos` (`identorno`, `ipserveradm`, `portserveradm`, `protoclonacion`) VALUES |
---|
[58d5ad2] | 288 | (1, 'SERVERIP', 2008, 'UNICAST'); |
---|
[3ec149c] | 289 | |
---|
| 290 | -- -------------------------------------------------------- |
---|
| 291 | |
---|
| 292 | -- |
---|
| 293 | -- Estructura de tabla para la tabla `estatus` |
---|
| 294 | -- |
---|
| 295 | |
---|
[a190d69] | 296 | DROP TABLE IF EXISTS `estatus`; |
---|
| 297 | CREATE TABLE `estatus` ( |
---|
[3ec149c] | 298 | `idestatus` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 299 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
| 300 | PRIMARY KEY (`idestatus`) |
---|
| 301 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; |
---|
| 302 | |
---|
| 303 | -- |
---|
| 304 | -- Volcar la base de datos para la tabla `estatus` |
---|
| 305 | -- |
---|
| 306 | |
---|
| 307 | INSERT INTO `estatus` (`idestatus`, `descripcion`) VALUES |
---|
| 308 | (1, 'P.D.I. ( Profesor)'), |
---|
| 309 | (2, 'P.A.S.'), |
---|
| 310 | (3, 'Doctor'), |
---|
| 311 | (4, 'Alumno'), |
---|
| 312 | (5, 'Otros'); |
---|
| 313 | |
---|
| 314 | -- -------------------------------------------------------- |
---|
| 315 | |
---|
| 316 | -- |
---|
| 317 | -- Estructura de tabla para la tabla `grupos` |
---|
| 318 | -- |
---|
| 319 | |
---|
[a190d69] | 320 | DROP TABLE IF EXISTS `grupos`; |
---|
| 321 | CREATE TABLE `grupos` ( |
---|
[3ec149c] | 322 | `idgrupo` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 323 | `nombregrupo` varchar(250) NOT NULL DEFAULT '', |
---|
| 324 | `grupoid` int(11) NOT NULL DEFAULT '0', |
---|
| 325 | `tipo` tinyint(4) NOT NULL DEFAULT '0', |
---|
| 326 | `idcentro` int(11) NOT NULL DEFAULT '0', |
---|
| 327 | `iduniversidad` int(11) DEFAULT NULL, |
---|
| 328 | `comentarios` text, |
---|
| 329 | PRIMARY KEY (`idgrupo`) |
---|
| 330 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 331 | |
---|
| 332 | -- -------------------------------------------------------- |
---|
| 333 | |
---|
| 334 | -- |
---|
| 335 | -- Estructura de tabla para la tabla `gruposordenadores` |
---|
| 336 | -- |
---|
| 337 | |
---|
[a190d69] | 338 | DROP TABLE IF EXISTS `gruposordenadores`; |
---|
| 339 | CREATE TABLE `gruposordenadores` ( |
---|
[3ec149c] | 340 | `idgrupo` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 341 | `nombregrupoordenador` varchar(250) NOT NULL DEFAULT '', |
---|
| 342 | `idaula` int(11) NOT NULL DEFAULT '0', |
---|
| 343 | `grupoid` int(11) DEFAULT NULL, |
---|
| 344 | `comentarios` text, |
---|
| 345 | PRIMARY KEY (`idgrupo`) |
---|
| 346 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 347 | |
---|
| 348 | -- -------------------------------------------------------- |
---|
| 349 | |
---|
| 350 | -- |
---|
| 351 | -- Estructura de tabla para la tabla `hardwares` |
---|
| 352 | -- |
---|
| 353 | |
---|
[a190d69] | 354 | DROP TABLE IF EXISTS `hardwares`; |
---|
| 355 | CREATE TABLE `hardwares` ( |
---|
[3ec149c] | 356 | `idhardware` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 357 | `idtipohardware` int(11) NOT NULL DEFAULT '0', |
---|
| 358 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
| 359 | `idcentro` int(11) NOT NULL DEFAULT '0', |
---|
| 360 | `grupoid` int(11) DEFAULT NULL, |
---|
| 361 | PRIMARY KEY (`idhardware`) |
---|
| 362 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 363 | |
---|
| 364 | |
---|
| 365 | -- -------------------------------------------------------- |
---|
| 366 | |
---|
| 367 | -- |
---|
| 368 | -- Estructura de tabla para la tabla `iconos` |
---|
| 369 | -- |
---|
| 370 | |
---|
[a190d69] | 371 | DROP TABLE IF EXISTS `iconos`; |
---|
| 372 | CREATE TABLE `iconos` ( |
---|
[3ec149c] | 373 | `idicono` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 374 | `urlicono` varchar(200) DEFAULT NULL, |
---|
| 375 | `idtipoicono` int(11) DEFAULT NULL, |
---|
| 376 | `descripcion` varchar(250) DEFAULT NULL, |
---|
| 377 | PRIMARY KEY (`idicono`) |
---|
| 378 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ; |
---|
| 379 | |
---|
| 380 | -- |
---|
| 381 | -- Volcar la base de datos para la tabla `iconos` |
---|
| 382 | -- |
---|
| 383 | |
---|
| 384 | INSERT INTO `iconos` (`idicono`, `urlicono`, `idtipoicono`, `descripcion`) VALUES |
---|
| 385 | (1, 'vga.gif', 1, 'Tarjeta gráfica'), |
---|
| 386 | (2, 'nic.gif', 1, 'Tarjeta de Red'), |
---|
| 387 | (3, 'placabase.gif', 1, 'Placas base'), |
---|
| 388 | (4, 'tsonido.gif', 1, 'Tarjeta de sonido'), |
---|
| 389 | (5, 'camweb.gif', 1, 'Cámara web'), |
---|
| 390 | (6, 'logoXP.png', 2, 'Logo Windows XP'), |
---|
| 391 | (7, 'logolinux.png', 2, 'Logo General de Linux'), |
---|
| 392 | (8, 'particionar.png', 2, 'Particionar'), |
---|
| 393 | (9, 'ordenadoroff.png', 2, 'Ordenador apagado'), |
---|
| 394 | (10, 'ordenadoron.png', 2, 'Ordenador encendido'), |
---|
| 395 | (11, 'usb.gif', 1, 'Mi icono usb'), |
---|
| 396 | (12, 'ide.gif', 1, 'Controladores IDE'), |
---|
| 397 | (13, 'dvdcd.gif', 1, 'Lectoras y grabadoras de DVD'), |
---|
| 398 | (14, 'audio.gif', 1, 'Dispositivos de audio'); |
---|
| 399 | |
---|
| 400 | -- -------------------------------------------------------- |
---|
| 401 | |
---|
| 402 | -- |
---|
| 403 | -- Estructura de tabla para la tabla `idiomas` |
---|
| 404 | -- |
---|
| 405 | |
---|
[a190d69] | 406 | DROP TABLE IF EXISTS `idiomas`; |
---|
| 407 | CREATE TABLE `idiomas` ( |
---|
[3ec149c] | 408 | `ididioma` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 409 | `descripcion` varchar(100) DEFAULT NULL, |
---|
| 410 | `nemonico` char(3) DEFAULT NULL, |
---|
| 411 | PRIMARY KEY (`ididioma`) |
---|
| 412 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; |
---|
| 413 | |
---|
| 414 | -- |
---|
| 415 | -- Volcar la base de datos para la tabla `idiomas` |
---|
| 416 | -- |
---|
| 417 | |
---|
| 418 | INSERT INTO `idiomas` (`ididioma`, `descripcion`, `nemonico`) VALUES |
---|
| 419 | (1, 'Español', 'esp'), |
---|
[6855821] | 420 | (2, 'English', 'eng'), |
---|
| 421 | (3, 'Català', 'cat'); |
---|
[3ec149c] | 422 | |
---|
| 423 | -- -------------------------------------------------------- |
---|
| 424 | |
---|
| 425 | -- |
---|
| 426 | -- Estructura de tabla para la tabla `imagenes` |
---|
| 427 | -- |
---|
| 428 | |
---|
[a190d69] | 429 | DROP TABLE IF EXISTS `imagenes`; |
---|
| 430 | CREATE TABLE `imagenes` ( |
---|
[3ec149c] | 431 | `idimagen` int(11) NOT NULL AUTO_INCREMENT, |
---|
[2ff2099] | 432 | `nombreca` varchar(50) NOT NULL DEFAULT '', |
---|
| 433 | `revision` smallint UNSIGNED NOT NULL DEFAULT '0', |
---|
[3ec149c] | 434 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
| 435 | `idperfilsoft` int(11) DEFAULT NULL, |
---|
| 436 | `idcentro` int(11) DEFAULT NULL, |
---|
| 437 | `comentarios` text, |
---|
| 438 | `grupoid` int(11) DEFAULT NULL, |
---|
[2ff2099] | 439 | `idrepositorio` int(11) NOT NULL DEFAULT '0', |
---|
| 440 | `idordenador` int(11) NOT NULL DEFAULT '0', |
---|
| 441 | `numdisk` smallint NOT NULL DEFAULT '0', |
---|
| 442 | `numpar` smallint NOT NULL DEFAULT '0', |
---|
| 443 | `codpar` int(8) NOT NULL DEFAULT '0', |
---|
[4329e85] | 444 | `tipo` tinyint NULL, |
---|
[2ff2099] | 445 | `imagenid` int NOT NULL DEFAULT '0', |
---|
[4329e85] | 446 | `ruta` varchar(250) NULL, |
---|
[d43c0eb] | 447 | `fechacreacion` datetime DEFAULT NULL, |
---|
[2ff2099] | 448 | `inremotepc` tinyint DEFAULT '0', |
---|
[3ec149c] | 449 | PRIMARY KEY (`idimagen`) |
---|
| 450 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 451 | |
---|
| 452 | -- -------------------------------------------------------- |
---|
| 453 | |
---|
| 454 | -- |
---|
| 455 | -- Estructura de tabla para la tabla `menus` |
---|
| 456 | -- |
---|
| 457 | |
---|
[a190d69] | 458 | DROP TABLE IF EXISTS `menus`; |
---|
| 459 | CREATE TABLE `menus` ( |
---|
[3ec149c] | 460 | `idmenu` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 461 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
| 462 | `idcentro` int(11) NOT NULL DEFAULT '0', |
---|
| 463 | `idurlimg` int(11) NOT NULL DEFAULT '0', |
---|
| 464 | `titulo` varchar(250) DEFAULT NULL, |
---|
| 465 | `modalidad` tinyint(4) DEFAULT NULL, |
---|
| 466 | `smodalidad` tinyint(4) DEFAULT NULL, |
---|
| 467 | `comentarios` text, |
---|
| 468 | `grupoid` int(11) NOT NULL DEFAULT '0', |
---|
| 469 | `htmlmenupub` varchar(250) DEFAULT NULL, |
---|
| 470 | `htmlmenupri` varchar(250) DEFAULT NULL, |
---|
[07a48a4] | 471 | `resolucion` varchar(50) DEFAULT NULL, |
---|
[3ec149c] | 472 | PRIMARY KEY (`idmenu`) |
---|
| 473 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 474 | |
---|
| 475 | -- -------------------------------------------------------- |
---|
| 476 | |
---|
| 477 | -- |
---|
| 478 | -- Estructura de tabla para la tabla `nombresos` |
---|
| 479 | -- |
---|
| 480 | |
---|
[a190d69] | 481 | DROP TABLE IF EXISTS `nombresos`; |
---|
| 482 | CREATE TABLE `nombresos` ( |
---|
[3ec149c] | 483 | `idnombreso` smallint(11) NOT NULL AUTO_INCREMENT, |
---|
[2ff2099] | 484 | `nombreso` varchar(250) NOT NULL DEFAULT '', |
---|
[3ec149c] | 485 | `idtiposo` int(11) DEFAULT '0', |
---|
| 486 | PRIMARY KEY (`idnombreso`) |
---|
| 487 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 488 | |
---|
| 489 | -- -------------------------------------------------------- |
---|
| 490 | |
---|
| 491 | -- |
---|
[4519fd2] | 492 | -- Estructura de tabla para la tabla `ogagent_queue` |
---|
| 493 | -- |
---|
| 494 | |
---|
| 495 | DROP TABLE IF EXISTS `ogagent_queue`; |
---|
| 496 | CREATE TABLE `ogagent_queue` ( |
---|
| 497 | `id` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 498 | `clientid` int(11) NOT NULL, |
---|
| 499 | `exectime` datetime DEFAULT NULL, |
---|
| 500 | `operation` varchar(25), |
---|
| 501 | -- `parameters` varchar(100), |
---|
| 502 | PRIMARY KEY (`id`) |
---|
| 503 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
---|
| 504 | |
---|
| 505 | -- -------------------------------------------------------- |
---|
| 506 | |
---|
| 507 | -- |
---|
[3ec149c] | 508 | -- Estructura de tabla para la tabla `ordenadores` |
---|
| 509 | -- |
---|
| 510 | |
---|
[a190d69] | 511 | DROP TABLE IF EXISTS `ordenadores`; |
---|
| 512 | CREATE TABLE `ordenadores` ( |
---|
[3ec149c] | 513 | `idordenador` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 514 | `nombreordenador` varchar(100) DEFAULT NULL, |
---|
[695c8e6] | 515 | `numserie` varchar(25) DEFAULT NULL, |
---|
[2ff2099] | 516 | `ip` varchar(16) NOT NULL DEFAULT '', |
---|
[3ec149c] | 517 | `mac` varchar(12) DEFAULT NULL, |
---|
| 518 | `idaula` int(11) DEFAULT NULL, |
---|
| 519 | `idperfilhard` int(11) DEFAULT NULL, |
---|
| 520 | `idrepositorio` int(11) DEFAULT NULL, |
---|
| 521 | `grupoid` int(11) DEFAULT NULL, |
---|
| 522 | `idmenu` int(11) DEFAULT NULL, |
---|
| 523 | `cache` int(11) DEFAULT NULL, |
---|
[2ff2099] | 524 | `router` varchar(16) NOT NULL DEFAULT '', |
---|
| 525 | `mascara` varchar(16) NOT NULL DEFAULT '', |
---|
| 526 | `idproautoexec` int(11) NOT NULL DEFAULT '0', |
---|
[695c8e6] | 527 | `arranque` varchar(30) NOT NULL DEFAULT '00unknown', |
---|
[cbe1fdf] | 528 | `netiface` enum('eth0','eth1','eth2') DEFAULT 'eth0', |
---|
[695c8e6] | 529 | `netdriver` varchar(30) NOT NULL DEFAULT 'generic', |
---|
| 530 | `fotoord` varchar(250) NOT NULL DEFAULT 'fotoordenador.gif', |
---|
[5242394] | 531 | `validacion` tinyint(1) DEFAULT '0', |
---|
[60b48d3] | 532 | `paginalogin` varchar(100), |
---|
[5242394] | 533 | `paginavalidacion` varchar(100), |
---|
[2913439] | 534 | `agentkey` varchar(32), |
---|
[c311ef2f] | 535 | `oglivedir` varchar(50) NOT NULL DEFAULT 'ogLive', |
---|
[e8d2851] | 536 | PRIMARY KEY (`idordenador`), |
---|
| 537 | KEY `idaulaip` (`idaula` ASC, `ip` ASC) |
---|
[3ec149c] | 538 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 539 | |
---|
[cbe1fdf] | 540 | |
---|
| 541 | |
---|
[3ec149c] | 542 | -- -------------------------------------------------------- |
---|
| 543 | |
---|
| 544 | -- |
---|
| 545 | -- Estructura de tabla para la tabla `ordenadores_particiones` |
---|
| 546 | -- |
---|
| 547 | |
---|
[a190d69] | 548 | DROP TABLE IF EXISTS `ordenadores_particiones`; |
---|
| 549 | CREATE TABLE `ordenadores_particiones` ( |
---|
[2ff2099] | 550 | `idordenador` int(11) NOT NULL DEFAULT '0', |
---|
| 551 | `numdisk` smallint NOT NULL DEFAULT '0', |
---|
| 552 | `numpar` smallint NOT NULL DEFAULT '0', |
---|
| 553 | `codpar` int(8) NOT NULL DEFAULT '0', |
---|
| 554 | `tamano` int(11) NOT NULL DEFAULT '0', |
---|
| 555 | `uso` tinyint NOT NULL DEFAULT '0', |
---|
| 556 | `idsistemafichero` smallint(11) NOT NULL DEFAULT '0', |
---|
| 557 | `idnombreso` smallint(11) NOT NULL DEFAULT '0', |
---|
| 558 | `idimagen` int(11) NOT NULL DEFAULT '0', |
---|
| 559 | `revision` smallint UNSIGNED NOT NULL DEFAULT '0', |
---|
| 560 | `idperfilsoft` int(11) NOT NULL DEFAULT '0', |
---|
[942373c] | 561 | `fechadespliegue` datetime NULL, |
---|
[d09e1c3] | 562 | `cache` text, |
---|
[c7b62bd] | 563 | UNIQUE KEY `idordenadornumdisknumpar` (`idordenador`,`numdisk`,`numpar`) |
---|
[3ec149c] | 564 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
---|
| 565 | |
---|
| 566 | -- -------------------------------------------------------- |
---|
| 567 | |
---|
| 568 | -- |
---|
| 569 | -- Estructura de tabla para la tabla `parametros` |
---|
| 570 | -- |
---|
| 571 | |
---|
[a190d69] | 572 | DROP TABLE IF EXISTS `parametros`; |
---|
| 573 | CREATE TABLE `parametros` ( |
---|
[3ec149c] | 574 | `idparametro` int(11) NOT NULL AUTO_INCREMENT, |
---|
[2ff2099] | 575 | `nemonico` char(3) NOT NULL DEFAULT '', |
---|
[d09e1c3] | 576 | `descripcion` text, |
---|
[2ff2099] | 577 | `nomidentificador` varchar(64) NOT NULL DEFAULT '', |
---|
| 578 | `nomtabla` varchar(64) NOT NULL DEFAULT '', |
---|
| 579 | `nomliteral` varchar(64) NOT NULL DEFAULT '', |
---|
[3ec149c] | 580 | `tipopa` tinyint(1) DEFAULT '0', |
---|
| 581 | `visual` tinyint(4) NOT NULL DEFAULT '0', |
---|
[d866d6b] | 582 | PRIMARY KEY (`idparametro`), |
---|
| 583 | KEY (`nemonico`) |
---|
[4329e85] | 584 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=33 ; |
---|
[3ec149c] | 585 | |
---|
| 586 | -- |
---|
| 587 | -- Volcar la base de datos para la tabla `parametros` |
---|
| 588 | -- |
---|
| 589 | |
---|
| 590 | INSERT INTO `parametros` (`idparametro`, `nemonico`, `descripcion`, `nomidentificador`, `nomtabla`, `nomliteral`, `tipopa`, `visual`) VALUES |
---|
| 591 | (1, 'nfn', 'Nombre de la función o script a ejecutar en el cliente y que implementa el comando. Es posible que también els ervidor debo ejecutar la misma función como ocurre en el comando "Arrancar" y que implementa el comportamiento del comando en el servidor', '', '', '', 0, 0), |
---|
| 592 | (2, 'iph', 'Dirección ip de los ordenadores a los que se envía el comando', '', '', '', 0, 0), |
---|
| 593 | (3, 'ido', 'Identificadores de los ordenadores a los que se envía el comando', '', '', '', 0, 0), |
---|
| 594 | (4, 'mac', 'Direcciones macs de los clientes a los que se le envía el comando', '', '', '', 0, 0), |
---|
| 595 | (5, 'idc', 'Unidad organizativa', 'idcentro', 'centros', '', 1, 0), |
---|
| 596 | (6, 'ida', 'Aula', 'idaula', 'aulas', 'nombreaula', 1, 0), |
---|
| 597 | (18, 'cfg', 'Configuración', '', '', '', 2, 1), |
---|
| 598 | (7, 'dsk', 'Disco', '', '', '', 0, 1), |
---|
| 599 | (8, 'par', 'Partición', '', '', '', 0, 1), |
---|
| 600 | (9, 'ifh', 'Perfil Hardware', 'idperfilhard', 'perfileshard', 'descripcion', 1, 1), |
---|
| 601 | (10, 'ifs', 'Perfil Software', 'idperfilsoft', 'perfilessoft', 'descripcion', 1, 1), |
---|
| 602 | (11, 'idi', 'Imagen', 'idimagen', 'imagenes', 'descripcion', 1, 1), |
---|
[4329e85] | 603 | (12, 'nci', 'Nombre canónico', '', '', '', 0, 1), |
---|
[3ec149c] | 604 | (13, 'scp', 'Código a ejecutar en formato script', '', '', '', 0, 0), |
---|
| 605 | (14, 'npc', 'Nombre del cliente', '', '', '', NULL, 0), |
---|
| 606 | (15, 'che', 'Tamaño de la cache del cliente', '', '', '', NULL, 0), |
---|
| 607 | (16, 'exe', 'Identificador del procedimiento que será el que ejecute el cliente al arrancar (Autoexec)', '', '', '', 0, 0), |
---|
| 608 | (17, 'res', 'Respuesta del comando: Puede tomar los valores 1 o 2 en el caso de que la respuesta sea correcta o que haya un error al ejecutarse.', '', '', '', 0, 0), |
---|
| 609 | (19, 'ipr', 'Repositorio', 'ip', 'repositorios', 'nombrerepositorio', 1, 1), |
---|
| 610 | (20, 'cpt', 'Tipo partición', 'codpar', 'tipospar', 'tipopar', 1, 1), |
---|
[3997593] | 611 | (21, 'sfi', 'Sistema de fichero', 'nemonico', 'sistemasficheros', 'nemonico', 1, 0), |
---|
| 612 | (22, 'tam', 'Tamaño', '', '', '', 0, 1), |
---|
[3ec149c] | 613 | (23, 'ope', 'Operación', ';', '', 'Sin operación;Formatear;Ocultar;Mostrar', 3, 1), |
---|
| 614 | (24, 'nfl', 'Nombre del fichero que se envía o se recibe', '', '', '', 0, 0), |
---|
| 615 | (25, 'hrd', 'Nombre del archivo de inventario hardware enviado por la red', '', '', '', 0, 0), |
---|
| 616 | (26, 'sft', 'Nombre del archivo de inventario software enviado por la red', '', '', '', 0, 0), |
---|
| 617 | (27, 'tpc', 'Tipo de cliente', '', '', '', 0, 0), |
---|
| 618 | (28, 'scp', 'Código script', '', '', '', 4, 1), |
---|
[7bc3088] | 619 | (30, 'ptc', 'Protocolo de clonación', ';', '', ';Unicast;Multicast;Torrent', 0, 1), |
---|
[d866d6b] | 620 | (31, 'idf', 'Imagen Incremental', 'idimagen', 'imagenes', 'descripcion', 1, 1), |
---|
| 621 | (32, 'ncf', 'Nombre canónico de la Imagen Incremental', '', '', '', 0, 1), |
---|
| 622 | (33, 'bpi', 'Borrar imagen o partición previamente', '', '', '', 5, 1), |
---|
| 623 | (34, 'cpc', 'Copiar también en cache', '', '', '', 5, 1), |
---|
| 624 | (35, 'bpc', 'Borrado previo de la imagen en cache', '', '', '', 5, 1), |
---|
| 625 | (36, 'rti', 'Ruta de origen', '', '', '', 0, 1), |
---|
[9204a04] | 626 | (37, 'met', 'Método clonación', ';', '', 'Desde caché; Desde repositorio', 3, 1), |
---|
[e4fc3fd] | 627 | (38, 'nba', 'No borrar archivos en destino', '', '', '', 0, 1), |
---|
| 628 | (39, 'tit', 'Título', '', '', '', 0, 1), |
---|
| 629 | (40, 'msj', 'Contenido', '', '', '', 0, 1); |
---|
[3ec149c] | 630 | |
---|
| 631 | -- -------------------------------------------------------- |
---|
| 632 | |
---|
| 633 | -- |
---|
| 634 | -- Estructura de tabla para la tabla `perfileshard` |
---|
[4329e85] | 635 | |
---|
[3ec149c] | 636 | -- |
---|
| 637 | |
---|
[a190d69] | 638 | DROP TABLE IF EXISTS `perfileshard`; |
---|
| 639 | CREATE TABLE `perfileshard` ( |
---|
[3ec149c] | 640 | `idperfilhard` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 641 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
| 642 | `comentarios` text, |
---|
| 643 | `grupoid` int(11) DEFAULT NULL, |
---|
[2ff2099] | 644 | `idcentro` int(11) NOT NULL DEFAULT '0', |
---|
[40ad2e8d] | 645 | `winboot` enum( 'reboot', 'kexec' ) NOT NULL DEFAULT 'reboot', |
---|
[3ec149c] | 646 | PRIMARY KEY (`idperfilhard`) |
---|
| 647 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 648 | |
---|
| 649 | |
---|
| 650 | -- -------------------------------------------------------- |
---|
| 651 | |
---|
| 652 | -- |
---|
| 653 | -- Estructura de tabla para la tabla `perfileshard_hardwares` |
---|
| 654 | -- |
---|
| 655 | |
---|
[a190d69] | 656 | DROP TABLE IF EXISTS `perfileshard_hardwares`; |
---|
| 657 | CREATE TABLE `perfileshard_hardwares` ( |
---|
[3ec149c] | 658 | `idperfilhard` int(11) NOT NULL DEFAULT '0', |
---|
| 659 | `idhardware` int(11) NOT NULL DEFAULT '0', |
---|
| 660 | KEY `idperfilhard` (`idperfilhard`) |
---|
| 661 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
---|
| 662 | |
---|
| 663 | -- -------------------------------------------------------- |
---|
| 664 | |
---|
| 665 | -- |
---|
| 666 | -- Estructura de tabla para la tabla `perfilessoft` |
---|
| 667 | -- |
---|
| 668 | |
---|
[a190d69] | 669 | DROP TABLE IF EXISTS `perfilessoft`; |
---|
| 670 | CREATE TABLE `perfilessoft` ( |
---|
[3ec149c] | 671 | `idperfilsoft` int(11) NOT NULL AUTO_INCREMENT, |
---|
[398dccd] | 672 | `idnombreso` smallint(5) unsigned DEFAULT NULL, |
---|
[3ec149c] | 673 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
| 674 | `comentarios` text, |
---|
| 675 | `grupoid` int(11) DEFAULT NULL, |
---|
[2ff2099] | 676 | `idcentro` int(11) NOT NULL DEFAULT '0', |
---|
[3ec149c] | 677 | PRIMARY KEY (`idperfilsoft`) |
---|
| 678 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 679 | |
---|
| 680 | -- -------------------------------------------------------- |
---|
| 681 | |
---|
| 682 | -- |
---|
| 683 | -- Estructura de tabla para la tabla `perfilessoft_softwares` |
---|
| 684 | -- |
---|
| 685 | |
---|
[a190d69] | 686 | DROP TABLE IF EXISTS `perfilessoft_softwares`; |
---|
| 687 | CREATE TABLE `perfilessoft_softwares` ( |
---|
[3ec149c] | 688 | `idperfilsoft` int(11) NOT NULL DEFAULT '0', |
---|
| 689 | `idsoftware` int(11) NOT NULL DEFAULT '0' |
---|
| 690 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
---|
| 691 | |
---|
| 692 | -- -------------------------------------------------------- |
---|
| 693 | |
---|
| 694 | -- |
---|
| 695 | -- Estructura de tabla para la tabla `plataformas` |
---|
| 696 | -- |
---|
| 697 | |
---|
[a190d69] | 698 | DROP TABLE IF EXISTS `plataformas`; |
---|
| 699 | CREATE TABLE `plataformas` ( |
---|
[3ec149c] | 700 | `idplataforma` int(11) NOT NULL AUTO_INCREMENT, |
---|
[2ff2099] | 701 | `plataforma` varchar(250) NOT NULL DEFAULT '', |
---|
[3ec149c] | 702 | PRIMARY KEY (`idplataforma`) |
---|
| 703 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=18 ; |
---|
| 704 | |
---|
| 705 | -- |
---|
| 706 | -- Volcar la base de datos para la tabla `plataformas` |
---|
| 707 | -- |
---|
| 708 | |
---|
| 709 | INSERT INTO `plataformas` (`idplataforma`, `plataforma`) VALUES |
---|
| 710 | (1, 'MsDos'), |
---|
| 711 | (2, 'Windows'), |
---|
| 712 | (3, 'Linux'), |
---|
| 713 | (4, 'Mac'), |
---|
| 714 | (5, 'OS'); |
---|
| 715 | |
---|
| 716 | -- -------------------------------------------------------- |
---|
| 717 | |
---|
| 718 | -- |
---|
| 719 | -- Estructura de tabla para la tabla `procedimientos` |
---|
| 720 | -- |
---|
| 721 | |
---|
[a190d69] | 722 | DROP TABLE IF EXISTS `procedimientos`; |
---|
| 723 | CREATE TABLE `procedimientos` ( |
---|
[3ec149c] | 724 | `idprocedimiento` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 725 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
| 726 | `urlimg` varchar(250) DEFAULT NULL, |
---|
| 727 | `idcentro` int(11) NOT NULL DEFAULT '0', |
---|
| 728 | `comentarios` text, |
---|
| 729 | `grupoid` int(11) DEFAULT '0', |
---|
| 730 | PRIMARY KEY (`idprocedimiento`) |
---|
| 731 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 732 | |
---|
| 733 | -- -------------------------------------------------------- |
---|
| 734 | |
---|
| 735 | -- |
---|
| 736 | -- Estructura de tabla para la tabla `procedimientos_acciones` |
---|
| 737 | -- |
---|
| 738 | |
---|
[a190d69] | 739 | DROP TABLE IF EXISTS `procedimientos_acciones`; |
---|
| 740 | CREATE TABLE `procedimientos_acciones` ( |
---|
[3ec149c] | 741 | `idprocedimientoaccion` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 742 | `idprocedimiento` int(11) NOT NULL DEFAULT '0', |
---|
| 743 | `orden` smallint(4) DEFAULT NULL, |
---|
| 744 | `idcomando` int(11) NOT NULL DEFAULT '0', |
---|
| 745 | `parametros` text, |
---|
[2ff2099] | 746 | `procedimientoid` int(11) NOT NULL DEFAULT '0', |
---|
[3ec149c] | 747 | PRIMARY KEY (`idprocedimientoaccion`) |
---|
| 748 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 749 | |
---|
| 750 | -- -------------------------------------------------------- |
---|
| 751 | |
---|
| 752 | -- |
---|
| 753 | -- Estructura de tabla para la tabla `programaciones` |
---|
| 754 | -- |
---|
| 755 | |
---|
[a190d69] | 756 | DROP TABLE IF EXISTS `programaciones`; |
---|
| 757 | CREATE TABLE `programaciones` ( |
---|
[3ec149c] | 758 | `idprogramacion` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 759 | `tipoaccion` int(11) DEFAULT NULL, |
---|
| 760 | `identificador` int(11) DEFAULT NULL, |
---|
| 761 | `nombrebloque` varchar(255) DEFAULT NULL, |
---|
[da380e9] | 762 | `annos` smallint DEFAULT NULL, |
---|
| 763 | `meses` smallint DEFAULT NULL, |
---|
[3ec149c] | 764 | `diario` int(11) DEFAULT NULL, |
---|
| 765 | `dias` tinyint(4) DEFAULT NULL, |
---|
| 766 | `semanas` tinyint(4) DEFAULT NULL, |
---|
| 767 | `horas` smallint(4) DEFAULT NULL, |
---|
| 768 | `ampm` tinyint(1) DEFAULT NULL, |
---|
| 769 | `minutos` tinyint(4) DEFAULT NULL, |
---|
| 770 | `segundos` tinyint(4) DEFAULT NULL, |
---|
| 771 | `horasini` smallint(4) DEFAULT NULL, |
---|
| 772 | `ampmini` tinyint(1) DEFAULT NULL, |
---|
| 773 | `minutosini` tinyint(4) DEFAULT NULL, |
---|
| 774 | `horasfin` smallint(4) DEFAULT NULL, |
---|
| 775 | `ampmfin` tinyint(1) DEFAULT NULL, |
---|
| 776 | `minutosfin` tinyint(4) DEFAULT NULL, |
---|
| 777 | `suspendida` tinyint(1) DEFAULT NULL, |
---|
[2ff2099] | 778 | `sesion` int(11) NOT NULL DEFAULT '0', |
---|
[3ec149c] | 779 | PRIMARY KEY (`idprogramacion`) |
---|
| 780 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 781 | |
---|
| 782 | -- -------------------------------------------------------- |
---|
| 783 | |
---|
| 784 | -- |
---|
[cc34367] | 785 | -- Estructura de tabla para la tabla `remotepc` |
---|
| 786 | -- |
---|
| 787 | |
---|
[a190d69] | 788 | DROP TABLE IF EXISTS `remotepc`; |
---|
| 789 | CREATE TABLE `remotepc` ( |
---|
[cc34367] | 790 | `id` int(11) NOT NULL, |
---|
[d8b6c70] | 791 | `reserved` datetime DEFAULT NULL, |
---|
[cc34367] | 792 | `urllogin` varchar(100), |
---|
| 793 | `urllogout` varchar(100), |
---|
[b46042c] | 794 | `language` varchar(5), |
---|
[cc34367] | 795 | PRIMARY KEY (`id`) |
---|
| 796 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
---|
| 797 | |
---|
| 798 | -- -------------------------------------------------------- |
---|
| 799 | |
---|
| 800 | -- |
---|
[3ec149c] | 801 | -- Estructura de tabla para la tabla `repositorios` |
---|
| 802 | -- |
---|
| 803 | |
---|
[a190d69] | 804 | DROP TABLE IF EXISTS `repositorios`; |
---|
| 805 | CREATE TABLE `repositorios` ( |
---|
[3ec149c] | 806 | `idrepositorio` int(11) NOT NULL AUTO_INCREMENT, |
---|
[2ff2099] | 807 | `nombrerepositorio` varchar(250) NOT NULL DEFAULT '', |
---|
[3ec149c] | 808 | `ip` varchar(15) NOT NULL DEFAULT '', |
---|
| 809 | `passguor` varchar(50) NOT NULL DEFAULT '', |
---|
| 810 | `idcentro` int(11) DEFAULT NULL, |
---|
| 811 | `grupoid` int(11) DEFAULT NULL, |
---|
| 812 | `comentarios` text, |
---|
[2ff2099] | 813 | `puertorepo` int(11) NOT NULL DEFAULT '0', |
---|
[15acccd] | 814 | `apikey` varchar(32) NOT NULL DEFAULT '', |
---|
[3ec149c] | 815 | PRIMARY KEY (`idrepositorio`) |
---|
| 816 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 817 | |
---|
[ac933ca] | 818 | INSERT INTO `repositorios` (`idrepositorio`,`nombrerepositorio`,`ip`,`passguor`,`idcentro`,`grupoid`,`comentarios`,`puertorepo`,`apikey`) VALUES |
---|
[8e0f770] | 819 | (1,'Repositorio (Default)','SERVERIP','',1,0,'',2002,'REPOKEY'); |
---|
[58d5ad2] | 820 | |
---|
| 821 | |
---|
[3ec149c] | 822 | -- -------------------------------------------------------- |
---|
| 823 | |
---|
| 824 | -- |
---|
| 825 | -- Estructura de tabla para la tabla `sistemasficheros` |
---|
| 826 | -- |
---|
| 827 | |
---|
[a190d69] | 828 | DROP TABLE IF EXISTS `sistemasficheros`; |
---|
| 829 | CREATE TABLE `sistemasficheros` ( |
---|
[3ec149c] | 830 | `idsistemafichero` smallint(11) NOT NULL AUTO_INCREMENT, |
---|
| 831 | `descripcion` varchar(50) NOT NULL DEFAULT '', |
---|
| 832 | `nemonico` varchar(16) DEFAULT NULL, |
---|
[2ff2099] | 833 | `codpar` int(8) NOT NULL DEFAULT '0', |
---|
[2fae4340] | 834 | PRIMARY KEY (`idsistemafichero`), |
---|
[ed5611d] | 835 | UNIQUE KEY (`descripcion`) |
---|
[3ec149c] | 836 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
[ed5611d] | 837 | INSERT INTO `sistemasficheros` (`idsistemafichero`, `descripcion`, `nemonico`, `codpar`) VALUES |
---|
| 838 | (1, 'EMPTY', 'EMPTY', 0), |
---|
| 839 | (2, 'CACHE', 'CACHE', 0), |
---|
| 840 | (3, 'BTRFS', 'BTRFS', 0), |
---|
| 841 | (4, 'EXT2', 'EXT2', 0), |
---|
| 842 | (5, 'EXT3', 'EXT3', 0), |
---|
| 843 | (6, 'EXT4', 'EXT4', 0), |
---|
| 844 | (7, 'FAT12', 'FAT12', 0), |
---|
| 845 | (8, 'FAT16', 'FAT16', 0), |
---|
| 846 | (9, 'FAT32', 'FAT32', 0), |
---|
| 847 | (10, 'HFS', 'HFS', 0), |
---|
| 848 | (11, 'HFSPLUS', 'HFSPLUS', 0), |
---|
| 849 | (12, 'JFS', 'JFS', 0), |
---|
| 850 | (13, 'NTFS', 'NTFS', 0), |
---|
| 851 | (14, 'REISERFS', 'REISERFS', 0), |
---|
| 852 | (15, 'REISER4', 'REISER4', 0), |
---|
| 853 | (16, 'UFS', 'UFS', 0), |
---|
[cbc2d27] | 854 | (17, 'XFS', 'XFS', 0), |
---|
[a616248] | 855 | (18, 'EXFAT', 'EXFAT', 0), |
---|
| 856 | (19, 'LINUX-SWAP', 'LINUX-SWAP', 0), |
---|
| 857 | (20, 'F2FS', 'F2FS', 0), |
---|
| 858 | (21, 'NILFS2', 'NILFS2', 0); |
---|
[ed5611d] | 859 | |
---|
[3ec149c] | 860 | |
---|
| 861 | -- -------------------------------------------------------- |
---|
| 862 | |
---|
| 863 | -- |
---|
| 864 | -- Estructura de tabla para la tabla `softwares` |
---|
| 865 | -- |
---|
| 866 | |
---|
[a190d69] | 867 | DROP TABLE IF EXISTS `softwares`; |
---|
| 868 | CREATE TABLE `softwares` ( |
---|
[3ec149c] | 869 | `idsoftware` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 870 | `idtiposoftware` int(11) NOT NULL DEFAULT '0', |
---|
| 871 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
| 872 | `idcentro` int(11) NOT NULL DEFAULT '0', |
---|
| 873 | `urlimg` varchar(250) DEFAULT NULL, |
---|
| 874 | `idtiposo` int(11) DEFAULT NULL, |
---|
| 875 | `grupoid` int(11) DEFAULT NULL, |
---|
| 876 | PRIMARY KEY (`idsoftware`) |
---|
| 877 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 878 | |
---|
| 879 | -- -------------------------------------------------------- |
---|
| 880 | |
---|
| 881 | -- |
---|
| 882 | -- Estructura de tabla para la tabla `tareas` |
---|
| 883 | -- |
---|
| 884 | |
---|
[a190d69] | 885 | DROP TABLE IF EXISTS `tareas`; |
---|
| 886 | CREATE TABLE `tareas` ( |
---|
[3ec149c] | 887 | `idtarea` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 888 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
| 889 | `urlimg` varchar(250) DEFAULT NULL, |
---|
| 890 | `idcentro` int(11) NOT NULL DEFAULT '0', |
---|
| 891 | `ambito` smallint(6) NOT NULL DEFAULT '0', |
---|
| 892 | `idambito` int(11) NOT NULL DEFAULT '0', |
---|
[d09e1c3] | 893 | `restrambito` text, |
---|
[3ec149c] | 894 | `comentarios` text, |
---|
| 895 | `grupoid` int(11) DEFAULT '0', |
---|
| 896 | PRIMARY KEY (`idtarea`) |
---|
| 897 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; |
---|
| 898 | |
---|
| 899 | -- -------------------------------------------------------- |
---|
| 900 | |
---|
| 901 | -- |
---|
| 902 | -- Estructura de tabla para la tabla `tareas_acciones` |
---|
| 903 | -- |
---|
| 904 | |
---|
[a190d69] | 905 | DROP TABLE IF EXISTS `tareas_acciones`; |
---|
| 906 | CREATE TABLE `tareas_acciones` ( |
---|
[3ec149c] | 907 | `idtareaaccion` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 908 | `idtarea` int(11) NOT NULL DEFAULT '0', |
---|
| 909 | `orden` smallint(6) NOT NULL DEFAULT '0', |
---|
| 910 | `idprocedimiento` int(11) NOT NULL DEFAULT '0', |
---|
| 911 | `tareaid` int(11) DEFAULT '0', |
---|
| 912 | PRIMARY KEY (`idtareaaccion`) |
---|
| 913 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 914 | |
---|
| 915 | -- -------------------------------------------------------- |
---|
| 916 | |
---|
| 917 | -- |
---|
| 918 | -- Estructura de tabla para la tabla `tipohardwares` |
---|
| 919 | -- |
---|
| 920 | |
---|
[a190d69] | 921 | DROP TABLE IF EXISTS `tipohardwares`; |
---|
| 922 | CREATE TABLE `tipohardwares` ( |
---|
[3ec149c] | 923 | `idtipohardware` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 924 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
| 925 | `urlimg` varchar(250) NOT NULL DEFAULT '', |
---|
[2ff2099] | 926 | `nemonico` char(3) NOT NULL DEFAULT '', |
---|
[3ec149c] | 927 | PRIMARY KEY (`idtipohardware`) |
---|
| 928 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=17 ; |
---|
| 929 | |
---|
| 930 | -- |
---|
| 931 | -- Volcar la base de datos para la tabla `tipohardwares` |
---|
| 932 | -- |
---|
| 933 | |
---|
[da00a02] | 934 | INSERT INTO `tipohardwares` (`idtipohardware`, `descripcion`, `urlimg`, `nemonico`) VALUES |
---|
[6f62a1a] | 935 | (1, 'Placas', '../images/iconos/placabase.gif', 'boa'), |
---|
| 936 | (2, 'Dispositivos Multimedia', '../images/iconos/tsonido.gif', 'mul'), |
---|
| 937 | (3, 'Tarjetas de Red', '../images/iconos/nic.gif', 'net'), |
---|
| 938 | (4, 'Microprocesadores', '../images/iconos/micro.gif', 'cpu'), |
---|
| 939 | (5, 'Memorias', '../images/iconos/confihard.gif', 'mem'), |
---|
| 940 | (7, 'Tarjetas gráficas', '../images/iconos/vga.gif', 'vga'), |
---|
| 941 | (8, 'Discos', '../images/iconos/discoduro.gif', 'dis'), |
---|
| 942 | (9, 'Dispositivos de sonido', '../images/iconos/audio.gif', 'aud'), |
---|
| 943 | (10, 'Marca y modelo del equipo', '../images/iconos/confihard.gif', 'mod'), |
---|
| 944 | (11, 'Modelo y version de la bios', '../images/iconos/confihard.gif', 'bio'), |
---|
| 945 | (12, 'Modelo de grabadora o grabadora de CD/DVD', '../images/iconos/dvdcd.gif', 'cdr'), |
---|
| 946 | (13, 'Controladores IDE', '../images/iconos/ide.gif', 'ide'), |
---|
| 947 | (14, 'Controladores FireWire', '../images/iconos/confihard.gif', 'fir'), |
---|
| 948 | (15, 'Controladores USB', '../images/iconos/usb.gif', 'usb'), |
---|
| 949 | (16, 'Bus del Sistema', '../images/iconos/confihard.gif', 'bus'), |
---|
| 950 | (17, 'Chasis del Sistema', '', 'cha'), |
---|
[aaf5f9f] | 951 | (18, 'Controladores de almacenamiento', '../images/iconos/almacenamiento.png', 'sto'), |
---|
| 952 | (19, 'Tipo de proceso de arranque', '../images/iconos/arranque.png', 'boo'); |
---|
[3ec149c] | 953 | |
---|
| 954 | -- -------------------------------------------------------- |
---|
| 955 | |
---|
| 956 | -- |
---|
| 957 | -- Estructura de tabla para la tabla `tiposoftwares` |
---|
| 958 | -- |
---|
| 959 | |
---|
[a190d69] | 960 | DROP TABLE IF EXISTS `tiposoftwares`; |
---|
| 961 | CREATE TABLE `tiposoftwares` ( |
---|
[3ec149c] | 962 | `idtiposoftware` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 963 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
| 964 | `urlimg` varchar(250) NOT NULL DEFAULT '', |
---|
| 965 | PRIMARY KEY (`idtiposoftware`) |
---|
| 966 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; |
---|
| 967 | |
---|
| 968 | -- |
---|
| 969 | -- Volcar la base de datos para la tabla `tiposoftwares` |
---|
| 970 | -- |
---|
| 971 | |
---|
| 972 | INSERT INTO `tiposoftwares` (`idtiposoftware`, `descripcion`, `urlimg`) VALUES |
---|
| 973 | (1, 'Sistemas Operativos', '../images/iconos/so.gif'), |
---|
| 974 | (2, 'Aplicaciones', '../images/iconos/aplicaciones.gif'), |
---|
| 975 | (3, 'Archivos', '../images/iconos/archivos.gif'); |
---|
| 976 | |
---|
| 977 | -- -------------------------------------------------------- |
---|
| 978 | |
---|
| 979 | -- |
---|
| 980 | -- Estructura de tabla para la tabla `tiposos` |
---|
| 981 | -- |
---|
| 982 | |
---|
[a190d69] | 983 | DROP TABLE IF EXISTS `tiposos`; |
---|
| 984 | CREATE TABLE `tiposos` ( |
---|
[3ec149c] | 985 | `idtiposo` int(11) NOT NULL AUTO_INCREMENT, |
---|
[2ff2099] | 986 | `tiposo` varchar(250) NOT NULL DEFAULT '', |
---|
| 987 | `idplataforma` int(11) NOT NULL DEFAULT '0', |
---|
[3ec149c] | 988 | PRIMARY KEY (`idtiposo`) |
---|
| 989 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=21 ; |
---|
| 990 | |
---|
| 991 | -- |
---|
| 992 | -- Volcar la base de datos para la tabla `tiposos` |
---|
| 993 | -- |
---|
| 994 | |
---|
| 995 | INSERT INTO `tiposos` (`idtiposo`, `tiposo`, `idplataforma`) VALUES |
---|
| 996 | (1, 'MsDos 6.0', 1), |
---|
| 997 | (2, 'Windows 98', 2), |
---|
| 998 | (3, 'Linux Ubuntu', 3), |
---|
| 999 | (4, 'Mac', 0), |
---|
| 1000 | (5, 'OS', 0), |
---|
| 1001 | (17, 'Windows XP', 2), |
---|
| 1002 | (18, 'Windows Vista', 2), |
---|
| 1003 | (19, 'Linux Red Hat', 3), |
---|
| 1004 | (20, 'Windows 7', 2); |
---|
| 1005 | |
---|
| 1006 | -- -------------------------------------------------------- |
---|
| 1007 | |
---|
| 1008 | -- |
---|
| 1009 | -- Estructura de tabla para la tabla `tipospar` |
---|
| 1010 | -- |
---|
| 1011 | |
---|
[a190d69] | 1012 | DROP TABLE IF EXISTS `tipospar`; |
---|
| 1013 | CREATE TABLE `tipospar` ( |
---|
[e88c0b1] | 1014 | `codpar` int(8) NOT NULL, |
---|
[2ff2099] | 1015 | `tipopar` varchar(250) NOT NULL DEFAULT '', |
---|
| 1016 | `clonable` tinyint(4) NOT NULL DEFAULT '0', |
---|
[3ec149c] | 1017 | UNIQUE KEY `codpar` (`codpar`) |
---|
| 1018 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
---|
| 1019 | |
---|
| 1020 | -- |
---|
| 1021 | -- Volcar la base de datos para la tabla `tipospar` |
---|
| 1022 | -- |
---|
| 1023 | |
---|
| 1024 | INSERT INTO `tipospar` (`codpar`, `tipopar`, `clonable`) VALUES |
---|
| 1025 | (0, 'EMPTY', 0), |
---|
| 1026 | (1, 'FAT12', 1), |
---|
| 1027 | (5, 'EXTENDED', 0), |
---|
[e88c0b1] | 1028 | (6, 'FAT16', 1), |
---|
[3ec149c] | 1029 | (7, 'NTFS', 1), |
---|
[e88c0b1] | 1030 | (CONV('0B',16,10), 'FAT32', 1), |
---|
| 1031 | (CONV('11',16,10), 'HFAT12', 1), |
---|
| 1032 | (CONV('16',16,10), 'HFAT16', 1), |
---|
| 1033 | (CONV('17',16,10), 'HNTFS', 1), |
---|
| 1034 | (CONV('1B',16,10), 'HFAT32', 1), |
---|
| 1035 | (CONV('82',16,10), 'LINUX-SWAP', 0), |
---|
| 1036 | (CONV('83',16,10), 'LINUX', 1), |
---|
| 1037 | (CONV('8E',16,10), 'LINUX-LVM', 1), |
---|
| 1038 | (CONV('A5',16,10), 'FREEBSD', 1), |
---|
| 1039 | (CONV('A6',16,10), 'OPENBSD', 1), |
---|
[822d4f5] | 1040 | (CONV('A9',16,10), 'NETBSD', 1), |
---|
[e88c0b1] | 1041 | (CONV('AF',16,10), 'HFS', 1), |
---|
| 1042 | (CONV('BE',16,10), 'SOLARIS-BOOT', 1), |
---|
| 1043 | (CONV('BF',16,10), 'SOLARIS', 1), |
---|
| 1044 | (CONV('CA',16,10), 'CACHE', 0), |
---|
| 1045 | (CONV('DA',16,10), 'DATA', 1), |
---|
| 1046 | (CONV('EE',16,10), 'GPT', 0), |
---|
[cbc2d27] | 1047 | (CONV('EF',16,10), 'EFI', 1), |
---|
[e88c0b1] | 1048 | (CONV('FB',16,10), 'VMFS', 1), |
---|
| 1049 | (CONV('FD',16,10), 'LINUX-RAID', 1), |
---|
| 1050 | (CONV('0700',16,10), 'WINDOWS', 1), |
---|
[77648b6] | 1051 | (CONV('0C01',16,10), 'WIN-RESERV', 1), |
---|
[822d4f5] | 1052 | (CONV('2700',16,10), 'WIN-RECOV', 1), |
---|
[77648b6] | 1053 | (CONV('7F00',16,10), 'CHROMEOS-KRN', 1), |
---|
| 1054 | (CONV('7F01',16,10), 'CHROMEOS', 1), |
---|
| 1055 | (CONV('7F02',16,10), 'CHROMEOS-RESERV', 1), |
---|
[e88c0b1] | 1056 | (CONV('8200',16,10), 'LINUX-SWAP', 0), |
---|
| 1057 | (CONV('8300',16,10), 'LINUX', 1), |
---|
[77648b6] | 1058 | (CONV('8301',16,10), 'LINUX-RESERV', 1), |
---|
[822d4f5] | 1059 | (CONV('8302',16,10), 'LINUX', 1), |
---|
[e88c0b1] | 1060 | (CONV('8E00',16,10), 'LINUX-LVM', 1), |
---|
| 1061 | (CONV('A500',16,10), 'FREEBSD-DISK', 0), |
---|
| 1062 | (CONV('A501',16,10), 'FREEBSD-BOOT', 1), |
---|
| 1063 | (CONV('A502',16,10), 'FREEBSD-SWAP', 0), |
---|
| 1064 | (CONV('A503',16,10), 'FREEBSD', 1), |
---|
[822d4f5] | 1065 | (CONV('A504',16,10), 'FREEBSD', 1), |
---|
| 1066 | (CONV('A901',16,10), 'NETBSD-SWAP', 0), |
---|
| 1067 | (CONV('A902',16,10), 'NETBSD', 1), |
---|
| 1068 | (CONV('A903',16,10), 'NETBSD', 1), |
---|
| 1069 | (CONV('A904',16,10), 'NETBSD', 1), |
---|
| 1070 | (CONV('A905',16,10), 'NETBSD', 1), |
---|
| 1071 | (CONV('A906',16,10), 'NETBSD-RAID', 1), |
---|
[fea9dfb] | 1072 | (CONV('AB00',16,10), 'HFS-BOOT', 1), |
---|
[e88c0b1] | 1073 | (CONV('AF00',16,10), 'HFS', 1), |
---|
[77648b6] | 1074 | (CONV('AF01',16,10), 'HFS-RAID', 1), |
---|
[822d4f5] | 1075 | (CONV('AF02',16,10), 'HFS-RAID', 1), |
---|
[e88c0b1] | 1076 | (CONV('BE00',16,10), 'SOLARIS-BOOT', 1), |
---|
| 1077 | (CONV('BF00',16,10), 'SOLARIS', 1), |
---|
| 1078 | (CONV('BF01',16,10), 'SOLARIS', 1), |
---|
| 1079 | (CONV('BF02',16,10), 'SOLARIS-SWAP', 0), |
---|
| 1080 | (CONV('BF03',16,10), 'SOLARIS-DISK', 1), |
---|
| 1081 | (CONV('BF04',16,10), 'SOLARIS', 1), |
---|
| 1082 | (CONV('BF05',16,10), 'SOLARIS', 1), |
---|
[77648b6] | 1083 | (CONV('CA00',16,10), 'CACHE', 0), |
---|
[cbc2d27] | 1084 | (CONV('EF00',16,10), 'EFI', 1), |
---|
[e88c0b1] | 1085 | (CONV('EF01',16,10), 'MBR', 0), |
---|
| 1086 | (CONV('EF02',16,10), 'BIOS-BOOT', 0), |
---|
[822d4f5] | 1087 | (CONV('FB00',16,10), 'VMFS', 1), |
---|
| 1088 | (CONV('FB01',16,10), 'VMFS-RESERV', 1), |
---|
| 1089 | (CONV('FB02',16,10), 'VMFS-KRN', 1), |
---|
[e88c0b1] | 1090 | (CONV('FD00',16,10), 'LINUX-RAID', 1), |
---|
[dee9fac] | 1091 | (CONV('FFFF',16,10), 'UNKNOWN', 1), |
---|
| 1092 | (CONV('10000',16,10), 'LVM-LV', 1), |
---|
| 1093 | (CONV('10010',16,10), 'ZFS-VOL', 1); |
---|
| 1094 | |
---|
[3ec149c] | 1095 | |
---|
| 1096 | -- -------------------------------------------------------- |
---|
| 1097 | |
---|
| 1098 | -- |
---|
| 1099 | -- Estructura de tabla para la tabla `universidades` |
---|
| 1100 | -- |
---|
| 1101 | |
---|
[a190d69] | 1102 | DROP TABLE IF EXISTS `universidades`; |
---|
| 1103 | CREATE TABLE `universidades` ( |
---|
[3ec149c] | 1104 | `iduniversidad` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 1105 | `nombreuniversidad` varchar(200) NOT NULL DEFAULT '', |
---|
| 1106 | `comentarios` text, |
---|
| 1107 | PRIMARY KEY (`iduniversidad`) |
---|
| 1108 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; |
---|
| 1109 | |
---|
| 1110 | -- |
---|
| 1111 | -- Volcar la base de datos para la tabla `universidades` |
---|
| 1112 | -- |
---|
| 1113 | |
---|
| 1114 | INSERT INTO `universidades` (`iduniversidad`, `nombreuniversidad`, `comentarios`) VALUES |
---|
[049ec55c] | 1115 | (1, 'Universidad (Default)', 'Esta Universidad se crea automáticamentese en el proceso de instalación de OpenGnsys'); |
---|
[3ec149c] | 1116 | |
---|
| 1117 | -- -------------------------------------------------------- |
---|
| 1118 | |
---|
| 1119 | -- |
---|
| 1120 | -- Estructura de tabla para la tabla `urlimagesitems` |
---|
| 1121 | -- |
---|
| 1122 | |
---|
[a190d69] | 1123 | DROP TABLE IF EXISTS `urlimagesitems`; |
---|
| 1124 | CREATE TABLE `urlimagesitems` ( |
---|
[3ec149c] | 1125 | `idurlimagesitems` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 1126 | `descripcion` varchar(250) NOT NULL DEFAULT '', |
---|
| 1127 | PRIMARY KEY (`idurlimagesitems`) |
---|
| 1128 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
---|
| 1129 | |
---|
| 1130 | -- |
---|
| 1131 | -- Volcar la base de datos para la tabla `urlimagesitems` |
---|
| 1132 | -- |
---|
| 1133 | |
---|
| 1134 | |
---|
| 1135 | -- -------------------------------------------------------- |
---|
| 1136 | |
---|
| 1137 | -- |
---|
| 1138 | -- Estructura de tabla para la tabla `usuarios` |
---|
| 1139 | -- |
---|
| 1140 | |
---|
[a190d69] | 1141 | DROP TABLE IF EXISTS `usuarios`; |
---|
| 1142 | CREATE TABLE `usuarios` ( |
---|
[3ec149c] | 1143 | `idusuario` int(11) NOT NULL AUTO_INCREMENT, |
---|
| 1144 | `usuario` varchar(50) NOT NULL DEFAULT '', |
---|
[2b2311f] | 1145 | `pasguor` varchar(56) NOT NULL DEFAULT '', |
---|
[3ec149c] | 1146 | `nombre` varchar(200) DEFAULT NULL, |
---|
| 1147 | `email` varchar(200) DEFAULT NULL, |
---|
| 1148 | `ididioma` int(11) DEFAULT NULL, |
---|
| 1149 | `idtipousuario` tinyint(4) DEFAULT NULL, |
---|
[216105a] | 1150 | `apikey` varchar(32) NOT NULL DEFAULT '', |
---|
[3ec149c] | 1151 | PRIMARY KEY (`idusuario`) |
---|
| 1152 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; |
---|
| 1153 | |
---|
| 1154 | -- |
---|
| 1155 | -- Volcar la base de datos para la tabla `usuarios` |
---|
| 1156 | -- |
---|
| 1157 | |
---|
[da00a02] | 1158 | INSERT INTO `usuarios` (`idusuario`, `usuario`, `pasguor`, `nombre`, `email`, `ididioma`, `idtipousuario`, `apikey`) VALUES |
---|
[3ac11d4] | 1159 | (1, 'DBUSER', SHA2('DBPASSWORD', 224), 'Usuario de la base de datos MySql', '', 1, 1, 'APIKEY'); |
---|
[3ec149c] | 1160 | |
---|
[cbe1fdf] | 1161 | |
---|