source: admin/Database/ogAdmBD.sql @ 8ec1d5f

configure-oglivelgromero-new-oglivemainmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineoglive-ipv6test-python-scriptsticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change on this file since 8ec1d5f was 8ec1d5f, checked in by Natalia Serrano <natalia.serrano@…>, 13 months ago

refs #278 remove field ordenadores.inremotepc

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