-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Mar 10, 2026 at 12:56 PM
-- Server version: 8.0.45
-- PHP Version: 8.4.18

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `gdhhsxmy_mawa`
--

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

--
-- Table structure for table `applications`
--

CREATE TABLE `applications` (
  `id` int NOT NULL,
  `fullname` varchar(150) COLLATE utf8mb3_unicode_ci NOT NULL,
  `parentname` varchar(150) COLLATE utf8mb3_unicode_ci NOT NULL,
  `address` varchar(300) COLLATE utf8mb3_unicode_ci NOT NULL,
  `age` int NOT NULL,
  `gender` enum('Male','Female') COLLATE utf8mb3_unicode_ci NOT NULL,
  `district` int NOT NULL DEFAULT '0',
  `taluk` int NOT NULL DEFAULT '0',
  `localbody` varchar(200) COLLATE utf8mb3_unicode_ci NOT NULL,
  `contact` varchar(15) COLLATE utf8mb3_unicode_ci NOT NULL,
  `othercontact` varchar(15) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `whatsapp` varchar(15) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email` varchar(150) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `food_candidate` enum('Veg','Non-Veg','No Need') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `food_parent` enum('Veg','Non-Veg','No Need') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `category` enum('LP','UP','HS','HSS','COLLEGE','Public') COLLATE utf8mb3_unicode_ci NOT NULL,
  `agegroup` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'NA',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `application_items`
--

CREATE TABLE `application_items` (
  `id` int NOT NULL,
  `application_id` int NOT NULL,
  `item` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `districts`
--

CREATE TABLE `districts` (
  `district_id` int NOT NULL,
  `district_name` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `districts`
--

INSERT INTO `districts` (`district_id`, `district_name`) VALUES
(4, 'Alappuzha'),
(7, 'Ernakulam'),
(6, 'Idukki'),
(13, 'Kannur'),
(14, 'Kasaragod'),
(2, 'Kollam'),
(5, 'Kottayam'),
(11, 'Kozhikode'),
(10, 'Malappuram'),
(9, 'Palakkad'),
(3, 'Pathanamthitta'),
(1, 'Thiruvananthapuram'),
(8, 'Thrissur'),
(12, 'Wayanad');

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

--
-- Table structure for table `items`
--

CREATE TABLE `items` (
  `id` int NOT NULL,
  `item_name` varchar(200) COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `items`
--

INSERT INTO `items` (`id`, `item_name`) VALUES
(1, 'Bharatha Natyam'),
(2, 'Oppana (7 Nos)'),
(3, 'Cinematic Dance (7 Nos)'),
(4, 'Mono Act'),
(5, 'Pencil Drawing'),
(6, 'Colour Drawing');

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

--
-- Table structure for table `taluks`
--

CREATE TABLE `taluks` (
  `taluk_id` int NOT NULL,
  `taluk_name` varchar(150) COLLATE utf8mb3_unicode_ci NOT NULL,
  `district_id` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `taluks`
--

INSERT INTO `taluks` (`taluk_id`, `taluk_name`, `district_id`) VALUES
(1, 'Neyyattinkara', 1),
(2, 'Kattakkada', 1),
(3, 'Nedumangad', 1),
(4, 'Thiruvananthapuram', 1),
(5, 'Chirayinkeezhu(HO: Attingal)', 1),
(6, 'Kollam', 2),
(7, 'Kunnathoor', 2),
(8, 'Karunagappally', 2),
(9, 'Kottarakkara', 2),
(10, 'Punalur', 2),
(11, 'Pathanapuram', 2),
(12, 'Sasthamkotta', 2),
(13, 'Adoor', 3),
(14, 'Konni', 3),
(15, 'Kozhencherry', 3),
(16, 'Ranni', 3),
(17, 'Mallappally', 3),
(18, 'Thiruvalla', 3),
(19, 'Ambalappuzha', 4),
(20, 'Cherthala', 4),
(21, 'Karthikappally', 4),
(22, 'Chengannur', 4),
(23, 'Mavelikkara', 4),
(24, 'Kuttanad', 4),
(25, 'Alappuzha', 4),
(26, 'Kottayam', 5),
(27, 'Vaikom', 5),
(28, 'Meenachil', 5),
(29, 'Changanassery', 5),
(30, 'Idukki', 6),
(31, 'Thodupuzha', 6),
(32, 'Devikulam', 6),
(33, 'Udumbanchola', 6),
(34, 'Peerumade', 6),
(35, 'Kochi', 7),
(36, 'Kanayannur', 7),
(37, 'Aluva', 7),
(38, 'Kunnathunad', 7),
(39, 'Paravur', 7),
(40, 'Muvattupuzha', 7),
(41, 'Kothamangalam', 7),
(42, 'Thrissur', 8),
(43, 'Chavakkad', 8),
(44, 'Kodungallur', 8),
(45, 'Mukundapuram (Irinjalakuda)', 8),
(46, 'Kunnamkulam', 8),
(47, 'Thalapilly', 8),
(48, 'Chalakudy', 8),
(49, 'Palakkad', 9),
(50, 'Mannarkkad', 9),
(51, 'Ottappalam', 9),
(52, 'Chittur', 9),
(53, 'Alathur', 9),
(54, 'Pattambi', 9),
(55, 'Ernad (Manjeri)', 10),
(56, 'Perinthalmanna', 10),
(57, 'Nilambur', 10),
(58, 'Kondotty', 10),
(59, 'Ponnani', 10),
(60, 'Tirur', 10),
(61, 'Tirurangadi', 10),
(62, 'Kozhikode', 11),
(63, 'Vadakara', 11),
(64, 'Quilandy (Koyilandy)', 11),
(65, 'Thamarassery', 11),
(66, 'Mananthavady', 12),
(67, 'Sulthan Bathery', 12),
(68, 'Vythiri (Kalpetta)', 12),
(69, 'Kannur', 13),
(70, 'Thalassery', 13),
(71, 'Iritty', 13),
(72, 'Taliparamba', 13),
(73, 'Payyannur', 13),
(74, 'Kasaragod', 14),
(75, 'Hosdurg (Kanhangad)', 14),
(76, 'Vellarikundu', 14),
(77, 'Manjeshwaram', 14);

--
-- Indexes for dumped tables
--

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

--
-- Indexes for table `application_items`
--
ALTER TABLE `application_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `application_id` (`application_id`);

--
-- Indexes for table `districts`
--
ALTER TABLE `districts`
  ADD PRIMARY KEY (`district_id`),
  ADD UNIQUE KEY `district_name` (`district_name`);

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

--
-- Indexes for table `taluks`
--
ALTER TABLE `taluks`
  ADD PRIMARY KEY (`taluk_id`),
  ADD KEY `district_id` (`district_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `applications`
--
ALTER TABLE `applications`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `application_items`
--
ALTER TABLE `application_items`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `districts`
--
ALTER TABLE `districts`
  MODIFY `district_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `taluks`
--
ALTER TABLE `taluks`
  MODIFY `taluk_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=78;
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 */;
