source: admin/Database/ogAdmBD.sql @ efe8ac7

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

Versión 1.0.4, #531: Retoques en mensajes y ficheros de idiomas.

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

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