source: admin/Database/ogAdmBD.sql @ 2b2311f

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 2b2311f was 2b2311f, checked in by ramon <ramongomez@…>, 8 years ago

#778: Modificar BD para guardar clave de usuario codificada con función AES2 de 224 bits.

git-svn-id: https://opengnsys.es/svn/branches/version1.1@5253 a21b9725-9963-47de-94b9-378ad31fedc9

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