source: admin/Database/ogAdmBD.sql

qndtest
Last change on this file was b3752e9, checked in by Ramón M. Gómez <ramongomez@…>, 20 months ago

#1077: OpenGnsys database compatible with UDS 3.5

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