text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jun 12, 2021 at 10:48 PM
  -- Server version: 10.4.11-MariaDB
  -- PHP Version: 7.4.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 */;
  
  --
  -- Database: `explode`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `failed_jobs`
  --
  
  CREATE TABLE `failed_jobs` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `uuid` varchar(191) 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 `games`
  --
  
  CREATE TABLE `games` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `game_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `serial` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `location` 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 `games`
  --
  
  INSERT INTO `games` (`id`, `game_name`, `serial`, `status`, `location`, `created_at`, `updated_at`) VALUES
  (1, 'PUBG', '1', 'active', 'http://127.0.0.1:8000/storage/game/1623368989.jpg', '2021-06-10 23:49:49', '2021-06-10 23:49:49');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `mainmenus`
  --
  
  CREATE TABLE `mainmenus` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `main_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `serial` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` varchar(191) 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(191) 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
  (7, '2014_10_12_000000_create_users_table', 1),
  (8, '2014_10_12_100000_create_password_resets_table', 1),
  (9, '2019_08_19_000000_create_failed_jobs_table', 1),
  (10, '2021_06_05_210655_create_profiles_table', 1),
  (26, '2021_06_06_024051_create_mainmenus_table', 2),
  (27, '2021_06_06_024415_create_submenus_table', 2),
  (28, '2021_06_08_025807_create_games_table', 2),
  (29, '2021_06_08_030331_create_tournaments_table', 2),
  (30, '2021_06_09_024910_create_teams_table', 2),
  (31, '2021_06_09_030114_create_pubgs_table', 2),
  (32, '2021_06_12_165326_create_rules_table', 3);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `token` varchar(191) 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 `profiles`
  --
  
  CREATE TABLE `profiles` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `user_id` bigint(20) UNSIGNED NOT NULL,
    `birthday` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `gender` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `address` 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 `pubgs`
  --
  
  CREATE TABLE `pubgs` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `tournament_id` bigint(20) UNSIGNED NOT NULL,
    `team_id` bigint(20) UNSIGNED NOT NULL,
    `pubg_id_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `pubg_id_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `playertype` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `playerserial` varchar(191) 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;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `rules`
  --
  
  CREATE TABLE `rules` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `tournament_id` bigint(20) UNSIGNED NOT NULL,
    `description` 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 `rules`
  --
  
  INSERT INTO `rules` (`id`, `tournament_id`, `description`, `created_at`, `updated_at`) VALUES
  (1, 2, '<h2>More Colors Option and Color Dialog</h2>\r\n\r\n<p>You can also add an optional&nbsp;<a href=\"https://ckeditor.com/cke4/addon/colordialog\">Color Dialog</a>&nbsp;plugin which provides the&nbsp;<strong>More Colors</strong>&nbsp;option and a user-friendly way to select the desired color through a dedicated dialog window. The editor instance below includes both features. Notice how the picked colors are saved in the color history row below the default palette for easy reuse.</p>\r\n\r\n<p>You can also add an <strong>optional&nbsp;<a href=\"https://ckeditor.com/cke4/addon/colordialog\">Color Dialog</a>&nbsp;plugin which provides the&nbsp;More Colors&nbsp;option and a user-friendly way to select the desired color through a dedicated dialog window. The editor instance below includes both features. Notice how the </strong>picked colors are saved in the color history row below the default palette for easy reuse.</p>', '2021-06-12 11:45:04', '2021-06-12 12:08:20');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `submenus`
  --
  
  CREATE TABLE `submenus` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `mainmenu_id` bigint(20) UNSIGNED NOT NULL,
    `sub_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `serial` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` varchar(191) 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 `teams`
  --
  
  CREATE TABLE `teams` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `tournament_id` bigint(20) UNSIGNED NOT NULL,
    `user_id` bigint(20) UNSIGNED NOT NULL,
    `team_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `rzs` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `location` 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;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tournaments`
  --
  
  CREATE TABLE `tournaments` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `game_id` bigint(20) UNSIGNED NOT NULL,
    `user_id` bigint(20) UNSIGNED NOT NULL,
    `tournament_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `serial` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `total` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `location` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `pin` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'disable',
    `updateby` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `registration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
    `enddate` 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;
  
  --
  -- Dumping data for table `tournaments`
  --
  
  INSERT INTO `tournaments` (`id`, `game_id`, `user_id`, `tournament_name`, `serial`, `total`, `status`, `location`, `pin`, `updateby`, `registration`, `enddate`, `created_at`, `updated_at`) VALUES
  (2, 1, 1, 'PMRT - 2021', '1', '5', 'active', 'http://127.0.0.1:8000/storage/tournament/1623399420.jpg', 'disable', NULL, 'active', '2021-06-15 14:21:00', '2021-06-11 08:17:00', '2021-06-11 08:17:00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email_verified_at` timestamp NULL DEFAULT NULL,
    `mobile` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `location` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `resetcode` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
    `remember_token` varchar(100) 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 `users`
  --
  
  INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `mobile`, `password`, `location`, `resetcode`, `type`, `status`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'MD.SADMAN SHAKIB', 'shakib46@gmail.com', NULL, '01740303508', '$2y$10$zWkY/IwpEucJZPGWTuEMJOdVoyxEfHrL5IRro4ltk95G3rmxI0ePS', 'http://127.0.0.1:8000/storage/profile/1622914494.jpg', '978989', 'superadmin', 'active', NULL, '2021-06-03 16:19:11', '2021-06-07 19:00:12'),
  (27, 'MD.SADMAN SHAKIB', 't@t.com', NULL, '01558525406', '$2y$10$3SiMeTyiS1FGRLLWjEfZWuOuglqe5869d0sBuXhP/SF35PyiJMDS6', NULL, NULL, 'normal', 'active', NULL, '2021-06-11 20:28:14', '2021-06-11 20:28:14');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
  
  --
  -- Indexes for table `games`
  --
  ALTER TABLE `games`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `mainmenus`
  --
  ALTER TABLE `mainmenus`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`);
  
  --
  -- Indexes for table `profiles`
  --
  ALTER TABLE `profiles`
    ADD PRIMARY KEY (`id`),
    ADD KEY `profiles_user_id_foreign` (`user_id`);
  
  --
  -- Indexes for table `pubgs`
  --
  ALTER TABLE `pubgs`
    ADD PRIMARY KEY (`id`),
    ADD KEY `pubgs_tournament_id_foreign` (`tournament_id`),
    ADD KEY `pubgs_team_id_foreign` (`team_id`);
  
  --
  -- Indexes for table `rules`
  --
  ALTER TABLE `rules`
    ADD PRIMARY KEY (`id`),
    ADD KEY `rules_tournament_id_foreign` (`tournament_id`);
  
  --
  -- Indexes for table `submenus`
  --
  ALTER TABLE `submenus`
    ADD PRIMARY KEY (`id`),
    ADD KEY `submenus_mainmenu_id_foreign` (`mainmenu_id`);
  
  --
  -- Indexes for table `teams`
  --
  ALTER TABLE `teams`
    ADD PRIMARY KEY (`id`),
    ADD KEY `teams_tournament_id_foreign` (`tournament_id`),
    ADD KEY `teams_user_id_foreign` (`user_id`);
  
  --
  -- Indexes for table `tournaments`
  --
  ALTER TABLE `tournaments`
    ADD PRIMARY KEY (`id`),
    ADD KEY `tournaments_game_id_foreign` (`game_id`),
    ADD KEY `tournaments_user_id_foreign` (`user_id`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `users_email_unique` (`email`),
    ADD UNIQUE KEY `users_mobile_unique` (`mobile`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `games`
  --
  ALTER TABLE `games`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `mainmenus`
  --
  ALTER TABLE `mainmenus`
    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=33;
  
  --
  -- AUTO_INCREMENT for table `profiles`
  --
  ALTER TABLE `profiles`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `pubgs`
  --
  ALTER TABLE `pubgs`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `rules`
  --
  ALTER TABLE `rules`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `submenus`
  --
  ALTER TABLE `submenus`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `teams`
  --
  ALTER TABLE `teams`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `tournaments`
  --
  ALTER TABLE `tournaments`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `profiles`
  --
  ALTER TABLE `profiles`
    ADD CONSTRAINT `profiles_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
  
  --
  -- Constraints for table `pubgs`
  --
  ALTER TABLE `pubgs`
    ADD CONSTRAINT `pubgs_team_id_foreign` FOREIGN KEY (`team_id`) REFERENCES `teams` (`id`),
    ADD CONSTRAINT `pubgs_tournament_id_foreign` FOREIGN KEY (`tournament_id`) REFERENCES `tournaments` (`id`);
  
  --
  -- Constraints for table `rules`
  --
  ALTER TABLE `rules`
    ADD CONSTRAINT `rules_tournament_id_foreign` FOREIGN KEY (`tournament_id`) REFERENCES `tournaments` (`id`);
  
  --
  -- Constraints for table `submenus`
  --
  ALTER TABLE `submenus`
    ADD CONSTRAINT `submenus_mainmenu_id_foreign` FOREIGN KEY (`mainmenu_id`) REFERENCES `mainmenus` (`id`);
  
  --
  -- Constraints for table `teams`
  --
  ALTER TABLE `teams`
    ADD CONSTRAINT `teams_tournament_id_foreign` FOREIGN KEY (`tournament_id`) REFERENCES `tournaments` (`id`),
    ADD CONSTRAINT `teams_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
  
  --
  -- Constraints for table `tournaments`
  --
  ALTER TABLE `tournaments`
    ADD CONSTRAINT `tournaments_game_id_foreign` FOREIGN KEY (`game_id`) REFERENCES `games` (`id`),
    ADD CONSTRAINT `tournaments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
  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 */;
  