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