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