source: admin/Database/ogAdmBD.sql @ da380e9

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

#732: Ampliar dato para año en la BD y en servicio de programación de tareas.

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

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