-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Mar 12, 2026 at 06:30 PM
-- Server version: 8.0.33-cll-lve
-- PHP Version: 8.1.16

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: `diginspire_collegeadmin`
--

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

--
-- Table structure for table `about_us`
--

CREATE TABLE `about_us` (
  `id` int UNSIGNED NOT NULL,
  `main_about` text NOT NULL,
  `main_image` varchar(255) DEFAULT NULL,
  `welcome_message` text NOT NULL,
  `welcome_image` varchar(255) DEFAULT NULL,
  `principal_message` text NOT NULL,
  `principal_image` varchar(255) DEFAULT NULL,
  `chairman_message` text NOT NULL,
  `chairman_image` varchar(255) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `about_us`
--

INSERT INTO `about_us` (`id`, `main_about`, `main_image`, `welcome_message`, `welcome_image`, `principal_message`, `principal_image`, `chairman_message`, `chairman_image`, `updated_at`) VALUES
(1, '<p>asd</p><p>&nbsp;</p><p>&nbsp;</p>', '68d4dd553d961.png', '<p>asd</p><p>&nbsp;</p>', '68d4dd553db27.webp', '<p>asd</p><p>&nbsp;</p><p>&nbsp;</p>', '68d4dd553dbbe.jpeg', '<p>asd</p><p>&nbsp;</p>', '68d4dd553dc30.jpeg', '2025-09-25 08:36:38');

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

--
-- Table structure for table `admin`
--

CREATE TABLE `admin` (
  `al_id` int NOT NULL,
  `email` varchar(50) NOT NULL,
  `pass` varchar(50) NOT NULL,
  `name` varchar(50) DEFAULT 'Admin',
  `access` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `admin`
--

INSERT INTO `admin` (`al_id`, `email`, `pass`, `name`, `access`) VALUES
(2, 'admin@gmail.com', '123456', 'Admin', '[\"Dashboard\",\"Users\",\"Staff\",\"Transaction Logs\",\"Withdrawls\",\"Form Settings\",\"Form Entries\",\"KYC Management\",\"Support\"]');

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

--
-- Table structure for table `admission_enquiries`
--

CREATE TABLE `admission_enquiries` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `course_interested` varchar(255) NOT NULL,
  `message` text,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

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

--
-- Table structure for table `banners`
--

CREATE TABLE `banners` (
  `id` int UNSIGNED NOT NULL,
  `image` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

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

--
-- Table structure for table `contact_enquiries`
--

CREATE TABLE `contact_enquiries` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `message` text NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

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

--
-- Table structure for table `courses`
--

CREATE TABLE `courses` (
  `id` int UNSIGNED NOT NULL,
  `course_name` varchar(255) NOT NULL,
  `slug` varchar(255) NOT NULL,
  `course_image` varchar(255) DEFAULT NULL,
  `short_description` text NOT NULL,
  `long_description` text NOT NULL,
  `status` tinyint(1) DEFAULT '1',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

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

--
-- Table structure for table `faq`
--

CREATE TABLE `faq` (
  `id` int UNSIGNED NOT NULL,
  `question` varchar(255) NOT NULL,
  `answer` text NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

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

--
-- Table structure for table `files`
--

CREATE TABLE `files` (
  `id` int NOT NULL,
  `file_name` varchar(255) NOT NULL,
  `file_path` varchar(255) NOT NULL,
  `is_published` tinyint(1) DEFAULT '1',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

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

--
-- Table structure for table `gallery`
--

CREATE TABLE `gallery` (
  `id` int UNSIGNED NOT NULL,
  `image` varchar(255) NOT NULL,
  `status` tinyint(1) DEFAULT '1',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

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

--
-- Table structure for table `gallery_categories`
--

CREATE TABLE `gallery_categories` (
  `id` int UNSIGNED NOT NULL,
  `category_name` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `gallery_categories`
--

INSERT INTO `gallery_categories` (`id`, `category_name`, `created_at`) VALUES
(1, 'Testing12', '2025-09-25 09:03:47');

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

--
-- Table structure for table `gallery_images`
--

CREATE TABLE `gallery_images` (
  `id` int UNSIGNED NOT NULL,
  `category_id` int UNSIGNED NOT NULL,
  `image` varchar(255) NOT NULL,
  `status` enum('Published','Unpublished') DEFAULT 'Unpublished',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `gallery_images`
--

INSERT INTO `gallery_images` (`id`, `category_id`, `image`, `status`, `created_at`) VALUES
(1, 1, 'gallery_68d50601d5981.jpeg', 'Unpublished', '2025-09-25 09:06:09');

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

--
-- Table structure for table `header_options`
--

CREATE TABLE `header_options` (
  `id` int NOT NULL,
  `option_name` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `header_options`
--

INSERT INTO `header_options` (`id`, `option_name`, `created_at`) VALUES
(1, 'Testing12', '2025-09-25 09:57:25');

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

--
-- Table structure for table `menu_items`
--

CREATE TABLE `menu_items` (
  `id` int NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `parent_id` int DEFAULT NULL,
  `type` enum('page','pdf','external') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'page',
  `slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `target_url` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pdf_file` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `display_order` int DEFAULT '0',
  `content` longtext COLLATE utf8mb4_unicode_ci,
  `banner_image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `page_image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `page_video` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meta_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meta_description` text COLLATE utf8mb4_unicode_ci,
  `meta_keywords` text COLLATE utf8mb4_unicode_ci,
  `status` tinyint(1) DEFAULT '1',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `menu_items`
--

INSERT INTO `menu_items` (`id`, `title`, `parent_id`, `type`, `slug`, `target_url`, `pdf_file`, `display_order`, `content`, `banner_image`, `page_image`, `page_video`, `meta_title`, `meta_description`, `meta_keywords`, `status`, `created_at`, `updated_at`) VALUES
(5, 'Top Level One', NULL, 'page', '0', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, '2025-10-27 11:22:43', '2025-10-27 11:22:43'),
(6, 'Top Level Second One', 5, 'page', 'top-level-second-one', '', '', 0, '<h1>Faculty</h1><table border=\\\"1\\\" cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" style=\\\"width:99%\\\"><tbody><tr><td>Sr. No.</td><td>Name</td><td>Designation</td><td>Education</td><td>Email ID</td><td>Photo</td></tr><tr><td>1</td><td>Ms. Anamika</td><td>Lecturer</td><td>B.E, M.E</td><td>anamika_dahiya@yahoo.co.in</td><td><img src=\\\"https://www.gpsanghi.ac.in/downloads/faculty/n57eca03866a89.jpg\\\" /></td></tr><tr><td>2</td><td>Dr. Hemlata</td><td>Lecturer</td><td>Ph.D, M.Phil, MCA, MBA, UGC-NET</td><td>hemlatachahal@gmail.com</td><td><img src=\\\"https://works.diginspire.in/myadmin/uploads/ckeditor_images/1761564432_6204_external.jpg\\\" /></td></tr><tr><td>3</td><td>Ms. Mukesh Kumari</td><td>Programmer</td><td>M.Phil, MCA.</td><td>mukeshnaramalik@gmail.com</td><td><img src=\\\"https://www.gpsanghi.ac.in/downloads/faculty/n57eca1801acfd.jpg\\\" /></td></tr><tr><td>4</td><td>Ms. Manjeet</td><td>Lecturer</td><td>MCA</td><td>manjeetkataria08@gmail.com</td><td><img src=\\\"https://works.diginspire.in/myadmin/uploads/ckeditor_images/1761564464_7994_external.jpg\\\" /></td></tr><tr><td>5</td><td>Ms. Seema</td><td>Lecturer</td><td>M.Phil, MCA</td><td>seema82.malik@gmail.com</td><td><img src=\\\"https://works.diginspire.in/myadmin/uploads/ckeditor_images/1761564465_7957_external.jpg\\\" /></td></tr><tr><td>6</td><td>Dr. Shobha Rani .</td><td>Lecturer</td><td>Ph.D , M.Phil, MCA.</td><td>shobhamalik05@yahoo.com</td><td><img src=\\\"https://works.diginspire.in/myadmin/uploads/ckeditor_images/1761564467_3930_external.jpg\\\" /></td></tr></tbody></table><p>&nbsp;</p>', 'uploads/banners/1761564380_3561_banner.png', '[\"uploads\\/page_images\\/1761564467_4873_0_page.png\",\"uploads\\/page_images\\/1761564467_6527_1_page.png\"]', '[\"uploads\\/page_videos\\/1761564467_2484_0_video.mp4\",\"uploads\\/page_videos\\/1761564469_9002_1_video.mp4\"]', 'Meta Title Top Level Second One', 'Meta Description Top Level Second One', 'Meta Keywords Top Level Second One', 1, '2025-10-27 11:27:51', '2025-10-27 11:27:51');

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

--
-- Table structure for table `notices`
--

CREATE TABLE `notices` (
  `id` int UNSIGNED NOT NULL,
  `title` varchar(255) NOT NULL,
  `content` text NOT NULL,
  `display_order` int UNSIGNED DEFAULT '0',
  `is_new` tinyint(1) DEFAULT '0',
  `is_published` tinyint(1) DEFAULT '1',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `notices`
--

INSERT INTO `notices` (`id`, `title`, `content`, `display_order`, `is_new`, `is_published`, `created_at`, `updated_at`) VALUES
(1, 'Testing', 'What is Lorem Ipsum?\\nLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\\\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\\n\\nWhy do we use it?\\nIt is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using \\\'Content here, content here\\\', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for \\\'lorem ipsum\\\' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).\\n\\n\\nWhere does it come from?\\nContrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \\\"de Finibus Bonorum et Malorum\\\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \\\"Lorem ipsum dolor sit amet..\\\", comes from a line in section 1.10.32.\\n\\nThe standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from \\\"de Finibus Bonorum et Malorum\\\" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.\\n\\nWhere can I get some?\\nThere are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don\\\'t look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn\\\'t anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.', 2, 1, 1, '2025-09-25 04:51:02', '2025-09-25 04:53:23');

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

--
-- Table structure for table `pages`
--

CREATE TABLE `pages` (
  `id` int NOT NULL,
  `header_option_id` int DEFAULT NULL,
  `category` varchar(255) DEFAULT NULL,
  `page_title` varchar(255) NOT NULL,
  `page_content` text NOT NULL,
  `meta_title` varchar(255) DEFAULT NULL,
  `meta_keywords` varchar(255) DEFAULT NULL,
  `meta_description` varchar(255) DEFAULT NULL,
  `main_banner` varchar(255) DEFAULT NULL,
  `slug` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `pages`
--

INSERT INTO `pages` (`id`, `header_option_id`, `category`, `page_title`, `page_content`, `meta_title`, `meta_keywords`, `meta_description`, `main_banner`, `slug`, `created_at`, `updated_at`) VALUES
(2, NULL, NULL, 'About Us', '<p>C.M.R.A. Govt. Polytechnic Education Society, Sanghi was started in 2006 after the name of Ch. Matu Ram Arya&nbsp;at Gram Panchayat land of village &ndash; Sanghi, Rohtak. It is rapidly gaining recognition &amp; popularity among the discerning academic circles. The Institute is committed to the development of professional engineers to face the challenges of the rapidly changing industrial world. The Institute is approved &nbsp;by All India Council for Technical Education (A.I.C.T.E.), New Delhi and is affiliated to Haryana State Board of Technical Education (H.S.B.T.E.), Panchkula.</p><p>The Institute is situated between Sanghi, Khidwali and Katwara village, about 3 kilometers &nbsp;from Sanghi towards Khidwali and 7 Kilometers from Jassia which is situated on NH &ndash; 71A (Rohtak-Panipat) towards the West. The Institute is spreading over 29 acres having one academic-cum-administrative block, two hostels, mess, canteen, playground and residential quarters for the staff.&nbsp;</p><p>Presently three year diploma courses are running in the disciplines of Computer Engineering, Electrical Engineering, Mechanical Engineering, Electronics and Communication Engineering, Civil Engineering under the guidance of matured, dedicated, experienced and highly qualified staff.</p><h2><strong>Our Vision</strong></h2><p>To produce creative, innovative, dynamic and ethical technologists who can lead in the ever changing world of technologies.</p><h2><strong>Our Mission</strong></h2><p>Provide a world-class learning enviroment that caters to local and global technological and social requirements.</p><p>To train and mentor the student in developing leadership qualities and team building skills with professional ethics. To provide students a technically up-to-date and intellectually inspiring environment of learning.</p><h2><strong>Certifications &amp; Approvals</strong></h2><p><a href=\\\"\\\\\\\">Certificate of amendment in the Memorandum/By-laws of the Society</a></p>', 'About Us', 'About Us', 'About Us', 'page_banner_68fb897e9fd8a.png', 'about-us', '2025-10-24 14:13:19', '2025-10-24 14:14:13'),
(3, NULL, NULL, 'Comp Engg Faculty', '<table cellspacing=\"0\" cellpadding=\"0\" border=\"1\" style=\"border-collapse:collapse;\" bordercolor=\"#ADADAD\" width=\"99%\" class=\"padding\"><tbody><tr><td class=\"tblhead\" width=\"40\" align=\"center\">Sr. No.</td><td height=\"33\" class=\"tblhead\">Name</td><td height=\"33\" class=\"tblhead\">Designation</td><td height=\"33\" class=\"tblhead\">Education</td><td height=\"33\" class=\"tblhead\">Email ID</td><td class=\"tblhead\" width=\"120\">Photo</td></tr><tr><td align=\"center\">1</td><td>Ms. Anamika</td><td>Lecturer</td><td>B.E, M.E</td><td>anamika_dahiya@yahoo.co.in</td><td align=\"center\"><img border=\"0\" src=\"https://www.gpsanghi.ac.in/downloads/faculty/n57eca03866a89.jpg\"></td></tr><tr><td align=\"center\">2</td><td>Dr. Hemlata</td><td>Lecturer</td><td>  Ph.D,  M.Phil, MCA, MBA, UGC-NET </td><td>hemlatachahal@gmail.com</td><td align=\"center\"><img border=\"0\" src=\"https://www.gpsanghi.ac.in/downloads/faculty/n57eca0d2c464a.jpg\"></td></tr><tr><td align=\"center\">3</td><td>Ms. Mukesh Kumari </td><td>Programmer</td><td>M.Phil, MCA.</td><td>mukeshnaramalik@gmail.com</td><td align=\"center\"><img border=\"0\" src=\"https://www.gpsanghi.ac.in/downloads/faculty/n57eca1801acfd.jpg\"></td></tr><tr><td align=\"center\">4</td><td>Ms. Manjeet</td><td>Lecturer</td><td>MCA</td><td>manjeetkataria08@gmail.com</td><td align=\"center\"><img border=\"0\" src=\"https://www.gpsanghi.ac.in/downloads/faculty/n57eca0ef3b1d7.jpg\"></td></tr><tr><td align=\"center\">5</td><td>Ms. Seema</td><td>Lecturer</td><td>M.Phil, MCA</td><td>seema82.malik@gmail.com</td><td align=\"center\"><img border=\"0\" src=\"https://www.gpsanghi.ac.in/downloads/faculty/n57eca1262e363.jpg\"></td></tr><tr><td align=\"center\">6</td><td> Dr. Shobha Rani . </td><td>Lecturer</td><td>Ph.D , M.Phil, MCA.</td><td>shobhamalik05@yahoo.com</td><td align=\"center\"><img border=\"0\" src=\"https://www.gpsanghi.ac.in/downloads/faculty/n57eca14407590.jpg\"></td></tr></tbody></table>', 'Comp Engg Faculty', 'Comp Engg Faculty', 'Comp Engg Faculty', 'page_banner_68fb8f99b0a2b.jpg', 'comp-engg-faculty', '2025-10-24 14:39:21', '2025-10-24 14:42:21');

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

--
-- Table structure for table `recruits`
--

CREATE TABLE `recruits` (
  `id` int UNSIGNED NOT NULL,
  `image` varchar(255) NOT NULL,
  `status` tinyint(1) DEFAULT '1',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

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

--
-- Table structure for table `visitor_logs`
--

CREATE TABLE `visitor_logs` (
  `id` int NOT NULL,
  `ip_address` varchar(45) NOT NULL,
  `visited_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

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

--
-- Table structure for table `website_settings`
--

CREATE TABLE `website_settings` (
  `id` int UNSIGNED NOT NULL,
  `college_name` varchar(255) NOT NULL,
  `college_address` text NOT NULL,
  `college_email` varchar(255) DEFAULT NULL COMMENT 'Use comma to separate multiple emails',
  `college_number` varchar(255) DEFAULT NULL COMMENT 'Use comma to separate multiple numbers',
  `college_timing` varchar(255) DEFAULT NULL,
  `logo` varchar(255) DEFAULT NULL,
  `favicon` varchar(255) DEFAULT NULL,
  `facebook` varchar(255) DEFAULT NULL,
  `instagram` varchar(255) DEFAULT NULL,
  `twitter` varchar(255) DEFAULT NULL,
  `linkedin` varchar(255) DEFAULT NULL,
  `gmaps_link` text,
  `copyright_text` varchar(255) DEFAULT NULL,
  `header_notice` text,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `website_settings`
--

INSERT INTO `website_settings` (`id`, `college_name`, `college_address`, `college_email`, `college_number`, `college_timing`, `logo`, `favicon`, `facebook`, `instagram`, `twitter`, `linkedin`, `gmaps_link`, `copyright_text`, `header_notice`, `created_at`, `updated_at`) VALUES
(1, 'ABC College of Engineering', '123 Main Street, Cityville, Country', 'info@abccollege.com, admissions@abccollege.com', '+91-1234567890, +91-9876543210', 'Mon-Fri: 9:00 AM - 5:00 PM', 'logo_68d5036d4ff9c.jpeg', 'favicon_68d5036d508fe.png', 'https://facebook.com/abccollege', 'https://instagram.com/abccollege', 'https://twitter.com/abccollege', 'https://linkedin.com/company/abccollege', '<iframe src=\\\\\\\\\\\\\\\"https://www.google.com/maps/embed?pb=!1m18!...\\\\\\\\\\\\\\\" width=\\\\\\\\\\\\\\\"600\\\\\\\\\\\\\\\" height=\\\\\\\\\\\\\\\"450\\\\\\\\\\\\\\\" style=\\\\\\\\\\\\\\\"border:0;\\\\\\\\\\\\\\\" allowfullscreen=\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\" loading=\\\\\\\\\\\\\\\"lazy\\\\\\\\\\\\\\\"></iframe>', '© 2025 ABC College. All rights reserved.', '<p>Admissions open for the new academic session! Apply now.</p><p>&nbsp;</p>', '2025-09-25 08:54:46', '2025-09-25 11:23:14');

--
-- Indexes for dumped tables
--

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

--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
  ADD PRIMARY KEY (`al_id`);

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

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

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

--
-- Indexes for table `courses`
--
ALTER TABLE `courses`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `slug` (`slug`);

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

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

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

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

--
-- Indexes for table `gallery_images`
--
ALTER TABLE `gallery_images`
  ADD PRIMARY KEY (`id`),
  ADD KEY `category_id` (`category_id`);

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

--
-- Indexes for table `menu_items`
--
ALTER TABLE `menu_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `parent_id` (`parent_id`),
  ADD KEY `status` (`status`),
  ADD KEY `slug` (`slug`);

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

--
-- Indexes for table `pages`
--
ALTER TABLE `pages`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `slug` (`slug`),
  ADD KEY `header_option_id` (`header_option_id`);

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `about_us`
--
ALTER TABLE `about_us`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
  MODIFY `al_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

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

--
-- AUTO_INCREMENT for table `banners`
--
ALTER TABLE `banners`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `courses`
--
ALTER TABLE `courses`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `faq`
--
ALTER TABLE `faq`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `files`
--
ALTER TABLE `files`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `gallery`
--
ALTER TABLE `gallery`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `gallery_categories`
--
ALTER TABLE `gallery_categories`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `gallery_images`
--
ALTER TABLE `gallery_images`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `header_options`
--
ALTER TABLE `header_options`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `menu_items`
--
ALTER TABLE `menu_items`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `notices`
--
ALTER TABLE `notices`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `pages`
--
ALTER TABLE `pages`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `recruits`
--
ALTER TABLE `recruits`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `website_settings`
--
ALTER TABLE `website_settings`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `gallery_images`
--
ALTER TABLE `gallery_images`
  ADD CONSTRAINT `gallery_images_ibfk_1` FOREIGN KEY (`category_id`) REFERENCES `gallery_categories` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `menu_items`
--
ALTER TABLE `menu_items`
  ADD CONSTRAINT `menu_items_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `menu_items` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `pages`
--
ALTER TABLE `pages`
  ADD CONSTRAINT `pages_ibfk_1` FOREIGN KEY (`header_option_id`) REFERENCES `header_options` (`id`) ON DELETE SET NULL;
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 */;
