You are on page 1of 18

---------

phpMyAdmin SQL Dump


version 3.3.9
http://www.phpmyadmin.net
Servidor: localhost
Tiempo de generacin: 22-04-2011 a las 21:21:46
Versin del servidor: 5.5.8
Versin de PHP: 5.3.5

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--- Base de datos: `db-siieez`
--- ---------------------------------------------------------- Estructura de tabla para la tabla `carreras`
-CREATE TABLE IF NOT EXISTS `carreras` (
`id_carrera` char(15) NOT NULL,
`descripcion` varchar(50) NOT NULL,
PRIMARY KEY (`id_carrera`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `carreras`
-INSERT INTO `carreras` (`id_carrera`, `descripcion`) VALUES
('1', 'TECNOLOGIAS DE LA INFORMACION '),
('2', 'DESARROLLO DE NEGOCIOS'),
('3', 'MANTENIMIENTO INDUSTRIAL'),
('4', 'MECATRONICA'),
('5', 'PROCESOS Y OPERACIONES INDUSTR');
-- ---------------------------------------------------------- Estructura de tabla para la tabla `carrera_plantel`
-CREATE TABLE IF NOT EXISTS `carrera_plantel` (
`id_plantel` char(20) NOT NULL,
`id_carrera` char(15) NOT NULL,
KEY `id_carrera` (`id_carrera`),
KEY `id_plantel` (`id_plantel`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `carrera_plantel`
-INSERT INTO `carrera_plantel` (`id_plantel`, `id_carrera`) VALUES
('1', '1'),
('1', '2'),
('1', '3'),
('1', '4'),

('1', '5');
-- ---------------------------------------------------------- Estructura de tabla para la tabla `gestion_grados`
-CREATE TABLE IF NOT EXISTS `gestion_grados` (
`id_plantel` char(20) COLLATE utf8_spanish_ci NOT NULL,
`carrera` int(10) NOT NULL,
`grado` varchar(2) COLLATE utf8_spanish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
--- Volcar la base de datos para la tabla `gestion_grados`
--- ---------------------------------------------------------- Estructura de tabla para la tabla `indicador_administracion`
-CREATE TABLE IF NOT EXISTS `indicador_administracion` (
`id_indAdm` bigint(30) NOT NULL AUTO_INCREMENT,
`egresados_nms` int(3) NOT NULL,
`capacidad_aulasoculadas` int(3) NOT NULL,
`capacidad_aulasinstaladas` int(3) NOT NULL,
`numero_volumenesalumno` int(3) NOT NULL,
`total_Alumnospc` int(3) NOT NULL,
`total_personaladmin` int(3) NOT NULL,
`total_admincapacitacion` int(3) NOT NULL,
`presupuesto_operacion` double NOT NULL,
`costo_por_alumno` double NOT NULL,
PRIMARY KEY (`id_indAdm`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--- Volcar la base de datos para la tabla `indicador_administracion`
-INSERT INTO `indicador_administracion` (`id_indAdm`, `egresados_nms`, `capacidad
_aulasoculadas`, `capacidad_aulasinstaladas`, `numero_volumenesalumno`, `total_A
lumnospc`, `total_personaladmin`, `total_admincapacitacion`, `presupuesto_operac
ion`, `costo_por_alumno`) VALUES
(1, 800, 50, 60, 80, 60, 100, 50, 300, 600),
(2, 700, 50, 80, 14, 200, 100, 74, 2000, 5000),
(3, 600, 70, 69, 50, 40, 65, 23, 8000, 5000);
-- ---------------------------------------------------------- Estructura de tabla para la tabla `indicador_alumnosms`
-CREATE TABLE IF NOT EXISTS `indicador_alumnosms` (
`id_indAlumno` bigint(30) NOT NULL AUTO_INCREMENT,
`crec_matricula` int(3) NOT NULL,

`alum_sol_ficha_1_anio` int(3) NOT NULL,


`alum_ing_1_sem` int(3) NOT NULL,
`alum_ing_2_sem` int(3) NOT NULL,
`alum_sol_ficha_2_anio` int(3) NOT NULL,
`alum_ing_3_sem` int(3) NOT NULL,
`alum_ing_4_sem` int(3) NOT NULL,
`alum_sol_ficha_3_anio` int(3) NOT NULL,
`alum_ing_5_sem` int(3) NOT NULL,
`alum_ing_6_sem` int(3) NOT NULL,
`dem_ing_plantel` int(3) NOT NULL,
`densidad_poblacion` int(3) NOT NULL,
`matricula_total_inicio` int(3) NOT NULL,
`matricula_total_final` int(3) NOT NULL,
`egresados_entorno` int(3) NOT NULL,
`alum_carecen_para_desarrollo` int(3) NOT NULL,
`alum_neces_esp` int(3) NOT NULL,
`deser_1_anio` int(3) NOT NULL,
`deser_2_anio` int(3) NOT NULL,
`deser_3_anio` int(3) NOT NULL,
`aprov_1_sem` int(3) NOT NULL,
`aprov_2_sem` int(3) NOT NULL,
`aprov_3_sem` int(3) NOT NULL,
`aprov_4_sem` int(3) NOT NULL,
`aprov_5_sem` int(3) NOT NULL,
`aprov_6_sem` int(3) NOT NULL,
`alum_act_art_cult` int(3) NOT NULL,
`alum_act_dep` int(3) NOT NULL,
`alum_act_civ` int(3) NOT NULL,
`alum_pract_prof` int(3) NOT NULL,
`alum_deben_pract_prof` int(3) NOT NULL,
`alum_serv_soc` int(3) NOT NULL,
`alum_deben_serv_soc` int(3) NOT NULL,
`alum_act_innovacion` int(3) NOT NULL,
`total_presupuesto` double NOT NULL,
`efic_term_rezago_1_anio` int(3) NOT NULL,
`efic_term_rezago_2_anio` int(3) NOT NULL,
`egres_titulados` int(3) NOT NULL,
`egres_sol_ing_ed_sup` int(3) NOT NULL,
`egres_sector_productivo` int(3) NOT NULL,
`num_bebedoros` int(3) NOT NULL,
`num_sanitario_alum` int(3) NOT NULL,
`num_sanitario_doc` int(3) NOT NULL,
`num_lineas_tel_doc` int(3) NOT NULL,
`num_grupos_1_anio` int(3) NOT NULL,
`num_grupos_2_anio` int(3) NOT NULL,
`num_grupos_3_anio` int(3) NOT NULL,
`total_aulas` int(3) NOT NULL,
`aulas_habilitadas` int(3) NOT NULL,
`aulas_buen_estado` int(3) NOT NULL,
`num_pupitres` int(3) NOT NULL,
`num_comp_con_int_alum` int(3) NOT NULL,
`num_mobiliario_doc` int(3) NOT NULL,
`num_comp_con_int_doc` int(3) NOT NULL,
`mat_biblio_biblioteca` int(3) NOT NULL,
`mat_biblio_prestamo` int(3) NOT NULL,
`doc_titulados` int(3) NOT NULL,
`doc_posgrado` int(3) NOT NULL,
`doc_ed_tecnica_comp` int(3) NOT NULL,
`doc_actualizacion` int(3) NOT NULL,
`doc_form_acorde_asignatura` int(3) NOT NULL,

`doc_frente_grupo` int(3) NOT NULL,


`doc_func_admon_o_dir` int(3) NOT NULL,
`personal_directivo` int(3) NOT NULL,
`hrs_doc_frente_grupo` int(3) NOT NULL,
`doc_tiempo_comp` int(3) NOT NULL,
`dir_capacitacion` int(3) NOT NULL,
`dir_actualizacion` int(3) NOT NULL,
`admon_actualizacion` int(3) NOT NULL,
`tot_doc` int(3) NOT NULL,
`tot_admon` int(3) NOT NULL,
`doc_plan_curricular` int(3) NOT NULL,
`doc_diseno_sec_didacticas` int(3) NOT NULL,
`doc_tut_indiv` int(3) NOT NULL,
`alum_tut_indiv` int(3) NOT NULL,
`carreras_acreditadas` int(3) NOT NULL,
`proceso_certificados` int(3) NOT NULL,
`cursos_oficiales` int(3) NOT NULL,
`cursos_oficiales_realizados` int(3) NOT NULL,
`alum_sol_beca` int(3) NOT NULL,
`alum_reciben_beca` int(3) NOT NULL,
`doc_prog_estimulos` int(3) NOT NULL,
`alum_prueba_enlace` int(3) NOT NULL,
`alum_sactisfactorio_enlace` int(3) NOT NULL,
`reun_padres_fam` int(3) NOT NULL,
`padres_conv_1_anio` int(3) NOT NULL,
`padres_asist_1_anio` int(3) NOT NULL,
`padres_conv_2_anio` int(3) NOT NULL,
`padres_asist_2_anio` int(3) NOT NULL,
`padres_conv_3_anio` int(3) NOT NULL,
`padres_asist_3_anio` int(3) NOT NULL,
`proy_imp_soc_realizados` int(3) NOT NULL,
`acuerdos_sect_prod` int(3) NOT NULL,
PRIMARY KEY (`id_indAlumno`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--- Volcar la base de datos para la tabla `indicador_alumnosms`
--- ---------------------------------------------------------- Estructura de tabla para la tabla `indicador_alumnoss`
-CREATE TABLE IF NOT EXISTS `indicador_alumnoss` (
`id_indAlumno` bigint(30) NOT NULL AUTO_INCREMENT,
`alumnos_inscritos_primersemestre` int(3) NOT NULL,
`alumnos_que_solisitaronficha` int(3) NOT NULL,
`alumnos_dados_de_bajadefinitiva` int(3) NOT NULL,
`alumnos_con_bajatemporal` int(3) NOT NULL,
`alumnos_egresados_carrera` int(3) NOT NULL,
`alum_matriculados_carrera` int(3) NOT NULL,
`total_alumnos_titulados` int(3) NOT NULL,
`alumnos_en_residencias_profesionales` int(3) NOT NULL,
`alumnos_que_deben_realizar_residencias_profesionales` int(3) NOT NULL,
`total_de_alumnos_becados` int(3) NOT NULL,
PRIMARY KEY (`id_indAlumno`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=18 ;

--- Volcar la base de datos para la tabla `indicador_alumnoss`


-INSERT INTO `indicador_alumnoss` (`id_indAlumno`, `alumnos_inscritos_primersemes
tre`, `alumnos_que_solisitaronficha`, `alumnos_dados_de_bajadefinitiva`, `alumno
s_con_bajatemporal`, `alumnos_egresados_carrera`, `alum_matriculados_carrera`, `
total_alumnos_titulados`, `alumnos_en_residencias_profesionales`, `alumnos_que_d
eben_realizar_residencias_profesionales`, `total_de_alumnos_becados`) VALUES
(3, 100, 200, 7, 5, 90, 100, 80, 15, 5, 75),
(4, 120, 140, 6, 2, 100, 120, 90, 5, 5, 100),
(5, 130, 180, 3, 5, 105, 105, 90, 10, 5, 90),
(6, 80, 110, 6, 2, 70, 80, 70, 5, 5, 65),
(7, 90, 120, 5, 3, 70, 90, 70, 10, 10, 80),
(8, 115, 120, 4, 4, 100, 115, 80, 15, 5, 70),
(9, 135, 150, 10, 8, 110, 135, 95, 10, 10, 100),
(10, 90, 120, 5, 15, 75, 90, 60, 10, 5, 70),
(11, 130, 150, 10, 9, 100, 130, 80, 15, 5, 70),
(12, 95, 102, 4, 5, 70, 95, 60, 8, 2, 60),
(13, 150, 180, 6, 15, 120, 150, 100, 13, 7, 100),
(14, 160, 180, 10, 12, 140, 160, 100, 40, 20, 100),
(15, 80, 120, 10, 9, 70, 80, 60, 5, 5, 70),
(16, 185, 200, 5, 14, 120, 185, 100, 12, 8, 100),
(17, 70, 90, 4, 6, 50, 70, 40, 8, 2, 50);
-- ---------------------------------------------------------- Estructura de tabla para la tabla `indicador_docentes`
-CREATE TABLE IF NOT EXISTS `indicador_docentes` (
`id_indDocente` bigint(30) NOT NULL AUTO_INCREMENT,
`total_docentes` int(3) NOT NULL,
`docentes_curso_formacion` int(3) NOT NULL,
`docentes_curso_actualizacion` int(3) NOT NULL,
`docentes_postgrado` int(3) NOT NULL,
`docentes_programa_estimulo` int(3) NOT NULL,
`total_docentes_evaluados` int(3) NOT NULL,
PRIMARY KEY (`id_indDocente`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--- Volcar la base de datos para la tabla `indicador_docentes`
-INSERT INTO `indicador_docentes` (`id_indDocente`, `total_docentes`, `docentes_c
urso_formacion`, `docentes_curso_actualizacion`, `docentes_postgrado`, `docentes
_programa_estimulo`, `total_docentes_evaluados`) VALUES
(1, 24, 4, 6, 16, 2, 24),
(2, 32, 21, 12, 16, 8, 30),
(3, 48, 32, 40, 45, 24, 48);
-- ---------------------------------------------------------- Estructura de tabla para la tabla `indicador_ext_vinc`
--

CREATE TABLE IF NOT EXISTS `indicador_ext_vinc` (


`id_indExtension` bigint(30) NOT NULL AUTO_INCREMENT,
`alumnos_servicio_social` int(3) NOT NULL,
`alum_deben_servsoc` int(3) NOT NULL,
`alumnos_act_deportivas` int(3) NOT NULL,
`alumnos_act_culturales` int(3) NOT NULL,
`alumnos_programas_emprendedores` int(3) NOT NULL,
`alumnos_programas_creatividad` int(3) NOT NULL,
`egresados_sector_laboral` int(3) NOT NULL,
`egresados_ciclo_inicial` date NOT NULL,
`egresados_ciclo_final` date NOT NULL,
`total_proyectos_resultados` int(3) NOT NULL,
`total_convenios_firmados` int(3) NOT NULL,
PRIMARY KEY (`id_indExtension`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--- Volcar la base de datos para la tabla `indicador_ext_vinc`
-INSERT INTO `indicador_ext_vinc` (`id_indExtension`, `alumnos_servicio_social`,
`alum_deben_servsoc`, `alumnos_act_deportivas`, `alumnos_act_culturales`, `alumn
os_programas_emprendedores`, `alumnos_programas_creatividad`, `egresados_sector_
laboral`, `egresados_ciclo_inicial`, `egresados_ciclo_final`, `total_proyectos_r
esultados`, `total_convenios_firmados`) VALUES
(1, 9, 15, 7, 4, 5, 6, 5, '0000-00-00', '0000-00-00', 4, 9),
(2, 15, 23, 10, 12, 5, 4, 7, '0000-00-00', '0000-00-00', 5, 10),
(3, 15, 20, 6, 6, 6, 6, 7, '0000-00-00', '0000-00-00', 8, 10);
-- ---------------------------------------------------------- Estructura de tabla para la tabla `indicador_investigacion`
-CREATE TABLE IF NOT EXISTS `indicador_investigacion` (
`id_indInvestigacion` bigint(30) NOT NULL AUTO_INCREMENT,
`alumnos_proyectos_de_investigacion` int(3) NOT NULL,
`docentes_proyectos_de_investigacion` int(3) NOT NULL,
`investigadores_sni` int(3) NOT NULL,
`numero_investigadores_institucion` int(3) NOT NULL,
`presupuesto_investigacion` double NOT NULL,
`total_presupuesto_investigacion` double NOT NULL,
`cierre_ano` int(3) NOT NULL,
PRIMARY KEY (`id_indInvestigacion`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
--- Volcar la base de datos para la tabla `indicador_investigacion`
-INSERT INTO `indicador_investigacion` (`id_indInvestigacion`, `alumnos_proyectos
_de_investigacion`, `docentes_proyectos_de_investigacion`, `investigadores_sni`,
`numero_investigadores_institucion`, `presupuesto_investigacion`, `total_presup
uesto_investigacion`, `cierre_ano`) VALUES
(3, 20, 5, 3, 5, 0, 20, 2009),
(4, 6, 2, 0, 2, 20000, 17500500.98, 2010),
(5, 25, 10, 4, 10, 35856.56, 56895326.44, 2010);
-- --------------------------------------------------------

--- Estructura de tabla para la tabla `ind_alumnos_s_carreras`


-CREATE TABLE IF NOT EXISTS `ind_alumnos_s_carreras` (
`id_indAlumno` bigint(30) NOT NULL,
`id_carrera` char(15) NOT NULL,
`periodo_inicial` date NOT NULL,
`periodo_final` date NOT NULL,
KEY `id_indAlumno` (`id_indAlumno`),
KEY `id_carrera` (`id_carrera`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `ind_alumnos_s_carreras`
-INSERT INTO `ind_alumnos_s_carreras` (`id_indAlumno`, `id_carrera`, `periodo_ini
cial`, `periodo_final`) VALUES
(3, '1', '2010-01-15', '2010-01-29'),
(4, '2', '2010-01-15', '2010-01-29'),
(5, '3', '2010-01-15', '2010-01-29'),
(6, '4', '2010-01-15', '2010-01-29'),
(7, '5', '2010-01-15', '2010-01-29'),
(8, '1', '2010-05-15', '2010-05-29'),
(9, '2', '2010-05-15', '2010-05-29'),
(10, '3', '2010-05-15', '2010-05-29'),
(11, '4', '2010-05-15', '2010-05-29'),
(12, '5', '2010-05-15', '2010-05-29'),
(13, '1', '2010-09-15', '2010-09-29'),
(14, '2', '2010-09-15', '2010-09-29'),
(15, '3', '2010-09-15', '2010-09-29'),
(16, '4', '2010-09-15', '2010-09-29'),
(17, '5', '2010-09-15', '2010-09-29');
-- ---------------------------------------------------------- Estructura de tabla para la tabla `ind_alumnos_s_materias`
-CREATE TABLE IF NOT EXISTS `ind_alumnos_s_materias` (
`id_indAlumno` bigint(30) NOT NULL,
`id_materia` char(25) NOT NULL,
`total_reprobados_materia` int(3) NOT NULL,
`total_alumnos_materia` int(3) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--- Volcar la base de datos para la tabla `ind_alumnos_s_materias`
-INSERT INTO `ind_alumnos_s_materias` (`id_indAlumno`, `id_materia`, `total_repro
bados_materia`, `total_alumnos_materia`) VALUES
(3, '5', 11, 45),
(3, '3', 9, 55),
(4, '7', 8, 50),
(4, '8', 13, 70),
(5, '4', 3, 60),

(5, '6', 5, 40),


(6, '9', 17, 65),
(6, '10', 4, 40),
(7, '1', 5, 30),
(7, '2', 7, 50),
(8, '5', 9, 60),
(8, '3', 8, 55),
(9, '7', 5, 60),
(9, '8', 9, 75),
(10, '4', 12, 45),
(10, '6', 10, 45),
(11, '9', 19, 60),
(11, '10', 14, 70),
(12, '1', 6, 40),
(12, '2', 8, 55),
(13, '5', 10, 80),
(13, '3', 8, 60),
(14, '7', 9, 70),
(14, '8', 15, 80),
(15, '4', 5, 40),
(15, '6', 8, 40),
(16, '9', 25, 80),
(16, '10', 20, 100),
(17, '1', 6, 35),
(17, '2', 8, 35);
-- ---------------------------------------------------------- Estructura de tabla para la tabla `ingresos`
-CREATE TABLE IF NOT EXISTS `ingresos` (
`id_ingreso` bigint(50) NOT NULL AUTO_INCREMENT,
`fecha` date NOT NULL,
`usuario` int(5) NOT NULL,
PRIMARY KEY (`id_ingreso`),
KEY `usuario` (`usuario`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
--- Volcar la base de datos para la tabla `ingresos`
-INSERT INTO `ingresos` (`id_ingreso`, `fecha`, `usuario`) VALUES
(1, '2010-01-18', 3),
(2, '2010-05-17', 3),
(3, '2010-08-16', 3),
(4, '2011-04-15', 2),
(5, '2011-04-15', 3),
(6, '2011-04-15', 3),
(7, '2011-04-22', 2),
(8, '2011-04-22', 2),
(9, '2011-04-22', 2),
(10, '2011-04-22', 2),
(11, '2011-04-22', 2),
(12, '2011-04-22', 2);
-- --------------------------------------------------------

--- Estructura de tabla para la tabla `intrusos`


-CREATE TABLE IF NOT EXISTS `intrusos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fecha` date NOT NULL,
`usuario` varchar(64) NOT NULL,
`password` varchar(64) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--- Volcar la base de datos para la tabla `intrusos`
-INSERT INTO `intrusos` (`id`, `fecha`, `usuario`, `password`) VALUES
(1, '2010-01-18', 'UTEZ-001', '-- phpMy');
-- ---------------------------------------------------------- Estructura de tabla para la tabla `materias`
-CREATE TABLE IF NOT EXISTS `materias` (
`id_materia` char(25) NOT NULL,
`descripcion` varchar(25) NOT NULL,
`grado` int(2) NOT NULL,
PRIMARY KEY (`id_materia`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `materias`
-INSERT INTO `materias` (`id_materia`, `descripcion`, `grado`) VALUES
('1', 'MATEMATICAS-PO', 1),
('10', 'MECANICA', 2),
('2', 'ESPAOL-PO', 2),
('3', 'DESARROLLO WEB', 2),
('4', 'CONTABILIDAD-MI', 1),
('5', 'PROGRAMACION VISUAL', 1),
('6', 'CALIDAD-MI', 2),
('7', 'MERCADOTECNIA', 1),
('8', 'PUBLICIDAD', 2),
('9', 'SISTEMAS ELECTRICOS', 1);
-- ---------------------------------------------------------- Estructura de tabla para la tabla `materias_carrera`
-CREATE TABLE IF NOT EXISTS `materias_carrera` (
`id_carrera` char(15) NOT NULL,
`id_materia` char(25) NOT NULL,
KEY `id_carrera` (`id_carrera`),
KEY `id_materia` (`id_materia`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--- Volcar la base de datos para la tabla `materias_carrera`


-INSERT INTO `materias_carrera` (`id_carrera`, `id_materia`) VALUES
('1', '3'),
('1', '5'),
('2', '7'),
('2', '8'),
('3', '4'),
('3', '6'),
('4', '9'),
('4', '10'),
('5', '1'),
('5', '2');
-- ---------------------------------------------------------- Estructura de tabla para la tabla `municipios`
-CREATE TABLE IF NOT EXISTS `municipios` (
`id_municipio` int(3) NOT NULL AUTO_INCREMENT,
`nombre` varchar(25) NOT NULL,
PRIMARY KEY (`id_municipio`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=59 ;
--- Volcar la base de datos para la tabla `municipios`
-INSERT INTO `municipios` (`id_municipio`, `nombre`) VALUES
(1, 'APOZOL'),
(2, 'APULCO'),
(3, 'ATOLINGA'),
(4, 'BENITO JUAREZ'),
(5, 'CALERA'),
(6, 'C. DE FELIPE PESCADOR'),
(7, 'CONCEPCION DEL ORO'),
(8, 'CUAUHTEMOC'),
(9, 'CHALCHIHUITES'),
(10, 'FRESNILLO'),
(11, 'T. GARCIA DE LA CADENA'),
(12, 'GENARO CODINA'),
(13, 'G. ENRIQUE ESTRADA'),
(14, 'G. FRANCISCO R. MURGUIA'),
(15, 'EL PLATEADO DE J. AMARO'),
(16, 'G. PANFILO NATERA'),
(17, 'GUADALUPE'),
(18, 'HUANUSCO'),
(19, 'JALPA'),
(20, 'JEREZ'),
(21, 'JIMENEZ DEL TEUL'),
(22, 'JUAN ALDAMA'),
(23, 'JUCHIPILA'),
(24, 'LORETO'),
(25, 'LUIS MOYA'),
(26, 'MAZAPIL'),

(27,
(28,
(29,
(30,
(31,
(32,
(33,
(34,
(35,
(36,
(37,
(38,
(39,
(40,
(41,
(42,
(43,
(44,
(45,
(46,
(47,
(48,
(49,
(50,
(51,
(52,
(53,
(54,
(55,
(56,
(57,
(58,

'MELCHOR OCAMPO'),
'MEZQUITAL DEL ORO'),
'MIGUEL AUZA'),
'MOMAX'),
'MONTE ESCOBEDO'),
'MORELOS'),
'MOYAHUA DE ESTRADA'),
'NOCHISTLAN DE MEJIA'),
'NORIA DE ANGELES'),
'OJOCALIENTE'),
'PANUCO'),
'PINOS'),
'RIO GRANDE'),
'SAIN ALTO'),
'EL SALVADOR'),
'SOMBRERETE'),
'SUSTICACAN'),
'TABASCO'),
'TEPECHITLAN'),
'TEPETONGO'),
'TEUL DE GONZALEZ ORTEGA'),
'TLALTENANGO DE S. ROMAN'),
'VALPARAISO'),
'VETAGRANDE'),
'VILLA DE COS'),
'VILLA GARCIA'),
'VILLA GONZALEZ ORTEGA'),
'VILLA HIDALGO'),
'VILLANUEVA'),
'ZACATECAS'),
'TRANCOSO'),
'SANTA MARIA DE LA PAZ');

-- ---------------------------------------------------------- Estructura de tabla para la tabla `periodo_de_registro`


-CREATE TABLE IF NOT EXISTS `periodo_de_registro` (
`id_periodo` int(5) NOT NULL AUTO_INCREMENT,
`periodo_inicial` date NOT NULL,
`periodo_final` date NOT NULL,
`tipo_periodo_escolar` int(1) NOT NULL,
`status` char(1) NOT NULL,
PRIMARY KEY (`id_periodo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
--- Volcar la base de datos para la tabla `periodo_de_registro`
-INSERT INTO `periodo_de_registro` (`id_periodo`, `periodo_inicial`, `periodo_fin
al`, `tipo_periodo_escolar`, `status`) VALUES
(5, '2010-01-15', '2010-01-29', 2, '0'),
(6, '2010-05-15', '2010-05-29', 2, '0'),
(7, '2010-09-15', '2010-09-29', 2, '0');
-- --------------------------------------------------------

--- Estructura de tabla para la tabla `periodo_escolar`


-CREATE TABLE IF NOT EXISTS `periodo_escolar` (
`id_tipo` int(1) NOT NULL AUTO_INCREMENT,
`nombre` varchar(15) NOT NULL,
PRIMARY KEY (`id_tipo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--- Volcar la base de datos para la tabla `periodo_escolar`
-INSERT INTO `periodo_escolar` (`id_tipo`, `nombre`) VALUES
(1, 'TRIMESTRAL'),
(2, 'CUATRIMESTRAL'),
(3, 'SEMESTRAL');
-- ---------------------------------------------------------- Estructura de tabla para la tabla `planteles`
-CREATE TABLE IF NOT EXISTS `planteles` (
`id_plantel` char(20) NOT NULL,
`nombre` varchar(50) NOT NULL,
`calle` varchar(50) NOT NULL,
`numero` int(4) NOT NULL,
`colonia` varchar(30) NOT NULL,
`cpostal` int(6) NOT NULL,
`municipio` int(3) NOT NULL,
`telefono` varchar(11) NOT NULL,
`tipo_institucion` varchar(11) NOT NULL,
`tipo_periodo` int(1) NOT NULL,
PRIMARY KEY (`id_plantel`),
KEY `municipio` (`municipio`),
KEY `tipo_periodo` (`tipo_periodo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `planteles`
-INSERT INTO `planteles` (`id_plantel`, `nombre`, `calle`, `numero`, `colonia`, `
cpostal`, `municipio`, `telefono`, `tipo_institucion`, `tipo_periodo`) VALUES
('1', 'UNIVERSIDAD TECNOLOGICA DEL ESTADO DE ZACATECAS', 'CARR. CD CUAUHTEMOC',
0, '', 0, 1, '01(492)9276', 'SUPERIOR', 2),
('2', 'UNIVER', 'AV. UNIVERSIDAD', 0, '', 0, 56, '0123456789', 'SUPERIOR', 3),
('CVE-PREPA', 'PREPARATORIA', 'AV- SIN NOMBRE', 123, 'SIN NOMBRE', 98000, 56, '0
123456789', 'MEDIA', 3),
('CVE-UNID', 'UNID', 'AV SOLIDARIDAD', 99, 'NO SE', 99000, 17, '9999', 'SUPERIOR
', 2);
-- ---------------------------------------------------------- Estructura de tabla para la tabla `planteles_indadm`
--

CREATE TABLE IF NOT EXISTS `planteles_indadm` (


`id_plantel` char(20) NOT NULL,
`id_indAdm` bigint(30) NOT NULL,
`periodo_inicial` date NOT NULL,
`periodo_final` date NOT NULL,
KEY `id_plantel` (`id_plantel`),
KEY `id_indAdm` (`id_indAdm`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `planteles_indadm`
-INSERT INTO `planteles_indadm` (`id_plantel`, `id_indAdm`, `periodo_inicial`, `p
eriodo_final`) VALUES
('1', 1, '2010-01-15', '2010-01-29'),
('1', 2, '2010-05-15', '2010-05-29'),
('1', 3, '2010-09-15', '2010-09-29');
-- ---------------------------------------------------------- Estructura de tabla para la tabla `planteles_indalumnos`
-CREATE TABLE IF NOT EXISTS `planteles_indalumnos` (
`id_plantel` char(20) NOT NULL,
`id_indAlumno` bigint(30) NOT NULL,
`periodo_inicial` date NOT NULL,
`periodo_final` date NOT NULL,
KEY `id_plantel` (`id_plantel`),
KEY `id_indAlumno` (`id_indAlumno`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `planteles_indalumnos`
-INSERT INTO `planteles_indalumnos` (`id_plantel`, `id_indAlumno`, `periodo_inici
al`, `periodo_final`) VALUES
('1', 3, '2010-01-15', '2010-01-29'),
('1', 4, '2010-01-15', '2010-01-29'),
('1', 5, '2010-01-15', '2010-01-29'),
('1', 6, '2010-01-15', '2010-01-29'),
('1', 7, '2010-01-15', '2010-01-29'),
('1', 8, '2010-05-15', '2010-05-29'),
('1', 9, '2010-05-15', '2010-05-29'),
('1', 10, '2010-05-15', '2010-05-29'),
('1', 11, '2010-05-15', '2010-05-29'),
('1', 12, '2010-05-15', '2010-05-29'),
('1', 13, '2010-09-15', '2010-09-29'),
('1', 14, '2010-09-15', '2010-09-29'),
('1', 15, '2010-09-15', '2010-09-29'),
('1', 16, '2010-09-15', '2010-09-29'),
('1', 17, '2010-09-15', '2010-09-29');
-- ---------------------------------------------------------

-- Estructura de tabla para la tabla `planteles_indalumnosms`


-CREATE TABLE IF NOT EXISTS `planteles_indalumnosms` (
`id_plantel` char(20) NOT NULL,
`id_indAlumnoMS` bigint(30) NOT NULL,
`periodo_inicial` date NOT NULL,
`periodo_final` date NOT NULL,
KEY `id_plantel` (`id_plantel`),
KEY `id_indAlumnoMS` (`id_indAlumnoMS`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `planteles_indalumnosms`
--- ---------------------------------------------------------- Estructura de tabla para la tabla `planteles_inddocentes`
-CREATE TABLE IF NOT EXISTS `planteles_inddocentes` (
`id_plantel` char(20) NOT NULL,
`id_indDocente` bigint(30) NOT NULL,
`periodo_inicial` date NOT NULL,
`periodo_final` date NOT NULL,
KEY `id_plantel` (`id_plantel`),
KEY `id_indDocente` (`id_indDocente`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `planteles_inddocentes`
-INSERT INTO `planteles_inddocentes` (`id_plantel`, `id_indDocente`, `periodo_ini
cial`, `periodo_final`) VALUES
('1', 1, '2010-01-15', '2010-01-29'),
('1', 2, '2010-05-15', '2010-05-29'),
('1', 3, '2010-09-15', '2010-09-29');
-- ---------------------------------------------------------- Estructura de tabla para la tabla `planteles_indextension`
-CREATE TABLE IF NOT EXISTS `planteles_indextension` (
`id_plantel` char(20) NOT NULL,
`id_indExtension` bigint(30) NOT NULL,
`periodo_inicial` date NOT NULL,
`periodo_final` date NOT NULL,
KEY `id_plantel` (`id_plantel`),
KEY `id_indExtension` (`id_indExtension`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `planteles_indextension`
--

INSERT INTO `planteles_indextension` (`id_plantel`, `id_indExtension`, `periodo_


inicial`, `periodo_final`) VALUES
('1', 1, '2010-01-15', '2010-01-29'),
('1', 2, '2010-05-15', '2010-05-29'),
('1', 3, '2010-09-15', '2010-09-29');
-- ---------------------------------------------------------- Estructura de tabla para la tabla `planteles_indinvestigacion`
-CREATE TABLE IF NOT EXISTS `planteles_indinvestigacion` (
`id_plantel` char(20) NOT NULL,
`id_indInvestigacion` bigint(30) NOT NULL,
`periodo_inicial` date NOT NULL,
`periodo_final` date NOT NULL,
KEY `id_plantel` (`id_plantel`),
KEY `id_indInvestigacion` (`id_indInvestigacion`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `planteles_indinvestigacion`
-INSERT INTO `planteles_indinvestigacion` (`id_plantel`, `id_indInvestigacion`, `
periodo_inicial`, `periodo_final`) VALUES
('1', 4, '2010-09-15', '2010-09-29'),
('1', 3, '2010-01-15', '2010-01-29'),
('1', 5, '2010-05-15', '2010-05-29');
-- ---------------------------------------------------------- Estructura de tabla para la tabla `status`
-CREATE TABLE IF NOT EXISTS `status` (
`id_plantel` char(20) NOT NULL,
`indicador` varchar(25) NOT NULL,
`tipo_periodo_escolar` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `status`
--- ---------------------------------------------------------- Estructura de tabla para la tabla `usuarios`
-CREATE TABLE IF NOT EXISTS `usuarios` (
`id_usuario` int(5) NOT NULL AUTO_INCREMENT,
`usuario` char(11) NOT NULL,
`password` char(11) NOT NULL,
`tipo` char(11) NOT NULL,

`nombre` varchar(20) NOT NULL,


`ap_paterno` varchar(20) NOT NULL,
`ap_materno` varchar(20) NOT NULL,
`email` varchar(64) NOT NULL,
PRIMARY KEY (`id_usuario`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
--- Volcar la base de datos para la tabla `usuarios`
-INSERT INTO `usuarios` (`id_usuario`, `usuario`, `password`, `tipo`, `nombre`, `
ap_paterno`, `ap_materno`, `email`) VALUES
(1, 'MANAGER', 'MANAGER', 'A0x1', '', '', '', ''),
(2, 'SEC-0001', 'SEC-0001', 'S0x1', '', '', '', ''),
(3, 'UTEZ-001', 'UTEZ-001', 'P0x1', '', '', '', ''),
(4, 'UTEZ-002', 'UTEZ-002', 'P0x2', '', '', '', ''),
(5, 'UNIV-001', 'UNIV-001', 'P0x1', '', '', '', ''),
(6, 'UNIV-002', 'UNIV-002', 'P0x2', '', '', '', ''),
(7, 'UNID-001', 'UNID-001', 'P0x1', '', '', '', ''),
(8, 'UNID-002', 'UNID-002', 'P0x2', '', '', '', ''),
(9, 'PREPA-01', 'PREPA-01', 'P0x1', 'PREPARATORIA', 'PUBLICA', 'NADA', 'X@X.NET'
);
-- ---------------------------------------------------------- Estructura de tabla para la tabla `usuario_plantel`
-CREATE TABLE IF NOT EXISTS `usuario_plantel` (
`id_plantel` char(20) NOT NULL,
`id_usuario` int(5) NOT NULL,
KEY `id_plantel` (`id_plantel`),
KEY `id_usuario` (`id_usuario`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--- Volcar la base de datos para la tabla `usuario_plantel`
-INSERT INTO `usuario_plantel` (`id_plantel`, `id_usuario`) VALUES
('1', 3),
('1', 4),
('2', 5),
('2', 6),
('CVE-PREPA', 9),
('CVE-UNID', 7);
--- Filtros para las tablas descargadas (dump)
---- Filtros para la tabla `carrera_plantel`
-ALTER TABLE `carrera_plantel`
ADD CONSTRAINT `carrera_plantel_ibfk_1` FOREIGN KEY (`id_plantel`) REFERENCES
`planteles` (`id_plantel`) ON UPDATE CASCADE,
ADD CONSTRAINT `carrera_plantel_ibfk_2` FOREIGN KEY (`id_carrera`) REFERENCES

`carreras` (`id_carrera`) ON UPDATE CASCADE;


--- Filtros para la tabla `ind_alumnos_s_carreras`
-ALTER TABLE `ind_alumnos_s_carreras`
ADD CONSTRAINT `ind_alumnos_s_carreras_ibfk_1` FOREIGN KEY (`id_indAlumno`) RE
FERENCES `indicador_alumnoss` (`id_indAlumno`) ON UPDATE CASCADE,
ADD CONSTRAINT `ind_alumnos_s_carreras_ibfk_2` FOREIGN KEY (`id_carrera`) REFE
RENCES `carreras` (`id_carrera`) ON UPDATE CASCADE;
--- Filtros para la tabla `ingresos`
-ALTER TABLE `ingresos`
ADD CONSTRAINT `ingresos_ibfk_1` FOREIGN KEY (`usuario`) REFERENCES `usuarios`
(`id_usuario`) ON UPDATE CASCADE;
--- Filtros para la tabla `materias_carrera`
-ALTER TABLE `materias_carrera`
ADD CONSTRAINT `materias_carrera_ibfk_2` FOREIGN KEY (`id_materia`) REFERENCES
`materias` (`id_materia`) ON UPDATE CASCADE,
ADD CONSTRAINT `materias_carrera_ibfk_3` FOREIGN KEY (`id_carrera`) REFERENCES
`carreras` (`id_carrera`) ON UPDATE CASCADE;
--- Filtros para la tabla `planteles`
-ALTER TABLE `planteles`
ADD CONSTRAINT `planteles_ibfk_1` FOREIGN KEY (`municipio`) REFERENCES `munici
pios` (`id_municipio`) ON UPDATE CASCADE,
ADD CONSTRAINT `planteles_ibfk_2` FOREIGN KEY (`tipo_periodo`) REFERENCES `per
iodo_escolar` (`id_tipo`);
--- Filtros para la tabla `planteles_indadm`
-ALTER TABLE `planteles_indadm`
ADD CONSTRAINT `planteles_indadm_ibfk_1` FOREIGN KEY (`id_plantel`) REFERENCES
`planteles` (`id_plantel`) ON UPDATE CASCADE,
ADD CONSTRAINT `planteles_indadm_ibfk_2` FOREIGN KEY (`id_indAdm`) REFERENCES
`indicador_administracion` (`id_indAdm`) ON UPDATE CASCADE;
--- Filtros para la tabla `planteles_indalumnos`
-ALTER TABLE `planteles_indalumnos`
ADD CONSTRAINT `planteles_indalumnos_ibfk_1` FOREIGN KEY (`id_plantel`) REFERE
NCES `planteles` (`id_plantel`) ON UPDATE CASCADE,
ADD CONSTRAINT `planteles_indalumnos_ibfk_2` FOREIGN KEY (`id_indAlumno`) REFE
RENCES `indicador_alumnoss` (`id_indAlumno`) ON UPDATE CASCADE;
--- Filtros para la tabla `planteles_indalumnosms`
-ALTER TABLE `planteles_indalumnosms`
ADD CONSTRAINT `planteles_indalumnosms_ibfk_1` FOREIGN KEY (`id_plantel`) REFE
RENCES `planteles` (`id_plantel`) ON UPDATE CASCADE,

ADD CONSTRAINT `planteles_indalumnosms_ibfk_2` FOREIGN KEY (`id_indAlumnoMS`)


REFERENCES `indicador_alumnosms` (`id_indAlumno`) ON UPDATE CASCADE;
--- Filtros para la tabla `planteles_inddocentes`
-ALTER TABLE `planteles_inddocentes`
ADD CONSTRAINT `planteles_inddocentes_ibfk_1` FOREIGN KEY (`id_plantel`) REFER
ENCES `planteles` (`id_plantel`) ON UPDATE CASCADE,
ADD CONSTRAINT `planteles_inddocentes_ibfk_2` FOREIGN KEY (`id_indDocente`) RE
FERENCES `indicador_docentes` (`id_indDocente`) ON UPDATE CASCADE;
--- Filtros para la tabla `planteles_indextension`
-ALTER TABLE `planteles_indextension`
ADD CONSTRAINT `planteles_indextension_ibfk_1` FOREIGN KEY (`id_plantel`) REFE
RENCES `planteles` (`id_plantel`) ON UPDATE CASCADE,
ADD CONSTRAINT `planteles_indextension_ibfk_2` FOREIGN KEY (`id_indExtension`)
REFERENCES `indicador_ext_vinc` (`id_indExtension`) ON UPDATE CASCADE;
--- Filtros para la tabla `planteles_indinvestigacion`
-ALTER TABLE `planteles_indinvestigacion`
ADD CONSTRAINT `planteles_indinvestigacion_ibfk_1` FOREIGN KEY (`id_plantel`)
REFERENCES `planteles` (`id_plantel`) ON UPDATE CASCADE,
ADD CONSTRAINT `planteles_indinvestigacion_ibfk_2` FOREIGN KEY (`id_indInvesti
gacion`) REFERENCES `indicador_investigacion` (`id_indInvestigacion`) ON UPDATE
CASCADE;
--- Filtros para la tabla `usuario_plantel`
-ALTER TABLE `usuario_plantel`
ADD CONSTRAINT `usuario_plantel_ibfk_1` FOREIGN KEY (`id_plantel`) REFERENCES
`planteles` (`id_plantel`) ON UPDATE CASCADE,
ADD CONSTRAINT `usuario_plantel_ibfk_2` FOREIGN KEY (`id_usuario`) REFERENCES
`usuarios` (`id_usuario`) ON UPDATE CASCADE;

You might also like