You are on page 1of 88

-- phpMyAdmin SQL Dump

-- version 5.1.1

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

--

-- Host: 127.0.0.1

-- Generation Time: Mar 04, 2023 at 08:36 AM

-- Server version: 10.4.22-MariaDB

-- PHP Version: 7.4.27

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

--

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

--
-- Table structure for table `actions`

--

CREATE TABLE `actions` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `activities`

--

CREATE TABLE `activities` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`amount` decimal(16,2) NOT NULL,

`from` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;


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

--

-- Table structure for table `admin_notifications`

--

CREATE TABLE `admin_notifications` (

`id` bigint(20) UNSIGNED NOT NULL,

`type` tinyint(1) NOT NULL,

`message_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`message_content` text COLLATE utf8mb4_unicode_ci NOT NULL,

`status` tinyint(1) NOT NULL DEFAULT 0,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `admin_notifications`

--

INSERT INTO `admin_notifications` (`id`, `type`, `message_title`, `message_content`, `status`,


`created_at`, `updated_at`) VALUES

(1, 1, 'Demo Announcement', 'This is a demo global announcement for users!', 1, NULL, NULL);

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

-- Table structure for table `ads`

--

CREATE TABLE `ads` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`description` text COLLATE utf8mb4_unicode_ci NOT NULL,

`current_views` int(11) NOT NULL DEFAULT 0,

`duration` int(11) NOT NULL,

`is_paused` tinyint(1) NOT NULL DEFAULT 0,

`is_featured` tinyint(1) NOT NULL DEFAULT 0,

`is_limited` tinyint(1) NOT NULL DEFAULT 0,

`limit` int(11) DEFAULT NULL,

`is_geotargeting` tinyint(1) NOT NULL DEFAULT 0,

`geo_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`is_finished` tinyint(1) NOT NULL DEFAULT 0,

`need_approval` tinyint(1) NOT NULL DEFAULT 0,

`is_approved` tinyint(1) NOT NULL DEFAULT 0,

`ad_budget` decimal(16,2) NOT NULL DEFAULT 0.00,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`is_rejected` tinyint(1) NOT NULL DEFAULT 0


) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `articles`

--

CREATE TABLE `articles` (

`id` bigint(20) UNSIGNED NOT NULL,

`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`content` text COLLATE utf8mb4_unicode_ci NOT NULL,

`meta_description` text COLLATE utf8mb4_unicode_ci NOT NULL,

`meta_keywords` text COLLATE utf8mb4_unicode_ci NOT NULL,

`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`status` tinyint(1) NOT NULL DEFAULT 1,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `articles`

--
INSERT INTO `articles` (`id`, `title`, `content`, `meta_description`, `meta_keywords`, `image`,
`status`, `created_at`, `updated_at`, `slug`) VALUES

(1, 'How to earn free bitcoin?', 'Lorem 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.', 'Lorem Ipsum is simply dummy text of the printing and
typesetting industry.', 'lorem, ipsum, dummy, text', 'cryptofaucet.png', 1, '2023-03-04 05:27:12',
NULL, 'how-to-earn-free-bitcoin'),

(2, 'Top 10 ways to earn free cryptocurrencies', 'Lorem 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.', 'Lorem Ipsum is simply dummy text of the
printing and typesetting industry.', 'lorem, ipsum, dummy, text', 'cryptofaucet.png', 1, '2023-03-04
05:27:12', NULL, 'top-10-ways-to-earn-free-cryptocurrencies'),

(3, 'How much will be the price of Bitcoin in 2025?', 'Lorem 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.', 'Lorem Ipsum is simply dummy text of the
printing and typesetting industry.', 'lorem, ipsum, dummy, text', 'cryptofaucet.png', 1, '2023-03-04
05:27:12', NULL, 'how-much-will-be-the-price-of-bitcoin-in-2025');

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

--

-- Table structure for table `banner_ads`

--
CREATE TABLE `banner_ads` (

`id` bigint(20) UNSIGNED NOT NULL,

`size` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`code` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `banner_ads`

--

INSERT INTO `banner_ads` (`id`, `size`, `code`, `created_at`, `updated_at`) VALUES

(1, '300x250', NULL, NULL, NULL),

(2, '728x90', NULL, NULL, NULL),

(3, '300x600', NULL, NULL, NULL),

(4, '468x60', NULL, NULL, NULL);

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

--

-- Table structure for table `bets`

--

CREATE TABLE `bets` (


`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`bet_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`secret` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`bet_amount` decimal(16,2) NOT NULL,

`chance` decimal(16,2) NOT NULL,

`roll` int(11) NOT NULL,

`profit` tinyint(1) NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`net_profit` decimal(16,2) DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `coins`

--

CREATE TABLE `coins` (

`id` bigint(20) UNSIGNED NOT NULL,

`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`abbreviation` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`status` tinyint(1) NOT NULL DEFAULT 1,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,


`ticker` decimal(16,4) DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `coins`

--

INSERT INTO `coins` (`id`, `name`, `abbreviation`, `status`, `created_at`, `updated_at`, `ticker`)
VALUES

(1, 'Bitcoin', 'BTC', 1, NULL, NULL, NULL),

(2, 'Bitcoin Cash', 'BCH', 1, NULL, NULL, NULL),

(3, 'Litecoin', 'LTC', 1, NULL, NULL, NULL),

(4, 'Dogecoin', 'DOGE', 1, NULL, NULL, NULL);

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

--

-- Table structure for table `contents`

--

CREATE TABLE `contents` (

`id` bigint(20) UNSIGNED NOT NULL,

`header_text1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`header_text2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`header_text3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`header_image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,


`header_coin_image1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`header_coin_image2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`header_coin_image3` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`why_choose_us` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`features_text1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`features_text2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`features_box1_title` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`features_box2_title` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`features_box3_title` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`features_box1_subtitle` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`features_box2_subtitle` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`features_box3_subtitle` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`features_image1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`features_image2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`features_image3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`start_text1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`start_text2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`start_text3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`start_box1_title` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`start_box1_subtitle` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`start_box2_title` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`start_box2_subtitle` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`start_box3_title` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`start_box3_subtitle` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`payment_proofs` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`review_text1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,


`review_text2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`review_text3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`blog_text1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`blog_text2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`blog_text3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`faq_text1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`faq_text2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`faq_text3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `contents`

--

INSERT INTO `contents` (`id`, `header_text1`, `header_text2`, `header_text3`, `header_image`,


`header_coin_image1`, `header_coin_image2`, `header_coin_image3`, `why_choose_us`,
`features_text1`, `features_text2`, `features_box1_title`, `features_box2_title`,
`features_box3_title`, `features_box1_subtitle`, `features_box2_subtitle`,
`features_box3_subtitle`, `features_image1`, `features_image2`, `features_image3`, `start_text1`,
`start_text2`, `start_text3`, `start_box1_title`, `start_box1_subtitle`, `start_box2_title`,
`start_box2_subtitle`, `start_box3_title`, `start_box3_subtitle`, `payment_proofs`, `review_text1`,
`review_text2`, `review_text3`, `blog_text1`, `blog_text2`, `blog_text3`, `faq_text1`, `faq_text2`,
`faq_text3`, `created_at`, `updated_at`) VALUES

(1, 'Start Play & Earn Money', 'Best Crypto Faucet Worldwide', 'Invest your spare time and earn
some free cryptocurrencies!', 'home2-bg.png', 'h2-bit-l.png', 'h2-bit-m.png', 'h2-bit-s.png', 'Why
Choose Us', 'Our Features', 'There are many variations of passages of Lorem Ipsum available, but
the majority have suffered alteration in some form.', 'Many Ways To Earn', 'Safe & Secure', 'Many
Ways to Withdraw', 'There are many variations of passages of Lorem Ipsum available, but the
majority have suffered alteration in some form.', 'There are many variations of passages of Lorem
Ipsum available, but the majority have suffered alteration in some form.', 'There are many
variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some
form.', 'feature-icon-1.png', 'feature-icon-2.png', 'feature-icon-3.png', 'Ready To Get Started?', '3
Steps To Start', 'There are many variations of passages of Lorem Ipsum available, but the majority
have suffered alteration in some form.', 'Create your Account', 'Lorem ipsum dolor sit amet,
consectetur adipisicing elit. Quos consectetur tidio.', 'Earn Daily', 'Lorem ipsum dolor sit amet,
consectetur adipisicing elit. Quos consectetur tidio.', 'Withdraw Instant', 'Lorem ipsum dolor sit
amet, consectetur adipisicing elit. Quos consectetur tidio.', 'Statistics & Payment Proofs', 'User
Reviews', 'Our Testimonials', 'There are many variations of passages of Lorem Ipsum available, but
the majority have suffered alteration in some form.', 'Blogs', 'Our Latest News', 'There are many
variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some
form.', 'Faq', 'Frequently Asked Questions', 'There are many variations of passages of Lorem Ipsum
available, but the majority have suffered alteration in some form.', NULL, NULL);

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

--

-- Table structure for table `deposits`

--

CREATE TABLE `deposits` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`method` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`amount` decimal(16,2) NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

-- Table structure for table `dice_settings`

--

CREATE TABLE `dice_settings` (

`id` bigint(20) UNSIGNED NOT NULL,

`min_bet` decimal(16,2) NOT NULL DEFAULT 1.00,

`max_bet` decimal(32,2) NOT NULL DEFAULT 10000.00,

`top_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`center_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`bottom_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`status` tinyint(1) NOT NULL DEFAULT 1,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`house` decimal(16,2) NOT NULL DEFAULT 0.01

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `dice_settings`

--

INSERT INTO `dice_settings` (`id`, `min_bet`, `max_bet`, `top_ad`, `center_ad`, `bottom_ad`,


`status`, `created_at`, `updated_at`, `house`) VALUES

(1, '1.00', '10000.00', NULL, NULL, NULL, 1, NULL, NULL, '0.01');


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

--

-- Table structure for table `failed_jobs`

--

CREATE TABLE `failed_jobs` (

`id` bigint(20) UNSIGNED NOT NULL,

`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,

`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,

`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,

`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,

`failed_at` timestamp NOT NULL DEFAULT current_timestamp()

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `faqs`

--

CREATE TABLE `faqs` (

`id` bigint(20) UNSIGNED NOT NULL,

`question` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`answer` text COLLATE utf8mb4_unicode_ci NOT NULL,


`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `faqs`

--

INSERT INTO `faqs` (`id`, `question`, `answer`, `created_at`, `updated_at`) VALUES

(1, 'This is a dummy question number 1', 'This is a dummy answer for question number 1', NULL,
NULL),

(2, 'This is a dummy question number 2', 'This is a dummy answer for question number 2', NULL,
NULL),

(3, 'This is a dummy question number 3', 'This is a dummy answer for question number 3', NULL,
NULL),

(4, 'This is a dummy question number 4', 'This is a dummy answer for question number 4', NULL,
NULL),

(5, 'This is a dummy question number 5', 'This is a dummy answer for question number 5', NULL,
NULL),

(6, 'This is a dummy question number 6', 'This is a dummy answer for question number 6', NULL,
NULL);

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

--

-- Table structure for table `faucet_claims`

--
CREATE TABLE `faucet_claims` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`claim_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`amount` decimal(16,0) NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `faucet_settings`

--

CREATE TABLE `faucet_settings` (

`id` bigint(20) UNSIGNED NOT NULL,

`timer` int(11) NOT NULL DEFAULT 5,

`is_limited` tinyint(1) NOT NULL DEFAULT 0,

`limits` int(11) DEFAULT NULL,

`reward_type` tinyint(1) NOT NULL DEFAULT 0,

`reward_fixed` decimal(16,0) NOT NULL DEFAULT 2,

`reward_min` decimal(16,0) NOT NULL DEFAULT 1,

`reward_max` decimal(16,0) NOT NULL DEFAULT 5,

`with_authenticator` tinyint(1) NOT NULL DEFAULT 0,

`status` tinyint(1) NOT NULL DEFAULT 1,


`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`recaptcha_site_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`recaptcha_secret_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`top_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`bottom_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`left_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`right_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`claim_bottom_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `faucet_settings`

--

INSERT INTO `faucet_settings` (`id`, `timer`, `is_limited`, `limits`, `reward_type`, `reward_fixed`,


`reward_min`, `reward_max`, `with_authenticator`, `status`, `created_at`, `updated_at`,
`recaptcha_site_key`, `recaptcha_secret_key`, `top_ad`, `bottom_ad`, `left_ad`, `right_ad`,
`claim_bottom_ad`) VALUES

(1, 5, 1, 10, 0, '2', '1', '5', 0, 1, NULL, NULL, '6LcHhK8iAAAAAHNRuPArti4HT8JYAlpyeWB2qvWx',


'6LcHhK8iAAAAAMV1n42SnM-KGg5V0z_kMisVaeMG', NULL, NULL, NULL, NULL, NULL);

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

--

-- Table structure for table `features`

--
CREATE TABLE `features` (

`id` bigint(20) UNSIGNED NOT NULL,

`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`text` text COLLATE utf8mb4_unicode_ci NOT NULL,

`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `features`

--

INSERT INTO `features` (`id`, `title`, `text`, `image`, `created_at`, `updated_at`) VALUES

(1, 'Faucet', 'Earn crypto by claiming the faucet', 'feature-icon-1.png', NULL, NULL),

(2, 'PTC', 'Earn crypto by viewing advertisements', 'feature-icon-2.png', NULL, NULL),

(3, 'Tasks', 'Earn crypto by doing tasks', 'feature-icon-3.png', NULL, NULL),

(4, 'Offewalls', 'Earn crypto by completing surveys', 'feature-icon-1.png', NULL, NULL),

(5, 'Dice', 'Earn crypto by playing dice', 'feature-icon-2.png', NULL, NULL),

(6, 'Shortlinks', 'Earn crypto by accessing shortlinks', 'feature-icon-3.png', NULL, NULL),

(7, 'Weekly Contest', 'Earn crypto by participating in contests', 'feature-icon-1.png', NULL, NULL);

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

--
-- Table structure for table `games`

--

CREATE TABLE `games` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`secret` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`roll` int(11) NOT NULL,

`is_used` tinyint(1) NOT NULL DEFAULT 0,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `general_settings`

--

CREATE TABLE `general_settings` (

`id` bigint(20) UNSIGNED NOT NULL,

`site_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`meta_description` text COLLATE utf8mb4_unicode_ci NOT NULL,

`meta_keywords` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`social_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`social_description` text COLLATE utf8mb4_unicode_ci NOT NULL,


`site_color` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`referral_system_status` tinyint(1) NOT NULL DEFAULT 0,

`referral_percentage` decimal(3,2) NOT NULL DEFAULT 5.00,

`email_verification` tinyint(1) NOT NULL DEFAULT 0,

`email_notification` tinyint(1) NOT NULL DEFAULT 0,

`tawk` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`recaptcha` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`analytics` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`footer_codes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`mail_host` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`mail_port` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`mail_username` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`mail_password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`mail_encryption` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`mail_from_address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`mail_from_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`site_logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`site_logo_text` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`site_favicon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`site_have_logo` tinyint(1) NOT NULL DEFAULT 0,

`copyright` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`register_status` tinyint(1) NOT NULL DEFAULT 1,

`recaptcha_secret_key` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`review_section_status` tinyint(1) NOT NULL DEFAULT 1,


`blog_section_status` tinyint(1) NOT NULL DEFAULT 1,

`site_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`support_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`recaptcha_status` tinyint(1) NOT NULL DEFAULT 0,

`show_activities` tinyint(1) NOT NULL DEFAULT 1,

`currency_abbreviation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`fiat_currency_abbreviation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`coin_to_fiat` decimal(16,8) DEFAULT NULL,

`decimals` int(11) NOT NULL DEFAULT 4,

`min_deposit` decimal(16,2) NOT NULL DEFAULT 10.00,

`max_deposit` decimal(16,2) NOT NULL DEFAULT 1000.00,

`lottery_status` tinyint(1) NOT NULL DEFAULT 1,

`min_withdraw` decimal(32,2) NOT NULL DEFAULT 100.00,

`max_withdraw` decimal(32,2) NOT NULL DEFAULT 1000000.00,

`faucetpay_api_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`faucetpay_auto` tinyint(1) NOT NULL DEFAULT 1,

`faucetpay_status` tinyint(1) NOT NULL DEFAULT 1,

`manual_withdraw_status` tinyint(1) NOT NULL DEFAULT 1,

`ticker_api` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`direct_min_withdraw` decimal(32,2) NOT NULL DEFAULT 100000.00,

`direct_max_withdraw` decimal(32,2) NOT NULL DEFAULT 1000000.00,

`allow_same_ip` tinyint(1) NOT NULL DEFAULT 0,

`faq_section_status` tinyint(1) NOT NULL DEFAULT 1,

`facebook` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`twitter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`telegram` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,


`youtube` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`task_section_status` tinyint(1) NOT NULL DEFAULT 1,

`transfer_status` tinyint(1) NOT NULL DEFAULT 1,

`transfer_min` decimal(32,2) NOT NULL DEFAULT 1.00,

`iphub_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`detect_adblock` tinyint(1) NOT NULL DEFAULT 0,

`show_network_stats` tinyint(1) NOT NULL DEFAULT 1,

`chainpmt_api_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`chainpmt_auto` tinyint(1) NOT NULL DEFAULT 1,

`chainpmt_status` tinyint(1) NOT NULL DEFAULT 1,

`chainpmt_min_withdraw` decimal(32,2) NOT NULL DEFAULT 100.00,

`chainpmt_max_withdraw` decimal(32,2) NOT NULL DEFAULT 10000.00

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `general_settings`

--

INSERT INTO `general_settings` (`id`, `site_title`, `meta_description`, `meta_keywords`,


`social_title`, `social_description`, `site_color`, `referral_system_status`, `referral_percentage`,
`email_verification`, `email_notification`, `tawk`, `recaptcha`, `analytics`, `footer_codes`,
`mail_host`, `mail_port`, `mail_username`, `mail_password`, `mail_encryption`,
`mail_from_address`, `mail_from_name`, `site_logo`, `site_logo_text`, `site_favicon`, `created_at`,
`updated_at`, `site_have_logo`, `copyright`, `register_status`, `recaptcha_secret_key`,
`review_section_status`, `blog_section_status`, `site_name`, `support_email`, `recaptcha_status`,
`show_activities`, `currency_abbreviation`, `fiat_currency_abbreviation`, `coin_to_fiat`, `decimals`,
`min_deposit`, `max_deposit`, `lottery_status`, `min_withdraw`, `max_withdraw`,
`faucetpay_api_key`, `faucetpay_auto`, `faucetpay_status`, `manual_withdraw_status`,
`ticker_api`, `direct_min_withdraw`, `direct_max_withdraw`, `allow_same_ip`,
`faq_section_status`, `facebook`, `twitter`, `telegram`, `youtube`, `task_section_status`,
`transfer_status`, `transfer_min`, `iphub_key`, `detect_adblock`, `show_network_stats`,
`chainpmt_api_key`, `chainpmt_auto`, `chainpmt_status`, `chainpmt_min_withdraw`,
`chainpmt_max_withdraw`) VALUES

(1, 'MegaFaucet Faucet Script - tblock.dev', 'MegaFaucet meta description tblock.dev',


'megafaucet, faucet, app, tblock, dev', 'MegaFaucet App tBlock.dev', 'MegaFaucet App social
description tblock.dev', '#1e1d32', 1, '5.00', 0, 0, NULL, NULL, NULL, NULL, 'smtp.mailtrap.io', '465',
'0abdfde6c1503f', '17ddac3b27ab7d', 'tls', 'support@domain.com', 'WebsiteName', NULL,
'MegaFaucet', NULL, NULL, NULL, 0, 'Copyright 2021-2023 MegaFaucet developed by tBlock.dev',
1, NULL, 1, 1, 'MegaFaucet', 'support@email.com', 0, 1, 'Mega', 'USD', '0.00010000', 4, '10.00',
'1000.00', 1, '100.00', '1000000.00', NULL, 1, 1, 1, NULL, '100000.00', '1000000.00', 0, 1,
'https://facebook.com', 'https://twitter.com', 'https://telegram.com', 'https://youtube.com', 1, 1,
'1.00', NULL, 0, 1, NULL, 1, 1, '100.00', '10000.00');

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

--

-- Table structure for table `invoices`

--

CREATE TABLE `invoices` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`inv_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`amount` decimal(16,2) NOT NULL,

`method` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`status` tinyint(1) NOT NULL DEFAULT 0,

`is_processed` tinyint(1) NOT NULL DEFAULT 0,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL


) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `ip_hub_requests`

--

CREATE TABLE `ip_hub_requests` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`ip` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`country` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`block` int(11) NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `links`

--

CREATE TABLE `links` (

`id` bigint(20) UNSIGNED NOT NULL,


`shortlink_id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`is_used` tinyint(1) NOT NULL DEFAULT 0,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `lottery_ads`

--

CREATE TABLE `lottery_ads` (

`id` bigint(20) UNSIGNED NOT NULL,

`top_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`bottom_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `lottery_ads`

--
INSERT INTO `lottery_ads` (`id`, `top_ad`, `bottom_ad`, `created_at`, `updated_at`) VALUES

(1, NULL, NULL, NULL, NULL);

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

--

-- Table structure for table `lottery_rounds`

--

CREATE TABLE `lottery_rounds` (

`id` bigint(20) UNSIGNED NOT NULL,

`lottery_setting_id` bigint(20) UNSIGNED NOT NULL,

`start` timestamp NULL DEFAULT NULL,

`end` timestamp NULL DEFAULT NULL,

`winner_user_id` int(11) DEFAULT NULL,

`is_finished` tinyint(1) NOT NULL DEFAULT 0,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`lottery_ticket_id` int(11) DEFAULT NULL,

`round_nr` int(11) DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `lottery_settings`


--

CREATE TABLE `lottery_settings` (

`id` bigint(20) UNSIGNED NOT NULL,

`lottery_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`ticket_price` decimal(32,8) NOT NULL,

`duration_type` int(11) NOT NULL,

`duration` int(11) NOT NULL,

`status` tinyint(1) NOT NULL DEFAULT 1,

`pause_next_time` tinyint(1) NOT NULL DEFAULT 0,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`house_edge` decimal(16,2) NOT NULL DEFAULT 1.00

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `lottery_tickets`

--

CREATE TABLE `lottery_tickets` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`lottery_round_id` bigint(20) UNSIGNED NOT NULL,

`number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,


`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `migrations`

--

CREATE TABLE `migrations` (

`id` int(10) UNSIGNED NOT NULL,

`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`batch` int(11) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `migrations`

--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES

(1, '2014_10_12_000000_create_users_table', 1),

(2, '2014_10_12_100000_create_password_resets_table', 1),

(3, '2019_08_19_000000_create_failed_jobs_table', 1),

(4, '2019_12_14_000001_create_personal_access_tokens_table', 1),

(5, '2022_07_13_095955_create_general_settings_table', 1),


(6, '2022_07_13_101308_create_faqs_table', 1),

(7, '2022_07_13_101329_create_pages_table', 1),

(8, '2022_07_13_102826_add_is_admin_at_users', 1),

(9, '2022_07_13_112845_add_site_have_logo_to_general_settings', 1),

(10, '2022_07_13_113125_add_copyright_to_general_settings', 1),

(11, '2022_07_13_191412_add_register_status_to_general_settings', 1),

(12, '2022_07_15_083138_add_recaptcha_secret_key_at_general_settings', 1),

(13, '2022_07_15_150607_create_banner_ads_table', 1),

(14, '2022_07_15_153614_create_tickets_table', 1),

(15, '2022_07_15_154611_create_ticket_messages_table', 1),

(16, '2022_07_15_155938_add_t_id_to_tickets', 1),

(17, '2022_07_15_160730_add_screenshot_to_tickets', 1),

(18, '2022_07_16_130029_create_reviews_table', 1),

(19, '2022_07_16_133935_add_review_section_status_at_general_settings', 1),

(20, '2022_07_16_142407_create_articles_table', 1),

(21, '2022_07_16_142913_add_blog_section_status_at_general_settings', 1),

(22, '2022_07_16_172033_add_slug_to_articles', 1),

(23, '2022_07_16_175813_add_site_name_at_general_settings', 1),

(24, '2022_07_20_081246_create_payment_gateways_table', 1),

(25, '2022_07_20_093356_add_forward_address_to_payment_gateways', 1),

(26, '2022_08_04_072509_add_referral_id_and_referred_by_to_users', 1),

(27, '2022_08_04_072945_create_referral_earnings_table', 1),

(28, '2022_08_04_100009_add_support_email_to_general_settings', 1),

(29, '2022_08_04_111823_create_secrets_table', 1),

(30, '2022_08_04_112853_create_notifications_table', 1),

(31, '2022_08_04_121329_add_recaptcha_status_to_general_settings', 1),


(32, '2022_08_11_135704_create_admin_notifications_table', 1),

(33, '2022_10_13_080732_create_contents_table', 1),

(34, '2022_10_13_103959_create_features_table', 1),

(35, '2022_10_24_165631_create_faucet_settings_table', 1),

(36, '2022_10_25_102320_create_faucet_claims_table', 1),

(37, '2022_10_25_111733_create_actions_table', 1),

(38, '2022_10_25_124652_add_recaptcha_keys_to_faucet_settings', 1),

(39, '2022_10_25_151650_add_balances_to_users', 1),

(40, '2022_10_25_153048_create_activities_table', 1),

(41, '2022_10_25_174146_add_show_activities_to_general_settings', 1),

(42, '2022_11_03_102243_add_currency_to_general_settings', 1),

(43, '2022_11_03_153431_create_ptc_settings_table', 1),

(44, '2022_11_03_162550_create_ads_table', 1),

(45, '2022_11_04_155528_add_referral_conditioned_to_ptc_settings', 1),

(46, '2022_11_07_133031_add_minimum_ad_views_to_start_campaign', 1),

(47, '2022_11_07_175301_create_viewed_ads_table', 1),

(48, '2022_11_08_125930_add_banner_ads_to_faucet_settings', 1),

(49, '2022_11_08_145119_add_banner_ads_to_ptc_settings', 1),

(50, '2022_11_08_184918_add_is_rejected_to_ads', 1),

(51, '2022_11_10_091937_add_fields_to_payment_gateways', 1),

(52, '2022_11_10_095444_add_fields_to_general_settings', 1),

(53, '2022_11_10_104448_create_deposits_table', 1),

(54, '2022_11_10_104955_create_invoices_table', 1),

(55, '2023_01_05_134732_create_dice_settings_table', 1),

(56, '2023_01_06_110634_create_bets_table', 1),

(57, '2023_01_06_113149_create_games_table', 1),


(58, '2023_01_06_143350_add_house_to_dice_settings', 1),

(59, '2023_01_09_102951_add_net_profit_to_bets', 1),

(60, '2023_01_09_152916_create_tasks_table', 1),

(61, '2023_01_09_154836_create_task_ads_table', 1),

(62, '2023_01_11_154646_create_user_tasks_table', 1),

(63, '2023_01_14_144725_create_lottery_settings_table', 1),

(64, '2023_01_14_145504_create_lottery_ads_table', 1),

(65, '2023_01_14_171252_create_lottery_rounds_table', 1),

(66, '2023_01_16_121636_add_winner_ticket_id_to_lotter_rounds', 1),

(67, '2023_01_16_122042_create_lottery_tickets_table', 1),

(68, '2023_01_16_205134_add_round_nr_to_lottery_rounds', 1),

(69, '2023_01_17_083152_add_house_edge_at_lottery_settings', 1),

(70, '2023_01_18_125115_add_lottery_status_to_general_settings', 1),

(71, '2023_01_19_114528_create_withdraws_table', 1),

(72, '2023_01_19_124423_create_coins_table', 1),

(73, '2023_01_19_124811_add_withdraw_minimum_to_general_settings', 1),

(74, '2023_01_19_130759_add_faucetpay_fields_to_general_settings', 1),

(75, '2023_01_19_145408_add_ticker_at_coins', 1),

(76, '2023_01_19_151325_add_ticker_api_to_general_settings', 1),

(77, '2023_01_19_210956_add_min_max_direct_withdraw_at_general_settings', 1),

(78, '2023_01_21_134034_add_ip_to_users', 1),

(79, '2023_01_21_141446_add_allow_same_ip_to_general_settings', 1),

(80, '2023_02_06_183826_create_offerwalls_table', 1),

(81, '2023_02_06_185334_create_offerwall_vendors_table', 1),

(82, '2023_02_07_105314_create_offer_rewards_table', 1),

(83, '2023_02_07_140002_add_is_chargeback_to_offer_rewards', 1),


(84, '2023_02_07_175225_create_shortlink_settings_table', 1),

(85, '2023_02_07_185211_create_shortlinks_table', 1),

(86, '2023_02_07_203320_create_links_table', 1),

(87, '2023_02_08_113241_add_referral_fields_to_offerwalls_settigns', 1),

(88, '2023_02_08_133154_add_referral_fields_to_shortlink_settings', 1),

(89, '2023_02_09_172511_add_faq_section_status_to_general_settings', 1),

(90, '2023_02_09_175756_add_socials_to_general_settings', 1),

(91, '2023_02_09_184237_add_status_to_ptc_settings', 1),

(92, '2023_02_09_190819_add_task_section_status_at_general_settings', 1),

(93, '2023_02_10_131344_add_transfer_balance_to_general_settings', 1),

(94, '2023_02_10_141012_add_ip_hub_api_key_to_general_settings', 1),

(95, '2023_02_10_144040_add_ip_checked_to_users', 1),

(96, '2023_02_10_144702_add_iphub_requests_to_general_settings', 1),

(97, '2023_02_10_144823_create_ip_hub_requests_table', 1),

(98, '2023_02_10_153329_add_detect_adblock_to_general_settings', 1),

(99, '2023_02_12_111242_add_show_network_stats_to_general_settings', 1),

(100, '2023_02_12_115027_create_revenue_shares_table', 1),

(101, '2023_02_12_155948_create_shares_table', 1),

(102, '2023_02_13_113422_create_referral_contests_table', 1),

(103, '2023_02_14_121749_create_ranks_table', 1),

(104, '2023_02_14_142220_add_user_id_to_ranks', 1),

(105, '2023_02_15_104648_add_chainpmt_fields_to_general_settings', 1);

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

--
-- Table structure for table `notifications`

--

CREATE TABLE `notifications` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`type` tinyint(1) NOT NULL,

`message` text COLLATE utf8mb4_unicode_ci NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `offerwalls`

--

CREATE TABLE `offerwalls` (

`id` bigint(20) UNSIGNED NOT NULL,

`status` tinyint(1) NOT NULL DEFAULT 1,

`top_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`bottom_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`referral_status` tinyint(1) NOT NULL DEFAULT 1,


`referral_percentage` decimal(16,2) NOT NULL DEFAULT 5.00

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `offerwalls`

--

INSERT INTO `offerwalls` (`id`, `status`, `top_ad`, `bottom_ad`, `created_at`, `updated_at`,


`referral_status`, `referral_percentage`) VALUES

(1, 1, NULL, NULL, NULL, NULL, 1, '5.00');

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

--

-- Table structure for table `offerwall_vendors`

--

CREATE TABLE `offerwall_vendors` (

`id` bigint(20) UNSIGNED NOT NULL,

`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`api_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`secret` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`app_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`min_hold` decimal(16,2) DEFAULT NULL,

`hold_days` int(11) DEFAULT NULL,

`status` tinyint(1) NOT NULL DEFAULT 0,


`icon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `offerwall_vendors`

--

INSERT INTO `offerwall_vendors` (`id`, `name`, `api_key`, `secret`, `app_id`, `min_hold`,


`hold_days`, `status`, `icon`, `created_at`, `updated_at`) VALUES

(1, 'Offertoro', NULL, NULL, NULL, '100.00', 3, 1, 'offertoro.png', NULL, NULL),

(2, 'Lootably', NULL, NULL, NULL, '100.00', 3, 1, 'lootably.png', NULL, NULL),

(3, 'Wannads', NULL, NULL, NULL, '100.00', 3, 1, 'wannads.png', NULL, NULL),

(4, 'Offerdaddy', NULL, NULL, NULL, '100.00', 3, 1, 'daddy.png', NULL, NULL),

(5, 'Personaly', NULL, NULL, NULL, '100.00', 3, 1, 'personaly.png', NULL, NULL),

(6, 'CPXResearch', NULL, NULL, NULL, '100.00', 3, 1, 'cpx.png', NULL, NULL);

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

--

-- Table structure for table `offer_rewards`

--

CREATE TABLE `offer_rewards` (

`id` bigint(20) UNSIGNED NOT NULL,


`offerwall_id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`txid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`amount` decimal(32,2) NOT NULL,

`status` tinyint(1) NOT NULL DEFAULT 0,

`release_on` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE


current_timestamp(),

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`is_chargeback` tinyint(1) NOT NULL DEFAULT 0

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `pages`

--

CREATE TABLE `pages` (

`id` bigint(20) UNSIGNED NOT NULL,

`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`content` text COLLATE utf8mb4_unicode_ci NOT NULL,

`meta_description` text COLLATE utf8mb4_unicode_ci NOT NULL,

`meta_keywords` text COLLATE utf8mb4_unicode_ci NOT NULL,

`status` tinyint(1) NOT NULL DEFAULT 1,

`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,


`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `pages`

--

INSERT INTO `pages` (`id`, `title`, `content`, `meta_description`, `meta_keywords`, `status`, `slug`,
`created_at`, `updated_at`) VALUES

(1, 'Privacy Policy', 'This is a demo privacy policy', 'This is a demo meta description of privcy policy
page', 'privacy, policy, demo, meta, keywords', 1, 'privacy-policy', NULL, NULL),

(2, 'User agreement', 'This is a demo User agreement', 'This is a demo meta description of User
agreement page', 'user, agreement, demo, meta, keywords', 1, 'user-agreement', NULL, NULL),

(3, 'Terms and Conditions', 'This is a demo Terms and Conditions', 'This is a demo meta description
of Terms and Conditions page', 'terms, conditions, demo, meta, keywords', 1, 'terms-and-
conditions', NULL, NULL),

(4, 'About Us', 'This is a demo of About Us Page', 'This is a demo of About Us Page', 'about, about
us, demo, meta, keywords', 1, 'about-us', NULL, NULL);

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

--

-- Table structure for table `password_resets`

--

CREATE TABLE `password_resets` (

`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,


`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`created_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `payment_gateways`

--

CREATE TABLE `payment_gateways` (

`id` bigint(20) UNSIGNED NOT NULL,

`gateway` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`api_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`ipn_secret` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`status` tinyint(1) NOT NULL DEFAULT 0,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`forward_address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`btc` tinyint(1) NOT NULL DEFAULT 1,

`bch` tinyint(1) NOT NULL DEFAULT 0,

`ltc` tinyint(1) NOT NULL DEFAULT 0,

`doge` tinyint(1) NOT NULL DEFAULT 0,

`eth` tinyint(1) NOT NULL DEFAULT 0,

`merchant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`public_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,


`private_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`mode` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`app_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `payment_gateways`

--

INSERT INTO `payment_gateways` (`id`, `gateway`, `api_key`, `ipn_secret`, `status`, `created_at`,


`updated_at`, `forward_address`, `btc`, `bch`, `ltc`, `doge`, `eth`, `merchant_id`, `public_key`,
`private_key`, `mode`, `app_id`) VALUES

(1, 'FaucetPay', NULL, NULL, 0, NULL, NULL, NULL, 1, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL),

(2, 'PerfectMoney', NULL, NULL, 0, NULL, NULL, NULL, 1, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL),

(3, 'CoinPayments', NULL, NULL, 0, NULL, NULL, NULL, 1, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL),

(4, 'Stripe', NULL, NULL, 0, NULL, NULL, NULL, 1, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL),

(5, 'Paypal', NULL, NULL, 0, NULL, NULL, NULL, 1, 0, 0, 0, 0, NULL, NULL, NULL, 'sandbox', NULL),

(6, 'Skrill', NULL, NULL, 0, NULL, NULL, NULL, 1, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL),

(7, 'Payeer', NULL, NULL, 0, NULL, NULL, NULL, 1, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL);

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

--

-- Table structure for table `personal_access_tokens`

--
CREATE TABLE `personal_access_tokens` (

`id` bigint(20) UNSIGNED NOT NULL,

`tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`tokenable_id` bigint(20) UNSIGNED NOT NULL,

`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,

`abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`last_used_at` timestamp NULL DEFAULT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `ptc_settings`

--

CREATE TABLE `ptc_settings` (

`id` bigint(20) UNSIGNED NOT NULL,

`need_approval` tinyint(1) NOT NULL,

`featured_percent` decimal(9,2) NOT NULL,

`base_seconds` int(11) NOT NULL,

`max_seconds` int(11) NOT NULL,

`base_price_per_second` decimal(16,2) NOT NULL,

`reward_percent` decimal(9,2) NOT NULL,


`ad_rules` text COLLATE utf8mb4_unicode_ci NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`referral_conditioned` tinyint(1) NOT NULL DEFAULT 1,

`referral_conditioned_views` int(11) NOT NULL DEFAULT 2,

`referral_status` tinyint(1) NOT NULL DEFAULT 1,

`referral_percentage` decimal(8,2) NOT NULL DEFAULT 5.00,

`minimum_views` int(11) NOT NULL,

`top_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`bottom_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`left_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`right_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`view_bottom_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`status` tinyint(1) NOT NULL DEFAULT 1

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `ptc_settings`

--

INSERT INTO `ptc_settings` (`id`, `need_approval`, `featured_percent`, `base_seconds`,


`max_seconds`, `base_price_per_second`, `reward_percent`, `ad_rules`, `created_at`,
`updated_at`, `referral_conditioned`, `referral_conditioned_views`, `referral_status`,
`referral_percentage`, `minimum_views`, `top_ad`, `bottom_ad`, `left_ad`, `right_ad`,
`view_bottom_ad`, `status`) VALUES

(1, 1, '5.00', 10, 70, '0.50', '70.00', '<p><span style=\"font-weight: bolder;\">How does PTC (Paid to
Click) advertisement works?</span></p><p>You can create a PTC (Paid to Click) advertisement
and purchase traffic for your website or any website that does not break our rules. After your
purchase is complete and your ad is approved, Users will view your website for the amount of
time you have chosen. </p><p><span style=\"font-weight: bolder;\">Advertisement
Rules</span></p><p>* No URL shorteners</p><p>* No illegal products or services</p><p>* No
malicious websites or warez</p><p>* No malware, viruses, spyware, or ransomware</p><p>* No
infinite redirect loops</p><p>* No browser locking scripts or other attempts to hijack
browser</p><p>* No copyright infringing material</p><p>* No x-rated adult content</p>', NULL,
NULL, 1, 2, 1, '5.00', 10, NULL, NULL, NULL, NULL, NULL, 1);

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

--

-- Table structure for table `ranks`

--

CREATE TABLE `ranks` (

`id` bigint(20) UNSIGNED NOT NULL,

`position` int(11) NOT NULL,

`username` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`entries` int(11) DEFAULT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`user_id` int(11) DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `ranks`

--
INSERT INTO `ranks` (`id`, `position`, `username`, `entries`, `created_at`, `updated_at`, `user_id`)
VALUES

(1, 1, NULL, NULL, NULL, NULL, NULL),

(2, 2, NULL, NULL, NULL, NULL, NULL),

(3, 3, NULL, NULL, NULL, NULL, NULL),

(4, 4, NULL, NULL, NULL, NULL, NULL),

(5, 5, NULL, NULL, NULL, NULL, NULL),

(6, 6, NULL, NULL, NULL, NULL, NULL),

(7, 7, NULL, NULL, NULL, NULL, NULL),

(8, 8, NULL, NULL, NULL, NULL, NULL),

(9, 9, NULL, NULL, NULL, NULL, NULL),

(10, 10, NULL, NULL, NULL, NULL, NULL);

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

--

-- Table structure for table `referral_contests`

--

CREATE TABLE `referral_contests` (

`id` bigint(20) UNSIGNED NOT NULL,

`rules` text COLLATE utf8mb4_unicode_ci NOT NULL,

`p1_reward` decimal(32,2) NOT NULL,

`p2_reward` decimal(32,2) NOT NULL,

`p3_reward` decimal(32,2) NOT NULL,

`p4_reward` decimal(32,2) NOT NULL,


`p5_reward` decimal(32,2) NOT NULL,

`p6_reward` decimal(32,2) NOT NULL,

`p7_reward` decimal(32,2) NOT NULL,

`p8_reward` decimal(32,2) NOT NULL,

`p9_reward` decimal(32,2) NOT NULL,

`p10_reward` decimal(32,2) NOT NULL,

`end_days` int(11) NOT NULL,

`status` tinyint(1) NOT NULL DEFAULT 1,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `referral_earnings`

--

CREATE TABLE `referral_earnings` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`referral_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`amount` decimal(16,2) NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;


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

--

-- Table structure for table `revenue_shares`

--

CREATE TABLE `revenue_shares` (

`id` bigint(20) UNSIGNED NOT NULL,

`price` decimal(32,2) NOT NULL,

`days` int(11) NOT NULL,

`percent` decimal(16,2) NOT NULL,

`status` tinyint(1) NOT NULL DEFAULT 1,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `revenue_shares`

--

INSERT INTO `revenue_shares` (`id`, `price`, `days`, `percent`, `status`, `created_at`, `updated_at`)
VALUES

(1, '2200.00', 120, '1.00', 1, NULL, NULL);

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

-- Table structure for table `reviews`

--

CREATE TABLE `reviews` (

`id` bigint(20) UNSIGNED NOT NULL,

`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`position` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`message` text COLLATE utf8mb4_unicode_ci NOT NULL,

`status` tinyint(1) NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `reviews`

--

INSERT INTO `reviews` (`id`, `name`, `position`, `message`, `status`, `created_at`, `updated_at`)
VALUES

(1, 'Oliver', 'businessman', 'I have worked with this platform and the result was very satisfied. I
really recommend it!', 1, NULL, NULL),

(2, 'Doniver', 'businessman', 'I have requested an withdrawal and received in less than 5 minutes, I
really recommend this platform!', 1, NULL, NULL),

(3, 'Thommas', 'businessman', 'I have worked with this platform and the result was very satisfied. I
really recommend it!', 1, NULL, NULL),
(4, 'Satoshi', 'businessman', 'I have requested an withdrawal and received in less than 5 minutes, I
really recommend this platform!', 1, NULL, NULL);

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

--

-- Table structure for table `secrets`

--

CREATE TABLE `secrets` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`secret` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`status` tinyint(1) NOT NULL DEFAULT 0,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `secrets`

--

INSERT INTO `secrets` (`id`, `user_id`, `secret`, `status`, `created_at`, `updated_at`) VALUES

(1, 1, '27YCIMARFC3KLSCM', 0, NULL, NULL);

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

-- Table structure for table `shares`

--

CREATE TABLE `shares` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`price` decimal(32,2) NOT NULL,

`percent` decimal(16,2) NOT NULL,

`amount` int(11) NOT NULL,

`end` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),

`credited` timestamp NOT NULL DEFAULT '2023-03-04 05:27:11',

`status` tinyint(1) NOT NULL DEFAULT 1,

`balance` decimal(32,2) NOT NULL DEFAULT 0.00,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `shortlinks`

--

CREATE TABLE `shortlinks` (


`id` bigint(20) UNSIGNED NOT NULL,

`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`api` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`reward` decimal(32,2) NOT NULL,

`views` int(11) NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `shortlink_settings`

--

CREATE TABLE `shortlink_settings` (

`id` bigint(20) UNSIGNED NOT NULL,

`top_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`bottom_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`status` tinyint(1) NOT NULL DEFAULT 1,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`referral_status` tinyint(1) NOT NULL DEFAULT 1,

`referral_percentage` decimal(16,2) NOT NULL DEFAULT 5.00

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;


--

-- Dumping data for table `shortlink_settings`

--

INSERT INTO `shortlink_settings` (`id`, `top_ad`, `bottom_ad`, `status`, `created_at`, `updated_at`,


`referral_status`, `referral_percentage`) VALUES

(1, NULL, NULL, 1, NULL, NULL, 1, '5.00');

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

--

-- Table structure for table `tasks`

--

CREATE TABLE `tasks` (

`id` bigint(20) UNSIGNED NOT NULL,

`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`reward` decimal(32,2) NOT NULL,

`description` text COLLATE utf8mb4_unicode_ci NOT NULL,

`status` tinyint(1) NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

-- Table structure for table `task_ads`

--

CREATE TABLE `task_ads` (

`id` bigint(20) UNSIGNED NOT NULL,

`top_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`bottom_ad` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Dumping data for table `task_ads`

--

INSERT INTO `task_ads` (`id`, `top_ad`, `bottom_ad`, `created_at`, `updated_at`) VALUES

(1, NULL, NULL, NULL, NULL);

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

--

-- Table structure for table `tickets`

--
CREATE TABLE `tickets` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`subject` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`message` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`status` int(11) NOT NULL DEFAULT 0,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`t_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`screenshot` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `ticket_messages`

--

CREATE TABLE `ticket_messages` (

`id` bigint(20) UNSIGNED NOT NULL,

`ticket_id` bigint(20) UNSIGNED NOT NULL,

`message` text COLLATE utf8mb4_unicode_ci NOT NULL,

`is_admin` tinyint(1) NOT NULL DEFAULT 0,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;


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

--

-- Table structure for table `users`

--

CREATE TABLE `users` (

`id` bigint(20) UNSIGNED NOT NULL,

`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`email_verified_at` timestamp NULL DEFAULT NULL,

`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL,

`is_admin` tinyint(1) NOT NULL DEFAULT 0,

`country` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`referral_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`referred_by` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`is_banned` tinyint(1) NOT NULL DEFAULT 0,

`main_balance` decimal(16,2) NOT NULL DEFAULT 0.00,

`deposit_balance` decimal(16,2) NOT NULL DEFAULT 0.00,

`ip` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

`ip_checked` tinyint(1) NOT NULL DEFAULT 0

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;


--

-- Dumping data for table `users`

--

INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`,


`created_at`, `updated_at`, `is_admin`, `country`, `referral_id`, `referred_by`, `is_banned`,
`main_balance`, `deposit_balance`, `ip`, `ip_checked`) VALUES

(1, 'admin', 'admin@email.com', '2023-03-04 05:27:12',


'$2y$10$VEOK6PbAOzIRNifWMvB4c.vbuAemOAzV/TJ15yOctnmyPp3mIFAje', NULL, '2023-03-04
05:27:12', '2023-03-04 05:27:12', 1, 'England', 'b7PLQDWeKBum', NULL, 0, '0.00', '0.00', NULL, 0);

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

--

-- Table structure for table `user_tasks`

--

CREATE TABLE `user_tasks` (

`id` bigint(20) UNSIGNED NOT NULL,

`task_id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`proof` text COLLATE utf8mb4_unicode_ci NOT NULL,

`status` int(11) NOT NULL DEFAULT 0,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;


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

--

-- Table structure for table `viewed_ads`

--

CREATE TABLE `viewed_ads` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`ad_id` bigint(20) UNSIGNED NOT NULL,

`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`country` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`device` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`browser` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`reward` decimal(16,2) NOT NULL,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--

-- Table structure for table `withdraws`

--
CREATE TABLE `withdraws` (

`id` bigint(20) UNSIGNED NOT NULL,

`user_id` bigint(20) UNSIGNED NOT NULL,

`coin_id` int(11) NOT NULL,

`address` text COLLATE utf8mb4_unicode_ci NOT NULL,

`amount` decimal(16,2) NOT NULL,

`method` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,

`status` int(11) NOT NULL DEFAULT 0,

`created_at` timestamp NULL DEFAULT NULL,

`updated_at` timestamp NULL DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--

-- Indexes for dumped tables

--

--

-- Indexes for table `actions`

--

ALTER TABLE `actions`

ADD PRIMARY KEY (`id`),

ADD KEY `actions_user_id_foreign` (`user_id`);

--

-- Indexes for table `activities`

--
ALTER TABLE `activities`

ADD PRIMARY KEY (`id`),

ADD KEY `activities_user_id_foreign` (`user_id`);

--

-- Indexes for table `admin_notifications`

--

ALTER TABLE `admin_notifications`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `ads`

--

ALTER TABLE `ads`

ADD PRIMARY KEY (`id`),

ADD KEY `ads_user_id_foreign` (`user_id`);

--

-- Indexes for table `articles`

--

ALTER TABLE `articles`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `banner_ads`

--
ALTER TABLE `banner_ads`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `bets`

--

ALTER TABLE `bets`

ADD PRIMARY KEY (`id`),

ADD KEY `bets_user_id_foreign` (`user_id`);

--

-- Indexes for table `coins`

--

ALTER TABLE `coins`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `contents`

--

ALTER TABLE `contents`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `deposits`

--

ALTER TABLE `deposits`


ADD PRIMARY KEY (`id`),

ADD KEY `deposits_user_id_foreign` (`user_id`);

--

-- Indexes for table `dice_settings`

--

ALTER TABLE `dice_settings`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `failed_jobs`

--

ALTER TABLE `failed_jobs`

ADD PRIMARY KEY (`id`),

ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

--

-- Indexes for table `faqs`

--

ALTER TABLE `faqs`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `faucet_claims`

--

ALTER TABLE `faucet_claims`


ADD PRIMARY KEY (`id`),

ADD KEY `faucet_claims_user_id_foreign` (`user_id`);

--

-- Indexes for table `faucet_settings`

--

ALTER TABLE `faucet_settings`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `features`

--

ALTER TABLE `features`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `games`

--

ALTER TABLE `games`

ADD PRIMARY KEY (`id`),

ADD KEY `games_user_id_foreign` (`user_id`);

--

-- Indexes for table `general_settings`

--

ALTER TABLE `general_settings`


ADD PRIMARY KEY (`id`);

--

-- Indexes for table `invoices`

--

ALTER TABLE `invoices`

ADD PRIMARY KEY (`id`),

ADD KEY `invoices_user_id_foreign` (`user_id`);

--

-- Indexes for table `ip_hub_requests`

--

ALTER TABLE `ip_hub_requests`

ADD PRIMARY KEY (`id`),

ADD KEY `ip_hub_requests_user_id_foreign` (`user_id`);

--

-- Indexes for table `links`

--

ALTER TABLE `links`

ADD PRIMARY KEY (`id`),

ADD KEY `links_shortlink_id_foreign` (`shortlink_id`),

ADD KEY `links_user_id_foreign` (`user_id`);

--

-- Indexes for table `lottery_ads`


--

ALTER TABLE `lottery_ads`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `lottery_rounds`

--

ALTER TABLE `lottery_rounds`

ADD PRIMARY KEY (`id`),

ADD KEY `lottery_rounds_lottery_setting_id_foreign` (`lottery_setting_id`);

--

-- Indexes for table `lottery_settings`

--

ALTER TABLE `lottery_settings`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `lottery_tickets`

--

ALTER TABLE `lottery_tickets`

ADD PRIMARY KEY (`id`),

ADD KEY `lottery_tickets_user_id_foreign` (`user_id`),

ADD KEY `lottery_tickets_lottery_round_id_foreign` (`lottery_round_id`);

--
-- Indexes for table `migrations`

--

ALTER TABLE `migrations`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `notifications`

--

ALTER TABLE `notifications`

ADD PRIMARY KEY (`id`),

ADD KEY `notifications_user_id_foreign` (`user_id`);

--

-- Indexes for table `offerwalls`

--

ALTER TABLE `offerwalls`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `offerwall_vendors`

--

ALTER TABLE `offerwall_vendors`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `offer_rewards`


--

ALTER TABLE `offer_rewards`

ADD PRIMARY KEY (`id`),

ADD KEY `offer_rewards_offerwall_id_foreign` (`offerwall_id`),

ADD KEY `offer_rewards_user_id_foreign` (`user_id`);

--

-- Indexes for table `pages`

--

ALTER TABLE `pages`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `password_resets`

--

ALTER TABLE `password_resets`

ADD KEY `password_resets_email_index` (`email`);

--

-- Indexes for table `payment_gateways`

--

ALTER TABLE `payment_gateways`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `personal_access_tokens`


--

ALTER TABLE `personal_access_tokens`

ADD PRIMARY KEY (`id`),

ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),

ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index`


(`tokenable_type`,`tokenable_id`);

--

-- Indexes for table `ptc_settings`

--

ALTER TABLE `ptc_settings`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `ranks`

--

ALTER TABLE `ranks`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `referral_contests`

--

ALTER TABLE `referral_contests`

ADD PRIMARY KEY (`id`);

--
-- Indexes for table `referral_earnings`

--

ALTER TABLE `referral_earnings`

ADD PRIMARY KEY (`id`),

ADD KEY `referral_earnings_user_id_foreign` (`user_id`);

--

-- Indexes for table `revenue_shares`

--

ALTER TABLE `revenue_shares`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `reviews`

--

ALTER TABLE `reviews`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `secrets`

--

ALTER TABLE `secrets`

ADD PRIMARY KEY (`id`),

ADD KEY `secrets_user_id_foreign` (`user_id`);

--
-- Indexes for table `shares`

--

ALTER TABLE `shares`

ADD PRIMARY KEY (`id`),

ADD KEY `shares_user_id_foreign` (`user_id`);

--

-- Indexes for table `shortlinks`

--

ALTER TABLE `shortlinks`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `shortlink_settings`

--

ALTER TABLE `shortlink_settings`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `tasks`

--

ALTER TABLE `tasks`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `task_ads`


--

ALTER TABLE `task_ads`

ADD PRIMARY KEY (`id`);

--

-- Indexes for table `tickets`

--

ALTER TABLE `tickets`

ADD PRIMARY KEY (`id`),

ADD KEY `tickets_user_id_foreign` (`user_id`);

--

-- Indexes for table `ticket_messages`

--

ALTER TABLE `ticket_messages`

ADD PRIMARY KEY (`id`),

ADD KEY `ticket_messages_ticket_id_foreign` (`ticket_id`);

--

-- Indexes for table `users`

--

ALTER TABLE `users`

ADD PRIMARY KEY (`id`),

ADD UNIQUE KEY `users_email_unique` (`email`);

--
-- Indexes for table `user_tasks`

--

ALTER TABLE `user_tasks`

ADD PRIMARY KEY (`id`),

ADD KEY `user_tasks_task_id_foreign` (`task_id`),

ADD KEY `user_tasks_user_id_foreign` (`user_id`);

--

-- Indexes for table `viewed_ads`

--

ALTER TABLE `viewed_ads`

ADD PRIMARY KEY (`id`),

ADD KEY `viewed_ads_user_id_foreign` (`user_id`),

ADD KEY `viewed_ads_ad_id_foreign` (`ad_id`);

--

-- Indexes for table `withdraws`

--

ALTER TABLE `withdraws`

ADD PRIMARY KEY (`id`),

ADD KEY `withdraws_user_id_foreign` (`user_id`);

--

-- AUTO_INCREMENT for dumped tables

--
--

-- AUTO_INCREMENT for table `actions`

--

ALTER TABLE `actions`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `activities`

--

ALTER TABLE `activities`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `admin_notifications`

--

ALTER TABLE `admin_notifications`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `ads`

--

ALTER TABLE `ads`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `articles`


--

ALTER TABLE `articles`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--

-- AUTO_INCREMENT for table `banner_ads`

--

ALTER TABLE `banner_ads`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--

-- AUTO_INCREMENT for table `bets`

--

ALTER TABLE `bets`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `coins`

--

ALTER TABLE `coins`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--

-- AUTO_INCREMENT for table `contents`

--

ALTER TABLE `contents`


MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `deposits`

--

ALTER TABLE `deposits`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `dice_settings`

--

ALTER TABLE `dice_settings`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `failed_jobs`

--

ALTER TABLE `failed_jobs`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `faqs`

--

ALTER TABLE `faqs`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;


--

-- AUTO_INCREMENT for table `faucet_claims`

--

ALTER TABLE `faucet_claims`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `faucet_settings`

--

ALTER TABLE `faucet_settings`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `features`

--

ALTER TABLE `features`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--

-- AUTO_INCREMENT for table `games`

--

ALTER TABLE `games`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `general_settings`


--

ALTER TABLE `general_settings`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `invoices`

--

ALTER TABLE `invoices`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `ip_hub_requests`

--

ALTER TABLE `ip_hub_requests`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `links`

--

ALTER TABLE `links`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `lottery_ads`

--

ALTER TABLE `lottery_ads`


MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `lottery_rounds`

--

ALTER TABLE `lottery_rounds`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `lottery_settings`

--

ALTER TABLE `lottery_settings`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `lottery_tickets`

--

ALTER TABLE `lottery_tickets`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `migrations`

--

ALTER TABLE `migrations`

MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=106;


--

-- AUTO_INCREMENT for table `notifications`

--

ALTER TABLE `notifications`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `offerwalls`

--

ALTER TABLE `offerwalls`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `offerwall_vendors`

--

ALTER TABLE `offerwall_vendors`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--

-- AUTO_INCREMENT for table `offer_rewards`

--

ALTER TABLE `offer_rewards`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `pages`


--

ALTER TABLE `pages`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--

-- AUTO_INCREMENT for table `payment_gateways`

--

ALTER TABLE `payment_gateways`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--

-- AUTO_INCREMENT for table `personal_access_tokens`

--

ALTER TABLE `personal_access_tokens`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `ptc_settings`

--

ALTER TABLE `ptc_settings`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `ranks`

--

ALTER TABLE `ranks`


MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--

-- AUTO_INCREMENT for table `referral_contests`

--

ALTER TABLE `referral_contests`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `referral_earnings`

--

ALTER TABLE `referral_earnings`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `revenue_shares`

--

ALTER TABLE `revenue_shares`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `reviews`

--

ALTER TABLE `reviews`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;


--

-- AUTO_INCREMENT for table `secrets`

--

ALTER TABLE `secrets`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `shares`

--

ALTER TABLE `shares`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `shortlinks`

--

ALTER TABLE `shortlinks`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `shortlink_settings`

--

ALTER TABLE `shortlink_settings`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `tasks`


--

ALTER TABLE `tasks`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `task_ads`

--

ALTER TABLE `task_ads`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `tickets`

--

ALTER TABLE `tickets`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `ticket_messages`

--

ALTER TABLE `ticket_messages`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `users`

--

ALTER TABLE `users`


MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `user_tasks`

--

ALTER TABLE `user_tasks`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `viewed_ads`

--

ALTER TABLE `viewed_ads`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `withdraws`

--

ALTER TABLE `withdraws`

MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--

-- Constraints for dumped tables

--

--

-- Constraints for table `actions`


--

ALTER TABLE `actions`

ADD CONSTRAINT `actions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)


ON DELETE CASCADE;

--

-- Constraints for table `activities`

--

ALTER TABLE `activities`

ADD CONSTRAINT `activities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)


ON DELETE CASCADE;

--

-- Constraints for table `ads`

--

ALTER TABLE `ads`

ADD CONSTRAINT `ads_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON


DELETE CASCADE;

--

-- Constraints for table `bets`

--

ALTER TABLE `bets`

ADD CONSTRAINT `bets_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON


DELETE CASCADE;

--
-- Constraints for table `deposits`

--

ALTER TABLE `deposits`

ADD CONSTRAINT `deposits_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)


ON DELETE CASCADE;

--

-- Constraints for table `faucet_claims`

--

ALTER TABLE `faucet_claims`

ADD CONSTRAINT `faucet_claims_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users`


(`id`) ON DELETE CASCADE;

--

-- Constraints for table `games`

--

ALTER TABLE `games`

ADD CONSTRAINT `games_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)


ON DELETE CASCADE;

--

-- Constraints for table `invoices`

--

ALTER TABLE `invoices`

ADD CONSTRAINT `invoices_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)


ON DELETE CASCADE;
--

-- Constraints for table `ip_hub_requests`

--

ALTER TABLE `ip_hub_requests`

ADD CONSTRAINT `ip_hub_requests_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES


`users` (`id`) ON DELETE CASCADE;

--

-- Constraints for table `links`

--

ALTER TABLE `links`

ADD CONSTRAINT `links_shortlink_id_foreign` FOREIGN KEY (`shortlink_id`) REFERENCES


`shortlinks` (`id`) ON DELETE CASCADE,

ADD CONSTRAINT `links_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON


DELETE CASCADE;

--

-- Constraints for table `lottery_rounds`

--

ALTER TABLE `lottery_rounds`

ADD CONSTRAINT `lottery_rounds_lottery_setting_id_foreign` FOREIGN KEY (`lottery_setting_id`)


REFERENCES `lottery_settings` (`id`) ON DELETE CASCADE;

--

-- Constraints for table `lottery_tickets`

--

ALTER TABLE `lottery_tickets`


ADD CONSTRAINT `lottery_tickets_lottery_round_id_foreign` FOREIGN KEY (`lottery_round_id`)
REFERENCES `lottery_rounds` (`id`) ON DELETE CASCADE,

ADD CONSTRAINT `lottery_tickets_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users`


(`id`) ON DELETE CASCADE;

--

-- Constraints for table `notifications`

--

ALTER TABLE `notifications`

ADD CONSTRAINT `notifications_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users`


(`id`) ON DELETE CASCADE;

--

-- Constraints for table `offer_rewards`

--

ALTER TABLE `offer_rewards`

ADD CONSTRAINT `offer_rewards_offerwall_id_foreign` FOREIGN KEY (`offerwall_id`)


REFERENCES `offerwall_vendors` (`id`) ON DELETE CASCADE,

ADD CONSTRAINT `offer_rewards_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users`


(`id`) ON DELETE CASCADE;

--

-- Constraints for table `referral_earnings`

--

ALTER TABLE `referral_earnings`

ADD CONSTRAINT `referral_earnings_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES


`users` (`id`) ON DELETE CASCADE;
--

-- Constraints for table `secrets`

--

ALTER TABLE `secrets`

ADD CONSTRAINT `secrets_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)


ON DELETE CASCADE;

--

-- Constraints for table `shares`

--

ALTER TABLE `shares`

ADD CONSTRAINT `shares_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)


ON DELETE CASCADE;

--

-- Constraints for table `tickets`

--

ALTER TABLE `tickets`

ADD CONSTRAINT `tickets_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)


ON DELETE CASCADE;

--

-- Constraints for table `ticket_messages`

--

ALTER TABLE `ticket_messages`

ADD CONSTRAINT `ticket_messages_ticket_id_foreign` FOREIGN KEY (`ticket_id`) REFERENCES


`tickets` (`id`) ON DELETE CASCADE;
--

-- Constraints for table `user_tasks`

--

ALTER TABLE `user_tasks`

ADD CONSTRAINT `user_tasks_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`)


ON DELETE CASCADE,

ADD CONSTRAINT `user_tasks_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users`


(`id`) ON DELETE CASCADE;

--

-- Constraints for table `viewed_ads`

--

ALTER TABLE `viewed_ads`

ADD CONSTRAINT `viewed_ads_ad_id_foreign` FOREIGN KEY (`ad_id`) REFERENCES `ads` (`id`) ON


DELETE CASCADE,

ADD CONSTRAINT `viewed_ads_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users`


(`id`) ON DELETE CASCADE;

--

-- Constraints for table `withdraws`

--

ALTER TABLE `withdraws`

ADD CONSTRAINT `withdraws_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users`


(`id`) ON DELETE CASCADE;

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 */;

You might also like