source: admin/Database/ogAdmBD.sql @ f8fa0a3

configure-oglivelgromero-new-oglivemainmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineoglive-ipv6test-python-scriptsticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change on this file since f8fa0a3 was 0486969, checked in by Natalia Serrano <natalia.serrano@…>, 13 months ago

refs #276 reserve lab

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