source: admin/Database/ogAdmBD.sql @ c916af9

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 c916af9 was 503dac8, checked in by ramon <ramongomez@…>, 10 years ago

#683: Cambios en la BD para mostrar el parámetro disco en los comandos Iniciar sesión e Inventario Software.

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

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