source: admin/Database/ogAdmBD.sql @ df440ce

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

#560: Crear índices para claves ajenas en la tabla acciones.

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

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