source: admin/Database/ogAdmBD.sql @ 9583e59

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

Versión 1.0.5, #524: Integrar código del ticket:524, eliminar imagen de caché.

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

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