source: admin/Database/ogAdmBD.sql @ e88c0b1

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

Versión 1.0.4, #526 #142: Ampliar lista de tipos de particiones MSDOS e incluir códigos para particiones GPT.

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

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