source: admin/Database/ogAdmBD.sql @ 2ee1f60

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 2ee1f60 was d8b6c70, checked in by ramon <ramongomez@…>, 8 years ago

#708: Establecer tiempo máximo de reserva para que un equipo pueda ser usado en acceso remoto.

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

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