-- 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 `department_report`
--

CREATE TABLE `department_report` (
  `id` int(11) NOT NULL,
  `role` int(11) NOT NULL,
  `user` int(11) NOT NULL,
  `IO` varchar(100) NOT NULL,
  `created_by` varchar(100) NOT NULL,
  `field_visited_by` varchar(100) NOT NULL,
  `date` date NOT NULL,
  `time` time NOT NULL,
  `doc` varchar(100) NOT NULL,
  `recommended` int(11) NOT NULL,
  `license_details_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- 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, 'asst2', 2, 1),
(2, 1, 'asst1', 2, 1),
(3, 1, 'test', 2, 1),
(4, 2, 'test remark', 4, 3);

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

--
-- 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,
  `sao_update_from_other_department` int(11) NOT NULL,
  `a` 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 NOT NULL DEFAULT current_timestamp(),
  `is_proceed` int(11) NOT NULL,
  `address` varchar(200) NOT NULL,
  `police_station` int(11) NOT 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`, `sao_update_from_other_department`, `a`, `status`, `user_id`, `licence_id`, `zone_id`, `is_completed`, `type`, `reference_number`, `created_at`, `is_proceed`, `address`, `police_station`) VALUES
(1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 2, '1710391940945447369', '2024-03-14', 1, 'Aravind,chennai -118', 3),
(2, 3, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 2, '1710428874426249099', '2024-03-14', 1, 'test ,vellore', 4);

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

--
-- 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, 1, 'query', '1710426515_List_of_Police_Station_GCP-.pdf', 0, 1, 2, '2'),
(2, 2, 'tets query', '1710434103_List_of_Police_Station_GCP-.pdf', 0, 3, 4, '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 `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,
  `is_finalized` int(11) NOT NULL,
  `our_ref_no` varchar(100) NOT NULL,
  `to_officer` varchar(50) NOT NULL,
  `copy_to` varchar(50) NOT 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`, `is_finalized`, `our_ref_no`, `to_officer`, `copy_to`) VALUES
(1, 1, 2, 1, 0, ' ref1289    ', ' sup 89    ', ' sao 89    ');

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

--
-- 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, 'cmt1289'),
(3, 1, 'addcmd4'),
(7, 2, 'cmt1289');

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

--
-- 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, 'Proceding', 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);

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

--
-- 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, 1, 3, 0, 3, 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
) 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`) VALUES
(1, 1, '1,2,6', 1, 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, 'Proceding', 1, 0);

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

--
-- 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, 'Aravindsamy', 'parent', 'venkatesh', 'male', 1, 1, 1, '20/03/2024', 'as@gmail.com', 'CLXPB1960K', 2147483647, '1710391905_bike.jpg', 0, '', '', 0, 0, 0, '1 ', 'others', 'license', 'ffdfd');

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

--
-- 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,
  `name` varchar(100) DEFAULT NULL,
  `license_details_id` int(11) NOT NULL,
  `address` varchar(500) NOT NULL,
  `validity` varchar(50) DEFAULT NULL,
  `renewal_request` varchar(50) DEFAULT 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,
  `last_renewal_roceedings` varchar(150) NOT NULL,
  `fee_details` varchar(150) NOT NULL,
  `check_name_address` varchar(11) NOT NULL,
  `check_last_renewal` varchar(11) NOT NULL,
  `check_fee` varchar(11) NOT NULL,
  `check_structural` varchar(11) NOT NULL,
  `check_film_division` varchar(11) NOT NULL,
  `check_electrical` varchar(11) NOT NULL,
  `check_property` varchar(11) NOT NULL,
  `check_entertainment` varchar(11) NOT NULL,
  `check_fire` varchar(11) NOT NULL,
  `check_affidavit` varchar(11) NOT NULL,
  `check_insurance_and_policy` varchar(11) NOT NULL,
  `check_lease_or_rental` varchar(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `theatre_information` (`id`, `name`, `license_details_id`, `address`, `validity`, `renewal_request`, `license_number`, `police_station`, `date_of_issue`, `last_renewal_date`, `last_renewal_roceedings`, `fee_details`, `check_name_address`, `check_last_renewal`, `check_fee`, `check_structural`, `check_film_division`, `check_electrical`, `check_property`, `check_entertainment`, `check_fire`, `check_affidavit`, `check_insurance_and_policy`, `check_lease_or_rental`) VALUES
(1, NULL, 1, 'Aravind,chennai -118', NULL, NULL, 'licece1234', '1 ', '11/03/2024', '11/03/2024', '', '', '', 'on', 'on', '', '', '', '', '', '', '', '', ''),
(2, NULL, 2, 'test ,vellore', NULL, NULL, 'test1234', '1 ', '12/03/2024', '04/03/2024', '', '', 'on', 'on', 'on', 'on', 'on', 'on', 'on', 'on', 'on', 'on', 'on', '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);

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

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

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

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

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

--
-- 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 `memo`
--
ALTER TABLE `memo`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

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

--
-- 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 `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=3;

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

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

