-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 13, 2025 at 02:25 AM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.2.12

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

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

--
-- Table structure for table `questions`
--

CREATE TABLE `questions` (
  `id` int(11) NOT NULL,
  `question` text NOT NULL,
  `option_a` varchar(255) NOT NULL,
  `option_b` varchar(255) NOT NULL,
  `option_c` varchar(255) NOT NULL,
  `option_d` varchar(255) NOT NULL,
  `correct_option` char(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `questions`
--

INSERT INTO `questions` (`id`, `question`, `option_a`, `option_b`, `option_c`, `option_d`, `correct_option`) VALUES
(1, 'What is the capital of France?', 'Paris', 'London', 'Berlin', 'Madrid', 'A'),
(2, 'Which is the largest planet in our solar system?', 'Earth', 'Mars', 'Jupiter', 'Saturn', 'C'),
(3, 'What is 2 + 2?', '3', '4', '5', '6', 'B'),
(4, 'Who wrote \'Romeo and Juliet\'?', 'Shakespeare', 'Dickens', 'Hemingway', 'Tolkien', 'A'),
(5, 'What is the chemical symbol for water?', 'H2O', 'O2', 'CO2', 'H2', 'A'),
(6, 'What is the largest ocean on Earth?', 'Atlantic Ocean', 'Indian Ocean', 'Arctic Ocean', 'Pacific Ocean', 'D'),
(7, 'Who painted the Mona Lisa?', 'Vincent van Gogh', 'Pablo Picasso', 'Leonardo da Vinci', 'Claude Monet', 'C'),
(8, 'Which element has the chemical symbol \'O\'?', 'Oxygen', 'Osmium', 'Ozone', 'Oganesson', 'A'),
(9, 'What is the tallest mountain in the world?', 'K2', 'Mount Kilimanjaro', 'Mount Everest', 'Mont Blanc', 'C'),
(10, 'Which planet is known as the Red Planet?', 'Venus', 'Mars', 'Saturn', 'Jupiter', 'B'),
(11, 'Who was the first president of the United States?', 'Thomas Jefferson', 'Abraham Lincoln', 'George Washington', 'John Adams', 'C'),
(12, 'In which year did the Titanic sink?', '1901', '1912', '1920', '1898', 'B'),
(13, 'Which country is known as the Land of the Rising Sun?', 'China', 'South Korea', 'Japan', 'India', 'C'),
(14, 'What is the capital of Canada?', 'Vancouver', 'Ottawa', 'Toronto', 'Montreal', 'B'),
(15, 'Which is the smallest country in the world?', 'Monaco', 'Vatican City', 'San Marino', 'Liechtenstein', 'B'),
(16, 'What is the freezing point of water in Celsius?', '0°C', '32°C', '100°C', '-1°C', 'A'),
(17, 'Who invented the telephone?', 'Nikola Tesla', 'Thomas Edison', 'Alexander Graham Bell', 'Henry Ford', 'C'),
(18, 'What is the currency of Japan?', 'Yuan', 'Won', 'Yen', 'Ringgit', 'C'),
(19, 'What is the longest river in the world?', 'Amazon River', 'Nile River', 'Yangtze River', 'Mississippi River', 'B'),
(20, 'Which country is the Eiffel Tower located in?', 'France', 'Spain', 'Italy', 'Germany', 'A'),
(21, 'What does HTML stand for?', 'HyperText Markup Language', 'HyperText Marking Language', 'Hyper Transfer Markup Language', 'High Text Markup Language', 'A'),
(22, 'What is the hardest natural substance on Earth?', 'Gold', 'Iron', 'Diamond', 'Platinum', 'C'),
(23, 'Which gas do plants absorb from the atmosphere?', 'Oxygen', 'Nitrogen', 'Carbon Dioxide', 'Hydrogen', 'C'),
(24, 'Who discovered penicillin?', 'Louis Pasteur', 'Marie Curie', 'Isaac Newton', 'Alexander Fleming', 'D'),
(25, 'Which ocean is the largest in terms of area?', 'Indian Ocean', 'Atlantic Ocean', 'Southern Ocean', 'Pacific Ocean', 'D'),
(26, 'What is the primary ingredient in guacamole?', 'Tomato', 'Onion', 'Avocado', 'Lime', 'C');

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

--
-- Table structure for table `registration`
--

CREATE TABLE `registration` (
  `ID` int(11) NOT NULL,
  `username` varchar(50) NOT NULL,
  `email` varchar(100) NOT NULL,
  `dob` date NOT NULL,
  `password` varchar(100) NOT NULL,
  `country` varchar(50) NOT NULL,
  `profession` varchar(50) NOT NULL,
  `gender` varchar(50) NOT NULL,
  `streak` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `registration`
--

INSERT INTO `registration` (`ID`, `username`, `email`, `dob`, `password`, `country`, `profession`, `gender`, `streak`) VALUES
(6, 'admin', 'prabitadhikari@gmail.com', '2024-12-31', 'admin', 'AW', 'jhgvb ', 'Male', 0);

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

--
-- Table structure for table `user_streak`
--

CREATE TABLE `user_streak` (
  `user_id` int(11) NOT NULL,
  `email` varchar(100) NOT NULL,
  `streak` int(11) NOT NULL,
  `login_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `user_streak`
--

INSERT INTO `user_streak` (`user_id`, `email`, `streak`, `login_date`) VALUES
(4, 'prabitadhikari@gmail.com', 1, '2025-01-13');

--
-- Indexes for dumped tables
--

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

--
-- Indexes for table `registration`
--
ALTER TABLE `registration`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `user_streak`
--
ALTER TABLE `user_streak`
  ADD PRIMARY KEY (`user_id`);

--
-- AUTO_INCREMENT for dumped tables
--

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

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

--
-- AUTO_INCREMENT for table `user_streak`
--
ALTER TABLE `user_streak`
  MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
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 */;
