source: admin/Database/ogAdmBD.sql @ 5d05b06

Last change on this file since 5d05b06 was a0dd47a, checked in by Ramón M. Gómez <ramongomez@…>, 5 years ago

#992: Expand URL fields to support long hostnames.

Thanks to Jorge Fernandez Marín for the solution provided.

  • Property mode set to 100644
File size: 41.9 KB
RevLine 
[1a2fa9d8]1-- Fichero de instalación de la base de datos.
[3ec149c]2
[dee9fac]3SET sql_mode = "NO_AUTO_VALUE_ON_ZERO";
4SET GLOBAL sql_mode = TRIM(BOTH ',' FROM REPLACE(@@sql_mode, 'ONLY_FULL_GROUP_BY', ''));
[d4f6719]5SET GLOBAL event_scheduler = ON;
[3ec149c]6
7--
8-- Base de datos: `ogAdmBD`
9--
10
11-- --------------------------------------------------------
12
13--
14-- Estructura de tabla para la tabla `acciones`
15--
16
[a190d69]17DROP TABLE IF EXISTS `acciones`;
18CREATE TABLE `acciones` (
[3ec149c]19  `idaccion` int(11) NOT NULL AUTO_INCREMENT,
[2ff2099]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',
[3ec149c]27  `parametros` text,
[31ad046]28  `fechahorareg` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
29  `fechahorafin` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
[3ec149c]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',
[d09e1c3]35  `restrambito` text,
[3ec149c]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',
[1bc7f09]40  PRIMARY KEY (`idaccion`),
41  KEY (`idordenador`),
42  KEY (`idprocedimiento`),
43  KEY (`idtarea`),
44  KEY (`idprogramacion`)
[3ec149c]45) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
46
47-- --------------------------------------------------------
48
49--
[049ec55c]50-- Estructura de tabla para la tabla `acciones_log`
51--
52
[a190d69]53DROP TABLE IF EXISTS `acciones_log`;
54CREATE TABLE acciones_log LIKE acciones;
[049ec55c]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--
[3ec149c]71-- Estructura de tabla para la tabla `acciones_menus`
72--
73
[a190d69]74DROP TABLE IF EXISTS `acciones_menus`;
75CREATE TABLE `acciones_menus` (
[3ec149c]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
[a190d69]93DROP TABLE IF EXISTS `administradores_centros`;
94CREATE TABLE `administradores_centros` (
[3ec149c]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
[7a9f3be]101INSERT INTO `administradores_centros` (`idadministradorcentro`, `idusuario`, `idcentro`) VALUES
102(1, 1, 1);
103
[3ec149c]104-- --------------------------------------------------------
105
106--
107-- Estructura de tabla para la tabla `aulas`
108--
109
[a190d69]110DROP TABLE IF EXISTS `aulas`;
111CREATE TABLE `aulas` (
[3ec149c]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,
[6079bff]121  `puestos` smallint DEFAULT NULL,
[aaf6857]122  `idordprofesor` int(11) DEFAULT 0,
[3ec149c]123  `horaresevini` tinyint(4) DEFAULT NULL,
124  `horaresevfin` tinyint(4) DEFAULT NULL,
[2ff2099]125  `modomul` tinyint(4) NOT NULL DEFAULT '0',
126  `ipmul` varchar(16) NOT NULL DEFAULT '',
127  `pormul` int(11) NOT NULL DEFAULT '0',
[b1fd551]128  `velmul` smallint(6) NOT NULL DEFAULT '70',
[5242394]129  `router` varchar( 30 ),
130  `netmask` varchar( 30 ),
131  `dns` varchar (30),
[8fa6b37]132  `proxy` varchar (30),
[750388b]133  `ntp` varchar (30),
[b1fd551]134  `modp2p` enum('seeder','peer','leecher') DEFAULT 'peer',
[5242394]135  `timep2p` int(11) NOT NULL DEFAULT '60',
136  `validacion` tinyint(1) DEFAULT '0',
137  `paginalogin` varchar(100),
138  `paginavalidacion` varchar(100),
[3b5fb9d]139  `inremotepc` tinyint NOT NULL DEFAULT 0,
[90c670e]140  `oglivedir` varchar(50) NOT NULL DEFAULT 'ogLive',
[3ec149c]141  PRIMARY KEY (`idaula`)
142) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
143
[cbe1fdf]144
[b9a6500]145--
146-- Estructura de tabla para la tabla `asistentes`
147--
148
[a190d69]149DROP TABLE IF EXISTS `asistentes`;
150CREATE TABLE `asistentes` (
[b9a6500]151  `idcomando` int(11) NOT NULL AUTO_INCREMENT,
152  `descripcion` varchar(250) NOT NULL DEFAULT '',
[2ff2099]153  `pagina` varchar(256) NOT NULL DEFAULT '',
154  `gestor` varchar(256) NOT NULL DEFAULT '',
155  `funcion` varchar(64) NOT NULL DEFAULT '',
[b9a6500]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,
[2ff2099]161  `activo` tinyint(1) NOT NULL DEFAULT '0',
[f9bd401]162  PRIMARY KEY ( `idcomando` , `descripcion` )
[b9a6500]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
[f202956]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');
[b9a6500]172
173
[3ec149c]174-- --------------------------------------------------------
175
176--
177-- Estructura de tabla para la tabla `centros`
178--
179
[a190d69]180DROP TABLE IF EXISTS `centros`;
181CREATE TABLE `centros` (
[3ec149c]182  `idcentro` int(11) NOT NULL AUTO_INCREMENT,
183  `nombrecentro` varchar(100) NOT NULL DEFAULT '',
184  `identidad` int(11) DEFAULT NULL,
185  `comentarios` text,
[56529d2]186  `directorio` varchar(50) DEFAULT '',
[3ec149c]187  PRIMARY KEY (`idcentro`)
188) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
189
190
[4329e85]191--
192-- Volcar la base de datos para la tabla `centros`
193--
194INSERT INTO `centros` (`idcentro`,`nombrecentro`,`identidad`,`comentarios`) VALUES
[049ec55c]195 (1,'Unidad Organizativa (Default)',1,'Esta Unidad Organizativa se crea automáticamente en el proceso de instalación de OpenGnsys');
[4329e85]196
197
[3ec149c]198-- --------------------------------------------------------
199
200--
201-- Estructura de tabla para la tabla `comandos`
202--
203
[a190d69]204DROP TABLE IF EXISTS `comandos`;
205CREATE TABLE `comandos` (
[3ec149c]206  `idcomando` int(11) NOT NULL AUTO_INCREMENT,
207  `descripcion` varchar(250) NOT NULL DEFAULT '',
[2ff2099]208  `pagina` varchar(256) NOT NULL DEFAULT '',
209  `gestor` varchar(256) NOT NULL DEFAULT '',
210  `funcion` varchar(64) NOT NULL DEFAULT '',
[3ec149c]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,
[2ff2099]216  `activo` tinyint(1) NOT NULL DEFAULT '0',
[d866d6b]217  `submenu` varchar(50) NOT NULL DEFAULT '',
[3ec149c]218  PRIMARY KEY (`idcomando`)
[4329e85]219) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
[3ec149c]220
221--
222-- Volcar la base de datos para la tabla `comandos`
223--
224
[d866d6b]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, ''),
[503dac8]232(7, 'Inventario Software', '../comandos/InventarioSoftware.php', '../comandos/gestores/gestor_Comandos.php', 'InventarioSoftware', '', 16, 'dsk;par', 'nfn;iph;mac;dsk;par', '', 1, ''),
[d866d6b]233(8, 'Ejecutar Script', '../comandos/EjecutarScripts.php', '../comandos/gestores/gestor_Comandos.php', 'EjecutarScript', '', 31, 'iph;tis;dcr;scp', 'nfn;iph;tis;dcr;scp', '', 1, ''),
[503dac8]234(9, 'Iniciar Sesion', '../comandos/IniciarSesion.php', '../comandos/gestores/gestor_Comandos.php', 'IniciarSesion', '', 31, 'dsk;par', 'nfn;iph;dsk;par', '', 1, ''),
[bbd5b61]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, ''),
[d866d6b]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, ''),
[418464b]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'),
[7c4b953]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'),
[e4fc3fd]241(16, 'Enviar mensaje', '../comandos/EnviarMensaje.php', '../comandos/gestores/gestor_Comandos.php', 'EnviarMensaje', '', 31, 'tit;msj', 'nfn;iph;tit;msj', '', 1, '');
[cbe1fdf]242
243
[3ec149c]244
245-- --------------------------------------------------------
246
247--
248-- Estructura de tabla para la tabla `entidades`
249--
250
[a190d69]251DROP TABLE IF EXISTS `entidades`;
252CREATE TABLE `entidades` (
[3ec149c]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,
[2ff2099]258  `ogunit` tinyint(1) NOT NULL DEFAULT '0',
[3ec149c]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
[049ec55c]267(1, 'Entidad (Default)', 'Esta Entidad se crea automáticamente en el proceso de instalación de OpenGnsys', 1, 0);
[3ec149c]268
269-- --------------------------------------------------------
270
271--
272-- Estructura de tabla para la tabla `entornos`
273--
274
[a190d69]275DROP TABLE IF EXISTS `entornos`;
276CREATE TABLE `entornos` (
[3ec149c]277  `identorno` int(11) NOT NULL AUTO_INCREMENT,
[2ff2099]278  `ipserveradm` varchar(50) NOT NULL DEFAULT '',
279  `portserveradm` int(20) NOT NULL DEFAULT 2008,
280  `protoclonacion` varchar(50) NOT NULL DEFAULT '',
[3ec149c]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
[58d5ad2]289(1, 'SERVERIP', 2008, 'UNICAST');
[3ec149c]290
291-- --------------------------------------------------------
292
293--
294-- Estructura de tabla para la tabla `estatus`
295--
296
[a190d69]297DROP TABLE IF EXISTS `estatus`;
298CREATE TABLE `estatus` (
[3ec149c]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
[a190d69]321DROP TABLE IF EXISTS `grupos`;
322CREATE TABLE `grupos` (
[3ec149c]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
[a190d69]339DROP TABLE IF EXISTS `gruposordenadores`;
340CREATE TABLE `gruposordenadores` (
[3ec149c]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
[a190d69]355DROP TABLE IF EXISTS `hardwares`;
356CREATE TABLE `hardwares` (
[3ec149c]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
[a190d69]372DROP TABLE IF EXISTS `iconos`;
373CREATE TABLE `iconos` (
[3ec149c]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
[a190d69]407DROP TABLE IF EXISTS `idiomas`;
408CREATE TABLE `idiomas` (
[3ec149c]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'),
[6855821]421(2, 'English', 'eng'),
422(3, 'Català', 'cat');
[3ec149c]423
424-- --------------------------------------------------------
425
426--
427-- Estructura de tabla para la tabla `imagenes`
428--
429
[a190d69]430DROP TABLE IF EXISTS `imagenes`;
431CREATE TABLE `imagenes` (
[3ec149c]432  `idimagen` int(11) NOT NULL AUTO_INCREMENT,
[2ff2099]433  `nombreca` varchar(50) NOT NULL DEFAULT '',
434  `revision` smallint UNSIGNED NOT NULL DEFAULT '0',
[3ec149c]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,
[2ff2099]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',
[4329e85]445  `tipo` tinyint NULL,
[2ff2099]446  `imagenid` int NOT NULL DEFAULT '0',
[4329e85]447  `ruta` varchar(250) NULL,
[d43c0eb]448  `fechacreacion` datetime DEFAULT NULL,
[3b5fb9d]449  `inremotepc` tinyint NOT NULL DEFAULT 0,
[ad61ab7]450  `clonator` varchar(100) NOT NULL DEFAULT '',
451  `compressor` varchar(100) NOT NULL DEFAULT '',
452  `filesystem` varchar(100) NOT NULL DEFAULT '',
453  `datasize` bigint NOT NULL DEFAULT 0,
[3ec149c]454  PRIMARY KEY (`idimagen`)
455) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
456
457-- --------------------------------------------------------
458
459--
460-- Estructura de tabla para la tabla `menus`
461--
462
[a190d69]463DROP TABLE IF EXISTS `menus`;
464CREATE TABLE `menus` (
[3ec149c]465  `idmenu` int(11) NOT NULL AUTO_INCREMENT,
466  `descripcion` varchar(250) NOT NULL DEFAULT '',
467  `idcentro` int(11) NOT NULL DEFAULT '0',
468  `idurlimg` int(11) NOT NULL DEFAULT '0',
469  `titulo` varchar(250) DEFAULT NULL,
470  `modalidad` tinyint(4) DEFAULT NULL,
471  `smodalidad` tinyint(4) DEFAULT NULL,
472  `comentarios` text,
473  `grupoid` int(11) NOT NULL DEFAULT '0',
474  `htmlmenupub` varchar(250) DEFAULT NULL,
475  `htmlmenupri` varchar(250) DEFAULT NULL,
[07a48a4]476  `resolucion` varchar(50) DEFAULT NULL,
[3ec149c]477  PRIMARY KEY (`idmenu`)
478) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
479
480-- --------------------------------------------------------
481
482--
483-- Estructura de tabla para la tabla `nombresos`
484--
485
[a190d69]486DROP TABLE IF EXISTS `nombresos`;
487CREATE TABLE `nombresos` (
[3ec149c]488  `idnombreso` smallint(11) NOT NULL AUTO_INCREMENT,
[2ff2099]489  `nombreso` varchar(250) NOT NULL DEFAULT '',
[3ec149c]490  `idtiposo` int(11) DEFAULT '0',
491  PRIMARY KEY (`idnombreso`)
492) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
493
494-- --------------------------------------------------------
495
496--
[4519fd2]497-- Estructura de tabla para la tabla `ogagent_queue`
498--
499
500DROP TABLE IF EXISTS `ogagent_queue`;
501CREATE TABLE `ogagent_queue` (
502  `id` int(11) NOT NULL AUTO_INCREMENT,
[45e3244]503  `clientid` int(11) NOT NULL DEFAULT 0,
[4519fd2]504  `exectime` datetime DEFAULT NULL,
505  `operation` varchar(25),
506--  `parameters` varchar(100),
507  PRIMARY KEY (`id`)
508) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
509
510-- --------------------------------------------------------
511
512--
[3ec149c]513-- Estructura de tabla para la tabla `ordenadores`
514--
515
[a190d69]516DROP TABLE IF EXISTS `ordenadores`;
517CREATE TABLE `ordenadores` (
[3ec149c]518  `idordenador` int(11) NOT NULL AUTO_INCREMENT,
519  `nombreordenador` varchar(100) DEFAULT NULL,
[695c8e6]520  `numserie` varchar(25) DEFAULT NULL,
[2ff2099]521  `ip` varchar(16) NOT NULL DEFAULT '',
[3ec149c]522  `mac` varchar(12) DEFAULT NULL,
523  `idaula` int(11) DEFAULT NULL,
524  `idperfilhard` int(11) DEFAULT NULL,
525  `idrepositorio` int(11) DEFAULT NULL,
526  `grupoid` int(11) DEFAULT NULL,
527  `idmenu` int(11) DEFAULT NULL,
528  `cache` int(11) DEFAULT NULL,
[2ff2099]529  `router` varchar(16) NOT NULL DEFAULT '',
530  `mascara` varchar(16) NOT NULL DEFAULT '',
531  `idproautoexec` int(11) NOT NULL DEFAULT '0',
[695c8e6]532  `arranque` varchar(30) NOT NULL DEFAULT '00unknown',
[cbe1fdf]533  `netiface` enum('eth0','eth1','eth2') DEFAULT 'eth0',
[695c8e6]534  `netdriver` varchar(30) NOT NULL DEFAULT 'generic',
535  `fotoord` varchar(250) NOT NULL DEFAULT 'fotoordenador.gif',
[5242394]536  `validacion` tinyint(1) DEFAULT '0',
[60b48d3]537  `paginalogin` varchar(100),
[5242394]538  `paginavalidacion` varchar(100),
[2913439]539  `agentkey` varchar(32),
[c311ef2f]540  `oglivedir` varchar(50) NOT NULL DEFAULT 'ogLive',
[f827bf6]541  `n_row` smallint NOT NULL DEFAULT 0,
542  `n_col` smallint NOT NULL DEFAULT 0,
[3b5fb9d]543  `inremotepc` tinyint NOT NULL DEFAULT 0,
544  `maintenance` tinyint NOT NULL DEFAULT 0,
[e8d2851]545  PRIMARY KEY (`idordenador`),
546  KEY `idaulaip` (`idaula` ASC, `ip` ASC)
[3ec149c]547) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
548
[cbe1fdf]549
550
[3ec149c]551-- --------------------------------------------------------
552
553--
554-- Estructura de tabla para la tabla `ordenadores_particiones`
555--
556
[a190d69]557DROP TABLE IF EXISTS `ordenadores_particiones`;
558CREATE TABLE `ordenadores_particiones` (
[2ff2099]559  `idordenador` int(11) NOT NULL DEFAULT '0',
560  `numdisk` smallint NOT NULL DEFAULT '0',
561  `numpar` smallint NOT NULL DEFAULT '0',
562  `codpar` int(8) NOT NULL DEFAULT '0',
563  `tamano` int(11) NOT NULL DEFAULT '0',
564  `uso` tinyint NOT NULL DEFAULT '0',
565  `idsistemafichero` smallint(11) NOT NULL DEFAULT '0',
566  `idnombreso` smallint(11) NOT NULL DEFAULT '0',
567  `idimagen` int(11) NOT NULL DEFAULT '0',
568  `revision` smallint UNSIGNED NOT NULL DEFAULT '0',
569  `idperfilsoft` int(11) NOT NULL DEFAULT '0',
[942373c]570  `fechadespliegue` datetime NULL,
[d09e1c3]571  `cache` text,
[c7b62bd]572  UNIQUE KEY `idordenadornumdisknumpar` (`idordenador`,`numdisk`,`numpar`)
[3ec149c]573) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
574
575-- --------------------------------------------------------
576
577--
578-- Estructura de tabla para la tabla `parametros`
579--
580
[a190d69]581DROP TABLE IF EXISTS `parametros`;
582CREATE TABLE `parametros` (
[3ec149c]583  `idparametro` int(11) NOT NULL AUTO_INCREMENT,
[2ff2099]584  `nemonico` char(3) NOT NULL DEFAULT '',
[d09e1c3]585  `descripcion` text,
[2ff2099]586  `nomidentificador` varchar(64) NOT NULL DEFAULT '',
587  `nomtabla` varchar(64) NOT NULL DEFAULT '',
588  `nomliteral` varchar(64) NOT NULL DEFAULT '',
[3ec149c]589  `tipopa` tinyint(1) DEFAULT '0',
590  `visual` tinyint(4) NOT NULL DEFAULT '0',
[d866d6b]591  PRIMARY KEY (`idparametro`),
592  KEY (`nemonico`)
[4329e85]593) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=33 ;
[3ec149c]594
595--
596-- Volcar la base de datos para la tabla `parametros`
597--
598
599INSERT INTO `parametros` (`idparametro`, `nemonico`, `descripcion`, `nomidentificador`, `nomtabla`, `nomliteral`, `tipopa`, `visual`) VALUES
600(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),
601(2, 'iph', 'Dirección ip de los ordenadores a los que se envía el comando', '', '', '', 0, 0),
602(3, 'ido', 'Identificadores de los ordenadores a los que se envía el comando', '', '', '', 0, 0),
603(4, 'mac', 'Direcciones macs de los clientes a los que se le envía el comando', '', '', '', 0, 0),
604(5, 'idc', 'Unidad organizativa', 'idcentro', 'centros', '', 1, 0),
605(6, 'ida', 'Aula', 'idaula', 'aulas', 'nombreaula', 1, 0),
606(18, 'cfg', 'Configuración', '', '', '', 2, 1),
607(7, 'dsk', 'Disco', '', '', '', 0, 1),
608(8, 'par', 'Partición', '', '', '', 0, 1),
609(9, 'ifh', 'Perfil Hardware', 'idperfilhard', 'perfileshard', 'descripcion', 1, 1),
610(10, 'ifs', 'Perfil Software', 'idperfilsoft', 'perfilessoft', 'descripcion', 1, 1),
611(11, 'idi', 'Imagen', 'idimagen', 'imagenes', 'descripcion', 1, 1),
[4329e85]612(12, 'nci', 'Nombre canónico', '', '', '', 0, 1),
[3ec149c]613(13, 'scp', 'Código a ejecutar en formato script', '', '', '', 0, 0),
614(14, 'npc', 'Nombre del cliente', '', '', '', NULL, 0),
615(15, 'che', 'Tamaño de la cache del cliente', '', '', '', NULL, 0),
616(16, 'exe', 'Identificador del procedimiento que será el que ejecute el cliente al arrancar (Autoexec)', '', '', '', 0, 0),
617(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),
618(19, 'ipr', 'Repositorio', 'ip', 'repositorios', 'nombrerepositorio', 1, 1),
619(20, 'cpt', 'Tipo partición', 'codpar', 'tipospar', 'tipopar', 1, 1),
[3997593]620(21, 'sfi', 'Sistema de fichero', 'nemonico', 'sistemasficheros', 'nemonico', 1, 0),
621(22, 'tam', 'Tamaño', '', '', '', 0, 1),
[3ec149c]622(23, 'ope', 'Operación', ';', '', 'Sin operación;Formatear;Ocultar;Mostrar', 3, 1),
623(24, 'nfl', 'Nombre del fichero que se envía o se recibe', '', '', '', 0, 0),
624(25, 'hrd', 'Nombre del archivo de inventario hardware enviado por la red', '', '', '', 0, 0),
625(26, 'sft', 'Nombre del archivo de inventario software enviado por la red', '', '', '', 0, 0),
626(27, 'tpc', 'Tipo de cliente', '', '', '', 0, 0),
627(28, 'scp', 'Código script', '', '', '', 4, 1),
[7bc3088]628(30, 'ptc', 'Protocolo de clonación', ';', '', ';Unicast;Multicast;Torrent', 0, 1),
[d866d6b]629(31, 'idf', 'Imagen Incremental', 'idimagen', 'imagenes', 'descripcion', 1, 1),
630(32, 'ncf', 'Nombre canónico de la Imagen Incremental', '', '', '', 0, 1),
631(33, 'bpi', 'Borrar imagen o partición previamente', '', '', '', 5, 1),
632(34, 'cpc', 'Copiar también en cache', '', '', '', 5, 1),
633(35, 'bpc', 'Borrado previo de la imagen en cache', '', '', '', 5, 1),
634(36, 'rti', 'Ruta de origen', '', '', '', 0, 1),
[9204a04]635(37, 'met', 'Método clonación', ';', '', 'Desde caché; Desde repositorio', 3, 1),
[e4fc3fd]636(38, 'nba', 'No borrar archivos en destino', '', '', '', 0, 1),
637(39, 'tit', 'Título', '', '', '', 0, 1),
638(40, 'msj', 'Contenido', '', '', '', 0, 1);
[3ec149c]639
640-- --------------------------------------------------------
641
642--
643-- Estructura de tabla para la tabla `perfileshard`
[4329e85]644
[3ec149c]645--
646
[a190d69]647DROP TABLE IF EXISTS `perfileshard`;
648CREATE TABLE `perfileshard` (
[3ec149c]649  `idperfilhard` int(11) NOT NULL AUTO_INCREMENT,
650  `descripcion` varchar(250) NOT NULL DEFAULT '',
651  `comentarios` text,
652  `grupoid` int(11) DEFAULT NULL,
[2ff2099]653  `idcentro` int(11) NOT NULL DEFAULT '0',
[40ad2e8d]654  `winboot` enum( 'reboot', 'kexec' ) NOT NULL DEFAULT 'reboot',
[3ec149c]655  PRIMARY KEY (`idperfilhard`)
656) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
657
658
659-- --------------------------------------------------------
660
661--
662-- Estructura de tabla para la tabla `perfileshard_hardwares`
663--
664
[a190d69]665DROP TABLE IF EXISTS `perfileshard_hardwares`;
666CREATE TABLE `perfileshard_hardwares` (
[3ec149c]667  `idperfilhard` int(11) NOT NULL DEFAULT '0',
668  `idhardware` int(11) NOT NULL DEFAULT '0',
669  KEY `idperfilhard` (`idperfilhard`)
670) ENGINE=MyISAM DEFAULT CHARSET=utf8;
671
672-- --------------------------------------------------------
673
674--
675-- Estructura de tabla para la tabla `perfilessoft`
676--
677
[a190d69]678DROP TABLE IF EXISTS `perfilessoft`;
679CREATE TABLE `perfilessoft` (
[3ec149c]680  `idperfilsoft` int(11) NOT NULL AUTO_INCREMENT,
[398dccd]681  `idnombreso` smallint(5) unsigned DEFAULT NULL,
[3ec149c]682  `descripcion` varchar(250) NOT NULL DEFAULT '',
683  `comentarios` text,
684  `grupoid` int(11) DEFAULT NULL,
[2ff2099]685  `idcentro` int(11) NOT NULL DEFAULT '0',
[3ec149c]686  PRIMARY KEY (`idperfilsoft`)
687) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
688
689-- --------------------------------------------------------
690
691--
692-- Estructura de tabla para la tabla `perfilessoft_softwares`
693--
694
[a190d69]695DROP TABLE IF EXISTS `perfilessoft_softwares`;
696CREATE TABLE `perfilessoft_softwares` (
[3ec149c]697  `idperfilsoft` int(11) NOT NULL DEFAULT '0',
698  `idsoftware` int(11) NOT NULL DEFAULT '0'
699) ENGINE=MyISAM DEFAULT CHARSET=utf8;
700
701-- --------------------------------------------------------
702
703--
704-- Estructura de tabla para la tabla `plataformas`
705--
706
[a190d69]707DROP TABLE IF EXISTS `plataformas`;
708CREATE TABLE `plataformas` (
[3ec149c]709  `idplataforma` int(11) NOT NULL AUTO_INCREMENT,
[2ff2099]710  `plataforma` varchar(250) NOT NULL DEFAULT '',
[3ec149c]711  PRIMARY KEY (`idplataforma`)
712) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=18 ;
713
714--
715-- Volcar la base de datos para la tabla `plataformas`
716--
717
718INSERT INTO `plataformas` (`idplataforma`, `plataforma`) VALUES
719(1, 'MsDos'),
720(2, 'Windows'),
721(3, 'Linux'),
722(4, 'Mac'),
723(5, 'OS');
724
725-- --------------------------------------------------------
726
727--
728-- Estructura de tabla para la tabla `procedimientos`
729--
730
[a190d69]731DROP TABLE IF EXISTS `procedimientos`;
732CREATE TABLE `procedimientos` (
[3ec149c]733  `idprocedimiento` int(11) NOT NULL AUTO_INCREMENT,
734  `descripcion` varchar(250) NOT NULL DEFAULT '',
735  `urlimg` varchar(250) DEFAULT NULL,
736  `idcentro` int(11) NOT NULL DEFAULT '0',
737  `comentarios` text,
738  `grupoid` int(11) DEFAULT '0',
739  PRIMARY KEY (`idprocedimiento`)
740) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
741
742-- --------------------------------------------------------
743
744--
745-- Estructura de tabla para la tabla `procedimientos_acciones`
746--
747
[a190d69]748DROP TABLE IF EXISTS `procedimientos_acciones`;
749CREATE TABLE `procedimientos_acciones` (
[3ec149c]750  `idprocedimientoaccion` int(11) NOT NULL AUTO_INCREMENT,
751  `idprocedimiento` int(11) NOT NULL DEFAULT '0',
752  `orden` smallint(4) DEFAULT NULL,
753  `idcomando` int(11) NOT NULL DEFAULT '0',
754  `parametros` text,
[2ff2099]755  `procedimientoid` int(11) NOT NULL DEFAULT '0',
[3ec149c]756  PRIMARY KEY (`idprocedimientoaccion`)
757) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
758
759-- --------------------------------------------------------
760
761--
762-- Estructura de tabla para la tabla `programaciones`
763--
764
[a190d69]765DROP TABLE IF EXISTS `programaciones`;
766CREATE TABLE `programaciones` (
[3ec149c]767  `idprogramacion` int(11) NOT NULL AUTO_INCREMENT,
768  `tipoaccion` int(11) DEFAULT NULL,
769  `identificador` int(11) DEFAULT NULL,
770  `nombrebloque` varchar(255) DEFAULT NULL,
[da380e9]771  `annos` smallint DEFAULT NULL,
772  `meses` smallint DEFAULT NULL,
[3ec149c]773  `diario` int(11) DEFAULT NULL,
774  `dias` tinyint(4) DEFAULT NULL,
775  `semanas` tinyint(4) DEFAULT NULL,
776  `horas` smallint(4) DEFAULT NULL,
777  `ampm` tinyint(1) DEFAULT NULL,
778  `minutos` tinyint(4) DEFAULT NULL,
779  `segundos` tinyint(4) DEFAULT NULL,
780  `horasini` smallint(4) DEFAULT NULL,
781  `ampmini` tinyint(1) DEFAULT NULL,
782  `minutosini` tinyint(4) DEFAULT NULL,
783  `horasfin` smallint(4) DEFAULT NULL,
784  `ampmfin` tinyint(1) DEFAULT NULL,
785  `minutosfin` tinyint(4) DEFAULT NULL,
786  `suspendida` tinyint(1) DEFAULT NULL,
[2ff2099]787  `sesion` int(11) NOT NULL DEFAULT '0',
[3ec149c]788  PRIMARY KEY (`idprogramacion`)
789) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
790
791-- --------------------------------------------------------
792
793--
[cc34367]794-- Estructura de tabla para la tabla `remotepc`
795--
796
[a190d69]797DROP TABLE IF EXISTS `remotepc`;
798CREATE TABLE `remotepc` (
[45e3244]799  `id` int(11) NOT NULL DEFAULT 0,
[d8b6c70]800  `reserved` datetime DEFAULT NULL,
[a0dd47a]801  `urllogin` varchar(255) DEFAULT NULL,
802  `urllogout` varchar(255) DEFAULT NULL,
803  `urlrelease` varchar(255) DEFAULT NULL,
[b46042c]804  `language` varchar(5),
[7e8132af]805  `islocal` tinyint NOT NULL DEFAULT 0,
[cc34367]806  PRIMARY KEY (`id`)
807) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
808
809-- --------------------------------------------------------
810
811--
[3ec149c]812-- Estructura de tabla para la tabla `repositorios`
813--
814
[a190d69]815DROP TABLE IF EXISTS `repositorios`;
816CREATE TABLE `repositorios` (
[3ec149c]817  `idrepositorio` int(11) NOT NULL AUTO_INCREMENT,
[2ff2099]818  `nombrerepositorio` varchar(250) NOT NULL DEFAULT '',
[3ec149c]819  `ip` varchar(15) NOT NULL DEFAULT '',
820  `idcentro` int(11) DEFAULT NULL,
821  `grupoid` int(11) DEFAULT NULL,
822  `comentarios` text,
[15acccd]823  `apikey` varchar(32) NOT NULL DEFAULT '',
[3ec149c]824  PRIMARY KEY (`idrepositorio`)
825) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
826
[60ea634]827INSERT INTO `repositorios` (`idrepositorio`,`nombrerepositorio`,`ip`,`idcentro`,`grupoid`,`comentarios`,`apikey`) VALUES
828 (1,'Repositorio (Default)','SERVERIP',1,0,'','REPOKEY');
[58d5ad2]829
830
[3ec149c]831-- --------------------------------------------------------
832
833--
834-- Estructura de tabla para la tabla `sistemasficheros`
835--
836
[a190d69]837DROP TABLE IF EXISTS `sistemasficheros`;
838CREATE TABLE `sistemasficheros` (
[3ec149c]839  `idsistemafichero` smallint(11) NOT NULL AUTO_INCREMENT,
840  `descripcion` varchar(50) NOT NULL DEFAULT '',
841  `nemonico` varchar(16) DEFAULT NULL,
[2ff2099]842  `codpar` int(8) NOT NULL DEFAULT '0',
[2fae4340]843  PRIMARY KEY (`idsistemafichero`),
[ed5611d]844  UNIQUE KEY (`descripcion`)
[3ec149c]845) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[ed5611d]846INSERT INTO `sistemasficheros` (`idsistemafichero`, `descripcion`, `nemonico`, `codpar`) VALUES
847 (1, 'EMPTY', 'EMPTY', 0),
848 (2, 'CACHE', 'CACHE', 0),
849 (3, 'BTRFS', 'BTRFS', 0),
850 (4, 'EXT2', 'EXT2', 0),
851 (5, 'EXT3', 'EXT3', 0),
852 (6, 'EXT4', 'EXT4', 0),
853 (7, 'FAT12', 'FAT12', 0),
854 (8, 'FAT16', 'FAT16', 0),
855 (9, 'FAT32', 'FAT32', 0),
856 (10, 'HFS', 'HFS', 0),
857 (11, 'HFSPLUS', 'HFSPLUS', 0),
858 (12, 'JFS', 'JFS', 0),
859 (13, 'NTFS', 'NTFS', 0),
860 (14, 'REISERFS', 'REISERFS', 0),
861 (15, 'REISER4', 'REISER4', 0),
862 (16, 'UFS', 'UFS', 0),
[cbc2d27]863 (17, 'XFS', 'XFS', 0),
[a616248]864 (18, 'EXFAT', 'EXFAT', 0),
865 (19, 'LINUX-SWAP', 'LINUX-SWAP', 0),
866 (20, 'F2FS', 'F2FS', 0),
867 (21, 'NILFS2', 'NILFS2', 0);
[ed5611d]868
[3ec149c]869
870-- --------------------------------------------------------
871
872--
873-- Estructura de tabla para la tabla `softwares`
874--
875
[a190d69]876DROP TABLE IF EXISTS `softwares`;
877CREATE TABLE `softwares` (
[3ec149c]878  `idsoftware` int(11) NOT NULL AUTO_INCREMENT,
879  `idtiposoftware` int(11) NOT NULL DEFAULT '0',
880  `descripcion` varchar(250) NOT NULL DEFAULT '',
881  `idcentro` int(11) NOT NULL DEFAULT '0',
882  `urlimg` varchar(250) DEFAULT NULL,
883  `idtiposo` int(11) DEFAULT NULL,
884  `grupoid` int(11) DEFAULT NULL,
885  PRIMARY KEY (`idsoftware`)
886) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
887
888-- --------------------------------------------------------
889
890--
891-- Estructura de tabla para la tabla `tareas`
892--
893
[a190d69]894DROP TABLE IF EXISTS `tareas`;
895CREATE TABLE `tareas` (
[3ec149c]896  `idtarea` int(11) NOT NULL AUTO_INCREMENT,
897  `descripcion` varchar(250) NOT NULL DEFAULT '',
898  `urlimg` varchar(250) DEFAULT NULL,
899  `idcentro` int(11) NOT NULL DEFAULT '0',
900  `ambito` smallint(6) NOT NULL DEFAULT '0',
901  `idambito` int(11) NOT NULL DEFAULT '0',
[d09e1c3]902  `restrambito` text,
[3ec149c]903  `comentarios` text,
904  `grupoid` int(11) DEFAULT '0',
905  PRIMARY KEY (`idtarea`)
906) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
907
908-- --------------------------------------------------------
909
910--
911-- Estructura de tabla para la tabla `tareas_acciones`
912--
913
[a190d69]914DROP TABLE IF EXISTS `tareas_acciones`;
915CREATE TABLE `tareas_acciones` (
[3ec149c]916  `idtareaaccion` int(11) NOT NULL AUTO_INCREMENT,
917  `idtarea` int(11) NOT NULL DEFAULT '0',
918  `orden` smallint(6) NOT NULL DEFAULT '0',
919  `idprocedimiento` int(11) NOT NULL DEFAULT '0',
920  `tareaid` int(11) DEFAULT '0',
921  PRIMARY KEY (`idtareaaccion`)
922) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
923
924-- --------------------------------------------------------
925
926--
927-- Estructura de tabla para la tabla `tipohardwares`
928--
929
[a190d69]930DROP TABLE IF EXISTS `tipohardwares`;
931CREATE TABLE `tipohardwares` (
[3ec149c]932  `idtipohardware` int(11) NOT NULL AUTO_INCREMENT,
933  `descripcion` varchar(250) NOT NULL DEFAULT '',
934  `urlimg` varchar(250) NOT NULL DEFAULT '',
[2ff2099]935  `nemonico` char(3) NOT NULL DEFAULT '',
[3ec149c]936  PRIMARY KEY (`idtipohardware`)
937) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=17 ;
938
939--
940-- Volcar la base de datos para la tabla `tipohardwares`
941--
942
[da00a02]943INSERT INTO `tipohardwares` (`idtipohardware`, `descripcion`, `urlimg`, `nemonico`) VALUES
[6f62a1a]944(1, 'Placas', '../images/iconos/placabase.gif', 'boa'),
945(2, 'Dispositivos Multimedia', '../images/iconos/tsonido.gif', 'mul'),
946(3, 'Tarjetas de Red', '../images/iconos/nic.gif', 'net'),
947(4, 'Microprocesadores', '../images/iconos/micro.gif', 'cpu'),
948(5, 'Memorias', '../images/iconos/confihard.gif', 'mem'),
949(7, 'Tarjetas gráficas', '../images/iconos/vga.gif', 'vga'),
950(8, 'Discos', '../images/iconos/discoduro.gif', 'dis'),
951(9, 'Dispositivos de sonido', '../images/iconos/audio.gif', 'aud'),
952(10, 'Marca y modelo del equipo', '../images/iconos/confihard.gif', 'mod'),
953(11, 'Modelo y version de la bios', '../images/iconos/confihard.gif', 'bio'),
954(12, 'Modelo de grabadora o  grabadora de CD/DVD', '../images/iconos/dvdcd.gif', 'cdr'),
955(13, 'Controladores IDE', '../images/iconos/ide.gif', 'ide'),
956(14, 'Controladores FireWire', '../images/iconos/confihard.gif', 'fir'),
957(15, 'Controladores USB', '../images/iconos/usb.gif', 'usb'),
958(16, 'Bus del Sistema', '../images/iconos/confihard.gif', 'bus'),
959(17, 'Chasis del Sistema', '', 'cha'),
[aaf5f9f]960(18, 'Controladores de almacenamiento', '../images/iconos/almacenamiento.png', 'sto'),
961(19, 'Tipo de proceso de arranque', '../images/iconos/arranque.png', 'boo');
[3ec149c]962
963-- --------------------------------------------------------
964
965--
966-- Estructura de tabla para la tabla `tiposoftwares`
967--
968
[a190d69]969DROP TABLE IF EXISTS `tiposoftwares`;
970CREATE TABLE `tiposoftwares` (
[3ec149c]971  `idtiposoftware` int(11) NOT NULL AUTO_INCREMENT,
972  `descripcion` varchar(250) NOT NULL DEFAULT '',
973  `urlimg` varchar(250) NOT NULL DEFAULT '',
974  PRIMARY KEY (`idtiposoftware`)
975) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
976
977--
978-- Volcar la base de datos para la tabla `tiposoftwares`
979--
980
981INSERT INTO `tiposoftwares` (`idtiposoftware`, `descripcion`, `urlimg`) VALUES
982(1, 'Sistemas Operativos', '../images/iconos/so.gif'),
983(2, 'Aplicaciones', '../images/iconos/aplicaciones.gif'),
984(3, 'Archivos', '../images/iconos/archivos.gif');
985
986-- --------------------------------------------------------
987
988--
989-- Estructura de tabla para la tabla `tiposos`
990--
991
[a190d69]992DROP TABLE IF EXISTS `tiposos`;
993CREATE TABLE `tiposos` (
[3ec149c]994  `idtiposo` int(11) NOT NULL AUTO_INCREMENT,
[2ff2099]995  `tiposo` varchar(250) NOT NULL DEFAULT '',
996  `idplataforma` int(11) NOT NULL DEFAULT '0',
[3ec149c]997  PRIMARY KEY (`idtiposo`)
998) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=21 ;
999
1000--
1001-- Volcar la base de datos para la tabla `tiposos`
1002--
1003
1004INSERT INTO `tiposos` (`idtiposo`, `tiposo`, `idplataforma`) VALUES
1005(1, 'MsDos 6.0', 1),
1006(2, 'Windows 98', 2),
1007(3, 'Linux Ubuntu', 3),
1008(4, 'Mac', 0),
1009(5, 'OS', 0),
1010(17, 'Windows XP', 2),
1011(18, 'Windows Vista', 2),
1012(19, 'Linux Red Hat', 3),
1013(20, 'Windows 7', 2);
1014
1015-- --------------------------------------------------------
1016
1017--
1018-- Estructura de tabla para la tabla `tipospar`
1019--
1020
[a190d69]1021DROP TABLE IF EXISTS `tipospar`;
1022CREATE TABLE `tipospar` (
[45e3244]1023  `codpar` int(8) NOT NULL DEFAULT 0,
[2ff2099]1024  `tipopar` varchar(250) NOT NULL DEFAULT '',
1025  `clonable` tinyint(4) NOT NULL DEFAULT '0',
[3ec149c]1026  UNIQUE KEY `codpar` (`codpar`)
1027) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1028
1029--
1030-- Volcar la base de datos para la tabla `tipospar`
1031--
1032
1033INSERT INTO `tipospar` (`codpar`, `tipopar`, `clonable`) VALUES
1034(0, 'EMPTY', 0),
1035(1, 'FAT12', 1),
1036(5, 'EXTENDED', 0),
[e88c0b1]1037(6, 'FAT16', 1),
[3ec149c]1038(7, 'NTFS', 1),
[e88c0b1]1039(CONV('0B',16,10), 'FAT32', 1),
1040(CONV('11',16,10), 'HFAT12', 1),
1041(CONV('16',16,10), 'HFAT16', 1),
1042(CONV('17',16,10), 'HNTFS', 1),
1043(CONV('1B',16,10), 'HFAT32', 1),
[20e5aaad]1044(CONV('27',16,10), 'HNTFS-WINRE', 1),
[e88c0b1]1045(CONV('82',16,10), 'LINUX-SWAP', 0),
1046(CONV('83',16,10), 'LINUX', 1),
1047(CONV('8E',16,10), 'LINUX-LVM', 1),
1048(CONV('A5',16,10), 'FREEBSD', 1),
1049(CONV('A6',16,10), 'OPENBSD', 1),
[822d4f5]1050(CONV('A9',16,10), 'NETBSD', 1),
[e88c0b1]1051(CONV('AF',16,10), 'HFS', 1),
1052(CONV('BE',16,10), 'SOLARIS-BOOT', 1),
1053(CONV('BF',16,10), 'SOLARIS', 1),
1054(CONV('CA',16,10), 'CACHE', 0),
1055(CONV('DA',16,10), 'DATA', 1),
1056(CONV('EE',16,10), 'GPT', 0),
[cbc2d27]1057(CONV('EF',16,10), 'EFI', 1),
[e88c0b1]1058(CONV('FB',16,10), 'VMFS', 1),
1059(CONV('FD',16,10), 'LINUX-RAID', 1),
1060(CONV('0700',16,10), 'WINDOWS', 1),
[77648b6]1061(CONV('0C01',16,10), 'WIN-RESERV', 1),
[822d4f5]1062(CONV('2700',16,10), 'WIN-RECOV', 1),
[77648b6]1063(CONV('7F00',16,10), 'CHROMEOS-KRN', 1),
1064(CONV('7F01',16,10), 'CHROMEOS', 1),
1065(CONV('7F02',16,10), 'CHROMEOS-RESERV', 1),
[e88c0b1]1066(CONV('8200',16,10), 'LINUX-SWAP', 0),
1067(CONV('8300',16,10), 'LINUX', 1),
[77648b6]1068(CONV('8301',16,10), 'LINUX-RESERV', 1),
[822d4f5]1069(CONV('8302',16,10), 'LINUX', 1),
[e88c0b1]1070(CONV('8E00',16,10), 'LINUX-LVM', 1),
1071(CONV('A500',16,10), 'FREEBSD-DISK', 0),
1072(CONV('A501',16,10), 'FREEBSD-BOOT', 1),
1073(CONV('A502',16,10), 'FREEBSD-SWAP', 0),
1074(CONV('A503',16,10), 'FREEBSD', 1),
[822d4f5]1075(CONV('A504',16,10), 'FREEBSD', 1),
1076(CONV('A901',16,10), 'NETBSD-SWAP', 0),
1077(CONV('A902',16,10), 'NETBSD', 1),
1078(CONV('A903',16,10), 'NETBSD', 1),
1079(CONV('A904',16,10), 'NETBSD', 1),
1080(CONV('A905',16,10), 'NETBSD', 1),
1081(CONV('A906',16,10), 'NETBSD-RAID', 1),
[fea9dfb]1082(CONV('AB00',16,10), 'HFS-BOOT', 1),
[e88c0b1]1083(CONV('AF00',16,10), 'HFS', 1),
[77648b6]1084(CONV('AF01',16,10), 'HFS-RAID', 1),
[822d4f5]1085(CONV('AF02',16,10), 'HFS-RAID', 1),
[e88c0b1]1086(CONV('BE00',16,10), 'SOLARIS-BOOT', 1),
1087(CONV('BF00',16,10), 'SOLARIS', 1),
1088(CONV('BF01',16,10), 'SOLARIS', 1),
1089(CONV('BF02',16,10), 'SOLARIS-SWAP', 0),
1090(CONV('BF03',16,10), 'SOLARIS-DISK', 1),
1091(CONV('BF04',16,10), 'SOLARIS', 1),
1092(CONV('BF05',16,10), 'SOLARIS', 1),
[77648b6]1093(CONV('CA00',16,10), 'CACHE', 0),
[cbc2d27]1094(CONV('EF00',16,10), 'EFI', 1),
[e88c0b1]1095(CONV('EF01',16,10), 'MBR', 0),
1096(CONV('EF02',16,10), 'BIOS-BOOT', 0),
[822d4f5]1097(CONV('FB00',16,10), 'VMFS', 1),
1098(CONV('FB01',16,10), 'VMFS-RESERV', 1),
1099(CONV('FB02',16,10), 'VMFS-KRN', 1),
[e88c0b1]1100(CONV('FD00',16,10), 'LINUX-RAID', 1),
[dee9fac]1101(CONV('FFFF',16,10), 'UNKNOWN', 1),
1102(CONV('10000',16,10), 'LVM-LV', 1),
1103(CONV('10010',16,10), 'ZFS-VOL', 1);
1104
[3ec149c]1105
1106-- --------------------------------------------------------
1107
1108--
1109-- Estructura de tabla para la tabla `universidades`
1110--
1111
[a190d69]1112DROP TABLE IF EXISTS `universidades`;
1113CREATE TABLE `universidades` (
[3ec149c]1114  `iduniversidad` int(11) NOT NULL AUTO_INCREMENT,
1115  `nombreuniversidad` varchar(200) NOT NULL DEFAULT '',
1116  `comentarios` text,
1117  PRIMARY KEY (`iduniversidad`)
1118) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
1119
1120--
1121-- Volcar la base de datos para la tabla `universidades`
1122--
1123
1124INSERT INTO `universidades` (`iduniversidad`, `nombreuniversidad`, `comentarios`) VALUES
[049ec55c]1125(1, 'Universidad (Default)', 'Esta Universidad se crea automáticamentese en el proceso de instalación de OpenGnsys');
[3ec149c]1126
1127-- --------------------------------------------------------
1128
1129--
1130-- Estructura de tabla para la tabla `urlimagesitems`
1131--
1132
[a190d69]1133DROP TABLE IF EXISTS `urlimagesitems`;
1134CREATE TABLE `urlimagesitems` (
[3ec149c]1135  `idurlimagesitems` int(11) NOT NULL AUTO_INCREMENT,
1136  `descripcion` varchar(250) NOT NULL DEFAULT '',
1137  PRIMARY KEY (`idurlimagesitems`)
1138) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
1139
1140--
1141-- Volcar la base de datos para la tabla `urlimagesitems`
1142--
1143
1144
1145-- --------------------------------------------------------
1146
1147--
1148-- Estructura de tabla para la tabla `usuarios`
1149--
1150
[a190d69]1151DROP TABLE IF EXISTS `usuarios`;
1152CREATE TABLE `usuarios` (
[3ec149c]1153  `idusuario` int(11) NOT NULL AUTO_INCREMENT,
1154  `usuario` varchar(50) NOT NULL DEFAULT '',
[2b2311f]1155  `pasguor` varchar(56) NOT NULL DEFAULT '',
[3ec149c]1156  `nombre` varchar(200) DEFAULT NULL,
1157  `email` varchar(200) DEFAULT NULL,
1158  `ididioma` int(11) DEFAULT NULL,
1159  `idtipousuario` tinyint(4) DEFAULT NULL,
[216105a]1160  `apikey` varchar(32) NOT NULL DEFAULT '',
[3ec149c]1161  PRIMARY KEY (`idusuario`)
1162) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
1163
1164--
1165-- Volcar la base de datos para la tabla `usuarios`
1166--
1167
[da00a02]1168INSERT INTO `usuarios` (`idusuario`, `usuario`, `pasguor`, `nombre`, `email`, `ididioma`, `idtipousuario`, `apikey`) VALUES
[3ac11d4]1169(1, 'DBUSER', SHA2('DBPASSWORD', 224), 'Usuario de la base de datos MySql', '', 1, 1, 'APIKEY');
[3ec149c]1170
[cbe1fdf]1171
Note: See TracBrowser for help on using the repository browser.