source: admin/Database/ogAdmBD.sql @ d866d6b

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

Versión 1.0.5, #565: Integrar base de datos.

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

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