source: admin/Database/ogAdmBD.sql @ 85e3040

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 85e3040 was c4321ae, checked in by ramon <ramongomez@…>, 15 years ago

Instalador parchea el fichero de volcado SQL modificando el acceso por defecto del usuario súper-administrador.

git-svn-id: https://opengnsys.es/svn/trunk@1347 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 30.6 KB
Line 
1-- phpMyAdmin SQL Dump
2-- version 3.2.2.1deb1
3-- http://www.phpmyadmin.net
4--
5-- Servidor: localhost
6-- Tiempo de generación: 20-09-2010 a las 22:43:50
7-- Versión del servidor: 5.1.37
8-- Versión de PHP: 5.2.10-2ubuntu6.4
9
10SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
11
12--
13-- Base de datos: `ogAdmBD`
14--
15
16-- --------------------------------------------------------
17
18--
19-- Estructura de tabla para la tabla `acciones`
20--
21
22CREATE TABLE IF NOT EXISTS `acciones` (
23  `idaccion` int(11) NOT NULL AUTO_INCREMENT,
24  `tipoaccion` smallint(6) NOT NULL,
25  `idtipoaccion` int(11) NOT NULL,
26  `descriaccion` varchar(250) NOT NULL,
27  `idordenador` int(11) NOT NULL,
28  `ip` varchar(50) NOT NULL,
29  `sesion` int(11) NOT NULL,
30  `idcomando` int(11) NOT NULL,
31  `parametros` text,
32  `fechahorareg` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
33  `fechahorafin` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
34  `estado` tinyint(1) NOT NULL DEFAULT '0',
35  `resultado` tinyint(1) NOT NULL DEFAULT '0',
36  `descrinotificacion` varchar(256) DEFAULT NULL,
37  `ambito` smallint(6) NOT NULL DEFAULT '0',
38  `idambito` int(11) NOT NULL DEFAULT '0',
39  `restrambito` text NOT NULL,
40  `idprocedimiento` int(11) NOT NULL DEFAULT '0',
41  `idtarea` int(11) NOT NULL DEFAULT '0',
42  `idcentro` int(11) NOT NULL DEFAULT '0',
43  `idprogramacion` int(11) NOT NULL DEFAULT '0',
44  PRIMARY KEY (`idaccion`)
45) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
46
47-- --------------------------------------------------------
48
49--
50-- Estructura de tabla para la tabla `acciones_menus`
51--
52
53CREATE TABLE IF NOT EXISTS `acciones_menus` (
54  `idaccionmenu` int(11) NOT NULL AUTO_INCREMENT,
55  `tipoaccion` tinyint(4) NOT NULL DEFAULT '0',
56  `idtipoaccion` int(11) NOT NULL DEFAULT '0',
57  `idmenu` int(11) NOT NULL DEFAULT '0',
58  `tipoitem` tinyint(4) DEFAULT NULL,
59  `idurlimg` int(11) DEFAULT NULL,
60  `descripitem` varchar(250) DEFAULT NULL,
61  `orden` tinyint(4) DEFAULT NULL,
62  PRIMARY KEY (`idaccionmenu`)
63) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
64
65-- --------------------------------------------------------
66
67--
68-- Estructura de tabla para la tabla `administradores_centros`
69--
70
71CREATE TABLE IF NOT EXISTS `administradores_centros` (
72  `idadministradorcentro` int(11) NOT NULL AUTO_INCREMENT,
73  `idusuario` int(11) NOT NULL DEFAULT '0',
74  `idcentro` int(11) NOT NULL DEFAULT '0',
75  PRIMARY KEY (`idadministradorcentro`)
76) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
77
78-- --------------------------------------------------------
79
80--
81-- Estructura de tabla para la tabla `aulas`
82--
83
84CREATE TABLE IF NOT EXISTS `aulas` (
85  `idaula` int(11) NOT NULL AUTO_INCREMENT,
86  `nombreaula` varchar(100) NOT NULL DEFAULT '',
87  `idcentro` int(11) NOT NULL DEFAULT '0',
88  `urlfoto` varchar(250) DEFAULT NULL,
89  `cuadro_y` char(3) DEFAULT NULL,
90  `cuadro_x` char(3) DEFAULT NULL,
91  `cagnon` tinyint(1) DEFAULT NULL,
92  `pizarra` tinyint(1) DEFAULT NULL,
93  `grupoid` int(11) DEFAULT NULL,
94  `ubicacion` varchar(255) DEFAULT NULL,
95  `comentarios` text,
96  `puestos` tinyint(4) DEFAULT NULL,
97  `horaresevini` tinyint(4) DEFAULT NULL,
98  `horaresevfin` tinyint(4) DEFAULT NULL,
99  `modomul` tinyint(4) NOT NULL,
100  `ipmul` varchar(16) NOT NULL,
101  `pormul` int(11) NOT NULL,
102  `velmul` smallint(6) NOT NULL,
103  PRIMARY KEY (`idaula`)
104) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
105
106-- --------------------------------------------------------
107
108--
109-- Estructura de tabla para la tabla `campus`
110--
111
112CREATE TABLE IF NOT EXISTS `campus` (
113  `idcampus` int(11) NOT NULL AUTO_INCREMENT,
114  `nombrecampus` varchar(100) NOT NULL DEFAULT '',
115  `iduniversidad` int(11) DEFAULT NULL,
116  `urlmapa` varchar(255) DEFAULT NULL,
117  `cuadro_y` tinyint(3) DEFAULT NULL,
118  `cuadro_x` tinyint(3) DEFAULT NULL,
119  PRIMARY KEY (`idcampus`)
120) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
121
122--
123-- Volcar la base de datos para la tabla `campus`
124--
125
126
127-- --------------------------------------------------------
128
129--
130-- Estructura de tabla para la tabla `centros`
131--
132
133CREATE TABLE IF NOT EXISTS `centros` (
134  `idcentro` int(11) NOT NULL AUTO_INCREMENT,
135  `nombrecentro` varchar(100) NOT NULL DEFAULT '',
136  `identidad` int(11) DEFAULT NULL,
137  `comentarios` text,
138  PRIMARY KEY (`idcentro`)
139) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
140
141
142        --
143        -- Volcar la base de datos para la tabla `centros`
144        --
145        INSERT INTO `centros` (`idcentro`,`nombrecentro`,`identidad`,`comentarios`) VALUES
146         (1,'Unidad organizativa (Default)',1,'Esta Unidad Organizativa se crea automáticamente en el proceso de instalación de OpenGNSys');
147         
148       
149-- --------------------------------------------------------
150
151--
152-- Estructura de tabla para la tabla `comandos`
153--
154
155CREATE TABLE IF NOT EXISTS `comandos` (
156  `idcomando` int(11) NOT NULL AUTO_INCREMENT,
157  `descripcion` varchar(250) NOT NULL DEFAULT '',
158  `pagina` varchar(256) NOT NULL,
159  `gestor` varchar(256) NOT NULL,
160  `funcion` varchar(64) NOT NULL,
161  `urlimg` varchar(250) DEFAULT NULL,
162  `aplicambito` tinyint(4) DEFAULT NULL,
163  `visuparametros` varchar(250) DEFAULT NULL,
164  `parametros` varchar(250) DEFAULT NULL,
165  `comentarios` text,
166  `activo` tinyint(1) NOT NULL,
167  PRIMARY KEY (`idcomando`)
168) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
169
170--
171-- Volcar la base de datos para la tabla `comandos`
172--
173
174INSERT INTO `comandos` (`idcomando`, `descripcion`, `pagina`, `gestor`, `funcion`, `urlimg`, `aplicambito`, `visuparametros`, `parametros`, `comentarios`, `activo`) VALUES
175(1, 'Arrancar', '../comandos/Arrancar.php', '../comandos/gestores/gestor_Comandos.php', 'Arrancar', '', 31, '', 'nfn;iph;mac', '', 1),
176(2, 'Apagar', '../comandos/Apagar.php', '../comandos/gestores/gestor_Comandos.php', 'Apagar', '', 31, '', 'nfn;iph;mac', '', 1),
177(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),
178(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),
179(5, 'Reiniciar', '../comandos/Reiniciar.php', '../comandos/gestores/gestor_Comandos.php', 'Reiniciar', '', 31, '', 'nfn;iph;mac;', '', 1),
180(6, 'Inventario Hardware', '../comandos/InventarioHardware.php', '../comandos/gestores/gestor_Comandos.php', 'InventarioHardware', '', 16, '', 'nfn;iph;mac;', '', 1),
181(7, 'Inventario Software', '../comandos/InventarioSoftware.php', '../comandos/gestores/gestor_Comandos.php', 'InventarioSoftware', '', 16, 'par', 'nfn;iph;mac;par', '', 1),
182(8, 'Ejecutar Script', '../comandos/EjecutarScripts.php', '../comandos/gestores/gestor_Comandos.php', 'EjecutarScript', '', 31, 'iph;tis;dcr;scp', 'nfn;iph;tis;dcr;scp', '', 1),
183(9, 'Iniciar Sesion', '../comandos/IniciarSesion.php', '../comandos/gestores/gestor_Comandos.php', 'IniciarSesion', '', 31, 'par', 'nfn;iph;par', '', 1),
184(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);
185
186-- --------------------------------------------------------
187
188--
189-- Estructura de tabla para la tabla `entidades`
190--
191
192CREATE TABLE IF NOT EXISTS `entidades` (
193  `identidad` int(11) NOT NULL AUTO_INCREMENT,
194  `nombreentidad` varchar(200) NOT NULL DEFAULT '',
195  `comentarios` text,
196  `iduniversidad` int(11) DEFAULT NULL,
197  `grupoid` int(11) DEFAULT NULL,
198  PRIMARY KEY (`identidad`)
199) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
200
201--
202-- Volcar la base de datos para la tabla `entidades`
203--
204
205INSERT INTO `entidades` (`identidad`, `nombreentidad`, `comentarios`, `iduniversidad`, `grupoid`) VALUES
206(1, 'Entidad (Default)', 'Esta Entidad se crea automáticamente en el proceso de instalación de OpenGNSys', 1, 0);
207
208-- --------------------------------------------------------
209
210--
211-- Estructura de tabla para la tabla `entornos`
212--
213
214CREATE TABLE IF NOT EXISTS `entornos` (
215  `identorno` int(11) NOT NULL AUTO_INCREMENT,
216  `ipserveradm` varchar(50) NOT NULL,
217  `portserveradm` int(20) NOT NULL,
218  `protoclonacion` varchar(50) NOT NULL,
219  PRIMARY KEY (`identorno`)
220) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
221
222--
223-- Volcar la base de datos para la tabla `entornos`
224--
225
226INSERT INTO `entornos` (`identorno`, `ipserveradm`, `portserveradm`, `protoclonacion`) VALUES
227(1, 'SERVERIP', 2008, 'UNICAST');
228
229-- --------------------------------------------------------
230
231--
232-- Estructura de tabla para la tabla `estatus`
233--
234
235CREATE TABLE IF NOT EXISTS `estatus` (
236  `idestatus` int(11) NOT NULL AUTO_INCREMENT,
237  `descripcion` varchar(250) NOT NULL DEFAULT '',
238  PRIMARY KEY (`idestatus`)
239) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
240
241--
242-- Volcar la base de datos para la tabla `estatus`
243--
244
245INSERT INTO `estatus` (`idestatus`, `descripcion`) VALUES
246(1, 'P.D.I. ( Profesor)'),
247(2, 'P.A.S.'),
248(3, 'Doctor'),
249(4, 'Alumno'),
250(5, 'Otros');
251
252-- --------------------------------------------------------
253
254--
255-- Estructura de tabla para la tabla `grupos`
256--
257
258CREATE TABLE IF NOT EXISTS `grupos` (
259  `idgrupo` int(11) NOT NULL AUTO_INCREMENT,
260  `nombregrupo` varchar(250) NOT NULL DEFAULT '',
261  `grupoid` int(11) NOT NULL DEFAULT '0',
262  `tipo` tinyint(4) NOT NULL DEFAULT '0',
263  `idcentro` int(11) NOT NULL DEFAULT '0',
264  `iduniversidad` int(11) DEFAULT NULL,
265  `comentarios` text,
266  PRIMARY KEY (`idgrupo`)
267) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
268
269-- --------------------------------------------------------
270
271--
272-- Estructura de tabla para la tabla `gruposordenadores`
273--
274
275CREATE TABLE IF NOT EXISTS `gruposordenadores` (
276  `idgrupo` int(11) NOT NULL AUTO_INCREMENT,
277  `nombregrupoordenador` varchar(250) NOT NULL DEFAULT '',
278  `idaula` int(11) NOT NULL DEFAULT '0',
279  `grupoid` int(11) DEFAULT NULL,
280  `comentarios` text,
281  PRIMARY KEY (`idgrupo`)
282) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
283
284-- --------------------------------------------------------
285
286--
287-- Estructura de tabla para la tabla `hardwares`
288--
289
290CREATE TABLE IF NOT EXISTS `hardwares` (
291  `idhardware` int(11) NOT NULL AUTO_INCREMENT,
292  `idtipohardware` int(11) NOT NULL DEFAULT '0',
293  `descripcion` varchar(250) NOT NULL DEFAULT '',
294  `idcentro` int(11) NOT NULL DEFAULT '0',
295  `grupoid` int(11) DEFAULT NULL,
296  PRIMARY KEY (`idhardware`)
297) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
298
299
300-- --------------------------------------------------------
301
302--
303-- Estructura de tabla para la tabla `iconos`
304--
305
306CREATE TABLE IF NOT EXISTS `iconos` (
307  `idicono` int(11) NOT NULL AUTO_INCREMENT,
308  `urlicono` varchar(200) DEFAULT NULL,
309  `idtipoicono` int(11) DEFAULT NULL,
310  `descripcion` varchar(250) DEFAULT NULL,
311  PRIMARY KEY (`idicono`)
312) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;
313
314--
315-- Volcar la base de datos para la tabla `iconos`
316--
317
318INSERT INTO `iconos` (`idicono`, `urlicono`, `idtipoicono`, `descripcion`) VALUES
319(1, 'vga.gif', 1, 'Tarjeta gráfica'),
320(2, 'nic.gif', 1, 'Tarjeta de Red'),
321(3, 'placabase.gif', 1, 'Placas base'),
322(4, 'tsonido.gif', 1, 'Tarjeta de sonido'),
323(5, 'camweb.gif', 1, 'Cámara web'),
324(6, 'logoXP.png', 2, 'Logo Windows XP'),
325(7, 'logolinux.png', 2, 'Logo General de Linux'),
326(8, 'particionar.png', 2, 'Particionar'),
327(9, 'ordenadoroff.png', 2, 'Ordenador apagado'),
328(10, 'ordenadoron.png', 2, 'Ordenador encendido'),
329(11, 'usb.gif', 1, 'Mi icono usb'),
330(12, 'ide.gif', 1, 'Controladores IDE'),
331(13, 'dvdcd.gif', 1, 'Lectoras y grabadoras de DVD'),
332(14, 'audio.gif', 1, 'Dispositivos de audio');
333
334-- --------------------------------------------------------
335
336--
337-- Estructura de tabla para la tabla `idiomas`
338--
339
340CREATE TABLE IF NOT EXISTS `idiomas` (
341  `ididioma` int(11) NOT NULL AUTO_INCREMENT,
342  `descripcion` varchar(100) DEFAULT NULL,
343  `nemonico` char(3) DEFAULT NULL,
344  PRIMARY KEY (`ididioma`)
345) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
346
347--
348-- Volcar la base de datos para la tabla `idiomas`
349--
350
351INSERT INTO `idiomas` (`ididioma`, `descripcion`, `nemonico`) VALUES
352(1, 'Español', 'esp'),
353(2, 'Ingles', 'eng'),
354(3, 'Catalan', 'cat');
355
356-- --------------------------------------------------------
357
358--
359-- Estructura de tabla para la tabla `imagenes`
360--
361
362CREATE TABLE IF NOT EXISTS `imagenes` (
363  `idimagen` int(11) NOT NULL AUTO_INCREMENT,
364  `nombreca` varchar(50) NOT NULL,
365  `descripcion` varchar(250) NOT NULL DEFAULT '',
366  `idperfilsoft` int(11) DEFAULT NULL,
367  `idcentro` int(11) DEFAULT NULL,
368  `comentarios` text,
369  `grupoid` int(11) DEFAULT NULL,
370  `idrepositorio` int(11) NOT NULL,
371  `numpar` smallint(6) NOT NULL,
372  `codpar` smallint(6) NOT NULL,
373  PRIMARY KEY (`idimagen`)
374) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
375
376-- --------------------------------------------------------
377
378--
379-- Estructura de tabla para la tabla `menus`
380--
381
382CREATE TABLE IF NOT EXISTS `menus` (
383  `idmenu` int(11) NOT NULL AUTO_INCREMENT,
384  `descripcion` varchar(250) NOT NULL DEFAULT '',
385  `idcentro` int(11) NOT NULL DEFAULT '0',
386  `idurlimg` int(11) NOT NULL DEFAULT '0',
387  `titulo` varchar(250) DEFAULT NULL,
388  `coorx` int(11) DEFAULT NULL,
389  `coory` int(11) DEFAULT NULL,
390  `modalidad` tinyint(4) DEFAULT NULL,
391  `scoorx` int(11) DEFAULT NULL,
392  `scoory` int(11) DEFAULT NULL,
393  `smodalidad` tinyint(4) DEFAULT NULL,
394  `comentarios` text,
395  `grupoid` int(11) NOT NULL DEFAULT '0',
396  `htmlmenupub` varchar(250) DEFAULT NULL,
397  `htmlmenupri` varchar(250) DEFAULT NULL,
398  `resolucion` tinyint(4) DEFAULT NULL,
399  PRIMARY KEY (`idmenu`)
400) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
401
402-- --------------------------------------------------------
403
404--
405-- Estructura de tabla para la tabla `nombresos`
406--
407
408CREATE TABLE IF NOT EXISTS `nombresos` (
409  `idnombreso` smallint(11) NOT NULL AUTO_INCREMENT,
410  `nombreso` varchar(250) NOT NULL,
411  `idtiposo` int(11) DEFAULT '0',
412  PRIMARY KEY (`idnombreso`)
413) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
414
415-- --------------------------------------------------------
416
417--
418-- Estructura de tabla para la tabla `ordenadores`
419--
420
421CREATE TABLE IF NOT EXISTS `ordenadores` (
422  `idordenador` int(11) NOT NULL AUTO_INCREMENT,
423  `nombreordenador` varchar(100) DEFAULT NULL,
424  `ip` varchar(16) NOT NULL,
425  `mac` varchar(12) DEFAULT NULL,
426  `idaula` int(11) DEFAULT NULL,
427  `idperfilhard` int(11) DEFAULT NULL,
428  `idrepositorio` int(11) DEFAULT NULL,
429  `grupoid` int(11) DEFAULT NULL,
430  `idmenu` int(11) DEFAULT NULL,
431  `cache` int(11) DEFAULT NULL,
432  `router` varchar(16) NOT NULL,
433  `mascara` varchar(16) NOT NULL,
434  `idproautoexec` int(11) NOT NULL,
435  PRIMARY KEY (`idordenador`)
436) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
437
438-- --------------------------------------------------------
439
440--
441-- Estructura de tabla para la tabla `ordenadores_particiones`
442--
443
444CREATE TABLE IF NOT EXISTS `ordenadores_particiones` (
445  `idordenador` int(11) NOT NULL,
446  `numpar` tinyint(4) NOT NULL,
447  `codpar` smallint(11) NOT NULL,
448  `tamano` int(11) NOT NULL,
449  `idsistemafichero` smallint(11) NOT NULL,
450  `idnombreso` smallint(11) NOT NULL,
451  `idimagen` int(11) NOT NULL,
452  `idperfilsoft` int(11) NOT NULL,
453  UNIQUE KEY `idordenadornumpar` (`idordenador`,`numpar`)
454) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
455
456-- --------------------------------------------------------
457
458--
459-- Estructura de tabla para la tabla `parametros`
460--
461
462CREATE TABLE IF NOT EXISTS `parametros` (
463  `idparametro` int(11) NOT NULL AUTO_INCREMENT,
464  `nemonico` char(3) NOT NULL,
465  `descripcion` text NOT NULL,
466  `nomidentificador` varchar(64) NOT NULL,
467  `nomtabla` varchar(64) NOT NULL,
468  `nomliteral` varchar(64) NOT NULL,
469  `tipopa` tinyint(1) DEFAULT '0',
470  `visual` tinyint(4) NOT NULL DEFAULT '0',
471  PRIMARY KEY (`idparametro`)
472) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=31 ;
473
474--
475-- Volcar la base de datos para la tabla `parametros`
476--
477
478INSERT INTO `parametros` (`idparametro`, `nemonico`, `descripcion`, `nomidentificador`, `nomtabla`, `nomliteral`, `tipopa`, `visual`) VALUES
479(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),
480(2, 'iph', 'Dirección ip de los ordenadores a los que se envía el comando', '', '', '', 0, 0),
481(3, 'ido', 'Identificadores de los ordenadores a los que se envía el comando', '', '', '', 0, 0),
482(4, 'mac', 'Direcciones macs de los clientes a los que se le envía el comando', '', '', '', 0, 0),
483(5, 'idc', 'Unidad organizativa', 'idcentro', 'centros', '', 1, 0),
484(6, 'ida', 'Aula', 'idaula', 'aulas', 'nombreaula', 1, 0),
485(18, 'cfg', 'Configuración', '', '', '', 2, 1),
486(7, 'dsk', 'Disco', '', '', '', 0, 1),
487(8, 'par', 'Partición', '', '', '', 0, 1),
488(9, 'ifh', 'Perfil Hardware', 'idperfilhard', 'perfileshard', 'descripcion', 1, 1),
489(10, 'ifs', 'Perfil Software', 'idperfilsoft', 'perfilessoft', 'descripcion', 1, 1),
490(11, 'idi', 'Imagen', 'idimagen', 'imagenes', 'descripcion', 1, 1),
491(12, 'nci', 'Nombre canonico', '', '', '', 0, 1),
492(13, 'scp', 'Código a ejecutar en formato script', '', '', '', 0, 0),
493(14, 'npc', 'Nombre del cliente', '', '', '', NULL, 0),
494(15, 'che', 'Tamaño de la cache del cliente', '', '', '', NULL, 0),
495(16, 'exe', 'Identificador del procedimiento que será el que ejecute el cliente al arrancar (Autoexec)', '', '', '', 0, 0),
496(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),
497(19, 'ipr', 'Repositorio', 'ip', 'repositorios', 'nombrerepositorio', 1, 1),
498(20, 'cpt', 'Tipo partición', 'codpar', 'tipospar', 'tipopar', 1, 1),
499(21, 'sfi', 'Sistema de fichero', 'idsistemafichero', 'sistemasficheros', 'nemonico', 1, 0),
500(22, 'tam', 'Tamaño', '', '', '', 0, 0),
501(23, 'ope', 'Operación', ';', '', 'Sin operación;Formatear;Ocultar;Mostrar', 3, 1),
502(24, 'nfl', 'Nombre del fichero que se envía o se recibe', '', '', '', 0, 0),
503(25, 'hrd', 'Nombre del archivo de inventario hardware enviado por la red', '', '', '', 0, 0),
504(26, 'sft', 'Nombre del archivo de inventario software enviado por la red', '', '', '', 0, 0),
505(27, 'tpc', 'Tipo de cliente', '', '', '', 0, 0),
506(28, 'scp', 'Código script', '', '', '', 4, 1),
507(30, 'ptc', 'Protocolo de clonación', ';', '', ';Unicast;Multicast;Torrent', 3, 1);
508
509-- --------------------------------------------------------
510
511--
512-- Estructura de tabla para la tabla `perfileshard`
513--
514
515CREATE TABLE IF NOT EXISTS `perfileshard` (
516  `idperfilhard` int(11) NOT NULL AUTO_INCREMENT,
517  `descripcion` varchar(250) NOT NULL DEFAULT '',
518  `comentarios` text,
519  `grupoid` int(11) DEFAULT NULL,
520  `idcentro` int(11) NOT NULL,
521  PRIMARY KEY (`idperfilhard`)
522) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
523
524
525-- --------------------------------------------------------
526
527--
528-- Estructura de tabla para la tabla `perfileshard_hardwares`
529--
530
531CREATE TABLE IF NOT EXISTS `perfileshard_hardwares` (
532  `idperfilhard` int(11) NOT NULL DEFAULT '0',
533  `idhardware` int(11) NOT NULL DEFAULT '0',
534  KEY `idperfilhard` (`idperfilhard`)
535) ENGINE=MyISAM DEFAULT CHARSET=utf8;
536
537-- --------------------------------------------------------
538
539--
540-- Estructura de tabla para la tabla `perfilessoft`
541--
542
543CREATE TABLE IF NOT EXISTS `perfilessoft` (
544  `idperfilsoft` int(11) NOT NULL AUTO_INCREMENT,
545  `descripcion` varchar(250) NOT NULL DEFAULT '',
546  `comentarios` text,
547  `grupoid` int(11) DEFAULT NULL,
548  `idcentro` int(11) NOT NULL,
549  PRIMARY KEY (`idperfilsoft`)
550) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
551
552-- --------------------------------------------------------
553
554--
555-- Estructura de tabla para la tabla `perfilessoft_softwares`
556--
557
558CREATE TABLE IF NOT EXISTS `perfilessoft_softwares` (
559  `idperfilsoft` int(11) NOT NULL DEFAULT '0',
560  `idsoftware` int(11) NOT NULL DEFAULT '0'
561) ENGINE=MyISAM DEFAULT CHARSET=utf8;
562
563-- --------------------------------------------------------
564
565--
566-- Estructura de tabla para la tabla `plataformas`
567--
568
569CREATE TABLE IF NOT EXISTS `plataformas` (
570  `idplataforma` int(11) NOT NULL AUTO_INCREMENT,
571  `plataforma` varchar(250) NOT NULL,
572  PRIMARY KEY (`idplataforma`)
573) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=18 ;
574
575--
576-- Volcar la base de datos para la tabla `plataformas`
577--
578
579INSERT INTO `plataformas` (`idplataforma`, `plataforma`) VALUES
580(1, 'MsDos'),
581(2, 'Windows'),
582(3, 'Linux'),
583(4, 'Mac'),
584(5, 'OS');
585
586-- --------------------------------------------------------
587
588--
589-- Estructura de tabla para la tabla `procedimientos`
590--
591
592CREATE TABLE IF NOT EXISTS `procedimientos` (
593  `idprocedimiento` int(11) NOT NULL AUTO_INCREMENT,
594  `descripcion` varchar(250) NOT NULL DEFAULT '',
595  `urlimg` varchar(250) DEFAULT NULL,
596  `idcentro` int(11) NOT NULL DEFAULT '0',
597  `comentarios` text,
598  `grupoid` int(11) DEFAULT '0',
599  PRIMARY KEY (`idprocedimiento`)
600) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
601
602-- --------------------------------------------------------
603
604--
605-- Estructura de tabla para la tabla `procedimientos_acciones`
606--
607
608CREATE TABLE IF NOT EXISTS `procedimientos_acciones` (
609  `idprocedimientoaccion` int(11) NOT NULL AUTO_INCREMENT,
610  `idprocedimiento` int(11) NOT NULL DEFAULT '0',
611  `orden` smallint(4) DEFAULT NULL,
612  `idcomando` int(11) NOT NULL DEFAULT '0',
613  `parametros` text,
614  `procedimientoid` int(11) NOT NULL,
615  PRIMARY KEY (`idprocedimientoaccion`)
616) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
617
618-- --------------------------------------------------------
619
620--
621-- Estructura de tabla para la tabla `programaciones`
622--
623
624CREATE TABLE IF NOT EXISTS `programaciones` (
625  `idprogramacion` int(11) NOT NULL AUTO_INCREMENT,
626  `tipoaccion` int(11) DEFAULT NULL,
627  `identificador` int(11) DEFAULT NULL,
628  `nombrebloque` varchar(255) DEFAULT NULL,
629  `annos` tinyint(4) DEFAULT NULL,
630  `meses` smallint(4) DEFAULT NULL,
631  `diario` int(11) DEFAULT NULL,
632  `dias` tinyint(4) DEFAULT NULL,
633  `semanas` tinyint(4) DEFAULT NULL,
634  `horas` smallint(4) DEFAULT NULL,
635  `ampm` tinyint(1) DEFAULT NULL,
636  `minutos` tinyint(4) DEFAULT NULL,
637  `segundos` tinyint(4) DEFAULT NULL,
638  `horasini` smallint(4) DEFAULT NULL,
639  `ampmini` tinyint(1) DEFAULT NULL,
640  `minutosini` tinyint(4) DEFAULT NULL,
641  `horasfin` smallint(4) DEFAULT NULL,
642  `ampmfin` tinyint(1) DEFAULT NULL,
643  `minutosfin` tinyint(4) DEFAULT NULL,
644  `suspendida` tinyint(1) DEFAULT NULL,
645  `sesion` int(11) NOT NULL,
646  PRIMARY KEY (`idprogramacion`)
647) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
648
649-- --------------------------------------------------------
650
651--
652-- Estructura de tabla para la tabla `repositorios`
653--
654
655CREATE TABLE IF NOT EXISTS `repositorios` (
656  `idrepositorio` int(11) NOT NULL AUTO_INCREMENT,
657  `nombrerepositorio` varchar(250) NOT NULL,
658  `ip` varchar(15) NOT NULL DEFAULT '',
659  `passguor` varchar(50) NOT NULL DEFAULT '',
660  `pathrepoconf` varchar(250) NOT NULL,
661  `pathrepod` varchar(250) NOT NULL,
662  `pathpxe` varchar(250) NOT NULL,
663  `idcentro` int(11) DEFAULT NULL,
664  `grupoid` int(11) DEFAULT NULL,
665  `comentarios` text,
666  `puertorepo` int(11) NOT NULL,
667  PRIMARY KEY (`idrepositorio`)
668) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
669
670INSERT INTO `repositorios` (`idrepositorio`,`nombrerepositorio`,`ip`,`passguor`,`pathrepoconf`,`pathrepod`,`pathpxe`,`idcentro`,`grupoid`,`comentarios`,`puertorepo`) VALUES
671 (1,'Repositrorio (Default)','SERVERIP','','','/opt/opengnsys/admin','/opt/opengnsys/tftpboot/pxelinux.cfg',1,0,'',2002);
672
673
674-- --------------------------------------------------------
675
676--
677-- Estructura de tabla para la tabla `sistemasficheros`
678--
679
680CREATE TABLE IF NOT EXISTS `sistemasficheros` (
681  `idsistemafichero` smallint(11) NOT NULL AUTO_INCREMENT,
682  `descripcion` varchar(50) NOT NULL DEFAULT '',
683  `nemonico` varchar(16) DEFAULT NULL,
684  `codpar` smallint(6) NOT NULL,
685  PRIMARY KEY (`idsistemafichero`)
686) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
687
688-- --------------------------------------------------------
689
690--
691-- Estructura de tabla para la tabla `softwares`
692--
693
694CREATE TABLE IF NOT EXISTS `softwares` (
695  `idsoftware` int(11) NOT NULL AUTO_INCREMENT,
696  `idtiposoftware` int(11) NOT NULL DEFAULT '0',
697  `descripcion` varchar(250) NOT NULL DEFAULT '',
698  `idcentro` int(11) NOT NULL DEFAULT '0',
699  `urlimg` varchar(250) DEFAULT NULL,
700  `idtiposo` int(11) DEFAULT NULL,
701  `grupoid` int(11) DEFAULT NULL,
702  PRIMARY KEY (`idsoftware`)
703) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
704
705-- --------------------------------------------------------
706
707--
708-- Estructura de tabla para la tabla `tareas`
709--
710
711CREATE TABLE IF NOT EXISTS `tareas` (
712  `idtarea` int(11) NOT NULL AUTO_INCREMENT,
713  `descripcion` varchar(250) NOT NULL DEFAULT '',
714  `urlimg` varchar(250) DEFAULT NULL,
715  `idcentro` int(11) NOT NULL DEFAULT '0',
716  `ambito` smallint(6) NOT NULL DEFAULT '0',
717  `idambito` int(11) NOT NULL DEFAULT '0',
718  `restrambito` text NOT NULL,
719  `comentarios` text,
720  `grupoid` int(11) DEFAULT '0',
721  PRIMARY KEY (`idtarea`)
722) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
723
724-- --------------------------------------------------------
725
726--
727-- Estructura de tabla para la tabla `tareas_acciones`
728--
729
730CREATE TABLE IF NOT EXISTS `tareas_acciones` (
731  `idtareaaccion` int(11) NOT NULL AUTO_INCREMENT,
732  `idtarea` int(11) NOT NULL DEFAULT '0',
733  `orden` smallint(6) NOT NULL DEFAULT '0',
734  `idprocedimiento` int(11) NOT NULL DEFAULT '0',
735  `tareaid` int(11) DEFAULT '0',
736  PRIMARY KEY (`idtareaaccion`)
737) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
738
739-- --------------------------------------------------------
740
741--
742-- Estructura de tabla para la tabla `tipohardwares`
743--
744
745CREATE TABLE IF NOT EXISTS `tipohardwares` (
746  `idtipohardware` int(11) NOT NULL AUTO_INCREMENT,
747  `descripcion` varchar(250) NOT NULL DEFAULT '',
748  `urlimg` varchar(250) NOT NULL DEFAULT '',
749  `nemonico` char(3) NOT NULL,
750  `pci` tinyint(1) NOT NULL,
751  PRIMARY KEY (`idtipohardware`)
752) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=17 ;
753
754--
755-- Volcar la base de datos para la tabla `tipohardwares`
756--
757
758INSERT INTO `tipohardwares` (`idtipohardware`, `descripcion`, `urlimg`, `nemonico`, `pci`) VALUES
759(1, 'Placas', '../images/iconos/placabase.gif', 'boa', 0),
760(2, 'Dispositivos Multimedia', '../images/iconos/tsonido.gif', 'mul', 0),
761(3, 'Tarjetas de Red', '../images/iconos/nic.gif', 'net', 0),
762(4, 'Microprocesadores', '../images/iconos/micro.gif', 'cpu', 0),
763(5, 'Memorias', '../images/iconos/confihard.gif', 'mem', 0),
764(7, 'Tarjetas gráficas', '../images/iconos/vga.gif', 'vga', 0),
765(8, 'Discos', '../images/iconos/discoduro.gif', 'dis', 0),
766(9, 'Dispositivos de sonido', '../images/iconos/audio.gif', 'aud', 0),
767(10, 'Marca y modelo del equipo', '../images/iconos/confihard.gif', 'mod', 0),
768(11, 'Modelo y version de la bios', '../images/iconos/confihard.gif', 'bio', 0),
769(12, 'Modelo de grabadora o  grabadora de CD/DVD', '../images/iconos/dvdcd.gif', 'cdr', 0),
770(13, 'Controladores IDE', '../images/iconos/ide.gif', 'ide', 0),
771(14, 'Controladores FireWire', '../images/iconos/confihard.gif', 'fir', 0),
772(15, 'Controladores USB', '../images/iconos/usb.gif', 'usb', 0),
773(16, 'Bus del Sistema', '../images/iconos/confihard.gif', 'bus', 0);
774
775-- --------------------------------------------------------
776
777--
778-- Estructura de tabla para la tabla `tiposoftwares`
779--
780
781CREATE TABLE IF NOT EXISTS `tiposoftwares` (
782  `idtiposoftware` int(11) NOT NULL AUTO_INCREMENT,
783  `descripcion` varchar(250) NOT NULL DEFAULT '',
784  `urlimg` varchar(250) NOT NULL DEFAULT '',
785  PRIMARY KEY (`idtiposoftware`)
786) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
787
788--
789-- Volcar la base de datos para la tabla `tiposoftwares`
790--
791
792INSERT INTO `tiposoftwares` (`idtiposoftware`, `descripcion`, `urlimg`) VALUES
793(1, 'Sistemas Operativos', '../images/iconos/so.gif'),
794(2, 'Aplicaciones', '../images/iconos/aplicaciones.gif'),
795(3, 'Archivos', '../images/iconos/archivos.gif');
796
797-- --------------------------------------------------------
798
799--
800-- Estructura de tabla para la tabla `tiposos`
801--
802
803CREATE TABLE IF NOT EXISTS `tiposos` (
804  `idtiposo` int(11) NOT NULL AUTO_INCREMENT,
805  `tiposo` varchar(250) NOT NULL,
806  `idplataforma` int(11) NOT NULL,
807  PRIMARY KEY (`idtiposo`)
808) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=21 ;
809
810--
811-- Volcar la base de datos para la tabla `tiposos`
812--
813
814INSERT INTO `tiposos` (`idtiposo`, `tiposo`, `idplataforma`) VALUES
815(1, 'MsDos 6.0', 1),
816(2, 'Windows 98', 2),
817(3, 'Linux Ubuntu', 3),
818(4, 'Mac', 0),
819(5, 'OS', 0),
820(17, 'Windows XP', 2),
821(18, 'Windows Vista', 2),
822(19, 'Linux Red Hat', 3),
823(20, 'Windows 7', 2);
824
825-- --------------------------------------------------------
826
827--
828-- Estructura de tabla para la tabla `tipospar`
829--
830
831CREATE TABLE IF NOT EXISTS `tipospar` (
832  `codpar` smallint(4) NOT NULL,
833  `tipopar` varchar(250) NOT NULL,
834  `clonable` tinyint(4) NOT NULL,
835  UNIQUE KEY `codpar` (`codpar`)
836) ENGINE=MyISAM DEFAULT CHARSET=utf8;
837
838--
839-- Volcar la base de datos para la tabla `tipospar`
840--
841
842INSERT INTO `tipospar` (`codpar`, `tipopar`, `clonable`) VALUES
843(0, 'EMPTY', 0),
844(1, 'FAT12', 1),
845(5, 'EXTENDED', 0),
846(7, 'NTFS', 1),
847(11, 'FAT32', 1),
848(17, 'HFAT12', 1),
849(22, 'HFAT16', 1),
850(23, 'HNTFS', 1),
851(27, 'HFAT32', 1),
852(130, 'LINUX-SWAP', 0),
853(131, 'LINUX', 1),
854(142, 'LINUX-LVM', 1),
855(191, 'SOLARIS', 1),
856(202, 'CACHE', 0),
857(253, 'LINUX-RAID', 1);
858
859-- --------------------------------------------------------
860
861--
862-- Estructura de tabla para la tabla `universidades`
863--
864
865CREATE TABLE IF NOT EXISTS `universidades` (
866  `iduniversidad` int(11) NOT NULL AUTO_INCREMENT,
867  `nombreuniversidad` varchar(200) NOT NULL DEFAULT '',
868  `comentarios` text,
869  PRIMARY KEY (`iduniversidad`)
870) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
871
872--
873-- Volcar la base de datos para la tabla `universidades`
874--
875
876INSERT INTO `universidades` (`iduniversidad`, `nombreuniversidad`, `comentarios`) VALUES
877(1, 'Universidad default...', 'Esta Universidad se crea automáticamentese en el proceso de instalación de OpenGNSys');
878
879-- --------------------------------------------------------
880
881--
882-- Estructura de tabla para la tabla `urlimagesitems`
883--
884
885CREATE TABLE IF NOT EXISTS `urlimagesitems` (
886  `idurlimagesitems` int(11) NOT NULL AUTO_INCREMENT,
887  `descripcion` varchar(250) NOT NULL DEFAULT '',
888  PRIMARY KEY (`idurlimagesitems`)
889) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
890
891--
892-- Volcar la base de datos para la tabla `urlimagesitems`
893--
894
895
896-- --------------------------------------------------------
897
898--
899-- Estructura de tabla para la tabla `usuarios`
900--
901
902CREATE TABLE IF NOT EXISTS `usuarios` (
903  `idusuario` int(11) NOT NULL AUTO_INCREMENT,
904  `usuario` varchar(50) NOT NULL DEFAULT '',
905  `pasguor` varchar(50) NOT NULL DEFAULT '',
906  `nombre` varchar(200) DEFAULT NULL,
907  `email` varchar(200) DEFAULT NULL,
908  `ididioma` int(11) DEFAULT NULL,
909  `idtipousuario` tinyint(4) DEFAULT NULL,
910  PRIMARY KEY (`idusuario`)
911) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
912
913--
914-- Volcar la base de datos para la tabla `usuarios`
915--
916
917INSERT INTO `usuarios` (`idusuario`, `usuario`, `pasguor`, `nombre`, `email`, `ididioma`, `idtipousuario`) VALUES
918(1, 'DBUSER', 'DBPASSWORD', 'Usuario de la base de datos MySql', '', 1, 1);
919
Note: See TracBrowser for help on using the repository browser.