-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `passprometric`
--

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

--
-- Table structure for table `answers`
--

CREATE TABLE `answers` (
  `id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `answer_text` text NOT NULL,
  `is_correct` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `answers`
--

INSERT INTO `answers` (`id`, `question_id`, `answer_text`, `is_correct`) VALUES
(1, 1, 'non living things', 0),
(2, 1, 'animals', 0),
(3, 1, 'living things', 1),
(4, 1, 'plants', 0),
(5, 2, 'peshawar', 0),
(6, 2, 'islamabad', 1),
(7, 2, 'lahore', 0),
(8, 2, 'karachi', 0),
(9, 3, '', 1),
(10, 3, '', 0),
(11, 3, '', 0),
(12, 3, '', 0),
(13, 4, '', 1),
(14, 4, '', 0),
(15, 4, '', 0),
(16, 4, '', 0),
(17, 5, '', 1),
(18, 5, '', 0),
(19, 5, '', 0),
(20, 5, '', 0),
(21, 6, '', 1),
(22, 6, '', 0),
(23, 6, '', 0),
(24, 6, '', 0),
(25, 7, '', 1),
(26, 7, '', 0),
(27, 7, '', 0),
(28, 7, '', 0),
(29, 8, '', 1),
(30, 8, '', 0),
(31, 8, '', 0),
(32, 8, '', 0),
(33, 9, '', 1),
(34, 9, '', 0),
(35, 9, '', 0),
(36, 9, '', 0),
(37, 10, '', 1),
(38, 10, '', 0),
(39, 10, '', 0),
(40, 10, '', 0),
(41, 11, '', 1),
(42, 11, '', 0),
(43, 11, '', 0),
(44, 11, '', 0),
(45, 12, 'force', 1),
(46, 12, 'mass', 0),
(47, 12, 'weight', 0),
(48, 12, 'energy', 0),
(49, 13, 'abbotabad', 1),
(50, 13, 'mardan', 0),
(51, 13, 'peshawar', 0),
(52, 13, 'bannu', 0),
(53, 14, '', 1),
(54, 14, '', 0),
(55, 14, '', 0),
(56, 14, '', 0),
(57, 15, '', 1),
(58, 15, '', 0),
(59, 15, '', 0),
(60, 15, '', 0),
(61, 16, '', 1),
(62, 16, '', 0),
(63, 16, '', 0),
(64, 16, '', 0);

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

--
-- Table structure for table `categories`
--

CREATE TABLE `categories` (
  `category_id` int(11) NOT NULL,
  `category_title` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `categories`
--

INSERT INTO `categories` (`category_id`, `category_title`) VALUES
(1, 'GPs'),
(4, '');

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

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

CREATE TABLE `courses` (
  `id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `introduction` text NOT NULL,
  `description` text NOT NULL,
  `image` varchar(255) NOT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `courses`
--

INSERT INTO `courses` (`id`, `title`, `introduction`, `description`, `image`, `date`) VALUES
(2, 'Matric Course', '\"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora\n incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?\"', '\"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?\"\r\n\"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?\"', 'Untitled-1_0053_Layer34_510x@2x.progressive.webp', '2024-11-08 12:33:54'),
(4, 'Mechanics', '\"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur', '\"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur\r\n\"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur', 'datchiresizepsd_0000_DSC00651_510x@2x.progressive.webp', '2024-11-08 12:34:29');

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

--
-- Table structure for table `course_cart`
--

CREATE TABLE `course_cart` (
  `id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `ip_address` varchar(255) NOT NULL,
  `course_id` int(11) NOT NULL,
  `course_duration` int(11) NOT NULL,
  `duration_unit` varchar(255) NOT NULL,
  `course_price` int(11) NOT NULL,
  `is_enrolled` int(11) NOT NULL,
  `expiry_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `course_cart`
--

INSERT INTO `course_cart` (`id`, `order_id`, `user_id`, `ip_address`, `course_id`, `course_duration`, `duration_unit`, `course_price`, `is_enrolled`, `expiry_date`) VALUES
(1, 1, 5, '::1', 2, 1, 'Years', 60, 1, '2025-11-01 01:19:18'),
(2, 2, 1, '::1', 2, 1, 'Years', 60, 1, '2025-11-17 21:58:21'),
(3, 3, 1, '::1', 2, 1, 'Years', 60, 1, '2025-11-17 21:57:32'),
(4, 4, 1, '::1', 2, 1, 'Years', 60, 0, '0000-00-00 00:00:00'),
(5, 5, 1, '::1', 2, 1, 'Years', 60, 1, '2025-11-01 19:34:26'),
(6, 6, 1, '::1', 4, 1, 'Months', 200, 1, '2024-12-07 19:08:52'),
(7, 7, 5, '::1', 4, 1, 'Months', 200, 1, '2024-12-07 19:09:38'),
(8, 8, 5, '::1', 2, 1, 'Years', 60, 1, '2025-11-08 14:52:17'),
(9, 9, 1, '::1', 4, 1, 'Years', 300, 0, '0000-00-00 00:00:00'),
(10, 10, 7, '::1', 2, 1, 'Years', 60, 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `course_checkout`
--

CREATE TABLE `course_checkout` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `username` varchar(255) NOT NULL,
  `user_email` varchar(255) NOT NULL,
  `user_ip` varchar(255) NOT NULL,
  `country` varchar(255) NOT NULL,
  `first_name` varchar(255) NOT NULL,
  `last_name` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `exam` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `payment_method` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `course_checkout`
--

INSERT INTO `course_checkout` (`id`, `user_id`, `username`, `user_email`, `user_ip`, `country`, `first_name`, `last_name`, `address`, `exam`, `phone`, `payment_method`) VALUES
(1, 5, 'Passprometric', 'passprometricmcqs@gmail.com', '::1', 'Pakistan', 'Arsalan', 'khan', 'Hayatabad', 'DHA', '03427561814', 'Credit Card'),
(2, 1, 'arsalankhanii', 'arsalankhanii2000@gmail.com', '::1', 'Pakistan', 'Arsalan', 'khan', 'Hayatabad', 'DHA', '03427561814', 'Direct Bank Transfer'),
(3, 1, 'arsalankhanii', 'arsalankhanii2000@gmail.com', '::1', 'Pakistan', 'Arsalan', 'khan', 'Hayatabad', 'DHA', '03427561814', 'Credit Card'),
(4, 1, 'arsalankhanii', 'arsalankhanii2000@gmail.com', '::1', 'Pakistan', 'Arsalan', 'khan', 'Hayatabad', 'DHA', '03427561814', 'Direct Bank Transfer'),
(5, 1, 'arsalankhanii', 'arsalankhanii2000@gmail.com', '::1', 'Pakistan', 'Arsalan', 'khan', 'Hayatabad', 'DHA', '03427561814', 'Credit Card'),
(6, 5, 'Passprometric', 'passprometricmcqs@gmail.com', '::1', 'Pakistan', 'Arsalan', 'khan', 'Hayatabad', 'DHA', '03427561814', 'Credit Card'),
(7, 1, 'arsalankhanii', 'arsalankhanii2000@gmail.com', '::1', 'Pakistan', 'Arsalan', 'khan', 'Hayatabad', 'DHA', '03427561814', 'Direct Bank Transfer'),
(8, 7, 'mujeeb2916', 'mujeebkhan3768@gmail.com', '::1', 'Pakistan', 'mujeeb', 'khan', 'Hayatabad', 'OMSB', '03427561814', 'Direct Bank Transfer');

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

--
-- Table structure for table `course_duration`
--

CREATE TABLE `course_duration` (
  `id` int(11) NOT NULL,
  `course_id` int(11) NOT NULL,
  `duration` int(11) NOT NULL,
  `unit` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `course_duration`
--

INSERT INTO `course_duration` (`id`, `course_id`, `duration`, `unit`) VALUES
(1, 1, 1, 'Years'),
(2, 2, 1, 'Years'),
(3, 2, 2, 'Months'),
(4, 3, 1, 'Years'),
(5, 3, 1, 'Years'),
(6, 4, 1, 'Years'),
(7, 4, 1, 'Months'),
(8, 4, 1, 'Weeks');

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

--
-- Table structure for table `course_orders`
--

CREATE TABLE `course_orders` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `ip_address` varchar(255) NOT NULL,
  `total_courses` int(11) NOT NULL,
  `amount_due` int(11) NOT NULL,
  `invoice_number` int(11) NOT NULL,
  `payment_method` varchar(255) NOT NULL,
  `order_status` varchar(255) NOT NULL,
  `order_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `course_orders`
--

INSERT INTO `course_orders` (`id`, `user_id`, `ip_address`, `total_courses`, `amount_due`, `invoice_number`, `payment_method`, `order_status`, `order_date`) VALUES
(1, 5, '::1', 1, 60, 2018119316, 'Credit Card', 'Completed', '2024-11-01 00:19:18'),
(2, 1, '::1', 1, 60, 246081739, 'Direct Bank Transfer', 'Completed', '2024-11-17 20:58:21'),
(3, 1, '::1', 1, 60, 918831758, 'Credit Card', 'Completed', '2024-11-01 18:21:31'),
(4, 1, '::1', 1, 60, 1369696754, 'Direct Bank Transfer', 'Pending', '2024-11-01 18:29:43'),
(5, 1, '::1', 1, 60, 556252402, 'Credit Card', 'Completed', '2024-11-01 18:34:25'),
(6, 1, '::1', 1, 200, 2005215803, '', 'Completed', '2024-11-07 18:08:52'),
(7, 5, '::1', 1, 200, 2051461620, '', 'Completed', '2024-11-07 18:09:38'),
(8, 5, '::1', 1, 60, 594935504, 'Credit Card', 'Completed', '2024-11-08 13:52:17'),
(9, 1, '::1', 1, 300, 545364374, 'Direct Bank Transfer', 'Pending', '2024-11-08 13:58:01'),
(10, 7, '::1', 1, 60, 875412825, 'Direct Bank Transfer', 'Pending', '2024-11-09 15:09:22');

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

--
-- Table structure for table `course_price`
--

CREATE TABLE `course_price` (
  `id` int(11) NOT NULL,
  `duration_id` int(11) NOT NULL,
  `price` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `course_price`
--

INSERT INTO `course_price` (`id`, `duration_id`, `price`) VALUES
(1, 1, 0),
(2, 2, 60),
(3, 3, 30),
(4, 4, 30),
(5, 5, 60),
(6, 6, 300),
(7, 7, 200),
(8, 8, 100);

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

--
-- Table structure for table `marked_questions`
--

CREATE TABLE `marked_questions` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `quiz_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

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

CREATE TABLE `questions` (
  `id` int(11) NOT NULL,
  `quiz_id` int(11) NOT NULL,
  `question_text` text NOT NULL,
  `description` text NOT NULL,
  `hint` text NOT NULL,
  `points` int(11) NOT NULL,
  `ans_explain` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `questions` (`id`, `quiz_id`, `question_text`, `description`, `hint`, `points`, `ans_explain`) VALUES
(1, 1, 'biology is the study of', '', '', 1, '  quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. \nNeque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore \n<img src=\"../../uploads/Untitled-1_0040_Layer46_510x@2x.progressive.webp\" >\nmagnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?\" \nquia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?\" '),
(2, 1, 'capital of pakistan is', '', '', 1, 'quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?\" '),
(3, 1, 'quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam', '', '', 1, ''),
(4, 1, 'why', '', '', 1, ''),
(5, 1, 'what', '', '', 1, ''),
(6, 1, 'when', '', '', 1, ''),
(7, 1, 'where', '', '', 1, ''),
(8, 1, 'who', '', '', 1, ''),
(9, 1, 'which', '', '', 1, ''),
(10, 1, 'aaa', '', '', 1, ''),
(11, 1, 'bb', '', '', 1, ''),
(12, 3, 'Mechanic is the study of', '', '', 1, '\"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur\n\"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur'),
(13, 3, 'capital of kpk is', '', '', 1, ''),
(14, 3, 'aaa', '', '', 1, ''),
(15, 3, 'bbb', '', '', 1, ''),
(16, 3, 'ccc', '', '', 1, '');

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

--
-- Table structure for table `question_notes`
--

CREATE TABLE `question_notes` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `quiz_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `notes_text` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `question_notes`
--

INSERT INTO `question_notes` (`id`, `user_id`, `quiz_id`, `question_id`, `notes_text`) VALUES
(6, 5, 1, 6, 'aaammmvv'),
(7, 5, 1, 4, 'zzzcccvv'),
(8, 5, 1, 7, 'n');

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

--
-- Table structure for table `question_responses`
--

CREATE TABLE `question_responses` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `question_no` int(11) NOT NULL,
  `quiz_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `selected_answer_id` int(11) NOT NULL,
  `correct_answer_id` int(11) NOT NULL,
  `is_correct` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `question_responses`
--

INSERT INTO `question_responses` (`id`, `user_id`, `question_no`, `quiz_id`, `question_id`, `selected_answer_id`, `correct_answer_id`, `is_correct`) VALUES
(174, 5, 1, 3, 12, 47, 45, 0),
(175, 5, 2, 3, 13, 51, 49, 0),
(331, 5, 1, 1, 1, 2, 3, 0);

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

--
-- Table structure for table `quizzes`
--

CREATE TABLE `quizzes` (
  `id` int(11) NOT NULL,
  `course_id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `duration_number` int(11) NOT NULL,
  `duration_unit` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `quizzes`
--

INSERT INTO `quizzes` (`id`, `course_id`, `title`, `description`, `duration_number`, `duration_unit`) VALUES
(1, 2, 'Biology', '', 1, 'Years'),
(2, 2, 'Physics', '', 1, 'Years'),
(3, 4, ' Dynamics', '', 1, 'Years');

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

--
-- Table structure for table `quiz_attempts`
--

CREATE TABLE `quiz_attempts` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `item_id` int(11) NOT NULL,
  `course_id` int(11) NOT NULL,
  `quiz_id` int(11) NOT NULL,
  `is_finished` int(11) NOT NULL,
  `start_date` datetime NOT NULL,
  `attempt_date` datetime NOT NULL,
  `finished_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `quiz_attempts`
--

INSERT INTO `quiz_attempts` (`id`, `user_id`, `item_id`, `course_id`, `quiz_id`, `is_finished`, `start_date`, `attempt_date`, `finished_date`) VALUES
(1, 5, 1, 2, 1, 0, '2024-11-01 01:25:03', '2024-11-17 23:55:03', '2024-11-17 23:55:01'),
(2, 5, 1, 2, 2, 1, '2024-11-03 15:59:35', '2024-11-03 15:59:35', '2024-11-04 15:41:47'),
(3, 5, 7, 4, 3, 0, '2024-11-07 19:09:58', '2024-11-07 22:19:53', '2024-11-07 22:19:34');

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

--
-- Table structure for table `reviews`
--

CREATE TABLE `reviews` (
  `id` int(11) NOT NULL,
  `review_type` varchar(255) NOT NULL,
  `user_id` int(11) NOT NULL,
  `review_object` varchar(255) NOT NULL,
  `review_text` text NOT NULL,
  `date` datetime NOT NULL,
  `status` varchar(255) NOT NULL,
  `rating` int(11) NOT NULL,
  `object_id` int(11) NOT NULL,
  `likes` int(11) NOT NULL,
  `nested_chain` varchar(255) NOT NULL,
  `reply_to_review` int(11) NOT NULL,
  `reply_to_user` int(11) NOT NULL,
  `feedback_reason` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `reviews`
--

INSERT INTO `reviews` (`id`, `review_type`, `user_id`, `review_object`, `review_text`, `date`, `status`, `rating`, `object_id`, `likes`, `nested_chain`, `reply_to_review`, `reply_to_user`, `feedback_reason`) VALUES
(1, 'comment', 5, 'question', 'qqq', '2024-11-10 23:03:47', 'Approved', 0, 1, 0, 'comment', 0, 0, ''),
(2, 'comment', 5, 'question', 'www', '2024-11-10 23:04:08', 'Approved', 0, 1, 0, 'comment', 0, 0, ''),
(3, 'comment', 5, 'question', 'eee', '2024-11-10 23:04:24', 'Approved', 0, 1, 0, 'first_order_reply', 2, 5, ''),
(4, 'comment', 5, 'question', 'rrr', '2024-11-10 23:04:53', 'Approved', 0, 1, 0, 'first_order_reply', 2, 5, ''),
(5, 'comment', 5, 'question', 'ttt', '2024-11-10 23:05:23', 'Approved', 0, 1, 0, 'second_order_reply', 4, 5, ''),
(6, 'comment', 5, 'question', 'yyy', '2024-11-10 23:06:22', 'Approved', 0, 1, 0, 'second_order_reply', 4, 5, ''),
(7, 'comment', 5, 'question', 'yyy', '2024-11-10 23:07:24', 'Approved', 0, 1, 0, 'second_order_reply', 4, 5, ''),
(8, 'comment', 5, 'question', 'iii', '2024-11-10 23:21:32', 'Approved', 0, 1, 0, 'first_order_reply', 2, 5, ''),
(9, 'comment', 5, 'question', 'ccc', '2024-11-10 23:22:19', 'Approved', 0, 1, 0, 'first_order_reply', 2, 5, ''),
(10, 'comment', 5, 'question', 'ddd', '2024-11-10 23:22:34', 'Approved', 0, 1, 0, 'second_order_reply', 4, 5, ''),
(11, 'comment', 5, 'question', 'xxx', '2024-11-10 23:23:02', 'Approved', 0, 1, 0, 'second_order_reply', 4, 5, ''),
(12, 'comment', 5, 'question', '111', '2024-11-10 23:25:24', 'Approved', 0, 1, 0, 'comment', 0, 0, ''),
(13, 'comment', 5, 'question', '222', '2024-11-10 23:25:42', 'Approved', 0, 1, 0, 'first_order_reply', 2, 5, ''),
(14, 'comment', 5, 'question', '333', '2024-11-10 23:26:07', 'Approved', 0, 1, 0, 'second_order_reply', 9, 5, ''),
(15, 'comment', 5, 'question', '444', '2024-11-10 23:26:45', 'Approved', 0, 1, 0, 'second_order_reply', 4, 5, ''),
(16, 'comment', 5, 'question', '555', '2024-11-10 23:27:04', 'Approved', 0, 1, 0, 'first_order_reply', 1, 5, ''),
(17, 'comment', 5, 'question', '666', '2024-11-10 23:38:24', 'Approved', 0, 1, 0, 'second_order_reply', 4, 5, ''),
(18, 'comment', 5, 'question', '777', '2024-11-10 23:38:48', 'Approved', 0, 1, 0, 'second_order_reply', 4, 5, ''),
(19, 'comment', 5, 'question', 'qw', '2024-11-10 23:39:19', 'Approved', 0, 1, 0, 'first_order_reply', 2, 5, ''),
(20, 'comment', 5, 'question', 'ggg', '2024-11-10 23:49:38', 'Approved', 0, 1, 0, 'comment', 0, 0, ''),
(21, 'comment', 5, 'question', 'jjj', '2024-11-10 23:50:04', 'Approved', 0, 1, 0, 'first_order_reply', 12, 5, ''),
(22, 'comment', 5, 'question', 'eee', '2024-11-10 23:53:54', 'Approved', 0, 1, 0, 'first_order_reply', 12, 5, ''),
(23, 'comment', 5, 'question', 'fff', '2024-11-10 23:54:10', 'Approved', 0, 1, 0, 'second_order_reply', 9, 5, ''),
(24, 'comment', 5, 'question', 'qqq', '2024-11-11 00:10:16', 'Approved', 0, 3, 0, 'comment', 0, 0, ''),
(25, 'comment', 5, 'question', 'www', '2024-11-11 00:10:43', 'Approved', 0, 3, 0, 'first_order_reply', 24, 5, ''),
(26, 'comment', 5, 'question', 'eee', '2024-11-11 00:10:57', 'Approved', 0, 3, 0, 'second_order_reply', 25, 5, ''),
(27, 'comment', 5, 'question', 'tt', '2024-11-11 00:11:09', 'Approved', 0, 3, 0, 'first_order_reply', 24, 5, ''),
(28, 'comment', 5, 'question', 'ggg', '2024-11-11 00:11:18', 'Approved', 0, 3, 0, 'second_order_reply', 25, 5, ''),
(29, 'feedback', 5, 'question', 'ddd', '2024-11-11 00:12:06', 'Approved', 0, 3, 0, 'feedback', 0, 0, 'Reason for feedback - please select'),
(30, 'comment', 5, 'question', 'aa', '2024-11-11 00:16:07', 'Approved', 0, 3, 0, 'comment', 0, 0, ''),
(31, 'comment', 5, 'question', 'xx', '2024-11-11 00:18:08', 'Approved', 0, 3, 0, 'first_order_reply', 30, 5, ''),
(32, 'comment', 5, 'question', 'ggg', '2024-11-11 00:22:18', 'Approved', 0, 3, 0, 'second_order_reply', 27, 5, ''),
(33, 'comment', 5, 'question', 'zzz', '2024-11-11 00:23:43', 'Approved', 0, 4, 0, 'comment', 0, 0, ''),
(34, 'comment', 5, 'question', 'fff', '2024-11-11 00:23:50', 'Approved', 0, 4, 0, 'first_order_reply', 33, 5, ''),
(35, 'comment', 5, 'question', 'ggg', '2024-11-11 00:23:57', 'Approved', 0, 4, 0, 'second_order_reply', 34, 5, ''),
(36, 'comment', 5, 'question', 'aa', '2024-11-11 00:25:34', 'Approved', 0, 4, 0, 'second_order_reply', 34, 5, ''),
(37, 'comment', 5, 'question', 'vvv', '2024-11-11 00:27:11', 'Approved', 0, 4, 0, 'second_order_reply', 34, 5, ''),
(38, 'comment', 5, 'question', 'fff', '2024-11-11 00:36:45', 'Approved', 0, 4, 0, 'second_order_reply', 34, 5, ''),
(39, 'comment', 5, 'question', 'zz', '2024-11-11 00:37:49', 'Approved', 0, 4, 0, 'first_order_reply', 33, 5, ''),
(40, 'comment', 5, 'question', 'xx', '2024-11-11 00:37:59', 'Approved', 0, 4, 0, 'second_order_reply', 39, 5, ''),
(41, 'comment', 5, 'question', 'sss', '2024-11-11 00:40:35', 'Approved', 0, 4, 0, 'first_order_reply', 33, 5, ''),
(42, 'comment', 5, 'question', 'hhh', '2024-11-11 00:40:49', 'Approved', 0, 4, 0, 'second_order_reply', 41, 5, ''),
(43, 'comment', 5, 'question', 'qqq', '2024-11-11 00:42:36', 'Approved', 0, 4, 0, 'second_order_reply', 41, 5, ''),
(44, 'comment', 5, 'question', 'vvv', '2024-11-11 00:49:35', 'Approved', 0, 4, 0, 'second_order_reply', 34, 5, ''),
(45, 'comment', 5, 'question', 'ggg', '2024-11-11 00:49:55', 'Approved', 0, 4, 0, 'second_order_reply', 34, 5, ''),
(46, 'comment', 5, 'question', 'zzz', '2024-11-11 01:03:27', 'Approved', 0, 4, 0, 'first_order_reply', 33, 5, ''),
(47, 'comment', 5, 'question', 'bbb', '2024-11-11 01:03:39', 'Approved', 0, 4, 0, 'second_order_reply', 46, 5, ''),
(48, 'comment', 5, 'question', 'nnn', '2024-11-11 01:03:52', 'Approved', 0, 4, 0, 'second_order_reply', 46, 5, ''),
(49, 'comment', 5, 'question', 'ff', '2024-11-11 01:04:30', 'Approved', 0, 4, 0, 'first_order_reply', 33, 5, '');

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

--
-- Table structure for table `review_likes`
--

CREATE TABLE `review_likes` (
  `id` int(11) NOT NULL,
  `review_id` int(11) NOT NULL,
  `liked_user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `review_likes`
--

INSERT INTO `review_likes` (`id`, `review_id`, `liked_user_id`) VALUES
(1, 2, 5),
(2, 3, 5),
(3, 4, 5);

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

--
-- Table structure for table `sub_categories`
--

CREATE TABLE `sub_categories` (
  `id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `category_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `text_highlight`
--

CREATE TABLE `text_highlight` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `quiz_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `text` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Indexes for dumped tables
--

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

--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
  ADD PRIMARY KEY (`category_id`);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `text_highlight`
--
ALTER TABLE `text_highlight`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=162;
COMMIT;

