source: admin/Database/ogAdmBD.sql @ fe6843b

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 fe6843b was 7829e4e, checked in by ramon <ramongomez@…>, 10 years ago

#708: Integrar código del ticket:708 en versión 1.1.

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

  • Property mode set to 100644
File size: 37.8 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  `inremotepc` tinyint DEFAULT 0,
113  PRIMARY KEY (`idaula`)
114) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
115
116
117--
118-- Estructura de tabla para la tabla `asistentes`
119--
120
121CREATE TABLE IF NOT EXISTS `asistentes` (
122  `idcomando` int(11) NOT NULL AUTO_INCREMENT,
123  `descripcion` varchar(250) NOT NULL DEFAULT '',
124  `pagina` varchar(256) NOT NULL,
125  `gestor` varchar(256) NOT NULL,
126  `funcion` varchar(64) NOT NULL,
127  `urlimg` varchar(250) DEFAULT NULL,
128  `aplicambito` tinyint(4) DEFAULT NULL,
129  `visuparametros` varchar(250) DEFAULT NULL,
130  `parametros` varchar(250) DEFAULT NULL,
131  `comentarios` text,
132  `activo` tinyint(1) NOT NULL,
133  PRIMARY KEY ( `idcomando` , `descripcion` )
134) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
135
136
137INSERT INTO `asistentes` (`idcomando`, `descripcion`, `pagina`, `gestor`, `funcion`, `urlimg`, `aplicambito`, `visuparametros`, `parametros`, `comentarios`, `activo`) VALUES
138('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'),
139('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'),
140('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'),
141('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'),
142('8', 'Asistente Particionado', '../asistentes/AsistenteParticionado.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1');
143
144
145
146-- --------------------------------------------------------
147
148--
149-- Estructura de tabla para la tabla `campus`
150--
151
152CREATE TABLE IF NOT EXISTS `campus` (
153  `idcampus` int(11) NOT NULL AUTO_INCREMENT,
154  `nombrecampus` varchar(100) NOT NULL DEFAULT '',
155  `iduniversidad` int(11) DEFAULT NULL,
156  `urlmapa` varchar(255) DEFAULT NULL,
157  `cuadro_y` tinyint(3) DEFAULT NULL,
158  `cuadro_x` tinyint(3) DEFAULT NULL,
159  PRIMARY KEY (`idcampus`)
160) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
161
162--
163-- Volcar la base de datos para la tabla `campus`
164--
165
166
167-- --------------------------------------------------------
168
169--
170-- Estructura de tabla para la tabla `centros`
171--
172
173CREATE TABLE IF NOT EXISTS `centros` (
174  `idcentro` int(11) NOT NULL AUTO_INCREMENT,
175  `nombrecentro` varchar(100) NOT NULL DEFAULT '',
176  `identidad` int(11) DEFAULT NULL,
177  `comentarios` text,
178  PRIMARY KEY (`idcentro`)
179) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
180
181
182--
183-- Volcar la base de datos para la tabla `centros`
184--
185INSERT INTO `centros` (`idcentro`,`nombrecentro`,`identidad`,`comentarios`) VALUES
186 (1,'Unidad Organizativa (Default)',1,'Esta Unidad Organizativa se crea automáticamente en el proceso de instalación de OpenGnSys');
187
188
189-- --------------------------------------------------------
190
191--
192-- Estructura de tabla para la tabla `comandos`
193--
194
195CREATE TABLE IF NOT EXISTS `comandos` (
196  `idcomando` int(11) NOT NULL AUTO_INCREMENT,
197  `descripcion` varchar(250) NOT NULL DEFAULT '',
198  `pagina` varchar(256) NOT NULL,
199  `gestor` varchar(256) NOT NULL,
200  `funcion` varchar(64) NOT NULL,
201  `urlimg` varchar(250) DEFAULT NULL,
202  `aplicambito` tinyint(4) DEFAULT NULL,
203  `visuparametros` varchar(250) DEFAULT NULL,
204  `parametros` varchar(250) DEFAULT NULL,
205  `comentarios` text,
206  `activo` tinyint(1) NOT NULL,
207  `submenu` varchar(50) NOT NULL DEFAULT '',
208  PRIMARY KEY (`idcomando`)
209) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
210
211--
212-- Volcar la base de datos para la tabla `comandos`
213--
214
215INSERT INTO `comandos` (`idcomando`, `descripcion`, `pagina`, `gestor`, `funcion`, `urlimg`, `aplicambito`, `visuparametros`, `parametros`, `comentarios`, `activo`, `submenu`) VALUES
216(1, 'Arrancar', '../comandos/Arrancar.php', '../comandos/gestores/gestor_Comandos.php', 'Arrancar', '', 31, '', 'nfn;iph;mac', '', 1, ''),
217(2, 'Apagar', '../comandos/Apagar.php', '../comandos/gestores/gestor_Comandos.php', 'Apagar', '', 31, '', 'nfn;iph;mac', '', 1, ''),
218(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, ''),
219(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, ''),
220(5, 'Reiniciar', '../comandos/Reiniciar.php', '../comandos/gestores/gestor_Comandos.php', 'Reiniciar', '', 31, '', 'nfn;iph;mac;', '', 1, ''),
221(6, 'Inventario Hardware', '../comandos/InventarioHardware.php', '../comandos/gestores/gestor_Comandos.php', 'InventarioHardware', '', 16, '', 'nfn;iph;mac;', '', 1, ''),
222(7, 'Inventario Software', '../comandos/InventarioSoftware.php', '../comandos/gestores/gestor_Comandos.php', 'InventarioSoftware', '', 16, 'dsk;par', 'nfn;iph;mac;dsk;par', '', 1, ''),
223(8, 'Ejecutar Script', '../comandos/EjecutarScripts.php', '../comandos/gestores/gestor_Comandos.php', 'EjecutarScript', '', 31, 'iph;tis;dcr;scp', 'nfn;iph;tis;dcr;scp', '', 1, ''),
224(9, 'Iniciar Sesion', '../comandos/IniciarSesion.php', '../comandos/gestores/gestor_Comandos.php', 'IniciarSesion', '', 31, 'dsk;par', 'nfn;iph;dsk;par', '', 1, ''),
225(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, ''),
226(11, 'Eliminar Imagen Cache', '../comandos/EliminarImagenCache.php', '../comandos/gestores/gestor_Comandos.php', 'EliminarImagenCache', '', 31, 'iph;tis;dcr;scp', 'nfn;iph;tis;dcr;scp', '', 1, ''),
227(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'),
228(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'),
229(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'),
230(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');
231
232
233
234-- --------------------------------------------------------
235
236--
237-- Estructura de tabla para la tabla `entidades`
238--
239
240CREATE TABLE IF NOT EXISTS `entidades` (
241  `identidad` int(11) NOT NULL AUTO_INCREMENT,
242  `nombreentidad` varchar(200) NOT NULL DEFAULT '',
243  `comentarios` text,
244  `iduniversidad` int(11) DEFAULT NULL,
245  `grupoid` int(11) DEFAULT NULL,
246  PRIMARY KEY (`identidad`)
247) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
248
249--
250-- Volcar la base de datos para la tabla `entidades`
251--
252
253INSERT INTO `entidades` (`identidad`, `nombreentidad`, `comentarios`, `iduniversidad`, `grupoid`) VALUES
254(1, 'Entidad (Default)', 'Esta Entidad se crea automáticamente en el proceso de instalación de OpenGnSys', 1, 0);
255
256-- --------------------------------------------------------
257
258--
259-- Estructura de tabla para la tabla `entornos`
260--
261
262CREATE TABLE IF NOT EXISTS `entornos` (
263  `identorno` int(11) NOT NULL AUTO_INCREMENT,
264  `ipserveradm` varchar(50) NOT NULL,
265  `portserveradm` int(20) NOT NULL,
266  `protoclonacion` varchar(50) NOT NULL,
267  PRIMARY KEY (`identorno`)
268) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
269
270--
271-- Volcar la base de datos para la tabla `entornos`
272--
273
274INSERT INTO `entornos` (`identorno`, `ipserveradm`, `portserveradm`, `protoclonacion`) VALUES
275(1, 'SERVERIP', 2008, 'UNICAST');
276
277-- --------------------------------------------------------
278
279--
280-- Estructura de tabla para la tabla `estatus`
281--
282
283CREATE TABLE IF NOT EXISTS `estatus` (
284  `idestatus` int(11) NOT NULL AUTO_INCREMENT,
285  `descripcion` varchar(250) NOT NULL DEFAULT '',
286  PRIMARY KEY (`idestatus`)
287) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
288
289--
290-- Volcar la base de datos para la tabla `estatus`
291--
292
293INSERT INTO `estatus` (`idestatus`, `descripcion`) VALUES
294(1, 'P.D.I. ( Profesor)'),
295(2, 'P.A.S.'),
296(3, 'Doctor'),
297(4, 'Alumno'),
298(5, 'Otros');
299
300-- --------------------------------------------------------
301
302--
303-- Estructura de tabla para la tabla `grupos`
304--
305
306CREATE TABLE IF NOT EXISTS `grupos` (
307  `idgrupo` int(11) NOT NULL AUTO_INCREMENT,
308  `nombregrupo` varchar(250) NOT NULL DEFAULT '',
309  `grupoid` int(11) NOT NULL DEFAULT '0',
310  `tipo` tinyint(4) NOT NULL DEFAULT '0',
311  `idcentro` int(11) NOT NULL DEFAULT '0',
312  `iduniversidad` int(11) DEFAULT NULL,
313  `comentarios` text,
314  PRIMARY KEY (`idgrupo`)
315) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
316
317-- --------------------------------------------------------
318
319--
320-- Estructura de tabla para la tabla `gruposordenadores`
321--
322
323CREATE TABLE IF NOT EXISTS `gruposordenadores` (
324  `idgrupo` int(11) NOT NULL AUTO_INCREMENT,
325  `nombregrupoordenador` varchar(250) NOT NULL DEFAULT '',
326  `idaula` int(11) NOT NULL DEFAULT '0',
327  `grupoid` int(11) DEFAULT NULL,
328  `comentarios` text,
329  PRIMARY KEY (`idgrupo`)
330) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
331
332-- --------------------------------------------------------
333
334--
335-- Estructura de tabla para la tabla `hardwares`
336--
337
338CREATE TABLE IF NOT EXISTS `hardwares` (
339  `idhardware` int(11) NOT NULL AUTO_INCREMENT,
340  `idtipohardware` int(11) NOT NULL DEFAULT '0',
341  `descripcion` varchar(250) NOT NULL DEFAULT '',
342  `idcentro` int(11) NOT NULL DEFAULT '0',
343  `grupoid` int(11) DEFAULT NULL,
344  PRIMARY KEY (`idhardware`)
345) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
346
347
348-- --------------------------------------------------------
349
350--
351-- Estructura de tabla para la tabla `iconos`
352--
353
354CREATE TABLE IF NOT EXISTS `iconos` (
355  `idicono` int(11) NOT NULL AUTO_INCREMENT,
356  `urlicono` varchar(200) DEFAULT NULL,
357  `idtipoicono` int(11) DEFAULT NULL,
358  `descripcion` varchar(250) DEFAULT NULL,
359  PRIMARY KEY (`idicono`)
360) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;
361
362--
363-- Volcar la base de datos para la tabla `iconos`
364--
365
366INSERT INTO `iconos` (`idicono`, `urlicono`, `idtipoicono`, `descripcion`) VALUES
367(1, 'vga.gif', 1, 'Tarjeta gráfica'),
368(2, 'nic.gif', 1, 'Tarjeta de Red'),
369(3, 'placabase.gif', 1, 'Placas base'),
370(4, 'tsonido.gif', 1, 'Tarjeta de sonido'),
371(5, 'camweb.gif', 1, 'Cámara web'),
372(6, 'logoXP.png', 2, 'Logo Windows XP'),
373(7, 'logolinux.png', 2, 'Logo General de Linux'),
374(8, 'particionar.png', 2, 'Particionar'),
375(9, 'ordenadoroff.png', 2, 'Ordenador apagado'),
376(10, 'ordenadoron.png', 2, 'Ordenador encendido'),
377(11, 'usb.gif', 1, 'Mi icono usb'),
378(12, 'ide.gif', 1, 'Controladores IDE'),
379(13, 'dvdcd.gif', 1, 'Lectoras y grabadoras de DVD'),
380(14, 'audio.gif', 1, 'Dispositivos de audio');
381
382-- --------------------------------------------------------
383
384--
385-- Estructura de tabla para la tabla `idiomas`
386--
387
388CREATE TABLE IF NOT EXISTS `idiomas` (
389  `ididioma` int(11) NOT NULL AUTO_INCREMENT,
390  `descripcion` varchar(100) DEFAULT NULL,
391  `nemonico` char(3) DEFAULT NULL,
392  PRIMARY KEY (`ididioma`)
393) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
394
395--
396-- Volcar la base de datos para la tabla `idiomas`
397--
398
399INSERT INTO `idiomas` (`ididioma`, `descripcion`, `nemonico`) VALUES
400(1, 'Español', 'esp'),
401(2, 'English', 'eng'),
402(3, 'Català', 'cat');
403
404-- --------------------------------------------------------
405
406--
407-- Estructura de tabla para la tabla `imagenes`
408--
409
410CREATE TABLE IF NOT EXISTS `imagenes` (
411  `idimagen` int(11) NOT NULL AUTO_INCREMENT,
412  `nombreca` varchar(50) NOT NULL,
413  `descripcion` varchar(250) NOT NULL DEFAULT '',
414  `idperfilsoft` int(11) DEFAULT NULL,
415  `idcentro` int(11) DEFAULT NULL,
416  `comentarios` text,
417  `grupoid` int(11) DEFAULT NULL,
418  `idrepositorio` int(11) NOT NULL DEFAULT 0,
419  `idordenador` int(11) NOT NULL DEFAULT 0,
420  `numdisk` smallint NOT NULL DEFAULT 0,
421  `numpar` smallint NOT NULL DEFAULT 0,
422  `codpar` int(8) NOT NULL DEFAULT 0,
423  `tipo` tinyint NULL,
424  `imagenid` int NOT NULL DEFAULT 0,
425  `ruta` varchar(250) NULL,
426  `fechacreacion` datetime DEFAULT NULL,
427  PRIMARY KEY (`idimagen`)
428) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
429
430-- --------------------------------------------------------
431
432--
433-- Estructura de tabla para la tabla `menus`
434--
435
436CREATE TABLE IF NOT EXISTS `menus` (
437  `idmenu` int(11) NOT NULL AUTO_INCREMENT,
438  `descripcion` varchar(250) NOT NULL DEFAULT '',
439  `idcentro` int(11) NOT NULL DEFAULT '0',
440  `idurlimg` int(11) NOT NULL DEFAULT '0',
441  `titulo` varchar(250) DEFAULT NULL,
442  `modalidad` tinyint(4) DEFAULT NULL,
443  `smodalidad` tinyint(4) DEFAULT NULL,
444  `comentarios` text,
445  `grupoid` int(11) NOT NULL DEFAULT '0',
446  `htmlmenupub` varchar(250) DEFAULT NULL,
447  `htmlmenupri` varchar(250) DEFAULT NULL,
448  `resolucion` varchar(50) DEFAULT NULL,
449  PRIMARY KEY (`idmenu`)
450) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
451
452-- --------------------------------------------------------
453
454--
455-- Estructura de tabla para la tabla `nombresos`
456--
457
458CREATE TABLE IF NOT EXISTS `nombresos` (
459  `idnombreso` smallint(11) NOT NULL AUTO_INCREMENT,
460  `nombreso` varchar(250) NOT NULL,
461  `idtiposo` int(11) DEFAULT '0',
462  PRIMARY KEY (`idnombreso`)
463) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
464
465-- --------------------------------------------------------
466
467--
468-- Estructura de tabla para la tabla `ordenadores`
469--
470
471CREATE TABLE IF NOT EXISTS `ordenadores` (
472  `idordenador` int(11) NOT NULL AUTO_INCREMENT,
473  `nombreordenador` varchar(100) DEFAULT NULL,
474  `ip` varchar(16) NOT NULL,
475  `mac` varchar(12) DEFAULT NULL,
476  `idaula` int(11) DEFAULT NULL,
477  `idperfilhard` int(11) DEFAULT NULL,
478  `idrepositorio` int(11) DEFAULT NULL,
479  `grupoid` int(11) DEFAULT NULL,
480  `idmenu` int(11) DEFAULT NULL,
481  `cache` int(11) DEFAULT NULL,
482  `router` varchar(16) NOT NULL,
483  `mascara` varchar(16) NOT NULL,
484  `idproautoexec` int(11) NOT NULL DEFAULT 0,
485  `arranque` VARCHAR( 30 ) NOT NULL DEFAULT '00unknown',
486  `netiface` enum('eth0','eth1','eth2') DEFAULT 'eth0',
487  `netdriver` varchar( 30 ) NOT NULL DEFAULT 'generic',
488  `fotoord` varchar( 250 ) NOT NULL DEFAULT 'fotoordenador.gif',
489  `validacion` tinyint(1) DEFAULT '0',
490  `paginalogin` varchar(100),
491  `paginavalidacion` varchar(100),
492  PRIMARY KEY (`idordenador`)
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
778
779-- --------------------------------------------------------
780
781--
782-- Estructura de tabla para la tabla `softwares`
783--
784
785CREATE TABLE IF NOT EXISTS `softwares` (
786  `idsoftware` int(11) NOT NULL AUTO_INCREMENT,
787  `idtiposoftware` int(11) NOT NULL DEFAULT '0',
788  `descripcion` varchar(250) NOT NULL DEFAULT '',
789  `idcentro` int(11) NOT NULL DEFAULT '0',
790  `urlimg` varchar(250) DEFAULT NULL,
791  `idtiposo` int(11) DEFAULT NULL,
792  `grupoid` int(11) DEFAULT NULL,
793  PRIMARY KEY (`idsoftware`)
794) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
795
796-- --------------------------------------------------------
797
798--
799-- Estructura de tabla para la tabla `tareas`
800--
801
802CREATE TABLE IF NOT EXISTS `tareas` (
803  `idtarea` int(11) NOT NULL AUTO_INCREMENT,
804  `descripcion` varchar(250) NOT NULL DEFAULT '',
805  `urlimg` varchar(250) DEFAULT NULL,
806  `idcentro` int(11) NOT NULL DEFAULT '0',
807  `ambito` smallint(6) NOT NULL DEFAULT '0',
808  `idambito` int(11) NOT NULL DEFAULT '0',
809  `restrambito` text NOT NULL,
810  `comentarios` text,
811  `grupoid` int(11) DEFAULT '0',
812  PRIMARY KEY (`idtarea`)
813) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
814
815-- --------------------------------------------------------
816
817--
818-- Estructura de tabla para la tabla `tareas_acciones`
819--
820
821CREATE TABLE IF NOT EXISTS `tareas_acciones` (
822  `idtareaaccion` int(11) NOT NULL AUTO_INCREMENT,
823  `idtarea` int(11) NOT NULL DEFAULT '0',
824  `orden` smallint(6) NOT NULL DEFAULT '0',
825  `idprocedimiento` int(11) NOT NULL DEFAULT '0',
826  `tareaid` int(11) DEFAULT '0',
827  PRIMARY KEY (`idtareaaccion`)
828) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
829
830-- --------------------------------------------------------
831
832--
833-- Estructura de tabla para la tabla `tipohardwares`
834--
835
836CREATE TABLE IF NOT EXISTS `tipohardwares` (
837  `idtipohardware` int(11) NOT NULL AUTO_INCREMENT,
838  `descripcion` varchar(250) NOT NULL DEFAULT '',
839  `urlimg` varchar(250) NOT NULL DEFAULT '',
840  `nemonico` char(3) NOT NULL,
841  `pci` tinyint(1) NOT NULL,
842  PRIMARY KEY (`idtipohardware`)
843) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=17 ;
844
845--
846-- Volcar la base de datos para la tabla `tipohardwares`
847--
848
849INSERT INTO `tipohardwares` (`idtipohardware`, `descripcion`, `urlimg`, `nemonico`, `pci`) VALUES
850(1, 'Placas', '../images/iconos/placabase.gif', 'boa', 0),
851(2, 'Dispositivos Multimedia', '../images/iconos/tsonido.gif', 'mul', 0),
852(3, 'Tarjetas de Red', '../images/iconos/nic.gif', 'net', 0),
853(4, 'Microprocesadores', '../images/iconos/micro.gif', 'cpu', 0),
854(5, 'Memorias', '../images/iconos/confihard.gif', 'mem', 0),
855(7, 'Tarjetas gráficas', '../images/iconos/vga.gif', 'vga', 0),
856(8, 'Discos', '../images/iconos/discoduro.gif', 'dis', 0),
857(9, 'Dispositivos de sonido', '../images/iconos/audio.gif', 'aud', 0),
858(10, 'Marca y modelo del equipo', '../images/iconos/confihard.gif', 'mod', 0),
859(11, 'Modelo y version de la bios', '../images/iconos/confihard.gif', 'bio', 0),
860(12, 'Modelo de grabadora o  grabadora de CD/DVD', '../images/iconos/dvdcd.gif', 'cdr', 0),
861(13, 'Controladores IDE', '../images/iconos/ide.gif', 'ide', 0),
862(14, 'Controladores FireWire', '../images/iconos/confihard.gif', 'fir', 0),
863(15, 'Controladores USB', '../images/iconos/usb.gif', 'usb', 0),
864(16, 'Bus del Sistema', '../images/iconos/confihard.gif', 'bus', 0);
865
866-- --------------------------------------------------------
867
868--
869-- Estructura de tabla para la tabla `tiposoftwares`
870--
871
872CREATE TABLE IF NOT EXISTS `tiposoftwares` (
873  `idtiposoftware` int(11) NOT NULL AUTO_INCREMENT,
874  `descripcion` varchar(250) NOT NULL DEFAULT '',
875  `urlimg` varchar(250) NOT NULL DEFAULT '',
876  PRIMARY KEY (`idtiposoftware`)
877) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
878
879--
880-- Volcar la base de datos para la tabla `tiposoftwares`
881--
882
883INSERT INTO `tiposoftwares` (`idtiposoftware`, `descripcion`, `urlimg`) VALUES
884(1, 'Sistemas Operativos', '../images/iconos/so.gif'),
885(2, 'Aplicaciones', '../images/iconos/aplicaciones.gif'),
886(3, 'Archivos', '../images/iconos/archivos.gif');
887
888-- --------------------------------------------------------
889
890--
891-- Estructura de tabla para la tabla `tiposos`
892--
893
894CREATE TABLE IF NOT EXISTS `tiposos` (
895  `idtiposo` int(11) NOT NULL AUTO_INCREMENT,
896  `tiposo` varchar(250) NOT NULL,
897  `idplataforma` int(11) NOT NULL,
898  PRIMARY KEY (`idtiposo`)
899) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=21 ;
900
901--
902-- Volcar la base de datos para la tabla `tiposos`
903--
904
905INSERT INTO `tiposos` (`idtiposo`, `tiposo`, `idplataforma`) VALUES
906(1, 'MsDos 6.0', 1),
907(2, 'Windows 98', 2),
908(3, 'Linux Ubuntu', 3),
909(4, 'Mac', 0),
910(5, 'OS', 0),
911(17, 'Windows XP', 2),
912(18, 'Windows Vista', 2),
913(19, 'Linux Red Hat', 3),
914(20, 'Windows 7', 2);
915
916-- --------------------------------------------------------
917
918--
919-- Estructura de tabla para la tabla `tipospar`
920--
921
922CREATE TABLE IF NOT EXISTS `tipospar` (
923  `codpar` int(8) NOT NULL,
924  `tipopar` varchar(250) NOT NULL,
925  `clonable` tinyint(4) NOT NULL,
926  UNIQUE KEY `codpar` (`codpar`)
927) ENGINE=MyISAM DEFAULT CHARSET=utf8;
928
929--
930-- Volcar la base de datos para la tabla `tipospar`
931--
932
933INSERT INTO `tipospar` (`codpar`, `tipopar`, `clonable`) VALUES
934(0, 'EMPTY', 0),
935(1, 'FAT12', 1),
936(5, 'EXTENDED', 0),
937(6, 'FAT16', 1),
938(7, 'NTFS', 1),
939(CONV('0B',16,10), 'FAT32', 1),
940(CONV('11',16,10), 'HFAT12', 1),
941(CONV('16',16,10), 'HFAT16', 1),
942(CONV('17',16,10), 'HNTFS', 1),
943(CONV('1B',16,10), 'HFAT32', 1),
944(CONV('82',16,10), 'LINUX-SWAP', 0),
945(CONV('83',16,10), 'LINUX', 1),
946(CONV('8E',16,10), 'LINUX-LVM', 1),
947(CONV('A5',16,10), 'FREEBSD', 1),
948(CONV('A6',16,10), 'OPENBSD', 1),
949(CONV('A9',16,10), 'NETBSD', 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('2700',16,10), 'WIN-RECOV', 1),
962(CONV('7F00',16,10), 'CHROMEOS-KRN', 1),
963(CONV('7F01',16,10), 'CHROMEOS', 1),
964(CONV('7F02',16,10), 'CHROMEOS-RESERV', 1),
965(CONV('8200',16,10), 'LINUX-SWAP', 0),
966(CONV('8300',16,10), 'LINUX', 1),
967(CONV('8301',16,10), 'LINUX-RESERV', 1),
968(CONV('8302',16,10), 'LINUX', 1),
969(CONV('8E00',16,10), 'LINUX-LVM', 1),
970(CONV('A500',16,10), 'FREEBSD-DISK', 0),
971(CONV('A501',16,10), 'FREEBSD-BOOT', 1),
972(CONV('A502',16,10), 'FREEBSD-SWAP', 0),
973(CONV('A503',16,10), 'FREEBSD', 1),
974(CONV('A504',16,10), 'FREEBSD', 1),
975(CONV('A901',16,10), 'NETBSD-SWAP', 0),
976(CONV('A902',16,10), 'NETBSD', 1),
977(CONV('A903',16,10), 'NETBSD', 1),
978(CONV('A904',16,10), 'NETBSD', 1),
979(CONV('A905',16,10), 'NETBSD', 1),
980(CONV('A906',16,10), 'NETBSD-RAID', 1),
981(CONV('AB00',16,10), 'HFS-BOOT', 1),
982(CONV('AF00',16,10), 'HFS', 1),
983(CONV('AF01',16,10), 'HFS-RAID', 1),
984(CONV('AF02',16,10), 'HFS-RAID', 1),
985(CONV('BE00',16,10), 'SOLARIS-BOOT', 1),
986(CONV('BF00',16,10), 'SOLARIS', 1),
987(CONV('BF01',16,10), 'SOLARIS', 1),
988(CONV('BF02',16,10), 'SOLARIS-SWAP', 0),
989(CONV('BF03',16,10), 'SOLARIS-DISK', 1),
990(CONV('BF04',16,10), 'SOLARIS', 1),
991(CONV('BF05',16,10), 'SOLARIS', 1),
992(CONV('CA00',16,10), 'CACHE', 0),
993(CONV('EF00',16,10), 'EFI', 1),
994(CONV('EF01',16,10), 'MBR', 0),
995(CONV('EF02',16,10), 'BIOS-BOOT', 0),
996(CONV('FB00',16,10), 'VMFS', 1),
997(CONV('FB01',16,10), 'VMFS-RESERV', 1),
998(CONV('FB02',16,10), 'VMFS-KRN', 1),
999(CONV('FD00',16,10), 'LINUX-RAID', 1),
1000(CONV('FFFF',16,10), 'UNKNOWN', 1);
1001
1002-- --------------------------------------------------------
1003
1004--
1005-- Estructura de tabla para la tabla `universidades`
1006--
1007
1008CREATE TABLE IF NOT EXISTS `universidades` (
1009  `iduniversidad` int(11) NOT NULL AUTO_INCREMENT,
1010  `nombreuniversidad` varchar(200) NOT NULL DEFAULT '',
1011  `comentarios` text,
1012  PRIMARY KEY (`iduniversidad`)
1013) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
1014
1015--
1016-- Volcar la base de datos para la tabla `universidades`
1017--
1018
1019INSERT INTO `universidades` (`iduniversidad`, `nombreuniversidad`, `comentarios`) VALUES
1020(1, 'Universidad (Default)', 'Esta Universidad se crea automáticamentese en el proceso de instalación de OpenGnSys');
1021
1022-- --------------------------------------------------------
1023
1024--
1025-- Estructura de tabla para la tabla `urlimagesitems`
1026--
1027
1028CREATE TABLE IF NOT EXISTS `urlimagesitems` (
1029  `idurlimagesitems` int(11) NOT NULL AUTO_INCREMENT,
1030  `descripcion` varchar(250) NOT NULL DEFAULT '',
1031  PRIMARY KEY (`idurlimagesitems`)
1032) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
1033
1034--
1035-- Volcar la base de datos para la tabla `urlimagesitems`
1036--
1037
1038
1039-- --------------------------------------------------------
1040
1041--
1042-- Estructura de tabla para la tabla `usuarios`
1043--
1044
1045CREATE TABLE IF NOT EXISTS `usuarios` (
1046  `idusuario` int(11) NOT NULL AUTO_INCREMENT,
1047  `usuario` varchar(50) NOT NULL DEFAULT '',
1048  `pasguor` varchar(50) NOT NULL DEFAULT '',
1049  `nombre` varchar(200) DEFAULT NULL,
1050  `email` varchar(200) DEFAULT NULL,
1051  `ididioma` int(11) DEFAULT NULL,
1052  `idtipousuario` tinyint(4) DEFAULT NULL,
1053  `apikey` varchar(32) NOT NULL,
1054  PRIMARY KEY (`idusuario`)
1055) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
1056
1057--
1058-- Volcar la base de datos para la tabla `usuarios`
1059--
1060
1061INSERT INTO `usuarios` (`idusuario`, `usuario`, `pasguor`, `nombre`, `email`, `ididioma`, `idtipousuario`) VALUES
1062(1, 'DBUSER', 'DBPASSWORD', 'Usuario de la base de datos MySql', '', 1, 1, 'APIKEY');
1063
1064
Note: See TracBrowser for help on using the repository browser.