source: admin/Database/ogAdmBD.sql @ 5827bb9

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 5827bb9 was 049ec55c, checked in by ramon <ramongomez@…>, 8 years ago

#782: Crear nueva tabla acciones_log y crear trigger para añadir automáticamente en ella los registros borrados de la tabla acciones.

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

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