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