source: admin/Database/ogAdmBD.sql @ d81fc6a

Last change on this file since d81fc6a was d81fc6a, checked in by ramon <ramongomez@…>, 8 years ago

#754: Incluir pequeñas correcciones en versión 1.0.6b

git-svn-id: https://opengnsys.es/svn/trunk@5157 a21b9725-9963-47de-94b9-378ad31fedc9

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