-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `gcp_new`
--

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

--
-- Table structure for table `department_document`
--

CREATE TABLE `department_document` (
  `id` int(11) NOT NULL,
  `doc_name` int(11) NOT NULL,
  `role` int(11) NOT NULL,
  `user` int(11) NOT NULL,
  `license_details_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `department_range`
--

CREATE TABLE `department_range` (
  `id` int(11) NOT NULL,
  `zone_id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `department_range`
--

INSERT INTO `department_range` (`id`, `zone_id`, `name`, `status`) VALUES
(1, 1, 'Flower Bazaar Range', 1),
(2, 1, 'Pulianthope', 1);

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

--
-- Table structure for table `licence_comments`
--

CREATE TABLE `licence_comments` (
  `id` int(11) NOT NULL,
  `license_details_id` int(11) NOT NULL,
  `comments` varchar(1000) NOT NULL,
  `user_id` int(11) NOT NULL,
  `designation_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `licence_comments`
--

INSERT INTO `licence_comments` (`id`, `license_details_id`, `comments`, `user_id`, `designation_id`) VALUES
(1, 1, 'asst remarks', 2, 1),
(2, 1, 'li sup', 3, 2),
(3, 1, 'sao', 4, 3),
(4, 1, 'jc', 14, 4),
(5, 1, 'jc sup', 15, 5),
(6, 1, 'jc SAO', 16, 6),
(7, 1, 'Remarks', 17, 7),
(8, 1, 'dc re', 18, 8),
(9, 1, 'gg', 20, 10),
(10, 4, 'li asst', 2, 1),
(11, 4, 'li sup', 3, 2),
(12, 4, 'li sao', 4, 3),
(13, 4, 'js assst', 14, 4),
(14, 4, 'jc sup', 15, 5),
(15, 4, 'js sao', 16, 6),
(16, 4, 'jc remarks', 17, 7),
(17, 4, 'test', 18, 8),
(18, 4, 'gfgf', 19, 9),
(19, 4, 'test', 20, 10),
(20, 4, 'test', 22, 12),
(21, 4, 'gfg', 23, 13);

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

--
-- Table structure for table `licence_details`
--

CREATE TABLE `licence_details` (
  `id` int(11) NOT NULL,
  `license_department` int(11) NOT NULL,
  `lando` int(11) NOT NULL,
  `traffic` int(11) NOT NULL,
  `IS_department` int(11) NOT NULL,
  `ccp_department` int(11) NOT NULL,
  `proceeding` int(11) NOT NULL,
  `status` int(11) NOT NULL COMMENT 'in progress,rejected,clarification..',
  `user_id` int(11) NOT NULL,
  `licence_id` int(11) NOT NULL,
  `zone_id` int(11) NOT NULL,
  `is_completed` int(11) NOT NULL,
  `type` int(11) NOT NULL,
  `reference_number` varchar(100) NOT NULL,
  `created_at` date DEFAULT current_timestamp(),
  `is_proceed` int(11) NOT NULL,
  `address` varchar(200) NOT NULL,
  `police_station` int(11) NOT NULL,
  `lando_done` int(11) DEFAULT NULL,
  `traffic_done` int(11) DEFAULT NULL,
  `IS_done` int(11) DEFAULT NULL,
  `ccp_done` int(11) DEFAULT NULL,
  `is_memo_created` int(11) DEFAULT NULL,
  `doc_verified` int(11) DEFAULT NULL,
  `is_report_created` int(11) DEFAULT NULL,
  `proceedings_done` int(11) DEFAULT NULL,
  `is_query` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `licence_details`
--

INSERT INTO `licence_details` (`id`, `license_department`, `lando`, `traffic`, `IS_department`, `ccp_department`, `proceeding`, `status`, `user_id`, `licence_id`, `zone_id`, `is_completed`, `type`, `reference_number`, `created_at`, `is_proceed`, `address`, `police_station`, `lando_done`, `traffic_done`, `IS_done`, `ccp_done`, `is_memo_created`, `doc_verified`, `is_report_created`, `proceedings_done`, `is_query`) VALUES
(1, 3, 11, 0, 0, 0, 0, 1, 1, 1, 1, 0, 2, '17116925611836253011', '2024-03-29', 1, 'kasi,chennai-81', 1, NULL, NULL, NULL, NULL, 6, 1, 1, 0, 0),
(2, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 2, '1712711533304536830', '2024-04-10', 0, 'fdfdf', 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0),
(3, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 2, '1712711922857995633', '2024-04-10', 1, 'fdfdf', 1, NULL, NULL, NULL, NULL, NULL, 1, 0, 0, 0),
(4, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 2, '17127126621037449589', '2024-04-10', 1, 'dfd', 1, 1, NULL, NULL, NULL, 6, 1, 1, 1, 0);

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

--
-- Table structure for table `licence_query`
--

CREATE TABLE `licence_query` (
  `id` int(11) NOT NULL,
  `license_details_id` int(11) NOT NULL,
  `query` varchar(500) NOT NULL,
  `doc` varchar(100) NOT NULL,
  `is_resolved` int(11) NOT NULL,
  `designation_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `cc_to` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `licence_query`
--

INSERT INTO `licence_query` (`id`, `license_details_id`, `query`, `doc`, `is_resolved`, `designation_id`, `user_id`, `cc_to`) VALUES
(1, 3, 'eeerer', '1712752777_512.png', 1, 1, 2, '1');

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

--
-- Table structure for table `licence_type`
--

CREATE TABLE `licence_type` (
  `id` int(11) NOT NULL,
  `type` varchar(50) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `license`
--

CREATE TABLE `license` (
  `id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `license` varchar(100) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `license`
--

INSERT INTO `license` (`id`, `category_id`, `license`, `status`) VALUES
(1, 1, 'C-Form - Theater', 1);

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

--
-- Table structure for table `license_notes`
--

CREATE TABLE `license_notes` (
  `id` int(11) NOT NULL,
  `notes` varchar(5000) DEFAULT NULL,
  `department_id` int(11) NOT NULL,
  `designation_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `ref_no` varchar(50) NOT NULL,
  `created_at` date NOT NULL DEFAULT current_timestamp(),
  `license_details_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `license_notes`
--

INSERT INTO `license_notes` (`id`, `notes`, `department_id`, `designation_id`, `user_id`, `ref_no`, `created_at`, `license_details_id`) VALUES
(1, 'asst notes', 1, 1, 2, '17116932952052084924', '2024-03-29', 1),
(2, 'li sup', 1, 2, 3, '17116935751746944071', '2024-03-29', 1),
(3, 'li sao', 1, 3, 4, '1711693703131231516', '2024-03-29', 1),
(4, 'jc asst', 2, 4, 14, '17116946611727350179', '2024-03-29', 1),
(5, 'jc sup', 2, 5, 15, '17116950871081969331', '2024-03-29', 1),
(6, 'JC SAO', 2, 6, 16, '17116951641783706504', '2024-03-29', 1),
(7, '', 1, 3, 4, '17120686161638010050', '2024-04-02', 1),
(8, '', 1, 3, 4, '1712068895229206731', '2024-04-02', 1),
(9, '', 1, 3, 4, '1712068977624376634', '2024-04-02', 1),
(10, '', 1, 3, 4, '1712069274747516571', '2024-04-02', 1),
(11, '', 1, 3, 4, '17120693721767368317', '2024-04-02', 1),
(12, '<p>dsds</p>', 1, 3, 4, '1712069567681842680', '2024-04-02', 1),
(13, '<p>Aravind now</p>', 1, 3, 4, '1712069597800261666', '2024-04-02', 1),
(14, '<p>⁠⁠⁠⁠⁠⁠⁠<br data-cke-filler=\"true\"></p>', 1, 3, 4, '17121333721672299689', '2024-04-03', 1),
(15, NULL, 1, 3, 4, '17121547581328932344', '2024-04-03', 1),
(16, '[\"<p>li asst12<\\/p>\\r\\n\\r\\n<p>&nbsp;<\\/p>\\r\\n\"]', 1, 1, 2, '17127288931183578178', '2024-04-10', 4),
(17, '[\"<p>li sup<\\/p>\\r\\n\\r\\n<p>&nbsp;<\\/p>\\r\\n\"]', 1, 2, 3, '1712729064738133267', '2024-04-10', 4),
(18, '[\"<table border=\\\"1\\\" cellpadding=\\\"1\\\" cellspacing=\\\"1\\\" style=\\\"width:500px\\\">\\r\\n\\t<tbody>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<td>test sao<\\/td>\\r\\n\\t\\t\\t<td>1<\\/td>\\r\\n\\t\\t<\\/tr>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<td>test2<\\/td>\\r\\n\\t\\t\\t<td>2<\\/td>\\r\\n\\t\\t<\\/tr>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<td>test3<\\/td>\\r\\n\\t\\t\\t<td>3<\\/td>\\r\\n\\t\\t<\\/tr>\\r\\n\\t<\\/tbody>\\r\\n<\\/table>\\r\\n\\r\\n<p>li sup<\\/p>\\r\\n\\r\\n<p>&nbsp;<\\/p>\\r\\n\"]', 1, 3, 4, '171272931224323230', '2024-04-10', 4),
(19, '[\"<p>jc asst<\\/p>\\r\\n\"]', 2, 4, 14, '1712737131809899625', '2024-04-10', 4),
(20, '[\"<p>jc asst<\\/p>\\r\\n\\r\\n<table border=\\\"1\\\" cellpadding=\\\"1\\\" cellspacing=\\\"1\\\" style=\\\"width:500px\\\">\\r\\n\\t<tbody>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<td>test sup<\\/td>\\r\\n\\t\\t\\t<td>123<\\/td>\\r\\n\\t\\t<\\/tr>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<td>test1<\\/td>\\r\\n\\t\\t\\t<td>2<\\/td>\\r\\n\\t\\t<\\/tr>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<td>test 3<\\/td>\\r\\n\\t\\t\\t<td>3<\\/td>\\r\\n\\t\\t<\\/tr>\\r\\n\\t<\\/tbody>\\r\\n<\\/table>\\r\\n\\r\\n<p>&nbsp;<\\/p>\\r\\n\"]', 2, 5, 15, '17127374461561136144', '2024-04-10', 4),
(21, '[\"<p>jc asst<\\/p>\\r\\n\\r\\n<table border=\\\"1\\\" cellpadding=\\\"1\\\" cellspacing=\\\"1\\\" style=\\\"width:500px\\\">\\r\\n\\t<tbody>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<td>test sao<\\/td>\\r\\n\\t\\t\\t<td>123<\\/td>\\r\\n\\t\\t<\\/tr>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<td>test1<\\/td>\\r\\n\\t\\t\\t<td>2<\\/td>\\r\\n\\t\\t<\\/tr>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<td>test 3<\\/td>\\r\\n\\t\\t\\t<td>3<\\/td>\\r\\n\\t\\t<\\/tr>\\r\\n\\t<\\/tbody>\\r\\n<\\/table>\\r\\n\\r\\n<p>&nbsp;<\\/p>\\r\\n\"]', 2, 6, 16, '1712737527540507477', '2024-04-10', 4);

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

--
-- Table structure for table `license_report`
--

CREATE TABLE `license_report` (
  `id` int(11) NOT NULL,
  `designation_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `I_O` varchar(100) DEFAULT NULL,
  `created_by` varchar(100) DEFAULT NULL,
  `field_visited_by` varchar(100) DEFAULT NULL,
  `date` date DEFAULT current_timestamp(),
  `time` time DEFAULT current_timestamp(),
  `doc` varchar(100) DEFAULT NULL,
  `recommended` int(11) DEFAULT NULL,
  `license_details_id` int(11) NOT NULL,
  `notes` longtext NOT NULL,
  `department_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `license_report`
--

INSERT INTO `license_report` (`id`, `designation_id`, `user_id`, `I_O`, `created_by`, `field_visited_by`, `date`, `time`, `doc`, `recommended`, `license_details_id`, `notes`, `department_id`) VALUES
(1, 10, 20, 'sho', 'SHO1', 'SHO2', '2024-03-29', '12:31:32', '1711695692_store_app_option.png', 1, 1, '', 0),
(2, 9, 19, 'ac', 'ac1', 'ac2', '2024-03-29', '12:32:43', '1711695763_store_app_item.png', 0, 1, '', 0),
(3, 8, 18, 'dc', 'dc', 'dc', '2024-03-29', '12:33:57', '1711695837_sore_app_home_page.png', 0, 1, '', 0),
(4, 4, 14, 'jc ass', 'jc1', 'jc2', '2024-03-29', '12:36:01', '1711695961_store_app_option.png', 0, 1, '', 0),
(5, 10, 20, 'io sho9', 'sho cre45', 'sho filed7', '2024-04-10', '14:04:18', '', 1, 1, '<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:500px\">\r\n	<tbody>\r\n		<tr>\r\n			<td>tet</td>\r\n			<td>sho</td>\r\n		</tr>\r\n	</tbody>\r\n</table>\r\n\r\n<p>&quot;</p>\r\n\r\n<p>tes</p>\r\n', 2),
(6, 9, 19, NULL, NULL, NULL, '2024-04-10', '14:27:42', '', NULL, 1, '<p>test</p>\r\n', 2),
(7, 8, 18, NULL, NULL, NULL, '2024-04-10', '14:30:29', '', NULL, 1, '<p>dc</p>\r\n', 2),
(8, 4, 14, NULL, NULL, NULL, '2024-04-10', '14:36:28', '', NULL, 4, '<p>jc asst report</p>\r\n', 2),
(9, 5, 15, NULL, NULL, NULL, '2024-04-10', '14:37:57', '', NULL, 4, '<p>jc sup report</p>\r\n', 2),
(10, 6, 16, NULL, NULL, NULL, '2024-04-10', '14:39:23', '', NULL, 4, '<p>jc sao report</p>\r\n', 2),
(11, 7, 17, NULL, NULL, NULL, '2024-04-10', '14:40:51', '', NULL, 4, '<p>jc jc report</p>\r\n', 2),
(12, 11, 21, NULL, NULL, NULL, '2024-04-10', '14:42:45', '', NULL, 4, '<p>test ad cop</p>\r\n', 2),
(13, 1, 2, NULL, NULL, NULL, '2024-04-10', '14:47:20', '', NULL, 4, '<p>li asst</p>\r\n', 1),
(14, 2, 3, NULL, NULL, NULL, '2024-04-10', '14:50:39', '', NULL, 4, '<p>li sup</p>\r\n', 1),
(15, 3, 4, NULL, NULL, NULL, '2024-04-10', '14:51:48', '', NULL, 4, '<p>li sao</p>\r\n', 1),
(16, 12, 22, NULL, NULL, NULL, '2024-04-10', '15:47:23', '', NULL, 4, '<p>fgfg</p>\r\n', 6),
(17, 13, 23, NULL, NULL, NULL, '2024-04-10', '16:02:36', '', NULL, 4, '<p>ttt</p>\r\n', 6);

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

--
-- Table structure for table `memo`
--

CREATE TABLE `memo` (
  `id` int(11) NOT NULL,
  `designation_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `license_details_id` int(11) NOT NULL,
  `our_ref_no` varchar(100) NOT NULL,
  `to_officer` varchar(50) NOT NULL,
  `copy_to` varchar(50) NOT NULL,
  `department_id` int(11) NOT NULL,
  `license_sho_approval` int(11) DEFAULT NULL,
  `jc_sho_approval` int(11) DEFAULT NULL,
  `jc_approval` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `memo`
--

INSERT INTO `memo` (`id`, `designation_id`, `user_id`, `license_details_id`, `our_ref_no`, `to_officer`, `copy_to`, `department_id`, `license_sho_approval`, `jc_sho_approval`, `jc_approval`) VALUES
(1, 1, 2, 1, ' ass_ref 1', ' ass to ', 'asst copy ', 1, NULL, NULL, NULL),
(2, 2, 3, 1, ' ass_sup1 ', ' ass to  ', 'asst copy  ', 1, NULL, NULL, NULL),
(3, 3, 4, 1, ' ass_sao ', ' ass to   ', 'asst copy   ', 1, 1, NULL, NULL),
(4, 4, 14, 1, ' jc asst', ' jc asst', 'jc asst', 2, NULL, NULL, NULL),
(5, 5, 15, 1, ' jc sup ', ' jc asst ', 'jc asst ', 2, NULL, NULL, NULL),
(6, 6, 16, 1, ' jc SAO  ', ' jc asst  ', 'jc asst  ', 2, NULL, 1, 1),
(7, 1, 2, 4, ' liasst', ' asst', ' sao', 1, NULL, NULL, NULL),
(8, 2, 3, 4, ' lisup', ' asst ', ' sao ', 1, NULL, NULL, NULL),
(9, 3, 4, 4, ' lissao', ' asst  ', ' sao  ', 1, 1, NULL, NULL),
(10, 4, 14, 4, ' jc asst', ' jc asst', ' jc asst', 2, NULL, NULL, NULL),
(11, 5, 15, 4, ' jc sup', ' jc asst ', ' jc asst ', 2, NULL, NULL, NULL),
(12, 6, 16, 4, ' jc sao', ' jc asst  ', ' jc asst  ', 2, NULL, 1, 1);

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

--
-- Table structure for table `memo_details`
--

CREATE TABLE `memo_details` (
  `id` int(11) NOT NULL,
  `memo_id` int(11) NOT NULL,
  `other_information` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `memo_details`
--

INSERT INTO `memo_details` (`id`, `memo_id`, `other_information`) VALUES
(2, 1, 'ass cmt'),
(3, 2, 'ass cmt'),
(4, 3, 'ass cmt'),
(5, 4, 'jc assst'),
(6, 5, 'jc assst'),
(7, 6, 'jc assst'),
(8, 10, 'jc asst extra'),
(9, 11, 'jc asst extra'),
(10, 12, 'jc asst extra');

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

--
-- Table structure for table `m_category`
--

CREATE TABLE `m_category` (
  `id` int(11) NOT NULL,
  `name` varchar(200) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `m_category`
--

INSERT INTO `m_category` (`id`, `name`, `status`) VALUES
(1, 'licence', 1),
(2, 'NOC', 1);

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

--
-- Table structure for table `m_city`
--

CREATE TABLE `m_city` (
  `id` int(11) NOT NULL,
  `state_id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `m_city`
--

INSERT INTO `m_city` (`id`, `state_id`, `name`, `status`) VALUES
(1, 1, 'Chennai', 1),
(2, 1, 'Vellore', 1),
(3, 1, 'Madurai', 1);

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

--
-- Table structure for table `m_country`
--

CREATE TABLE `m_country` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `m_country`
--

INSERT INTO `m_country` (`id`, `name`, `status`) VALUES
(1, 'India', 1),
(2, 'Australia', 1),
(3, 'England', 1),
(4, 'United Kingdom', 0),
(5, 'United Kingdom', 1);

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

--
-- Table structure for table `m_department`
--

CREATE TABLE `m_department` (
  `id` int(11) NOT NULL,
  `section_name` varchar(200) NOT NULL,
  `status` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `m_department`
--

INSERT INTO `m_department` (`id`, `section_name`, `status`, `created_at`) VALUES
(1, 'License', 1, '2024-03-13 05:35:17'),
(2, 'L&O', 1, '2024-03-13 05:37:47'),
(3, 'Traffic', 1, '2024-03-13 05:38:15'),
(4, 'IS', 1, '2024-03-13 05:38:33'),
(5, 'CCB', 1, '2024-03-13 05:38:41'),
(6, 'Proceeding', 1, '2024-03-13 05:39:28');

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

--
-- Table structure for table `m_designation`
--

CREATE TABLE `m_designation` (
  `id` int(11) NOT NULL,
  `department_id` int(11) NOT NULL,
  `designation` varchar(100) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `m_designation`
--

INSERT INTO `m_designation` (`id`, `department_id`, `designation`, `status`) VALUES
(1, 1, 'License Section Assistant', 1),
(2, 1, 'License Section Superintendent', 1),
(3, 1, 'License Section SAO', 1),
(4, 2, 'JCO Assistant', 1),
(5, 2, 'JCO Superintendent', 1),
(6, 2, 'JCO SAO', 1),
(7, 2, 'JC', 1),
(8, 2, 'DC', 1),
(9, 2, 'AC', 1),
(10, 2, 'SHO', 1),
(11, 2, 'AddlCoP', 1),
(12, 6, 'DC (Admin)', 1),
(13, 6, 'AddlCoP(Hq)', 1),
(14, 6, 'COP', 1);

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

--
-- Table structure for table `m_gcp_work_flow`
--

CREATE TABLE `m_gcp_work_flow` (
  `id` int(11) NOT NULL,
  `workflow` int(11) NOT NULL,
  `flag` int(11) NOT NULL,
  `next_level` int(11) NOT NULL,
  `designation_id` int(11) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `m_gcp_work_flow`
--

INSERT INTO `m_gcp_work_flow` (`id`, `workflow`, `flag`, `next_level`, `designation_id`, `status`) VALUES
(1, 1, 1, 2, 1, 1),
(2, 1, 2, 3, 2, 1),
(3, 1, 3, 0, 3, 1),
(4, 2, 1, 2, 4, 1),
(5, 2, 2, 3, 5, 1),
(6, 2, 3, 4, 6, 1),
(7, 2, 4, 5, 7, 1),
(8, 2, 5, 6, 8, 1),
(9, 2, 6, 7, 9, 1),
(10, 2, 7, 8, 10, 1),
(11, 2, 8, 9, 9, 1),
(12, 2, 9, 10, 8, 1),
(13, 2, 10, 11, 4, 1),
(14, 2, 11, 12, 5, 1),
(15, 2, 12, 13, 6, 1),
(16, 2, 13, 14, 7, 1),
(17, 2, 14, 0, 11, 1),
(18, 6, 1, 2, 12, 1),
(19, 6, 2, 3, 13, 1),
(20, 6, 3, 0, 14, 1);

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

--
-- Table structure for table `m_licence_workflow`
--

CREATE TABLE `m_licence_workflow` (
  `id` int(11) NOT NULL,
  `licence_id` int(11) NOT NULL,
  `workflow` varchar(50) NOT NULL COMMENT 'm_workflow tables id',
  `status` int(11) NOT NULL,
  `type` int(11) NOT NULL,
  `flow` varchar(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `m_licence_workflow`
--

INSERT INTO `m_licence_workflow` (`id`, `licence_id`, `workflow`, `status`, `type`, `flow`) VALUES
(1, 1, '1,2,6', 1, 2, '2,');

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

--
-- Table structure for table `m_state`
--

CREATE TABLE `m_state` (
  `id` int(11) NOT NULL,
  `country_id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `m_state`
--

INSERT INTO `m_state` (`id`, `country_id`, `name`, `status`) VALUES
(1, 1, 'Tamil nadu', 1),
(2, 1, 'Kerala', 1);

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

--
-- Table structure for table `m_workflow`
--

CREATE TABLE `m_workflow` (
  `id` int(11) NOT NULL,
  `workflow` varchar(100) NOT NULL,
  `status` int(11) NOT NULL,
  `simultaneously` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `m_workflow`
--

INSERT INTO `m_workflow` (`id`, `workflow`, `status`, `simultaneously`) VALUES
(1, 'License', 1, 0),
(2, 'L&O', 1, 1),
(3, 'Traffic', 1, 1),
(4, 'IS', 1, 1),
(5, 'CCB', 1, 1),
(6, 'Proceeding', 1, 0);

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

--
-- Table structure for table `officers_docs`
--

CREATE TABLE `officers_docs` (
  `id` int(11) NOT NULL,
  `doc` varchar(100) NOT NULL,
  `designation_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `license_details_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `officers_docs`
--

INSERT INTO `officers_docs` (`id`, `doc`, `designation_id`, `user_id`, `license_details_id`) VALUES
(1, '1711693274_new_imgae.png', 1, 2, 1),
(2, '1712728586_logo.png.jpeg', 1, 2, 4),
(3, '1712737117_js.jpg', 4, 14, 4);

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

--
-- Table structure for table `officer_theater_checklist`
--

CREATE TABLE `officer_theater_checklist` (
  `id` int(11) NOT NULL,
  `license_details_id` int(11) NOT NULL,
  `check_name_address` varchar(50) NOT NULL,
  `profile_check` varchar(50) NOT NULL,
  `check_fee` varchar(50) NOT NULL,
  `zone_id` int(11) NOT NULL,
  `designation_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `other_user_docs`
--

CREATE TABLE `other_user_docs` (
  `id` int(11) NOT NULL,
  `doc` varchar(150) NOT NULL,
  `theater_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `other_user_docs`
--

INSERT INTO `other_user_docs` (`id`, `doc`, `theater_id`) VALUES
(1, '1712712496_1024.png', 3),
(2, '1712712531_sore_app_home_page.png', 3),
(3, '1712712531_store_app_login_screenshot.png', 3),
(4, '1712712531_1024x500.png', 3),
(5, '1712712531_1024.png', 3),
(6, '1712712588_sore_app_home_page.png', 3),
(7, '1712712588_store_app_login_screenshot.png', 3),
(8, '1712712588_1024x500.png', 3),
(9, '1712712588_1024.png', 3),
(10, '1712712764_DSC_0026.png', 4),
(11, '1712712764_Aravind.jpg', 4),
(12, '1712712764_WhatsApp_Image_2024-03-19_at_3.31.24_PM.jpeg', 4),
(13, '1712712764_WhatsApp_Image_2024-03-19_at_3.06.00_PM.jpeg', 4);

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

--
-- Table structure for table `personal_information`
--

CREATE TABLE `personal_information` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `name` varchar(200) NOT NULL,
  `parent_or_spouse` varchar(100) NOT NULL,
  `parent_or_spouse_name` varchar(100) NOT NULL,
  `gender` varchar(50) NOT NULL,
  `birth_country_id` int(11) NOT NULL,
  `birth_state_id` int(11) NOT NULL,
  `birth_city_id` int(11) NOT NULL,
  `date_of_birth` varchar(50) NOT NULL,
  `email` varchar(100) NOT NULL,
  `pan` varchar(150) NOT NULL,
  `aadhaar` int(11) NOT NULL,
  `img` varchar(200) NOT NULL,
  `passport_number` int(11) NOT NULL,
  `passport_issue_date` varchar(50) NOT NULL,
  `passport_expire_date` varchar(50) NOT NULL,
  `passport_issue_state` int(11) NOT NULL,
  `passport_issue_country` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  `nearest_police_station` varchar(20) NOT NULL,
  `passport_or_other_id` varchar(100) NOT NULL,
  `other_id_type` varchar(50) NOT NULL,
  `other_id_details` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `personal_information`
--

INSERT INTO `personal_information` (`id`, `user_id`, `name`, `parent_or_spouse`, `parent_or_spouse_name`, `gender`, `birth_country_id`, `birth_state_id`, `birth_city_id`, `date_of_birth`, `email`, `pan`, `aadhaar`, `img`, `passport_number`, `passport_issue_date`, `passport_expire_date`, `passport_issue_state`, `passport_issue_country`, `status`, `nearest_police_station`, `passport_or_other_id`, `other_id_type`, `other_id_details`) VALUES
(1, 1, 'Aravind', 'parent', 'venkatesh', 'male', 1, 1, 1, '12/06/1992', 'as@gmail.com', 'CLXPB1960K', 2147483647, '1710760468_bike.jpg', 0, '', '', 0, 0, 0, '1 ', 'others', 'license', 'TN 5512345678');

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

--
-- Table structure for table `police_station`
--

CREATE TABLE `police_station` (
  `id` int(11) NOT NULL,
  `range_id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `police_station`
--

INSERT INTO `police_station` (`id`, `range_id`, `name`, `status`) VALUES
(1, 1, 'C1 Flower Bazaar', 1),
(2, 1, 'C2 Elephant Gate', 1),
(3, 2, 'B1 North Beach', 1),
(4, 2, 'B3 Fort ', 1);

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

--
-- Table structure for table `theatre_information`
--

CREATE TABLE `theatre_information` (
  `id` int(11) NOT NULL,
  `license_details_id` int(11) NOT NULL,
  `address` varchar(500) NOT NULL,
  `license_number` varchar(200) NOT NULL,
  `police_station` varchar(50) NOT NULL,
  `date_of_issue` varchar(50) DEFAULT NULL,
  `last_renewal_date` varchar(50) DEFAULT NULL,
  `renewal_fee` varchar(50) NOT NULL,
  `late_fee` varchar(50) NOT NULL,
  `total_fee` varchar(50) NOT NULL,
  `declaration` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `theatre_information`
--

INSERT INTO `theatre_information` (`id`, `license_details_id`, `address`, `license_number`, `police_station`, `date_of_issue`, `last_renewal_date`, `renewal_fee`, `late_fee`, `total_fee`, `declaration`) VALUES
(1, 1, 'kasi,chennai-8178', 'licencse1555', '2', '04/03/2024', '03/05/2024', '25000', '1500', '2500', ''),
(2, 2, 'fdfdf', 'test', '1 ', '15/04/2024', '12/06/2024', '', '', '', 'on'),
(3, 3, 'fdfdf', 'ssf test3', '1', '24/04/2024', '07/06/2024', '25009', '', '2500', 'on'),
(4, 4, 'dfd', 'fdf', '1 ', '18/04/2024', '16/05/2024', '2500', '1500', '3500', 'on');

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

--
-- Table structure for table `user_role_mapping`
--

CREATE TABLE `user_role_mapping` (
  `id` int(11) NOT NULL,
  `designation_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  `zone_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `user_role_mapping`
--

INSERT INTO `user_role_mapping` (`id`, `designation_id`, `user_id`, `status`, `zone_id`) VALUES
(1, 1, 2, 1, 1),
(2, 2, 3, 1, 1),
(5, 3, 4, 1, 1),
(6, 1, 5, 1, 2),
(7, 2, 8, 1, 2),
(8, 3, 13, 1, 2),
(9, 1, 6, 1, 3),
(10, 2, 7, 1, 3),
(11, 3, 12, 1, 3),
(12, 1, 7, 1, 4),
(13, 2, 10, 1, 4),
(14, 3, 11, 1, 4),
(15, 4, 14, 1, 1),
(16, 5, 15, 1, 1),
(17, 6, 16, 1, 1),
(18, 7, 17, 1, 1),
(19, 8, 18, 1, 1),
(20, 9, 19, 1, 1),
(21, 10, 20, 1, 1),
(22, 11, 21, 1, 1),
(23, 12, 22, 1, 1),
(24, 13, 23, 1, 1),
(25, 14, 24, 1, 1);

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

--
-- Table structure for table `user_type`
--

CREATE TABLE `user_type` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `user_type`
--

INSERT INTO `user_type` (`id`, `name`, `status`) VALUES
(1, 'TN Police Department', 1),
(2, 'Public', 1),
(3, 'Organisation', 1);

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

--
-- Table structure for table `zone`
--

CREATE TABLE `zone` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `zone`
--

INSERT INTO `zone` (`id`, `name`, `status`) VALUES
(1, 'NORTH', 1),
(2, 'WEST', 1),
(3, 'SOUTH', 1),
(4, 'EAST', 1);

--
-- Indexes for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

