source: admin/Database/ogAdmBD.sql @ b0c9683

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 b0c9683 was 695c8e6, checked in by ramon <ramongomez@…>, 10 years ago

#713: Incluir en la BD campo para el nº de serie de los ordenadores.

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