-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 08, 2024 at 06:46 AM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.2.12

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `playfolio`
--

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

--
-- Table structure for table `cat_links`
--

CREATE TABLE `cat_links` (
  `id` smallint(5) UNSIGNED NOT NULL,
  `topicid` smallint(5) UNSIGNED NOT NULL,
  `categoryid` smallint(5) UNSIGNED 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 `collections`
--

CREATE TABLE `collections` (
  `id` smallint(5) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `data` mediumtext 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 `collections`
--

INSERT INTO `collections` (`id`, `name`, `data`, `created_at`, `updated_at`) VALUES
(4, 'wewewewew', '\"11,12,13\"', '2024-05-06 02:41:01', '2024-05-06 02:41:01');

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

--
-- Table structure for table `comments`
--

CREATE TABLE `comments` (
  `id` int(10) UNSIGNED NOT NULL,
  `game_id` int(11) NOT NULL,
  `parent_id` int(10) UNSIGNED DEFAULT NULL,
  `comment` varchar(200) NOT NULL,
  `sender_id` int(11) NOT NULL,
  `sender_username` varchar(20) NOT NULL,
  `created_date` date DEFAULT NULL,
  `approved` tinyint(4) 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 `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(255) NOT NULL,
  `connection` text NOT NULL,
  `queue` text NOT NULL,
  `payload` longtext NOT NULL,
  `exception` longtext 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,
  `createddate` date DEFAULT NULL,
  `title` varchar(191) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `instructions` mediumtext DEFAULT NULL,
  `category` text DEFAULT NULL,
  `source` text DEFAULT NULL,
  `thumb_1` varchar(191) DEFAULT NULL,
  `thumb_2` varchar(191) DEFAULT NULL,
  `thumb_small` varchar(191) DEFAULT NULL,
  `url` text DEFAULT NULL,
  `width` text DEFAULT NULL,
  `height` text DEFAULT NULL,
  `tags` text DEFAULT NULL,
  `views` int(11) DEFAULT NULL,
  `upvote` int(11) DEFAULT NULL,
  `downvote` int(11) DEFAULT NULL,
  `slug` varchar(191) DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  `fields` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `games`
--

INSERT INTO `games` (`id`, `createddate`, `title`, `description`, `instructions`, `category`, `source`, `thumb_1`, `thumb_2`, `thumb_small`, `url`, `width`, `height`, `tags`, `views`, `upvote`, `downvote`, `slug`, `data`, `fields`) VALUES
(1, '2023-04-01', 'Space Explorer', 'Navigate the depths of space in this thrilling explorer game.', 'Use arrow keys to navigate the spaceship.', '1', 'Internal', 'thumb1.jpg', 'thumb2.jpg', 'thumb_small.jpg', 'http://example.com/game1', '800', '600', 'space,explorer,adventure', 100, 20, 5, 'space-explorer', NULL, NULL),
(2, '2023-04-02', 'Mountain Climber', 'Challenge the heights in this climbing adventure.', 'Press space to jump.', '1', 'Internal', 'thumb1.jpg', 'thumb2.jpg', 'thumb_small.jpg', 'http://example.com/game2', '800', '600', 'climbing,mountain,sports', 150, 30, 10, 'mountain-climber', NULL, NULL),
(3, '2023-04-03', 'Maze Runner', 'Find your way out of the complex maze.', 'Navigate the maze with keyboard.', '1', 'Internal', 'thumb1.jpg', 'thumb2.jpg', 'thumb_small.jpg', 'http://example.com/game3', '800', '600', 'maze,runner,puzzle', 200, 40, 15, 'maze-runner', NULL, NULL),
(4, '2023-04-04', 'City Builder', 'Construct your dream city from scratch.', 'Select buildings and place them on the grid.', '2', 'Internal', 'thumb1.jpg', 'thumb2.jpg', 'thumb_small.jpg', 'http://example.com/game4', '800', '600', 'city,builder,simulation', 250, 50, 20, 'city-builder', NULL, NULL),
(5, '2023-04-05', 'King’s Quest', 'Embark on a quest to save the kingdom.', 'Follow the quest lines and defeat enemies.', '3', 'Internal', 'thumb1.jpg', 'thumb2.jpg', 'thumb_small.jpg', 'http://example.com/game5', '800', '600', 'quest,king,rpg', 300, 60, 25, 'kings-quest', NULL, NULL),
(6, '2023-04-06', 'Formula Race', 'Compete in high-speed racing challenges.', 'Use arrow keys to control the car.', '1', 'Internal', 'thumb1.jpg', 'thumb2.jpg', 'thumb_small.jpg', 'http://example.com/game6', '800', '600', 'race,formula,fast', 350, 70, 30, 'formula-race', NULL, NULL),
(7, '2023-04-07', 'Deep Sea Diver', 'Explore the mysteries of the ocean.', 'Use mouse to navigate.', '2', 'Internal', 'thumb1.jpg', 'thumb2.jpg', 'thumb_small.jpg', 'http://example.com/game7', '800', '600', 'sea,diver,adventure', 400, 80, 35, 'deep-sea-diver', NULL, NULL),
(8, '2023-04-08', 'Zombie Survival', 'Survive the zombie apocalypse.', 'Use weapons to defeat zombies.', '1', 'Internal', 'thumb1.jpg', 'thumb2.jpg', 'thumb_small.jpg', 'http://example.com/game8', '800', '600', 'zombie,survival,action', 450, 90, 40, 'zombie-survival', NULL, NULL),
(9, '2023-04-09', 'Pirate Treasures', 'Hunt for treasures across the seas.', 'Solve puzzles to find hidden treasures.', '3', 'Internal', 'thumb1.jpg', 'thumb2.jpg', 'thumb_small.jpg', 'http://example.com/game9', '800', '600', 'pirate,treasure,adventure', 500, 100, 45, 'pirate-treasures', NULL, NULL),
(10, '2023-04-10', 'Farm Life', 'Manage a farm and grow your own crops.', 'Plant, water, and harvest crops.', '2', 'Internal', 'thumb1.jpg', 'thumb2.jpg', 'thumb_small.jpg', 'http://example.com/game10', '800', '600', 'farm,life,simulation', 550, 110, 50, 'farm-life', NULL, NULL),
(11, NULL, 'Puzzle GAME Test', 'DESC', 'iNST', NULL, '66331d81dabd0', NULL, NULL, NULL, NULL, '1080', '1920', NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(12, NULL, 'Puzzle GAME Test', 'DESC', 'iNST', NULL, '66331e1594214', NULL, NULL, NULL, NULL, '1080', '1920', NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(13, NULL, 'Action GAME Test', 'desc', 'Inst', NULL, '66331e596df2f', NULL, NULL, NULL, NULL, '1080', '1920', NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(14, NULL, 'Math Dice Game', 'Desc', 'Ins', NULL, '66331f3764193', NULL, NULL, NULL, NULL, '1920', '1080', NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(15, NULL, 'Math Dice Game', 'DESC', 'iNST', NULL, '6633203b7b880', NULL, NULL, NULL, NULL, '1080', '1920', NULL, NULL, NULL, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `game_categories`
--

CREATE TABLE `game_categories` (
  `id` smallint(5) UNSIGNED NOT NULL,
  `name` varchar(191) DEFAULT NULL,
  `slug` varchar(30) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `meta_description` mediumtext DEFAULT NULL,
  `fields` text 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 `game_categories`
--

INSERT INTO `game_categories` (`id`, `name`, `slug`, `description`, `meta_description`, `fields`, `created_at`, `updated_at`) VALUES
(1, 'Adventure', 'adventure', 'Exciting quests and giant worlds to explore.', 'Explore new worlds and embark on thrilling quests.', NULL, '2024-04-28 13:25:13', '2024-04-28 13:25:13'),
(2, 'Puzzle', 'puzzle', 'Challenging brain teasers and puzzles to solve.', 'Test your brain with our engaging puzzles.', NULL, '2024-04-28 13:25:13', '2024-04-28 13:25:13'),
(3, 'Sports', 'sports', 'All kinds of sports games, from football to tennis.', 'Enjoy competitive sports games and stay active.', NULL, '2024-04-28 13:25:13', '2024-04-28 13:25:13'),
(4, 'Action', 'action', 'Fast-paced games requiring quick decisions.', 'Action-packed games with thrilling gameplay.', NULL, '2024-04-28 13:25:13', '2024-04-28 13:25:13'),
(5, 'Strategy', 'strategy', 'Games requiring careful thought and planning.', 'Plan and conquer with our best strategy games.', NULL, '2024-04-28 13:25:13', '2024-04-28 13:25:13'),
(6, 'Racing', 'racing', 'High-speed races on various tracks.', 'Speed through tracks in exciting racing games.', NULL, '2024-04-28 13:25:13', '2024-04-28 13:25:13'),
(7, 'Simulation', 'simulation', 'Simulate real-life activities from flying to farming.', 'Experience life-like simulations and manage your own worlds.', NULL, '2024-04-28 13:25:13', '2024-04-28 13:25:13'),
(8, 'RPG', 'rpg', 'Role-playing games with deep storylines and complex characters.', 'Embark on epic adventures in our RPGs.', NULL, '2024-04-28 13:25:13', '2024-04-28 13:25:13'),
(9, 'Arcade', 'arcade', 'Classic and new arcade games.', 'Enjoy endless fun with our arcade games.', NULL, '2024-04-28 13:25:13', '2024-04-28 13:25:13'),
(10, 'Educational', 'educational', 'Games designed to educate and entertain.', 'Learn new skills and knowledge while having fun.', NULL, '2024-04-28 13:25:13', '2024-04-28 13:25:13'),
(15, 'Cooking games', NULL, NULL, NULL, NULL, '2024-04-28 09:35:44', '2024-04-28 09:35:44'),
(16, 'Test Category', 'test', NULL, NULL, NULL, '2024-04-28 11:29:44', '2024-04-28 11:29:44');

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

--
-- Table structure for table `loginlogs`
--

CREATE TABLE `loginlogs` (
  `id` smallint(5) UNSIGNED NOT NULL,
  `IpAddress` varchar(45) NOT NULL,
  `TryTime` bigint(20) 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) 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_reset_tokens_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(5, '2024_05_04_152022_create_users_table', 2),
(6, '2024_05_04_152245_create_loginlogs_table', 3),
(7, '2024_05_04_152419_create_topic_categories_table', 4),
(8, '2024_05_04_152656_create_topics_table', 5),
(9, '2024_05_04_153044_create_topics_table', 6),
(10, '2024_05_04_153202_create_loginlogs_table', 7),
(11, '2024_05_04_153246_create_comments_table', 8),
(12, '2024_05_04_153830_create_cat_links_table', 9),
(13, '2024_05_04_153854_create_cat_links_table', 10),
(14, '2024_05_04_154008_create_pages_table', 11),
(15, '2024_05_04_154041_create_posts_table', 12),
(16, '2024_05_04_154123_create_options_table', 13),
(17, '2024_05_04_154219_create_collections_table', 14);

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

--
-- Table structure for table `options`
--

CREATE TABLE `options` (
  `id` smallint(5) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `value` text 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 `pages`
--

CREATE TABLE `pages` (
  `id` smallint(5) UNSIGNED NOT NULL,
  `createddate` date NOT NULL,
  `title` varchar(255) NOT NULL,
  `slug` varchar(255) NOT NULL,
  `content` mediumtext NOT NULL,
  `route` text 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 `pages`
--

INSERT INTO `pages` (`id`, `createddate`, `title`, `slug`, `content`, `route`, `created_at`, `updated_at`) VALUES
(1, '2024-05-01', 'Add Game', 'sample-title-1', 'This is the content for sample 1.', 'addtopic', '2024-05-04 16:55:46', '2024-05-04 16:55:46'),
(2, '2024-05-02', 'Game Lists', 'sample-title-2', 'This is the content for sample 2.', 'topiclists', '2024-05-04 16:55:46', '2024-05-04 16:55:46');

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

--
-- Table structure for table `password_reset_tokens`
--

CREATE TABLE `password_reset_tokens` (
  `email` varchar(255) NOT NULL,
  `token` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `personal_access_tokens`
--

CREATE TABLE `personal_access_tokens` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tokenable_type` varchar(255) NOT NULL,
  `tokenable_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `token` varchar(64) NOT NULL,
  `abilities` text DEFAULT NULL,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `expires_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 `posts`
--

CREATE TABLE `posts` (
  `id` smallint(5) UNSIGNED NOT NULL,
  `created_date` date NOT NULL,
  `title` varchar(255) NOT NULL,
  `slug` varchar(255) NOT NULL,
  `thumbnail_url` varchar(255) NOT NULL,
  `content` mediumtext NOT NULL,
  `fields` text 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 `topics`
--

CREATE TABLE `topics` (
  `id` smallint(5) UNSIGNED NOT NULL,
  `createddate` date DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `instructions` mediumtext DEFAULT NULL,
  `category` text DEFAULT NULL,
  `source` text DEFAULT NULL,
  `thumb_1` varchar(255) DEFAULT NULL,
  `thumb_2` varchar(255) DEFAULT NULL,
  `thumb_small` varchar(255) DEFAULT NULL,
  `url` text DEFAULT NULL,
  `width` text DEFAULT NULL,
  `height` text DEFAULT NULL,
  `tags` text DEFAULT NULL,
  `views` int(11) DEFAULT NULL,
  `upvote` int(11) DEFAULT NULL,
  `downvote` int(11) DEFAULT NULL,
  `slug` varchar(255) DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  `fields` text 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 `topics`
--

INSERT INTO `topics` (`id`, `createddate`, `title`, `description`, `instructions`, `category`, `source`, `thumb_1`, `thumb_2`, `thumb_small`, `url`, `width`, `height`, `tags`, `views`, `upvote`, `downvote`, `slug`, `data`, `fields`, `created_at`, `updated_at`) VALUES
(11, NULL, 'Audio Book', 'Audio bOOK', 'New book', '21', '/content/topics/11/', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-05 10:33:35', '2024-05-05 10:33:35'),
(12, NULL, 'wew', 'ewewew', 'ewew', '21', '/content/topics/12/', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-05 12:14:27', '2024-05-05 12:14:27'),
(13, NULL, '1121', '21212', '121', '\"21\"', '/content/topics/13/', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-06 01:22:07', '2024-05-06 01:22:08'),
(14, NULL, 'rwewewe', 'wrwwr', 'werwewrw', '\"21\"', '/content/topics/14/', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-06 01:22:22', '2024-05-06 01:22:22'),
(15, NULL, 'qwqwqwq', 'wqwqwqwq', 'wqwqwq', '\"21\"', '/content/topics/15/', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-06 01:22:30', '2024-05-06 01:22:30'),
(16, NULL, '12121', '21212', '12121', '24', '/content/topics/16/', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-07 08:35:35', '2024-05-07 08:35:36'),
(17, NULL, '111', '111', '111', '21', NULL, '11111', '1111', NULL, '11111', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-07 08:36:54', '2024-05-07 08:36:54'),
(18, NULL, '121222', '12222', '2222', '22', 'URL', '22222', '222222', NULL, '2222', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-07 08:38:46', '2024-05-07 08:38:46'),
(19, NULL, '5555', '5555', '55555', '21', 'Hostinger Service', '55555', '5555', NULL, '55555', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-07 09:02:22', '2024-05-07 09:02:22');

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

--
-- Table structure for table `topic_categories`
--

CREATE TABLE `topic_categories` (
  `id` smallint(5) UNSIGNED NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `slug` varchar(30) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `meta_description` mediumtext DEFAULT NULL,
  `fields` text 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 `topic_categories`
--

INSERT INTO `topic_categories` (`id`, `name`, `slug`, `description`, `meta_description`, `fields`, `created_at`, `updated_at`) VALUES
(21, 'xyz', 'adventure', NULL, NULL, NULL, '2024-05-05 09:57:04', '2024-05-06 00:01:51'),
(22, 'wewewew', 'ewewe', 'wewew', NULL, NULL, '2024-05-06 04:14:24', '2024-05-06 04:14:24'),
(23, 'wewew', 'wewew', 'ewewew', 'ewew', NULL, '2024-05-06 04:14:27', '2024-05-06 04:14:27'),
(24, 'ewew', 'ewewe', 'wew', 'ewew', NULL, '2024-05-06 04:14:30', '2024-05-06 04:14:30'),
(25, 'wew', 'wew', 'wew', 'ewewew', NULL, '2024-05-06 04:14:34', '2024-05-06 04:14:34');

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` smallint(5) UNSIGNED NOT NULL,
  `username` varchar(255) NOT NULL,
  `password` text NOT NULL,
  `role` varchar(255) NOT NULL,
  `join_date` date DEFAULT NULL,
  `birth_date` date DEFAULT NULL,
  `gender` varchar(15) DEFAULT NULL,
  `data` text DEFAULT NULL,
  `email` varchar(40) DEFAULT NULL,
  `bio` varchar(180) DEFAULT NULL,
  `xp` varchar(180) NOT NULL DEFAULT '0',
  `avatar` varchar(180) 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 `cat_links`
--
ALTER TABLE `cat_links`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cat_links_topicid_foreign` (`topicid`),
  ADD KEY `cat_links_categoryid_foreign` (`categoryid`);

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

--
-- Indexes for table `comments`
--
ALTER TABLE `comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `comments_parent_id_foreign` (`parent_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 `games`
--
ALTER TABLE `games`
  ADD PRIMARY KEY (`id`);

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

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

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

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

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

--
-- Indexes for table `password_reset_tokens`
--
ALTER TABLE `password_reset_tokens`
  ADD PRIMARY KEY (`email`);

--
-- 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 `posts`
--
ALTER TABLE `posts`
  ADD PRIMARY KEY (`id`);

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `cat_links`
--
ALTER TABLE `cat_links`
  MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `collections`
--
ALTER TABLE `collections`
  MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `comments`
--
ALTER TABLE `comments`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- 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=16;

--
-- AUTO_INCREMENT for table `game_categories`
--
ALTER TABLE `game_categories`
  MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT for table `loginlogs`
--
ALTER TABLE `loginlogs`
  MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `options`
--
ALTER TABLE `options`
  MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pages`
--
ALTER TABLE `pages`
  MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- 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 `posts`
--
ALTER TABLE `posts`
  MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `topics`
--
ALTER TABLE `topics`
  MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `topic_categories`
--
ALTER TABLE `topic_categories`
  MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `cat_links`
--
ALTER TABLE `cat_links`
  ADD CONSTRAINT `cat_links_categoryid_foreign` FOREIGN KEY (`categoryid`) REFERENCES `topic_categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `cat_links_topicid_foreign` FOREIGN KEY (`topicid`) REFERENCES `topics` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `comments`
--
ALTER TABLE `comments`
  ADD CONSTRAINT `comments_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `comments` (`id`) ON DELETE CASCADE ON UPDATE 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 */;
