source: admin/Database/ogAdmBD.sql @ 21e2ab8

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 21e2ab8 was 3be7389, checked in by ramon <ramongomez@…>, 8 years ago

#730: Eliminar de la BD campos sin uso en tabla aulas y actualizar lista de tickets cerrados.

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

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