-- 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;

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

--
-- 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` varchar(100) DEFAULT NULL,
  `is_proceed` int(11) NOT NULL,
  `address` varchar(200) NOT NULL,
  `police_station` int(11) NOT NULL,
  `lando_done` int(11) NOT NULL,
  `traffic_done` int(11) NOT NULL,
  `IS_done` int(11) NOT NULL,
  `ccp_done` int(11) NOT NULL,
  `is_memo_created` int(11) NOT NULL,
  `doc_verified` int(11) NOT NULL,
  `is_report_created` int(11) NOT NULL,
  `proceedings_done` int(11) NOT NULL,
  `is_query` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- 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;

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

--
-- Table structure for table `licence_reverse_remarks`
--

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

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

--
-- 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` longtext 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` varchar(50) NOT NULL,
  `license_details_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- 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` varchar(50) DEFAULT NULL,
  `time` varchar(50) DEFAULT NULL,
  `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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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_reverse_remarks`
--
ALTER TABLE `licence_reverse_remarks`
  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 for table `licence_details`
--
ALTER TABLE `licence_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

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

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

--
-- 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 for table `license_report`
--
ALTER TABLE `license_report`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

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

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

--
-- 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 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 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 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;

