source: admin/Database/ogAdmBD.sql @ 3a89d3d

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

#676 #730: Definir particiones para volúmenes LVM y ZFS; modificar configuración para evitar errores con MySQL 5.7 (Ubuntu 16.04).

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

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