-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 01, 2020 at 02:43 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.2.27

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `nepalmon_nepalmonitor_kazi`
--

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

--
-- Table structure for table `analysis`
--

CREATE TABLE `analysis` (
  `id` int(10) UNSIGNED NOT NULL,
  `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `media` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `analysis`
--

INSERT INTO `analysis` (`id`, `title`, `description`, `image`, `date`, `status`, `media`, `created_at`, `updated_at`) VALUES
(126, 'Coronavirus (COVID-19) Situation Report In Nepal, February - April 2020', NULL, '1589008236-corona-virus-cover-page.png', '0000-00-00', 1, '1589008237-COVID-19-Situation-Report-In-Nepal-Feb-Apr-2020.pdf', NULL, NULL),
(127, 'Incidents Surrounding Covid-19 (May 1-15,2020)', NULL, '1590598993-Screen-Shot-2020-05-27-at-10.40.27-PM.png', '0000-00-00', 1, '1590598951-Incidents-Related-to-Covid-19(May1-15).pdf', NULL, NULL);

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

--
-- Table structure for table `analysis_tags`
--

CREATE TABLE `analysis_tags` (
  `id` int(10) UNSIGNED NOT NULL,
  `tag_id` int(10) UNSIGNED NOT NULL,
  `analysis_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `analysis_tags`
--

INSERT INTO `analysis_tags` (`id`, `tag_id`, `analysis_id`, `created_at`, `updated_at`) VALUES
(8, 3, 3, NULL, NULL),
(9, 4, 3, NULL, NULL),
(15, 3, 10, NULL, NULL),
(16, 8, 10, NULL, NULL),
(21, 3, 9, NULL, NULL),
(22, 8, 9, NULL, NULL),
(33, 6, 23, NULL, NULL),
(34, 9, 23, NULL, NULL),
(36, 3, 25, NULL, NULL),
(37, 4, 26, NULL, NULL),
(38, 6, 26, NULL, NULL),
(39, 6, 27, NULL, NULL),
(40, 18, 27, NULL, NULL),
(41, 6, 28, NULL, NULL),
(43, 6, 30, NULL, NULL),
(44, 18, 30, NULL, NULL),
(45, 3, 31, NULL, NULL),
(46, 6, 31, NULL, NULL),
(48, 3, 32, NULL, NULL),
(49, 4, 32, NULL, NULL),
(50, 6, 32, NULL, NULL),
(52, 6, 34, NULL, NULL),
(53, 18, 34, NULL, NULL),
(54, 3, 35, NULL, NULL),
(55, 6, 35, NULL, NULL),
(56, 3, 36, NULL, NULL),
(57, 6, 37, NULL, NULL),
(58, 18, 37, NULL, NULL),
(59, 4, 38, NULL, NULL),
(60, 6, 38, NULL, NULL),
(61, 4, 39, NULL, NULL),
(62, 6, 39, NULL, NULL),
(63, 4, 40, NULL, NULL),
(64, 6, 40, NULL, NULL),
(65, 4, 41, NULL, NULL),
(66, 6, 41, NULL, NULL),
(67, 4, 42, NULL, NULL),
(68, 6, 42, NULL, NULL),
(69, 4, 43, NULL, NULL),
(70, 6, 43, NULL, NULL),
(71, 4, 44, NULL, NULL),
(72, 6, 44, NULL, NULL),
(73, 6, 45, NULL, NULL),
(74, 18, 45, NULL, NULL),
(75, 4, 46, NULL, NULL),
(76, 6, 46, NULL, NULL),
(77, 4, 47, NULL, NULL),
(78, 6, 47, NULL, NULL),
(79, 4, 48, NULL, NULL),
(80, 4, 49, NULL, NULL),
(81, 4, 50, NULL, NULL),
(82, 6, 50, NULL, NULL),
(83, 4, 51, NULL, NULL),
(84, 18, 52, NULL, NULL),
(85, 4, 53, NULL, NULL),
(86, 6, 53, NULL, NULL),
(87, 4, 54, NULL, NULL),
(88, 6, 54, NULL, NULL),
(89, 4, 55, NULL, NULL),
(90, 6, 55, NULL, NULL),
(91, 4, 56, NULL, NULL),
(92, 6, 56, NULL, NULL),
(93, 17, 57, NULL, NULL),
(94, 6, 58, NULL, NULL),
(95, 6, 59, NULL, NULL),
(96, 4, 60, NULL, NULL),
(97, 6, 60, NULL, NULL),
(98, 4, 62, NULL, NULL),
(99, 6, 62, NULL, NULL),
(100, 4, 63, NULL, NULL),
(101, 6, 63, NULL, NULL),
(102, 6, 64, NULL, NULL),
(103, 18, 64, NULL, NULL),
(104, 4, 65, NULL, NULL),
(105, 6, 65, NULL, NULL),
(106, 4, 66, NULL, NULL),
(107, 6, 66, NULL, NULL),
(108, 4, 67, NULL, NULL),
(109, 6, 67, NULL, NULL),
(110, 4, 68, NULL, NULL),
(111, 6, 68, NULL, NULL),
(112, 4, 69, NULL, NULL),
(113, 6, 69, NULL, NULL),
(114, 4, 70, NULL, NULL),
(115, 6, 70, NULL, NULL),
(116, 6, 71, NULL, NULL),
(117, 18, 71, NULL, NULL),
(118, 4, 72, NULL, NULL),
(119, 6, 72, NULL, NULL),
(120, 4, 73, NULL, NULL),
(121, 6, 73, NULL, NULL),
(122, 6, 74, NULL, NULL),
(123, 9, 74, NULL, NULL),
(124, 15, 75, NULL, NULL),
(125, 3, 76, NULL, NULL),
(126, 17, 76, NULL, NULL),
(127, 18, 77, NULL, NULL),
(128, 15, 78, NULL, NULL),
(129, 18, 78, NULL, NULL),
(130, 15, 79, NULL, NULL),
(131, 18, 80, NULL, NULL),
(132, 18, 81, NULL, NULL),
(133, 15, 82, NULL, NULL),
(134, 17, 82, NULL, NULL),
(135, 6, 83, NULL, NULL),
(136, 18, 83, NULL, NULL),
(137, 15, 84, NULL, NULL),
(138, 17, 84, NULL, NULL),
(139, 4, 85, NULL, NULL),
(140, 6, 85, NULL, NULL),
(141, 17, 86, NULL, NULL),
(142, 4, 87, NULL, NULL),
(143, 6, 87, NULL, NULL),
(144, 17, 88, NULL, NULL),
(145, 6, 89, NULL, NULL),
(146, 18, 89, NULL, NULL),
(147, 4, 90, NULL, NULL),
(148, 6, 90, NULL, NULL),
(149, 4, 91, NULL, NULL),
(150, 6, 91, NULL, NULL),
(151, 4, 92, NULL, NULL),
(152, 6, 92, NULL, NULL),
(155, 4, 94, NULL, NULL),
(156, 6, 94, NULL, NULL),
(157, 6, 95, NULL, NULL),
(158, 18, 95, NULL, NULL),
(159, 17, 96, NULL, NULL),
(160, 8, 97, NULL, NULL),
(161, 15, 97, NULL, NULL),
(162, 3, 98, NULL, NULL),
(163, 15, 98, NULL, NULL),
(172, 6, 103, NULL, NULL),
(173, 18, 103, NULL, NULL),
(174, 6, 104, NULL, NULL),
(175, 18, 104, NULL, NULL),
(176, 3, 105, NULL, NULL),
(177, 15, 105, NULL, NULL),
(178, 17, 106, NULL, NULL),
(179, 6, 107, NULL, NULL),
(180, 18, 107, NULL, NULL),
(181, 4, 108, NULL, NULL),
(182, 6, 108, NULL, NULL),
(185, 4, 110, NULL, NULL),
(186, 6, 110, NULL, NULL),
(187, 4, 111, NULL, NULL),
(188, 6, 111, NULL, NULL),
(189, 6, 52, NULL, NULL),
(190, 6, 112, NULL, NULL),
(191, 18, 112, NULL, NULL),
(192, 17, 22, NULL, NULL),
(193, 18, 31, NULL, NULL),
(194, 6, 113, NULL, NULL),
(195, 18, 113, NULL, NULL),
(196, 3, 114, NULL, NULL),
(197, 6, 114, NULL, NULL),
(198, 6, 115, NULL, NULL),
(199, 15, 115, NULL, NULL),
(200, 18, 115, NULL, NULL),
(201, 15, 116, NULL, NULL),
(202, 6, 117, NULL, NULL),
(203, 15, 117, NULL, NULL),
(214, 3, 120, NULL, NULL),
(215, 6, 120, NULL, NULL),
(217, 15, 120, NULL, NULL),
(218, 18, 120, NULL, NULL),
(219, 6, 121, NULL, NULL),
(220, 15, 121, NULL, NULL),
(221, 18, 121, NULL, NULL),
(222, 3, 122, NULL, NULL),
(223, 6, 122, NULL, NULL),
(224, 8, 122, NULL, NULL),
(225, 15, 122, NULL, NULL),
(226, 18, 122, NULL, NULL),
(227, 3, 123, NULL, NULL),
(228, 6, 123, NULL, NULL),
(229, 15, 123, NULL, NULL),
(230, 18, 123, NULL, NULL),
(231, 6, 124, NULL, NULL),
(232, 9, 124, NULL, NULL),
(233, 18, 124, NULL, NULL),
(234, 3, 124, NULL, NULL),
(235, 15, 124, NULL, NULL),
(236, 6, 125, NULL, NULL),
(237, 9, 125, NULL, NULL),
(238, 15, 125, NULL, NULL),
(239, 18, 125, NULL, NULL),
(240, 3, 126, NULL, NULL),
(241, 6, 126, NULL, NULL),
(242, 10, 126, NULL, NULL),
(243, 15, 126, NULL, NULL),
(244, 18, 126, NULL, NULL),
(245, 3, 127, NULL, NULL),
(246, 10, 127, NULL, NULL),
(247, 15, 127, NULL, NULL),
(248, 19, 127, NULL, NULL),
(249, 19, 126, NULL, NULL),
(250, 3, 128, NULL, NULL),
(251, 6, 128, NULL, NULL),
(252, 8, 128, NULL, NULL),
(253, 15, 128, NULL, NULL),
(254, 16, 128, NULL, NULL),
(255, 18, 128, NULL, NULL);

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

--
-- Table structure for table `important_contacts`
--

CREATE TABLE `important_contacts` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `website` varchar(255) DEFAULT NULL,
  `sector` varchar(30) NOT NULL,
  `email` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `important_contacts`
--

INSERT INTO `important_contacts` (`id`, `name`, `address`, `phone`, `website`, `sector`, `email`) VALUES
(1, 'Teku Hospital (Shukraraaj Tropical &amp; Infectious Disease Hospital)', 'Kathmandu, Nepal', '014253395,4253396,4268960', 'http://www.stidh.gov.np/', 'psychology', 'info@istidh.org'),
(3, 'Patan Hospital', 'Lalitpur, Nepal', '01-5522295', 'http://www.pahs.edu.np/', 'psychology', 'info@patanhospital.org.np'),
(4, 'Nepal Police: WCSD', 'Naxal, Kathmandu', '014414745, 014411210', 'https://cid.nepalpolice.gov.np/ind ex.php/cid-wings/women- children-service-directorate', 'police', 'police@police.com');

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

--
-- Table structure for table `resources`
--

CREATE TABLE `resources` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `image` varchar(255) NOT NULL,
  `file` varchar(255) NOT NULL,
  `date_time` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `resources`
--

INSERT INTO `resources` (`id`, `name`, `image`, `file`, `date_time`) VALUES
(10, 'Covid Data for research', 'Covid Data for research.jpg', 'Covid Data for research.pdf', '2020-06-01 12:37:14');

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

--
-- Table structure for table `tags`
--

CREATE TABLE `tags` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tags`
--

INSERT INTO `tags` (`id`, `name`, `code`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Human Trafficking', 'Human Trafficking', 1, NULL, NULL),
(2, 'LGBT+ Rights', 'LGBT+ Rights', 1, NULL, NULL),
(3, 'GBV', 'GBV/WHRD issues', 1, NULL, NULL),
(4, 'Elections', 'Election-related', 1, NULL, NULL),
(5, 'Federal Restructuring', 'CA or Local and Federal Restructuring-Related', 1, NULL, NULL),
(6, 'Political', 'Political/Governance/Economic', 1, NULL, NULL),
(7, 'Labor Rights', 'Labor Rights', 1, NULL, NULL),
(8, 'Dalit', 'Dalit Issues', 1, NULL, NULL),
(9, 'Transitional Justice / Conflict Victims', 'Transitional Justice', 1, NULL, NULL),
(10, 'Children’s Rights', 'Children’s Rights', 1, NULL, NULL),
(11, 'Senior Citizens’ Rights', 'Senior Citizens’ Rights', 1, NULL, NULL),
(12, 'PwD Rights', 'People with Disabilities’ Rights', 1, NULL, NULL),
(13, 'Citizenship Related', 'Citizenship Related', 1, NULL, NULL),
(14, 'HRD Issues', 'HRD Issues', 1, NULL, NULL),
(15, 'Human Rights', 'Human Rights', 1, NULL, NULL),
(16, 'Interpersonal Violence', 'Interpersonal/Mob Violence', 1, NULL, NULL),
(17, 'About NepalMonitor', 'About NepalMonitor', 1, NULL, NULL),
(18, 'Governance', 'Governance', 1, '2018-11-15 11:58:08', '2018-11-15 11:58:08'),
(19, 'Covid-19', '19', 1, '2020-04-30 14:44:39', '2020-04-30 14:44:39');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `analysis_tags`
--
ALTER TABLE `analysis_tags`
  ADD PRIMARY KEY (`id`),
  ADD KEY `analysis_tags_tag_id_foreign` (`tag_id`),
  ADD KEY `analysis_tags_analysis_id_foreign` (`analysis_id`);

--
-- Indexes for table `important_contacts`
--
ALTER TABLE `important_contacts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `resources`
--
ALTER TABLE `resources`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `tags`
--
ALTER TABLE `tags`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `analysis_tags`
--
ALTER TABLE `analysis_tags`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=256;

--
-- AUTO_INCREMENT for table `important_contacts`
--
ALTER TABLE `important_contacts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `resources`
--
ALTER TABLE `resources`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `tags`
--
ALTER TABLE `tags`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
