-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1:3306
-- Tiempo de generación: 07-02-2025 a las 22:43:58
-- Versión del servidor: 9.1.0
-- Versión de PHP: 8.3.14

START TRANSACTION;



--
-- Base de datos: `archivo`
--

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `archive`
--

CREATE TABLE IF NOT EXISTS `archive` (
  `arc_id` bigint NOT NULL AUTO_INCREMENT,
  `arc_type` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_section_background` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_order` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_folio_file` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_place` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_date` date DEFAULT NULL,
  `arc_description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_language` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_topographical_signature` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_observations` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_proceeds_depend` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_record_source` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_uai_identification` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_status` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_image` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `arc_created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`arc_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `archive_charge`
--

CREATE TABLE IF NOT EXISTS `archive_charge` (
  `cha_id` bigint NOT NULL AUTO_INCREMENT,
  `arc_id` bigint DEFAULT NULL,
  `cha_charge` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  PRIMARY KEY (`cha_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `archive_documentary`
--

CREATE TABLE IF NOT EXISTS `archive_documentary` (
  `doc_id` bigint NOT NULL AUTO_INCREMENT,
  `arc_id` bigint DEFAULT NULL,
  `doc_documentary` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  PRIMARY KEY (`doc_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `archive_physical_support`
--

CREATE TABLE IF NOT EXISTS `archive_physical_support` (
  `phs_id` bigint NOT NULL AUTO_INCREMENT,
  `arc_id` bigint DEFAULT NULL,
  `phs_physical_support` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  PRIMARY KEY (`phs_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `archive_theme`
--

CREATE TABLE IF NOT EXISTS `archive_theme` (
  `the_id` bigint NOT NULL AUTO_INCREMENT,
  `arc_id` bigint DEFAULT NULL,
  `the_theme` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  PRIMARY KEY (`the_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `archive_toponymic`
--

CREATE TABLE IF NOT EXISTS `archive_toponymic` (
  `top_id` bigint NOT NULL AUTO_INCREMENT,
  `arc_id` bigint DEFAULT NULL,
  `top_toponymic` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  PRIMARY KEY (`top_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `country`
--

CREATE TABLE IF NOT EXISTS `country` (
  `cou_id` int NOT NULL AUTO_INCREMENT,
  `cou_iso` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci DEFAULT NULL,
  `cou_name` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci DEFAULT NULL,
  PRIMARY KEY (`cou_id`)
) ENGINE=MyISAM AUTO_INCREMENT=241 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;

--
-- Volcado de datos para la tabla `country`
--

INSERT INTO `country` (`cou_id`, `cou_iso`, `cou_name`) VALUES
(1, 'AF', 'Afganistán'),
(2, 'AX', 'Islas Gland'),
(3, 'AL', 'Albania'),
(4, 'DE', 'Alemania'),
(5, 'AD', 'Andorra'),
(6, 'AO', 'Angola'),
(7, 'AI', 'Anguilla'),
(8, 'AQ', 'Antártida'),
(9, 'AG', 'Antigua y Barbuda'),
(10, 'AN', 'Antillas Holandesas'),
(11, 'SA', 'Arabia Saudí'),
(12, 'DZ', 'Argelia'),
(13, 'AR', 'Argentina'),
(14, 'AM', 'Armenia'),
(15, 'AW', 'Aruba'),
(16, 'AU', 'Australia'),
(17, 'AT', 'Austria'),
(18, 'AZ', 'Azerbaiyán'),
(19, 'BS', 'Bahamas'),
(20, 'BH', 'Bahréin'),
(21, 'BD', 'Bangladesh'),
(22, 'BB', 'Barbados'),
(23, 'BY', 'Bielorrusia'),
(24, 'BE', 'Bélgica'),
(25, 'BZ', 'Belice'),
(26, 'BJ', 'Benin'),
(27, 'BM', 'Bermudas'),
(28, 'BT', 'Bhután'),
(29, 'BO', 'Bolivia'),
(30, 'BA', 'Bosnia y Herzegovina'),
(31, 'BW', 'Botsuana'),
(32, 'BV', 'Isla Bouvet'),
(33, 'BR', 'Brasil'),
(34, 'BN', 'Brunéi'),
(35, 'BG', 'Bulgaria'),
(36, 'BF', 'Burkina Faso'),
(37, 'BI', 'Burundi'),
(38, 'CV', 'Cabo Verde'),
(39, 'KY', 'Islas Caimán'),
(40, 'KH', 'Camboya'),
(41, 'CM', 'Camerún'),
(42, 'CA', 'Canadá'),
(43, 'CF', 'República Centroafricana'),
(44, 'TD', 'Chad'),
(45, 'CZ', 'República Checa'),
(46, 'CL', 'Chile'),
(47, 'CN', 'China'),
(48, 'CY', 'Chipre'),
(49, 'CX', 'Isla de Navidad'),
(50, 'VA', 'Ciudad del Vaticano'),
(51, 'CC', 'Islas Cocos'),
(52, 'CO', 'Colombia'),
(53, 'KM', 'Comoras'),
(54, 'CD', 'República Democrática del Congo'),
(55, 'CG', 'Congo'),
(56, 'CK', 'Islas Cook'),
(57, 'KP', 'Corea del Norte'),
(58, 'KR', 'Corea del Sur'),
(59, 'CI', 'Costa de Marfil'),
(60, 'CR', 'Costa Rica'),
(61, 'HR', 'Croacia'),
(62, 'CU', 'Cuba'),
(63, 'DK', 'Dinamarca'),
(64, 'DM', 'Dominica'),
(65, 'DO', 'República Dominicana'),
(66, 'EC', 'Ecuador'),
(67, 'EG', 'Egipto'),
(68, 'SV', 'El Salvador'),
(69, 'AE', 'Emiratos Árabes Unidos'),
(70, 'ER', 'Eritrea'),
(71, 'SK', 'Eslovaquia'),
(72, 'SI', 'Eslovenia'),
(73, 'ES', 'España'),
(74, 'UM', 'Islas ultramarinas de Estados Unidos'),
(75, 'US', 'Estados Unidos'),
(76, 'EE', 'Estonia'),
(77, 'ET', 'Etiopía'),
(78, 'FO', 'Islas Feroe'),
(79, 'PH', 'Filipinas'),
(80, 'FI', 'Finlandia'),
(81, 'FJ', 'Fiyi'),
(82, 'FR', 'Francia'),
(83, 'GA', 'Gabón'),
(84, 'GM', 'Gambia'),
(85, 'GE', 'Georgia'),
(86, 'GS', 'Islas Georgias del Sur y Sandwich del Sur'),
(87, 'GH', 'Ghana'),
(88, 'GI', 'Gibraltar'),
(89, 'GD', 'Granada'),
(90, 'GR', 'Grecia'),
(91, 'GL', 'Groenlandia'),
(92, 'GP', 'Guadalupe'),
(93, 'GU', 'Guam'),
(94, 'GT', 'Guatemala'),
(95, 'GF', 'Guayana Francesa'),
(96, 'GN', 'Guinea'),
(97, 'GQ', 'Guinea Ecuatorial'),
(98, 'GW', 'Guinea-Bissau'),
(99, 'GY', 'Guyana'),
(100, 'HT', 'Haití'),
(101, 'HM', 'Islas Heard y McDonald'),
(102, 'HN', 'Honduras'),
(103, 'HK', 'Hong Kong'),
(104, 'HU', 'Hungría'),
(105, 'IN', 'India'),
(106, 'ID', 'Indonesia'),
(107, 'IR', 'Irán'),
(108, 'IQ', 'Iraq'),
(109, 'IE', 'Irlanda'),
(110, 'IS', 'Islandia'),
(111, 'IL', 'Israel'),
(112, 'IT', 'Italia'),
(113, 'JM', 'Jamaica'),
(114, 'JP', 'Japón'),
(115, 'JO', 'Jordania'),
(116, 'KZ', 'Kazajstán'),
(117, 'KE', 'Kenia'),
(118, 'KG', 'Kirguistán'),
(119, 'KI', 'Kiribati'),
(120, 'KW', 'Kuwait'),
(121, 'LA', 'Laos'),
(122, 'LS', 'Lesotho'),
(123, 'LV', 'Letonia'),
(124, 'LB', 'Líbano'),
(125, 'LR', 'Liberia'),
(126, 'LY', 'Libia'),
(127, 'LI', 'Liechtenstein'),
(128, 'LT', 'Lituania'),
(129, 'LU', 'Luxemburgo'),
(130, 'MO', 'Macao'),
(131, 'MK', 'ARY Macedonia'),
(132, 'MG', 'Madagascar'),
(133, 'MY', 'Malasia'),
(134, 'MW', 'Malawi'),
(135, 'MV', 'Maldivas'),
(136, 'ML', 'Malí'),
(137, 'MT', 'Malta'),
(138, 'FK', 'Islas Malvinas'),
(139, 'MP', 'Islas Marianas del Norte'),
(140, 'MA', 'Marruecos'),
(141, 'MH', 'Islas Marshall'),
(142, 'MQ', 'Martinica'),
(143, 'MU', 'Mauricio'),
(144, 'MR', 'Mauritania'),
(145, 'YT', 'Mayotte'),
(146, 'MX', 'México'),
(147, 'FM', 'Micronesia'),
(148, 'MD', 'Moldavia'),
(149, 'MC', 'Mónaco'),
(150, 'MN', 'Mongolia'),
(151, 'MS', 'Montserrat'),
(152, 'MZ', 'Mozambique'),
(153, 'MM', 'Myanmar'),
(154, 'NA', 'Namibia'),
(155, 'NR', 'Nauru'),
(156, 'NP', 'Nepal'),
(157, 'NI', 'Nicaragua'),
(158, 'NE', 'Níger'),
(159, 'NG', 'Nigeria'),
(160, 'NU', 'Niue'),
(161, 'NF', 'Isla Norfolk'),
(162, 'NO', 'Noruega'),
(163, 'NC', 'Nueva Caledonia'),
(164, 'NZ', 'Nueva Zelanda'),
(165, 'OM', 'Omán'),
(166, 'NL', 'Países Bajos'),
(167, 'PK', 'Pakistán'),
(168, 'PW', 'Palau'),
(169, 'PS', 'Palestina'),
(170, 'PA', 'Panamá'),
(171, 'PG', 'Papúa Nueva Guinea'),
(172, 'PY', 'Paraguay'),
(173, 'PE', 'Perú'),
(174, 'PN', 'Islas Pitcairn'),
(175, 'PF', 'Polinesia Francesa'),
(176, 'PL', 'Polonia'),
(177, 'PT', 'Portugal'),
(178, 'PR', 'Puerto Rico'),
(179, 'QA', 'Qatar'),
(180, 'GB', 'Reino Unido'),
(181, 'RE', 'Reunión'),
(182, 'RW', 'Ruanda'),
(183, 'RO', 'Rumania'),
(184, 'RU', 'Rusia'),
(185, 'EH', 'Sahara Occidental'),
(186, 'SB', 'Islas Salomón'),
(187, 'WS', 'Samoa'),
(188, 'AS', 'Samoa Americana'),
(189, 'KN', 'San Cristóbal y Nevis'),
(190, 'SM', 'San Marino'),
(191, 'PM', 'San Pedro y Miquelón'),
(192, 'VC', 'San Vicente y las Granadinas'),
(193, 'SH', 'Santa Helena'),
(194, 'LC', 'Santa Lucía'),
(195, 'ST', 'Santo Tomé y Príncipe'),
(196, 'SN', 'Senegal'),
(197, 'CS', 'Serbia y Montenegro'),
(198, 'SC', 'Seychelles'),
(199, 'SL', 'Sierra Leona'),
(200, 'SG', 'Singapur'),
(201, 'SY', 'Siria'),
(202, 'SO', 'Somalia'),
(203, 'LK', 'Sri Lanka'),
(204, 'SZ', 'Suazilandia'),
(205, 'ZA', 'Sudáfrica'),
(206, 'SD', 'Sudán'),
(207, 'SE', 'Suecia'),
(208, 'CH', 'Suiza'),
(209, 'SR', 'Surinam'),
(210, 'SJ', 'Svalbard y Jan Mayen'),
(211, 'TH', 'Tailandia'),
(212, 'TW', 'Taiwán'),
(213, 'TZ', 'Tanzania'),
(214, 'TJ', 'Tayikistán'),
(215, 'IO', 'Territorio Británico del Océano Índico'),
(216, 'TF', 'Territorios Australes Franceses'),
(217, 'TL', 'Timor Oriental'),
(218, 'TG', 'Togo'),
(219, 'TK', 'Tokelau'),
(220, 'TO', 'Tonga'),
(221, 'TT', 'Trinidad y Tobago'),
(222, 'TN', 'Túnez'),
(223, 'TC', 'Islas Turcas y Caicos'),
(224, 'TM', 'Turkmenistán'),
(225, 'TR', 'Turquía'),
(226, 'TV', 'Tuvalu'),
(227, 'UA', 'Ucrania'),
(228, 'UG', 'Uganda'),
(229, 'UY', 'Uruguay'),
(230, 'UZ', 'Uzbekistán'),
(231, 'VU', 'Vanuatu'),
(232, 'VE', 'Venezuela'),
(233, 'VN', 'Vietnam'),
(234, 'VG', 'Islas Vírgenes Británicas'),
(235, 'VI', 'Islas Vírgenes de los Estados Unidos'),
(236, 'WF', 'Wallis y Futuna'),
(237, 'YE', 'Yemen'),
(238, 'DJ', 'Yibuti'),
(239, 'ZM', 'Zambia'),
(240, 'ZW', 'Zimbabue');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `parochial`
--

CREATE TABLE IF NOT EXISTS `parochial` (
  `par_id` bigint NOT NULL AUTO_INCREMENT,
  `par_section_background` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `par_type` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `par_box` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `par_folder` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `par_number_departure` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `par_folios` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `par_legitimate` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `par_gender` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `par_official` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `par_date_diligence_description` date DEFAULT NULL,
  `par_image` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `par_status` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `par_created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`par_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `parochial_person`
--

CREATE TABLE IF NOT EXISTS `parochial_person` (
  `per_id` bigint NOT NULL AUTO_INCREMENT,
  `par_id` bigint DEFAULT NULL,
  `per_name` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `per_type` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  PRIMARY KEY (`per_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `photography`
--

CREATE TABLE IF NOT EXISTS `photography` (
  `pho_id` bigint NOT NULL AUTO_INCREMENT,
  `pho_image` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `pho_fund_institution` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `pho_production_date` date DEFAULT NULL,
  `pho_deliver_date` date DEFAULT NULL,
  `pho_photo_place` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `pho_description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `pho_box` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `pho_support_folder` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `pho_observations` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `pho_photographer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `pho_status` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  `pho_created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`pho_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `photography_name`
--

CREATE TABLE IF NOT EXISTS `photography_name` (
  `phn_id` bigint NOT NULL AUTO_INCREMENT,
  `pho_id` bigint DEFAULT NULL,
  `phn_name` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  PRIMARY KEY (`phn_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `photography_theme`
--

CREATE TABLE IF NOT EXISTS `photography_theme` (
  `pht_id` bigint NOT NULL AUTO_INCREMENT,
  `pho_id` bigint DEFAULT NULL,
  `pht_name` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci,
  PRIMARY KEY (`pht_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;
COMMIT;

