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

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 2d41c10 was 77648b6, checked in by ramon <ramongomez@…>, 13 years ago

Versión 1.0.4, #526: Nuevos códigos GPT y corrección de errata en actualización de la BD.

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

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