source: admin/Database/ogAdmBD.sql @ 1cacd3f

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 1cacd3f was 7bc3088, checked in by ramon <ramongomez@…>, 11 years ago

#672: Indicar en la BD que el parámetro protocolo de clonación es de tipo literal.

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

  • Property mode set to 100644
File size: 37.5 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, 'par', 'nfn;iph;mac;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, 'par', 'nfn;iph;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,
425  `numdisk` smallint NOT NULL DEFAULT 1,
426  `numpar` smallint NOT NULL,
427  `codpar` int(8) NOT NULL,
428  `tipo` tinyint NULL,
429  `imagenid` int NOT NULL DEFAULT '0',
430  `ruta` varchar(250) NULL,
431  PRIMARY KEY (`idimagen`)
432) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
433
434-- --------------------------------------------------------
435
436--
437-- Estructura de tabla para la tabla `menus`
438--
439
440CREATE TABLE IF NOT EXISTS `menus` (
441  `idmenu` int(11) NOT NULL AUTO_INCREMENT,
442  `descripcion` varchar(250) NOT NULL DEFAULT '',
443  `idcentro` int(11) NOT NULL DEFAULT '0',
444  `idurlimg` int(11) NOT NULL DEFAULT '0',
445  `titulo` varchar(250) DEFAULT NULL,
446  `coorx` int(11) DEFAULT NULL,
447  `coory` int(11) DEFAULT NULL,
448  `modalidad` tinyint(4) DEFAULT NULL,
449  `scoorx` int(11) DEFAULT NULL,
450  `scoory` int(11) DEFAULT NULL,
451  `smodalidad` tinyint(4) DEFAULT NULL,
452  `comentarios` text,
453  `grupoid` int(11) NOT NULL DEFAULT '0',
454  `htmlmenupub` varchar(250) DEFAULT NULL,
455  `htmlmenupri` varchar(250) DEFAULT NULL,
456  `resolucion` varchar(50) DEFAULT NULL,
457  PRIMARY KEY (`idmenu`)
458) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
459
460-- --------------------------------------------------------
461
462--
463-- Estructura de tabla para la tabla `nombresos`
464--
465
466CREATE TABLE IF NOT EXISTS `nombresos` (
467  `idnombreso` smallint(11) NOT NULL AUTO_INCREMENT,
468  `nombreso` varchar(250) NOT NULL,
469  `idtiposo` int(11) DEFAULT '0',
470  PRIMARY KEY (`idnombreso`)
471) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
472
473-- --------------------------------------------------------
474
475--
476-- Estructura de tabla para la tabla `ordenadores`
477--
478
479CREATE TABLE IF NOT EXISTS `ordenadores` (
480  `idordenador` int(11) NOT NULL AUTO_INCREMENT,
481  `nombreordenador` varchar(100) DEFAULT NULL,
482  `ip` varchar(16) NOT NULL,
483  `mac` varchar(12) DEFAULT NULL,
484  `idaula` int(11) DEFAULT NULL,
485  `idperfilhard` int(11) DEFAULT NULL,
486  `idrepositorio` int(11) DEFAULT NULL,
487  `grupoid` int(11) DEFAULT NULL,
488  `idmenu` int(11) DEFAULT NULL,
489  `cache` int(11) DEFAULT NULL,
490  `router` varchar(16) NOT NULL,
491  `mascara` varchar(16) NOT NULL,
492  `idproautoexec` int(11) NOT NULL DEFAULT 0,
493  `arranque` VARCHAR( 30 ) NOT NULL DEFAULT '00unknown',
494  `netiface` enum('eth0','eth1','eth2') DEFAULT 'eth0',
495  `netdriver` varchar( 30 ) NOT NULL DEFAULT 'generic',
496  `fotoord` varchar( 250 ) NOT NULL DEFAULT 'fotoordenador.gif',
497  `validacion` tinyint(1) DEFAULT '0',
498  `paginalogin` varchar(100),
499  `paginavalidacion` varchar(100),
500  PRIMARY KEY (`idordenador`)
501) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
502
503
504
505-- --------------------------------------------------------
506
507--
508-- Estructura de tabla para la tabla `ordenadores_particiones`
509--
510
511CREATE TABLE IF NOT EXISTS `ordenadores_particiones` (
512  `idordenador` int(11) NOT NULL,
513  `numdisk` smallint NOT NULL,
514  `numpar` smallint NOT NULL,
515  `codpar` int(8) NOT NULL,
516  `tamano` int(11) NOT NULL,
517  `idsistemafichero` smallint(11) NOT NULL,
518  `idnombreso` smallint(11) NOT NULL,
519  `idimagen` int(11) NOT NULL,
520  `idperfilsoft` int(11) NOT NULL,
521  `cache` text NOT NULL,
522  UNIQUE KEY `idordenadornumdisknumpar` (`idordenador`,`numdisk`,`numpar`)
523) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
524
525-- --------------------------------------------------------
526
527--
528-- Estructura de tabla para la tabla `parametros`
529--
530
531CREATE TABLE IF NOT EXISTS `parametros` (
532  `idparametro` int(11) NOT NULL AUTO_INCREMENT,
533  `nemonico` char(3) NOT NULL,
534  `descripcion` text NOT NULL,
535  `nomidentificador` varchar(64) NOT NULL,
536  `nomtabla` varchar(64) NOT NULL,
537  `nomliteral` varchar(64) NOT NULL,
538  `tipopa` tinyint(1) DEFAULT '0',
539  `visual` tinyint(4) NOT NULL DEFAULT '0',
540  PRIMARY KEY (`idparametro`),
541  KEY (`nemonico`)
542) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=33 ;
543
544--
545-- Volcar la base de datos para la tabla `parametros`
546--
547
548INSERT INTO `parametros` (`idparametro`, `nemonico`, `descripcion`, `nomidentificador`, `nomtabla`, `nomliteral`, `tipopa`, `visual`) VALUES
549(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),
550(2, 'iph', 'Dirección ip de los ordenadores a los que se envía el comando', '', '', '', 0, 0),
551(3, 'ido', 'Identificadores de los ordenadores a los que se envía el comando', '', '', '', 0, 0),
552(4, 'mac', 'Direcciones macs de los clientes a los que se le envía el comando', '', '', '', 0, 0),
553(5, 'idc', 'Unidad organizativa', 'idcentro', 'centros', '', 1, 0),
554(6, 'ida', 'Aula', 'idaula', 'aulas', 'nombreaula', 1, 0),
555(18, 'cfg', 'Configuración', '', '', '', 2, 1),
556(7, 'dsk', 'Disco', '', '', '', 0, 1),
557(8, 'par', 'Partición', '', '', '', 0, 1),
558(9, 'ifh', 'Perfil Hardware', 'idperfilhard', 'perfileshard', 'descripcion', 1, 1),
559(10, 'ifs', 'Perfil Software', 'idperfilsoft', 'perfilessoft', 'descripcion', 1, 1),
560(11, 'idi', 'Imagen', 'idimagen', 'imagenes', 'descripcion', 1, 1),
561(12, 'nci', 'Nombre canónico', '', '', '', 0, 1),
562(13, 'scp', 'Código a ejecutar en formato script', '', '', '', 0, 0),
563(14, 'npc', 'Nombre del cliente', '', '', '', NULL, 0),
564(15, 'che', 'Tamaño de la cache del cliente', '', '', '', NULL, 0),
565(16, 'exe', 'Identificador del procedimiento que será el que ejecute el cliente al arrancar (Autoexec)', '', '', '', 0, 0),
566(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),
567(19, 'ipr', 'Repositorio', 'ip', 'repositorios', 'nombrerepositorio', 1, 1),
568(20, 'cpt', 'Tipo partición', 'codpar', 'tipospar', 'tipopar', 1, 1),
569(21, 'sfi', 'Sistema de fichero', 'nemonico', 'sistemasficheros', 'nemonico', 1, 0),
570(22, 'tam', 'Tamaño', '', '', '', 0, 1),
571(23, 'ope', 'Operación', ';', '', 'Sin operación;Formatear;Ocultar;Mostrar', 3, 1),
572(24, 'nfl', 'Nombre del fichero que se envía o se recibe', '', '', '', 0, 0),
573(25, 'hrd', 'Nombre del archivo de inventario hardware enviado por la red', '', '', '', 0, 0),
574(26, 'sft', 'Nombre del archivo de inventario software enviado por la red', '', '', '', 0, 0),
575(27, 'tpc', 'Tipo de cliente', '', '', '', 0, 0),
576(28, 'scp', 'Código script', '', '', '', 4, 1),
577(30, 'ptc', 'Protocolo de clonación', ';', '', ';Unicast;Multicast;Torrent', 0, 1),
578(31, 'idf', 'Imagen Incremental', 'idimagen', 'imagenes', 'descripcion', 1, 1),
579(32, 'ncf', 'Nombre canónico de la Imagen Incremental', '', '', '', 0, 1),
580(33, 'bpi', 'Borrar imagen o partición previamente', '', '', '', 5, 1),
581(34, 'cpc', 'Copiar también en cache', '', '', '', 5, 1),
582(35, 'bpc', 'Borrado previo de la imagen en cache', '', '', '', 5, 1),
583(36, 'rti', 'Ruta de origen', '', '', '', 0, 1),
584(37, 'met', 'Método clonación', ';', '', 'Desde caché; Desde repositorio', 3, 1),
585(38, 'nba', 'No borrar archivos en destino', '', '', '', 0, 1);
586
587-- --------------------------------------------------------
588
589--
590-- Estructura de tabla para la tabla `perfileshard`
591
592--
593
594CREATE TABLE IF NOT EXISTS `perfileshard` (
595  `idperfilhard` int(11) NOT NULL AUTO_INCREMENT,
596  `descripcion` varchar(250) NOT NULL DEFAULT '',
597  `comentarios` text,
598  `grupoid` int(11) DEFAULT NULL,
599  `idcentro` int(11) NOT NULL,
600  `winboot` enum( 'reboot', 'kexec' ) NOT NULL DEFAULT 'reboot',
601  PRIMARY KEY (`idperfilhard`)
602) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
603
604
605-- --------------------------------------------------------
606
607--
608-- Estructura de tabla para la tabla `perfileshard_hardwares`
609--
610
611CREATE TABLE IF NOT EXISTS `perfileshard_hardwares` (
612  `idperfilhard` int(11) NOT NULL DEFAULT '0',
613  `idhardware` int(11) NOT NULL DEFAULT '0',
614  KEY `idperfilhard` (`idperfilhard`)
615) ENGINE=MyISAM DEFAULT CHARSET=utf8;
616
617-- --------------------------------------------------------
618
619--
620-- Estructura de tabla para la tabla `perfilessoft`
621--
622
623CREATE TABLE IF NOT EXISTS `perfilessoft` (
624  `idperfilsoft` int(11) NOT NULL AUTO_INCREMENT,
625  `descripcion` varchar(250) NOT NULL DEFAULT '',
626  `comentarios` text,
627  `grupoid` int(11) DEFAULT NULL,
628  `idcentro` int(11) NOT NULL,
629  PRIMARY KEY (`idperfilsoft`)
630) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
631
632-- --------------------------------------------------------
633
634--
635-- Estructura de tabla para la tabla `perfilessoft_softwares`
636--
637
638CREATE TABLE IF NOT EXISTS `perfilessoft_softwares` (
639  `idperfilsoft` int(11) NOT NULL DEFAULT '0',
640  `idsoftware` int(11) NOT NULL DEFAULT '0'
641) ENGINE=MyISAM DEFAULT CHARSET=utf8;
642
643-- --------------------------------------------------------
644
645--
646-- Estructura de tabla para la tabla `plataformas`
647--
648
649CREATE TABLE IF NOT EXISTS `plataformas` (
650  `idplataforma` int(11) NOT NULL AUTO_INCREMENT,
651  `plataforma` varchar(250) NOT NULL,
652  PRIMARY KEY (`idplataforma`)
653) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=18 ;
654
655--
656-- Volcar la base de datos para la tabla `plataformas`
657--
658
659INSERT INTO `plataformas` (`idplataforma`, `plataforma`) VALUES
660(1, 'MsDos'),
661(2, 'Windows'),
662(3, 'Linux'),
663(4, 'Mac'),
664(5, 'OS');
665
666-- --------------------------------------------------------
667
668--
669-- Estructura de tabla para la tabla `procedimientos`
670--
671
672CREATE TABLE IF NOT EXISTS `procedimientos` (
673  `idprocedimiento` int(11) NOT NULL AUTO_INCREMENT,
674  `descripcion` varchar(250) NOT NULL DEFAULT '',
675  `urlimg` varchar(250) DEFAULT NULL,
676  `idcentro` int(11) NOT NULL DEFAULT '0',
677  `comentarios` text,
678  `grupoid` int(11) DEFAULT '0',
679  PRIMARY KEY (`idprocedimiento`)
680) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
681
682-- --------------------------------------------------------
683
684--
685-- Estructura de tabla para la tabla `procedimientos_acciones`
686--
687
688CREATE TABLE IF NOT EXISTS `procedimientos_acciones` (
689  `idprocedimientoaccion` int(11) NOT NULL AUTO_INCREMENT,
690  `idprocedimiento` int(11) NOT NULL DEFAULT '0',
691  `orden` smallint(4) DEFAULT NULL,
692  `idcomando` int(11) NOT NULL DEFAULT '0',
693  `parametros` text,
694  `procedimientoid` int(11) NOT NULL,
695  PRIMARY KEY (`idprocedimientoaccion`)
696) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
697
698-- --------------------------------------------------------
699
700--
701-- Estructura de tabla para la tabla `programaciones`
702--
703
704CREATE TABLE IF NOT EXISTS `programaciones` (
705  `idprogramacion` int(11) NOT NULL AUTO_INCREMENT,
706  `tipoaccion` int(11) DEFAULT NULL,
707  `identificador` int(11) DEFAULT NULL,
708  `nombrebloque` varchar(255) DEFAULT NULL,
709  `annos` tinyint(4) DEFAULT NULL,
710  `meses` smallint(4) DEFAULT NULL,
711  `diario` int(11) DEFAULT NULL,
712  `dias` tinyint(4) DEFAULT NULL,
713  `semanas` tinyint(4) DEFAULT NULL,
714  `horas` smallint(4) DEFAULT NULL,
715  `ampm` tinyint(1) DEFAULT NULL,
716  `minutos` tinyint(4) DEFAULT NULL,
717  `segundos` tinyint(4) DEFAULT NULL,
718  `horasini` smallint(4) DEFAULT NULL,
719  `ampmini` tinyint(1) DEFAULT NULL,
720  `minutosini` tinyint(4) DEFAULT NULL,
721  `horasfin` smallint(4) DEFAULT NULL,
722  `ampmfin` tinyint(1) DEFAULT NULL,
723  `minutosfin` tinyint(4) DEFAULT NULL,
724  `suspendida` tinyint(1) DEFAULT NULL,
725  `sesion` int(11) NOT NULL,
726  PRIMARY KEY (`idprogramacion`)
727) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
728
729-- --------------------------------------------------------
730
731--
732-- Estructura de tabla para la tabla `repositorios`
733--
734
735CREATE TABLE IF NOT EXISTS `repositorios` (
736  `idrepositorio` int(11) NOT NULL AUTO_INCREMENT,
737  `nombrerepositorio` varchar(250) NOT NULL,
738  `ip` varchar(15) NOT NULL DEFAULT '',
739  `passguor` varchar(50) NOT NULL DEFAULT '',
740  `pathrepoconf` varchar(250) NOT NULL,
741  `pathrepod` varchar(250) NOT NULL,
742  `pathpxe` varchar(250) NOT NULL,
743  `idcentro` int(11) DEFAULT NULL,
744  `grupoid` int(11) DEFAULT NULL,
745  `comentarios` text,
746  `puertorepo` int(11) NOT NULL,
747  PRIMARY KEY (`idrepositorio`)
748) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
749
750INSERT INTO `repositorios` (`idrepositorio`,`nombrerepositorio`,`ip`,`passguor`,`pathrepoconf`,`pathrepod`,`pathpxe`,`idcentro`,`grupoid`,`comentarios`,`puertorepo`) VALUES
751 (1,'Repositorio (Default)','SERVERIP','','','/opt/opengnsys/admin','/opt/opengnsys/tftpboot/pxelinux.cfg',1,0,'',2002);
752
753
754-- --------------------------------------------------------
755
756--
757-- Estructura de tabla para la tabla `sistemasficheros`
758--
759
760CREATE TABLE IF NOT EXISTS `sistemasficheros` (
761  `idsistemafichero` smallint(11) NOT NULL AUTO_INCREMENT,
762  `descripcion` varchar(50) NOT NULL DEFAULT '',
763  `nemonico` varchar(16) DEFAULT NULL,
764  `codpar` int(8) NOT NULL,
765  PRIMARY KEY (`idsistemafichero`),
766  UNIQUE KEY (`descripcion`)
767) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
768INSERT INTO `sistemasficheros` (`idsistemafichero`, `descripcion`, `nemonico`, `codpar`) VALUES
769 (1, 'EMPTY', 'EMPTY', 0),
770 (2, 'CACHE', 'CACHE', 0),
771 (3, 'BTRFS', 'BTRFS', 0),
772 (4, 'EXT2', 'EXT2', 0),
773 (5, 'EXT3', 'EXT3', 0),
774 (6, 'EXT4', 'EXT4', 0),
775 (7, 'FAT12', 'FAT12', 0),
776 (8, 'FAT16', 'FAT16', 0),
777 (9, 'FAT32', 'FAT32', 0),
778 (10, 'HFS', 'HFS', 0),
779 (11, 'HFSPLUS', 'HFSPLUS', 0),
780 (12, 'JFS', 'JFS', 0),
781 (13, 'NTFS', 'NTFS', 0),
782 (14, 'REISERFS', 'REISERFS', 0),
783 (15, 'REISER4', 'REISER4', 0),
784 (16, 'UFS', 'UFS', 0),
785 (17, 'XFS', 'XFS', 0),
786 (18, 'EXFAT', 'EXFAT', 0);
787
788
789-- --------------------------------------------------------
790
791--
792-- Estructura de tabla para la tabla `softwares`
793--
794
795CREATE TABLE IF NOT EXISTS `softwares` (
796  `idsoftware` int(11) NOT NULL AUTO_INCREMENT,
797  `idtiposoftware` int(11) NOT NULL DEFAULT '0',
798  `descripcion` varchar(250) NOT NULL DEFAULT '',
799  `idcentro` int(11) NOT NULL DEFAULT '0',
800  `urlimg` varchar(250) DEFAULT NULL,
801  `idtiposo` int(11) DEFAULT NULL,
802  `grupoid` int(11) DEFAULT NULL,
803  PRIMARY KEY (`idsoftware`)
804) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
805
806-- --------------------------------------------------------
807
808--
809-- Estructura de tabla para la tabla `tareas`
810--
811
812CREATE TABLE IF NOT EXISTS `tareas` (
813  `idtarea` int(11) NOT NULL AUTO_INCREMENT,
814  `descripcion` varchar(250) NOT NULL DEFAULT '',
815  `urlimg` varchar(250) DEFAULT NULL,
816  `idcentro` int(11) NOT NULL DEFAULT '0',
817  `ambito` smallint(6) NOT NULL DEFAULT '0',
818  `idambito` int(11) NOT NULL DEFAULT '0',
819  `restrambito` text NOT NULL,
820  `comentarios` text,
821  `grupoid` int(11) DEFAULT '0',
822  PRIMARY KEY (`idtarea`)
823) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
824
825-- --------------------------------------------------------
826
827--
828-- Estructura de tabla para la tabla `tareas_acciones`
829--
830
831CREATE TABLE IF NOT EXISTS `tareas_acciones` (
832  `idtareaaccion` int(11) NOT NULL AUTO_INCREMENT,
833  `idtarea` int(11) NOT NULL DEFAULT '0',
834  `orden` smallint(6) NOT NULL DEFAULT '0',
835  `idprocedimiento` int(11) NOT NULL DEFAULT '0',
836  `tareaid` int(11) DEFAULT '0',
837  PRIMARY KEY (`idtareaaccion`)
838) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
839
840-- --------------------------------------------------------
841
842--
843-- Estructura de tabla para la tabla `tipohardwares`
844--
845
846CREATE TABLE IF NOT EXISTS `tipohardwares` (
847  `idtipohardware` int(11) NOT NULL AUTO_INCREMENT,
848  `descripcion` varchar(250) NOT NULL DEFAULT '',
849  `urlimg` varchar(250) NOT NULL DEFAULT '',
850  `nemonico` char(3) NOT NULL,
851  `pci` tinyint(1) NOT NULL,
852  PRIMARY KEY (`idtipohardware`)
853) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=17 ;
854
855--
856-- Volcar la base de datos para la tabla `tipohardwares`
857--
858
859INSERT INTO `tipohardwares` (`idtipohardware`, `descripcion`, `urlimg`, `nemonico`, `pci`) VALUES
860(1, 'Placas', '../images/iconos/placabase.gif', 'boa', 0),
861(2, 'Dispositivos Multimedia', '../images/iconos/tsonido.gif', 'mul', 0),
862(3, 'Tarjetas de Red', '../images/iconos/nic.gif', 'net', 0),
863(4, 'Microprocesadores', '../images/iconos/micro.gif', 'cpu', 0),
864(5, 'Memorias', '../images/iconos/confihard.gif', 'mem', 0),
865(7, 'Tarjetas gráficas', '../images/iconos/vga.gif', 'vga', 0),
866(8, 'Discos', '../images/iconos/discoduro.gif', 'dis', 0),
867(9, 'Dispositivos de sonido', '../images/iconos/audio.gif', 'aud', 0),
868(10, 'Marca y modelo del equipo', '../images/iconos/confihard.gif', 'mod', 0),
869(11, 'Modelo y version de la bios', '../images/iconos/confihard.gif', 'bio', 0),
870(12, 'Modelo de grabadora o  grabadora de CD/DVD', '../images/iconos/dvdcd.gif', 'cdr', 0),
871(13, 'Controladores IDE', '../images/iconos/ide.gif', 'ide', 0),
872(14, 'Controladores FireWire', '../images/iconos/confihard.gif', 'fir', 0),
873(15, 'Controladores USB', '../images/iconos/usb.gif', 'usb', 0),
874(16, 'Bus del Sistema', '../images/iconos/confihard.gif', 'bus', 0);
875
876-- --------------------------------------------------------
877
878--
879-- Estructura de tabla para la tabla `tiposoftwares`
880--
881
882CREATE TABLE IF NOT EXISTS `tiposoftwares` (
883  `idtiposoftware` int(11) NOT NULL AUTO_INCREMENT,
884  `descripcion` varchar(250) NOT NULL DEFAULT '',
885  `urlimg` varchar(250) NOT NULL DEFAULT '',
886  PRIMARY KEY (`idtiposoftware`)
887) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
888
889--
890-- Volcar la base de datos para la tabla `tiposoftwares`
891--
892
893INSERT INTO `tiposoftwares` (`idtiposoftware`, `descripcion`, `urlimg`) VALUES
894(1, 'Sistemas Operativos', '../images/iconos/so.gif'),
895(2, 'Aplicaciones', '../images/iconos/aplicaciones.gif'),
896(3, 'Archivos', '../images/iconos/archivos.gif');
897
898-- --------------------------------------------------------
899
900--
901-- Estructura de tabla para la tabla `tiposos`
902--
903
904CREATE TABLE IF NOT EXISTS `tiposos` (
905  `idtiposo` int(11) NOT NULL AUTO_INCREMENT,
906  `tiposo` varchar(250) NOT NULL,
907  `idplataforma` int(11) NOT NULL,
908  PRIMARY KEY (`idtiposo`)
909) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=21 ;
910
911--
912-- Volcar la base de datos para la tabla `tiposos`
913--
914
915INSERT INTO `tiposos` (`idtiposo`, `tiposo`, `idplataforma`) VALUES
916(1, 'MsDos 6.0', 1),
917(2, 'Windows 98', 2),
918(3, 'Linux Ubuntu', 3),
919(4, 'Mac', 0),
920(5, 'OS', 0),
921(17, 'Windows XP', 2),
922(18, 'Windows Vista', 2),
923(19, 'Linux Red Hat', 3),
924(20, 'Windows 7', 2);
925
926-- --------------------------------------------------------
927
928--
929-- Estructura de tabla para la tabla `tipospar`
930--
931
932CREATE TABLE IF NOT EXISTS `tipospar` (
933  `codpar` int(8) NOT NULL,
934  `tipopar` varchar(250) NOT NULL,
935  `clonable` tinyint(4) NOT NULL,
936  UNIQUE KEY `codpar` (`codpar`)
937) ENGINE=MyISAM DEFAULT CHARSET=utf8;
938
939--
940-- Volcar la base de datos para la tabla `tipospar`
941--
942
943INSERT INTO `tipospar` (`codpar`, `tipopar`, `clonable`) VALUES
944(0, 'EMPTY', 0),
945(1, 'FAT12', 1),
946(5, 'EXTENDED', 0),
947(6, 'FAT16', 1),
948(7, 'NTFS', 1),
949(CONV('0B',16,10), 'FAT32', 1),
950(CONV('11',16,10), 'HFAT12', 1),
951(CONV('16',16,10), 'HFAT16', 1),
952(CONV('17',16,10), 'HNTFS', 1),
953(CONV('1B',16,10), 'HFAT32', 1),
954(CONV('82',16,10), 'LINUX-SWAP', 0),
955(CONV('83',16,10), 'LINUX', 1),
956(CONV('8E',16,10), 'LINUX-LVM', 1),
957(CONV('A5',16,10), 'FREEBSD', 1),
958(CONV('A6',16,10), 'OPENBSD', 1),
959(CONV('AF',16,10), 'HFS', 1),
960(CONV('BE',16,10), 'SOLARIS-BOOT', 1),
961(CONV('BF',16,10), 'SOLARIS', 1),
962(CONV('CA',16,10), 'CACHE', 0),
963(CONV('DA',16,10), 'DATA', 1),
964(CONV('EE',16,10), 'GPT', 0),
965(CONV('EF',16,10), 'EFI', 1),
966(CONV('FB',16,10), 'VMFS', 1),
967(CONV('FD',16,10), 'LINUX-RAID', 1),
968(CONV('0700',16,10), 'WINDOWS', 1),
969(CONV('0C01',16,10), 'WIN-RESERV', 1),
970(CONV('7F00',16,10), 'CHROMEOS-KRN', 1),
971(CONV('7F01',16,10), 'CHROMEOS', 1),
972(CONV('7F02',16,10), 'CHROMEOS-RESERV', 1),
973(CONV('8200',16,10), 'LINUX-SWAP', 0),
974(CONV('8300',16,10), 'LINUX', 1),
975(CONV('8301',16,10), 'LINUX-RESERV', 1),
976(CONV('8E00',16,10), 'LINUX-LVM', 1),
977(CONV('A500',16,10), 'FREEBSD-DISK', 0),
978(CONV('A501',16,10), 'FREEBSD-BOOT', 1),
979(CONV('A502',16,10), 'FREEBSD-SWAP', 0),
980(CONV('A503',16,10), 'FREEBSD', 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('BE00',16,10), 'SOLARIS-BOOT', 1),
985(CONV('BF00',16,10), 'SOLARIS', 1),
986(CONV('BF01',16,10), 'SOLARIS', 1),
987(CONV('BF02',16,10), 'SOLARIS-SWAP', 0),
988(CONV('BF03',16,10), 'SOLARIS-DISK', 1),
989(CONV('BF04',16,10), 'SOLARIS', 1),
990(CONV('BF05',16,10), 'SOLARIS', 1),
991(CONV('CA00',16,10), 'CACHE', 0),
992(CONV('EF00',16,10), 'EFI', 1),
993(CONV('EF01',16,10), 'MBR', 0),
994(CONV('EF02',16,10), 'BIOS-BOOT', 0),
995(CONV('FD00',16,10), 'LINUX-RAID', 1),
996(CONV('FFFF',16,10), 'UNKNOWN', 1);
997
998-- --------------------------------------------------------
999
1000--
1001-- Estructura de tabla para la tabla `universidades`
1002--
1003
1004CREATE TABLE IF NOT EXISTS `universidades` (
1005  `iduniversidad` int(11) NOT NULL AUTO_INCREMENT,
1006  `nombreuniversidad` varchar(200) NOT NULL DEFAULT '',
1007  `comentarios` text,
1008  PRIMARY KEY (`iduniversidad`)
1009) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
1010
1011--
1012-- Volcar la base de datos para la tabla `universidades`
1013--
1014
1015INSERT INTO `universidades` (`iduniversidad`, `nombreuniversidad`, `comentarios`) VALUES
1016(1, 'Universidad (Default)', 'Esta Universidad se crea automáticamentese en el proceso de instalación de OpenGnSys');
1017
1018-- --------------------------------------------------------
1019
1020--
1021-- Estructura de tabla para la tabla `urlimagesitems`
1022--
1023
1024CREATE TABLE IF NOT EXISTS `urlimagesitems` (
1025  `idurlimagesitems` int(11) NOT NULL AUTO_INCREMENT,
1026  `descripcion` varchar(250) NOT NULL DEFAULT '',
1027  PRIMARY KEY (`idurlimagesitems`)
1028) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
1029
1030--
1031-- Volcar la base de datos para la tabla `urlimagesitems`
1032--
1033
1034
1035-- --------------------------------------------------------
1036
1037--
1038-- Estructura de tabla para la tabla `usuarios`
1039--
1040
1041CREATE TABLE IF NOT EXISTS `usuarios` (
1042  `idusuario` int(11) NOT NULL AUTO_INCREMENT,
1043  `usuario` varchar(50) NOT NULL DEFAULT '',
1044  `pasguor` varchar(50) NOT NULL DEFAULT '',
1045  `nombre` varchar(200) DEFAULT NULL,
1046  `email` varchar(200) DEFAULT NULL,
1047  `ididioma` int(11) DEFAULT NULL,
1048  `idtipousuario` tinyint(4) DEFAULT NULL,
1049  PRIMARY KEY (`idusuario`)
1050) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
1051
1052--
1053-- Volcar la base de datos para la tabla `usuarios`
1054--
1055
1056INSERT INTO `usuarios` (`idusuario`, `usuario`, `pasguor`, `nombre`, `email`, `ididioma`, `idtipousuario`) VALUES
1057(1, 'DBUSER', 'DBPASSWORD', 'Usuario de la base de datos MySql', '', 1, 1);
1058
1059
Note: See TracBrowser for help on using the repository browser.