source: admin/Database/ogAdmBD.sql @ 0ab2cd5

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 0ab2cd5 was 750388b, checked in by ramon <ramongomez@…>, 9 years ago

#708 #725: Nuevos cambios en la estructura de la BD:

  • añadir campo para incluir imágenes en el Proyecto Remote PC;
  • añadir campo para servidor NTP de aulas.

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

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