-- phpMyAdmin SQL Dump -- version 5.2.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 02, 2023 at 01:40 PM -- Server version: 10.4.24-MariaDB -- PHP Version: 8.1.6 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 */; -- -------------------------------------------------------- -- -- Table structure for table `admin_login` -- CREATE TABLE `admin_login` ( `id` int(11) NOT NULL, `username` varchar(100) NOT NULL, `password` varchar(1000) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `admin_login` -- INSERT INTO `admin_login` (`id`, `username`, `password`) VALUES (1, 'Admin', '12345'); -- -------------------------------------------------------- -- -- Table structure for table `adsettings` -- CREATE TABLE `adsettings` ( `id` int(11) NOT NULL, `name` text NOT NULL, `adId` varchar(500) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `adsettings` -- INSERT INTO `adsettings` (`id`, `name`, `adId`) VALUES (1, 'Native Banner Ad', ''), (2, 'Interstitial Ad', ''), (3, 'Rewarded Ad', ''); -- -------------------------------------------------------- -- -- Table structure for table `appinfo` -- CREATE TABLE `appinfo` ( `id` int(11) NOT NULL, `name` text NOT NULL, `description` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `appinfo` -- INSERT INTO `appinfo` (`id`, `name`, `description`) VALUES (1, 'Privacy Policy', ''), (2, 'About Us', ''); -- -------------------------------------------------------- -- -- Table structure for table `avatars` -- CREATE TABLE `avatars` ( `id` int(11) NOT NULL, `name` text NOT NULL, `image` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `avatars` -- INSERT INTO `avatars` (`id`, `name`, `image`) VALUES (4, 'Girl Avatar 1', 'uploads/avatars/avatar63b2b41b0d9cd7.55490477.jpg'), (5, 'Girl Avatar 2', 'uploads/avatars/avatar63b2b4254882e1.51014259.jpg'), (6, 'Boy Avatar 1', 'uploads/avatars/avatar63b2b43bce6dc8.56594021.jpg'), (7, 'Girl Avatar 3', 'uploads/avatars/avatar63b2b452e44900.53618570.jpg'), (8, 'Boy Avatar 2', 'uploads/avatars/avatar63b2b45d910523.53854962.jpg'), (9, 'Boy Avatar 3', 'uploads/avatars/avatar63b2b467908f74.26887437.jpg'); -- -------------------------------------------------------- -- -- Table structure for table `basicsettings` -- CREATE TABLE `basicsettings` ( `id` int(11) NOT NULL, `name` text NOT NULL, `value` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `basicsettings` -- INSERT INTO `basicsettings` (`id`, `name`, `value`) VALUES (1, 'Home Quiz Count', '4'), (2, 'adEnabled', '1'), (3, 'Daily Check In Prize', '10'), (4, 'Minimum Withdraw Limit', '10'), (5, 'Maximum Withdraw Time', '2'), (6, 'Conversion Rate', '100'), (7, 'Firebase Key', ''), (8, 'Base URL', ''), (9, 'Admin Panel Name', 'Quizze V 2.0'), (10, 'Dashboard Icon', 'uploads/admin_panel/admin_panel63aac0d60f05e4.17073591.png'), (11, 'Login Image', 'uploads/admin_panel/admin_panel63ac3d0fc81449.85237247.png'); -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` int(11) NOT NULL, `name` text NOT NULL, `icon` text NOT NULL, `colorCode` int(11) NOT NULL, `totalQuizzes` int(11) NOT NULL, `priority` tinyint(1) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `dailyquizquestions` -- CREATE TABLE `dailyquizquestions` ( `id` int(11) NOT NULL, `question` text NOT NULL, `image` text NOT NULL, `optionA` text NOT NULL, `optionB` text NOT NULL, `optionC` text NOT NULL, `optionD` text NOT NULL, `answer` text NOT NULL, `questionDate` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `dailyquizsettings` -- CREATE TABLE `dailyquizsettings` ( `id` int(11) NOT NULL, `name` text NOT NULL, `value` varchar(500) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `dailyquizsettings` -- INSERT INTO `dailyquizsettings` (`id`, `name`, `value`) VALUES (1, 'Entry Fee', '10'), (2, 'Prize Per Question', '1.5'), (3, 'Question Limit', '5'), (4, 'Lives Available', '2'), (5, 'Quiz Time', '10'); -- -------------------------------------------------------- -- -- Table structure for table `earninglevels` -- CREATE TABLE `earninglevels` ( `id` int(11) NOT NULL, `name` text NOT NULL, `icon` text NOT NULL, `greetings` text NOT NULL, `minLimit` int(11) NOT NULL, `maxLimit` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `earninglevels` -- INSERT INTO `earninglevels` (`id`, `name`, `icon`, `greetings`, `minLimit`, `maxLimit`) VALUES (1, 'Bronze', 'uploads/badges/badge63a453d0468b71.37698276.png', 'Great ! You are learning', 0, 100), (2, 'Silver Medal', 'uploads/badges/badge63a453f31848c0.83407452.png', 'You you are playing very well keep it up', 101, 250), (3, 'Gold Medal', 'uploads/badges/badge63a45414cf9120.88739058.png', 'You are the pro', 251, 500); -- -------------------------------------------------------- -- -- Table structure for table `games` -- CREATE TABLE `games` ( `id` int(11) NOT NULL, `name` text NOT NULL, `icon` text NOT NULL, `gameUrl` text NOT NULL, `colorCode` int(11) NOT NULL, `bgImage` text NOT NULL, `priority` tinyint(1) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `playinghistory` -- CREATE TABLE `playinghistory` ( `id` int(11) NOT NULL, `uId` text NOT NULL, `icon` text NOT NULL, `activity` text NOT NULL, `coins` int(11) NOT NULL, `paid` tinyint(1) NOT NULL, `status` tinyint(1) NOT NULL, `type` text NOT NULL, `date` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `questions` -- CREATE TABLE `questions` ( `id` int(11) NOT NULL, `question` text NOT NULL, `image` text NOT NULL, `optionA` text NOT NULL, `optionB` text NOT NULL, `optionC` text NOT NULL, `optionD` text NOT NULL, `answer` text NOT NULL, `quizId` int(11) NOT NULL, `difficulty` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `quizhistory` -- CREATE TABLE `quizhistory` ( `id` int(11) NOT NULL, `uId` text NOT NULL, `quizName` text NOT NULL, `icon` text NOT NULL, `color` int(11) NOT NULL, `totalQuestions` int(11) NOT NULL, `questionAttempted` int(11) NOT NULL, `correctAnswers` int(11) NOT NULL, `wrongAnswers` int(11) NOT NULL, `entryFee` int(11) NOT NULL, `prize` int(11) NOT NULL, `date` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `quizzes` -- CREATE TABLE `quizzes` ( `id` int(11) NOT NULL, `categoryId` int(11) NOT NULL, `name` text NOT NULL, `icon` text NOT NULL, `entryFee` int(11) NOT NULL, `prizePerQuestion` float NOT NULL, `colorCode` int(11) NOT NULL, `priority` tinyint(1) NOT NULL DEFAULT 0, `questionLimit` int(11) NOT NULL, `livesAvailable` int(11) NOT NULL, `easy` tinyint(1) NOT NULL, `medium` tinyint(1) NOT NULL, `hard` tinyint(1) NOT NULL, `time` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `rewardsettings` -- CREATE TABLE `rewardsettings` ( `id` int(11) NOT NULL, `name` text NOT NULL, `value` varchar(500) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `rewardsettings` -- INSERT INTO `rewardsettings` (`id`, `name`, `value`) VALUES (1, 'Watch Ad Coin Reward', '10'), (2, 'Invite Sender Reward', '100'), (3, 'Invitee Reward', '20'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `uId` text NOT NULL, `name` text NOT NULL, `email` text NOT NULL, `avatar` text NOT NULL, `coins` int(11) NOT NULL DEFAULT 0, `totalCoins` int(11) NOT NULL DEFAULT 0, `isBanned` tinyint(1) NOT NULL DEFAULT 0, `levelId` int(11) NOT NULL, `quizPlayed` int(11) NOT NULL DEFAULT 0, `inviteCode` text NOT NULL, `invitedBy` text DEFAULT NULL, `accountCreated` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `withdrawmethods` -- CREATE TABLE `withdrawmethods` ( `id` int(11) NOT NULL, `name` text NOT NULL, `icon` text NOT NULL, `idName` text NOT NULL, `enabled` tinyint(1) NOT NULL DEFAULT 1 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `withdrawmethods` -- INSERT INTO `withdrawmethods` (`id`, `name`, `icon`, `idName`, `enabled`) VALUES (1, 'Phone Pe', 'https://download.logo.wine/logo/PhonePe/PhonePe-Logo.wine.png', 'Phone pe no', 1), (2, 'Paytm', 'https://upload.wikimedia.org/wikipedia/commons/thumb/2/24/Paytm_Logo_%28standalone%29.svg/2560px-Paytm_Logo_%28standalone%29.svg.png', 'Paytm No', 1), (3, 'Paypal', 'https://cdn.pixabay.com/photo/2015/05/26/09/37/paypal-784404_1280.png', 'Paypal id', 1), (4, 'Google Pay', 'https://assets.stickpng.com/images/60e7f964711cf700048b6a6a.png', 'Google pay id', 1); -- -------------------------------------------------------- -- -- Table structure for table `withdrawrequests` -- CREATE TABLE `withdrawrequests` ( `id` int(11) NOT NULL, `uId` text NOT NULL, `method` text NOT NULL, `methodId` text NOT NULL, `amount` float NOT NULL, `coins` float NOT NULL, `status` tinyint(1) NOT NULL DEFAULT 0, `requestTime` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Indexes for dumped tables -- -- -- Indexes for table `admin_login` -- ALTER TABLE `admin_login` ADD PRIMARY KEY (`id`); -- -- Indexes for table `adsettings` -- ALTER TABLE `adsettings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `appinfo` -- ALTER TABLE `appinfo` ADD PRIMARY KEY (`id`); -- -- Indexes for table `avatars` -- ALTER TABLE `avatars` ADD PRIMARY KEY (`id`); -- -- Indexes for table `basicsettings` -- ALTER TABLE `basicsettings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `dailyquizquestions` -- ALTER TABLE `dailyquizquestions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `dailyquizsettings` -- ALTER TABLE `dailyquizsettings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `earninglevels` -- ALTER TABLE `earninglevels` ADD PRIMARY KEY (`id`); -- -- Indexes for table `games` -- ALTER TABLE `games` ADD PRIMARY KEY (`id`); -- -- Indexes for table `playinghistory` -- ALTER TABLE `playinghistory` ADD PRIMARY KEY (`id`); -- -- Indexes for table `questions` -- ALTER TABLE `questions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `quizhistory` -- ALTER TABLE `quizhistory` ADD PRIMARY KEY (`id`); -- -- Indexes for table `quizzes` -- ALTER TABLE `quizzes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `rewardsettings` -- ALTER TABLE `rewardsettings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- Indexes for table `withdrawmethods` -- ALTER TABLE `withdrawmethods` ADD PRIMARY KEY (`id`); -- -- Indexes for table `withdrawrequests` -- ALTER TABLE `withdrawrequests` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admin_login` -- ALTER TABLE `admin_login` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `adsettings` -- ALTER TABLE `adsettings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `appinfo` -- ALTER TABLE `appinfo` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `avatars` -- ALTER TABLE `avatars` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `basicsettings` -- ALTER TABLE `basicsettings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `dailyquizquestions` -- ALTER TABLE `dailyquizquestions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `dailyquizsettings` -- ALTER TABLE `dailyquizsettings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `earninglevels` -- ALTER TABLE `earninglevels` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `games` -- ALTER TABLE `games` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `playinghistory` -- ALTER TABLE `playinghistory` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `questions` -- ALTER TABLE `questions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- AUTO_INCREMENT for table `quizhistory` -- ALTER TABLE `quizhistory` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `quizzes` -- ALTER TABLE `quizzes` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `rewardsettings` -- ALTER TABLE `rewardsettings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `withdrawmethods` -- ALTER TABLE `withdrawmethods` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `withdrawrequests` -- ALTER TABLE `withdrawrequests` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; 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 */;