text: -- phpMyAdmin SQL Dump
  -- version 5.1.0
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1:3306
  -- Generation Time: Aug 13, 2021 at 08:42 AM
  -- Server version: 8.0.24
  -- PHP Version: 7.4.21
  
  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: `oyina`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `categories`
  --
  
  CREATE TABLE `categories` (
    `id` int UNSIGNED NOT NULL,
    `parent_id` int UNSIGNED DEFAULT NULL,
    `order` int NOT NULL DEFAULT '1',
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `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 `categories`
  --
  
  INSERT INTO `categories` (`id`, `parent_id`, `order`, `name`, `slug`, `created_at`, `updated_at`) VALUES
  (1, NULL, 1, 'Category 1', 'category-1', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (2, NULL, 1, 'Category 2', 'category-2', '2021-08-12 00:42:01', '2021-08-12 00:42:01');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `data_rows`
  --
  
  CREATE TABLE `data_rows` (
    `id` int UNSIGNED NOT NULL,
    `data_type_id` int UNSIGNED NOT NULL,
    `field` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `display_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `required` tinyint(1) NOT NULL DEFAULT '0',
    `browse` tinyint(1) NOT NULL DEFAULT '1',
    `read` tinyint(1) NOT NULL DEFAULT '1',
    `edit` tinyint(1) NOT NULL DEFAULT '1',
    `add` tinyint(1) NOT NULL DEFAULT '1',
    `delete` tinyint(1) NOT NULL DEFAULT '1',
    `details` text COLLATE utf8mb4_unicode_ci,
    `order` int NOT NULL DEFAULT '1'
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `data_rows`
  --
  
  INSERT INTO `data_rows` (`id`, `data_type_id`, `field`, `type`, `display_name`, `required`, `browse`, `read`, `edit`, `add`, `delete`, `details`, `order`) VALUES
  (1, 1, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, NULL, 1),
  (2, 1, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, NULL, 2),
  (3, 1, 'email', 'text', 'Email', 1, 1, 1, 1, 1, 1, NULL, 3),
  (4, 1, 'password', 'password', 'Password', 1, 0, 0, 1, 1, 0, NULL, 4),
  (5, 1, 'remember_token', 'text', 'Remember Token', 0, 0, 0, 0, 0, 0, NULL, 5),
  (6, 1, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 0, 0, 0, NULL, 6),
  (7, 1, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 7),
  (8, 1, 'avatar', 'image', 'Avatar', 0, 1, 1, 1, 1, 1, NULL, 8),
  (9, 1, 'user_belongsto_role_relationship', 'relationship', 'Role', 0, 1, 1, 1, 1, 0, '{\"model\":\"TCG\\\\Voyager\\\\Models\\\\Role\",\"table\":\"roles\",\"type\":\"belongsTo\",\"column\":\"role_id\",\"key\":\"id\",\"label\":\"display_name\",\"pivot_table\":\"roles\",\"pivot\":0}', 10),
  (10, 1, 'user_belongstomany_role_relationship', 'relationship', 'Roles', 0, 1, 1, 1, 1, 0, '{\"model\":\"TCG\\\\Voyager\\\\Models\\\\Role\",\"table\":\"roles\",\"type\":\"belongsToMany\",\"column\":\"id\",\"key\":\"id\",\"label\":\"display_name\",\"pivot_table\":\"user_roles\",\"pivot\":\"1\",\"taggable\":\"0\"}', 11),
  (11, 1, 'settings', 'hidden', 'Settings', 0, 0, 0, 0, 0, 0, NULL, 12),
  (12, 2, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, NULL, 1),
  (13, 2, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, NULL, 2),
  (14, 2, 'created_at', 'timestamp', 'Created At', 0, 0, 0, 0, 0, 0, NULL, 3),
  (15, 2, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 4),
  (16, 3, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, NULL, 1),
  (17, 3, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, NULL, 2),
  (18, 3, 'created_at', 'timestamp', 'Created At', 0, 0, 0, 0, 0, 0, NULL, 3),
  (19, 3, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 4),
  (20, 3, 'display_name', 'text', 'Display Name', 1, 1, 1, 1, 1, 1, NULL, 5),
  (21, 1, 'role_id', 'text', 'Role', 1, 1, 1, 1, 1, 1, NULL, 9),
  (22, 4, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, NULL, 1),
  (23, 4, 'parent_id', 'select_dropdown', 'Parent', 0, 0, 1, 1, 1, 1, '{\"default\":\"\",\"null\":\"\",\"options\":{\"\":\"-- None --\"},\"relationship\":{\"key\":\"id\",\"label\":\"name\"}}', 2),
  (24, 4, 'order', 'text', 'Order', 1, 1, 1, 1, 1, 1, '{\"default\":1}', 3),
  (25, 4, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, NULL, 4),
  (26, 4, 'slug', 'text', 'Slug', 1, 1, 1, 1, 1, 1, '{\"slugify\":{\"origin\":\"name\"}}', 5),
  (27, 4, 'created_at', 'timestamp', 'Created At', 0, 0, 1, 0, 0, 0, NULL, 6),
  (28, 4, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 7),
  (29, 5, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, NULL, 1),
  (30, 5, 'author_id', 'text', 'Author', 1, 0, 1, 1, 0, 1, NULL, 2),
  (31, 5, 'category_id', 'text', 'Category', 1, 0, 1, 1, 1, 0, NULL, 3),
  (32, 5, 'title', 'text', 'Title', 1, 1, 1, 1, 1, 1, NULL, 4),
  (33, 5, 'excerpt', 'text_area', 'Excerpt', 1, 0, 1, 1, 1, 1, NULL, 5),
  (34, 5, 'body', 'rich_text_box', 'Body', 1, 0, 1, 1, 1, 1, NULL, 6),
  (35, 5, 'image', 'image', 'Post Image', 0, 1, 1, 1, 1, 1, '{\"resize\":{\"width\":\"1000\",\"height\":\"null\"},\"quality\":\"70%\",\"upsize\":true,\"thumbnails\":[{\"name\":\"medium\",\"scale\":\"50%\"},{\"name\":\"small\",\"scale\":\"25%\"},{\"name\":\"cropped\",\"crop\":{\"width\":\"300\",\"height\":\"250\"}}]}', 7),
  (36, 5, 'slug', 'text', 'Slug', 1, 0, 1, 1, 1, 1, '{\"slugify\":{\"origin\":\"title\",\"forceUpdate\":true},\"validation\":{\"rule\":\"unique:posts,slug\"}}', 8),
  (37, 5, 'meta_description', 'text_area', 'Meta Description', 1, 0, 1, 1, 1, 1, NULL, 9),
  (38, 5, 'meta_keywords', 'text_area', 'Meta Keywords', 1, 0, 1, 1, 1, 1, NULL, 10),
  (39, 5, 'status', 'select_dropdown', 'Status', 1, 1, 1, 1, 1, 1, '{\"default\":\"DRAFT\",\"options\":{\"PUBLISHED\":\"published\",\"DRAFT\":\"draft\",\"PENDING\":\"pending\"}}', 11),
  (40, 5, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 0, 0, 0, NULL, 12),
  (41, 5, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 13),
  (42, 5, 'seo_title', 'text', 'SEO Title', 0, 1, 1, 1, 1, 1, NULL, 14),
  (43, 5, 'featured', 'checkbox', 'Featured', 1, 1, 1, 1, 1, 1, NULL, 15),
  (44, 6, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, NULL, 1),
  (45, 6, 'author_id', 'text', 'Author', 1, 0, 0, 0, 0, 0, NULL, 2),
  (46, 6, 'title', 'text', 'Title', 1, 1, 1, 1, 1, 1, NULL, 3),
  (47, 6, 'excerpt', 'text_area', 'Excerpt', 1, 0, 1, 1, 1, 1, NULL, 4),
  (48, 6, 'body', 'rich_text_box', 'Body', 1, 0, 1, 1, 1, 1, NULL, 5),
  (49, 6, 'slug', 'text', 'Slug', 1, 0, 1, 1, 1, 1, '{\"slugify\":{\"origin\":\"title\"},\"validation\":{\"rule\":\"unique:pages,slug\"}}', 6),
  (50, 6, 'meta_description', 'text', 'Meta Description', 1, 0, 1, 1, 1, 1, NULL, 7),
  (51, 6, 'meta_keywords', 'text', 'Meta Keywords', 1, 0, 1, 1, 1, 1, NULL, 8),
  (52, 6, 'status', 'select_dropdown', 'Status', 1, 1, 1, 1, 1, 1, '{\"default\":\"INACTIVE\",\"options\":{\"INACTIVE\":\"INACTIVE\",\"ACTIVE\":\"ACTIVE\"}}', 9),
  (53, 6, 'created_at', 'timestamp', 'Created At', 1, 1, 1, 0, 0, 0, NULL, 10),
  (54, 6, 'updated_at', 'timestamp', 'Updated At', 1, 0, 0, 0, 0, 0, NULL, 11),
  (55, 6, 'image', 'image', 'Page Image', 0, 1, 1, 1, 1, 1, NULL, 12);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `data_types`
  --
  
  CREATE TABLE `data_types` (
    `id` int UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `display_name_singular` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `display_name_plural` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `icon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `model_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `policy_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `controller` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `generate_permissions` tinyint(1) NOT NULL DEFAULT '0',
    `server_side` tinyint NOT NULL DEFAULT '0',
    `details` text COLLATE utf8mb4_unicode_ci,
    `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 `data_types`
  --
  
  INSERT INTO `data_types` (`id`, `name`, `slug`, `display_name_singular`, `display_name_plural`, `icon`, `model_name`, `policy_name`, `controller`, `description`, `generate_permissions`, `server_side`, `details`, `created_at`, `updated_at`) VALUES
  (1, 'users', 'users', 'User', 'Users', 'voyager-person', 'TCG\\Voyager\\Models\\User', 'TCG\\Voyager\\Policies\\UserPolicy', 'TCG\\Voyager\\Http\\Controllers\\VoyagerUserController', '', 1, 0, NULL, '2021-08-12 00:42:00', '2021-08-12 00:42:00'),
  (2, 'menus', 'menus', 'Menu', 'Menus', 'voyager-list', 'TCG\\Voyager\\Models\\Menu', NULL, '', '', 1, 0, NULL, '2021-08-12 00:42:00', '2021-08-12 00:42:00'),
  (3, 'roles', 'roles', 'Role', 'Roles', 'voyager-lock', 'TCG\\Voyager\\Models\\Role', NULL, 'TCG\\Voyager\\Http\\Controllers\\VoyagerRoleController', '', 1, 0, NULL, '2021-08-12 00:42:00', '2021-08-12 00:42:00'),
  (4, 'categories', 'categories', 'Category', 'Categories', 'voyager-categories', 'TCG\\Voyager\\Models\\Category', NULL, '', '', 1, 0, NULL, '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (5, 'posts', 'posts', 'Post', 'Posts', 'voyager-news', 'TCG\\Voyager\\Models\\Post', 'TCG\\Voyager\\Policies\\PostPolicy', '', '', 1, 0, NULL, '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (6, 'pages', 'pages', 'Page', 'Pages', 'voyager-file-text', 'TCG\\Voyager\\Models\\Page', NULL, '', '', 1, 0, NULL, '2021-08-12 00:42:02', '2021-08-12 00:42:02');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `failed_jobs`
  --
  
  CREATE TABLE `failed_jobs` (
    `id` bigint 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 `menus`
  --
  
  CREATE TABLE `menus` (
    `id` int 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;
  
  --
  -- Dumping data for table `menus`
  --
  
  INSERT INTO `menus` (`id`, `name`, `created_at`, `updated_at`) VALUES
  (1, 'admin', '2021-08-12 00:42:00', '2021-08-12 00:42:00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `menu_items`
  --
  
  CREATE TABLE `menu_items` (
    `id` int UNSIGNED NOT NULL,
    `menu_id` int UNSIGNED DEFAULT NULL,
    `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `target` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '_self',
    `icon_class` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `color` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `parent_id` int DEFAULT NULL,
    `order` int NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    `route` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `parameters` text COLLATE utf8mb4_unicode_ci
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `menu_items`
  --
  
  INSERT INTO `menu_items` (`id`, `menu_id`, `title`, `url`, `target`, `icon_class`, `color`, `parent_id`, `order`, `created_at`, `updated_at`, `route`, `parameters`) VALUES
  (1, 1, 'Dashboard', '', '_self', 'voyager-boat', NULL, NULL, 1, '2021-08-12 00:42:00', '2021-08-12 00:42:00', 'voyager.dashboard', NULL),
  (2, 1, 'Media', '', '_self', 'voyager-images', NULL, NULL, 5, '2021-08-12 00:42:00', '2021-08-12 00:42:00', 'voyager.media.index', NULL),
  (3, 1, 'Users', '', '_self', 'voyager-person', NULL, NULL, 3, '2021-08-12 00:42:00', '2021-08-12 00:42:00', 'voyager.users.index', NULL),
  (4, 1, 'Roles', '', '_self', 'voyager-lock', NULL, NULL, 2, '2021-08-12 00:42:01', '2021-08-12 00:42:01', 'voyager.roles.index', NULL),
  (5, 1, 'Tools', '', '_self', 'voyager-tools', NULL, NULL, 9, '2021-08-12 00:42:01', '2021-08-12 00:42:01', NULL, NULL),
  (6, 1, 'Menu Builder', '', '_self', 'voyager-list', NULL, 5, 10, '2021-08-12 00:42:01', '2021-08-12 00:42:01', 'voyager.menus.index', NULL),
  (7, 1, 'Database', '', '_self', 'voyager-data', NULL, 5, 11, '2021-08-12 00:42:01', '2021-08-12 00:42:01', 'voyager.database.index', NULL),
  (8, 1, 'Compass', '', '_self', 'voyager-compass', NULL, 5, 12, '2021-08-12 00:42:01', '2021-08-12 00:42:01', 'voyager.compass.index', NULL),
  (9, 1, 'BREAD', '', '_self', 'voyager-bread', NULL, 5, 13, '2021-08-12 00:42:01', '2021-08-12 00:42:01', 'voyager.bread.index', NULL),
  (10, 1, 'Settings', '', '_self', 'voyager-settings', NULL, NULL, 14, '2021-08-12 00:42:01', '2021-08-12 00:42:01', 'voyager.settings.index', NULL),
  (11, 1, 'Categories', '', '_self', 'voyager-categories', NULL, NULL, 8, '2021-08-12 00:42:01', '2021-08-12 00:42:01', 'voyager.categories.index', NULL),
  (12, 1, 'Posts', '', '_self', 'voyager-news', NULL, NULL, 6, '2021-08-12 00:42:02', '2021-08-12 00:42:02', 'voyager.posts.index', NULL),
  (13, 1, 'Pages', '', '_self', 'voyager-file-text', NULL, NULL, 7, '2021-08-12 00:42:02', '2021-08-12 00:42:02', 'voyager.pages.index', NULL),
  (14, 1, 'Hooks', '', '_self', 'voyager-hook', NULL, 5, 13, '2021-08-12 00:42:02', '2021-08-12 00:42:02', 'voyager.hooks', NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `migrations`
  --
  
  CREATE TABLE `migrations` (
    `id` int UNSIGNED NOT NULL,
    `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `batch` int 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, '2016_01_01_000000_add_voyager_user_fields', 2),
  (5, '2016_01_01_000000_create_data_types_table', 2),
  (6, '2016_05_19_173453_create_menu_table', 2),
  (7, '2016_10_21_190000_create_roles_table', 2),
  (8, '2016_10_21_190000_create_settings_table', 2),
  (9, '2016_11_30_135954_create_permission_table', 2),
  (10, '2016_11_30_141208_create_permission_role_table', 2),
  (11, '2016_12_26_201236_data_types__add__server_side', 2),
  (12, '2017_01_13_000000_add_route_to_menu_items_table', 2),
  (13, '2017_01_14_005015_create_translations_table', 2),
  (14, '2017_01_15_000000_make_table_name_nullable_in_permissions_table', 2),
  (15, '2017_03_06_000000_add_controller_to_data_types_table', 2),
  (16, '2017_04_21_000000_add_order_to_data_rows_table', 2),
  (17, '2017_07_05_210000_add_policyname_to_data_types_table', 2),
  (18, '2017_08_05_000000_add_group_to_settings_table', 2),
  (19, '2017_11_26_013050_add_user_role_relationship', 2),
  (20, '2017_11_26_015000_create_user_roles_table', 2),
  (21, '2018_03_11_000000_add_user_settings', 2),
  (22, '2018_03_14_000000_add_details_to_data_types_table', 2),
  (23, '2018_03_16_000000_make_settings_value_nullable', 2),
  (24, '2016_01_01_000000_create_pages_table', 3),
  (25, '2016_01_01_000000_create_posts_table', 3),
  (26, '2016_02_15_204651_create_categories_table', 3),
  (27, '2017_04_11_000000_alter_post_nullable_fields_table', 3),
  (28, '2016_06_01_000001_create_oauth_auth_codes_table', 4),
  (29, '2016_06_01_000002_create_oauth_access_tokens_table', 4),
  (30, '2016_06_01_000003_create_oauth_refresh_tokens_table', 4),
  (31, '2016_06_01_000004_create_oauth_clients_table', 4),
  (32, '2016_06_01_000005_create_oauth_personal_access_clients_table', 4);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `oauth_access_tokens`
  --
  
  CREATE TABLE `oauth_access_tokens` (
    `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `user_id` bigint UNSIGNED DEFAULT NULL,
    `client_id` bigint UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `scopes` text COLLATE utf8mb4_unicode_ci,
    `revoked` tinyint(1) NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    `expires_at` datetime DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `oauth_access_tokens`
  --
  
  INSERT INTO `oauth_access_tokens` (`id`, `user_id`, `client_id`, `name`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) VALUES
  ('271b150201cfdfcaeda2bc974e879f4a0b0410092088fa18217445a0b48b96e33a770c38946381d3', 1, 3, NULL, '[]', 0, '2021-08-13 00:25:04', '2021-08-13 00:25:04', '2022-08-13 05:25:04'),
  ('4a39614d4044c7bc6b2b2bae8b59748570fe388bce73a87f349645b393144480cda59d988f8518ff', 1, 3, NULL, '[]', 0, '2021-08-13 00:21:41', '2021-08-13 00:21:41', '2022-08-13 05:21:41'),
  ('6f845e99250777df520d11c141a0f1b69ef20216c4747a6dd04957790ca0b8d96ef189467b2ef32d', 1, 3, NULL, '[]', 0, '2021-08-13 00:06:19', '2021-08-13 00:06:19', '2022-08-13 05:06:19'),
  ('92a2513066017054003476c500697e35c5fbf3d9f5eb7a7dda4fe2672ea5c2661f96ab0ef0147ed6', 1, 3, NULL, '[]', 0, '2021-08-13 00:24:02', '2021-08-13 00:24:02', '2022-08-13 05:24:02'),
  ('cf8c0fb55d71550942d321bab33740ba95c9ae5dfa7f7d0fe377e2200d2a79e6f167106a346715a4', 1, 3, NULL, '[]', 0, '2021-08-13 00:08:46', '2021-08-13 00:08:46', '2022-08-13 05:08:46'),
  ('df7287e8be3f0962ebbdf990c89bfbfa87091deda14dcb4d8695f0e28d50dd3aebebe72f8055ed4e', 1, 3, NULL, '[]', 0, '2021-08-13 00:23:08', '2021-08-13 00:23:08', '2022-08-13 05:23:08'),
  ('f0ef1a6fb5c8a1241b13514e67afcc1dfe2562ba664427232243adae2eb19f5f5d378b9e32d32458', 1, 3, NULL, '[]', 0, '2021-08-13 00:23:28', '2021-08-13 00:23:28', '2022-08-13 05:23:28'),
  ('fa48dabc5ee32394223cdaa7f938d6f94f576a401616953e8d911ce41861202069f6f6e05425d724', 1, 3, NULL, '[]', 0, '2021-08-13 00:14:02', '2021-08-13 00:14:02', '2022-08-13 05:14:02'),
  ('ff45576cc8f7c5ba440140f19de1981894fb5d3664a54c36fdab30659b7a09fb137289506efa1022', 1, 3, NULL, '[]', 0, '2021-08-13 00:05:54', '2021-08-13 00:05:54', '2022-08-13 05:05:54');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `oauth_auth_codes`
  --
  
  CREATE TABLE `oauth_auth_codes` (
    `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `user_id` bigint UNSIGNED NOT NULL,
    `client_id` bigint UNSIGNED NOT NULL,
    `scopes` text COLLATE utf8mb4_unicode_ci,
    `revoked` tinyint(1) NOT NULL,
    `expires_at` datetime DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `oauth_auth_codes`
  --
  
  INSERT INTO `oauth_auth_codes` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `expires_at`) VALUES
  ('049c1e2e617b57faaa8840ce296c67b25cb01a9af12a1bc9fd207a572555d4560b2df8e362dafd2e', 1, 3, '[]', 1, '2021-08-13 05:23:55'),
  ('0a1c88830bb436f3bb12fa2e5817d2e0efc3b00f24cf1815060d4382f119e12665255dfe6cede105', 1, 3, '[]', 1, '2021-08-13 05:33:06'),
  ('0e094ccb2f1248408832e2e879da3c22b6c135e0025c4d6c7e755d4a4ae8ebee6d833e989207546b', 1, 3, '[]', 1, '2021-08-13 05:33:58'),
  ('111c69c7a37ed1abc341058107e99a05d297fd82ac6792727b67b95e4f7e04dad846bb4bb6f87a4b', 1, 3, '[]', 0, '2021-08-13 05:14:08'),
  ('264ef83446fe6d3496ba467aa2dbceccec331dba7e79401296960ceb9c0ec028bf45c0d82ee0bbb7', 1, 3, '[]', 1, '2021-08-13 05:31:33'),
  ('548b0501839e52a9627c0e38e03077ca46274fd87f6d6233f70a0205630c00b6135dd6eea749bf83', 1, 3, '[]', 0, '2021-08-13 05:11:34'),
  ('882d819ebd4bef76d3b0c6f78ba418c8fb887008c66e9b3b8e180a1e4d47539b72c7485ec7f71a40', 1, 3, '[]', 1, '2021-08-13 05:15:53'),
  ('882ee0aadf3d6a52a77e3c7062f4f5953baeb817ac348c374a4f227f8ba58b1fa1c79e664016a032', 1, 3, '[]', 1, '2021-08-13 05:33:27'),
  ('a5d3a58b5f54bd679e286144354268725cb030fdfe0677a024bae32ed44da441ac711b84a018b333', 1, 3, '[]', 1, '2021-08-13 05:16:18'),
  ('dbe0099de8484a1b1da75661858ee8de323369099f7418fe946be650775c569da9b0fc7242c18ec4', 1, 3, '[]', 1, '2021-08-13 05:35:03'),
  ('f150ca2c8cf79e43be58fb1d0d189e86051ee76da7a8caaed600fa9826f0b34bc8f79b70492cdcc2', 1, 3, '[]', 1, '2021-08-13 05:18:44'),
  ('fbccb78cfaee1202dd0e835177c2468a91f090d1ec2462d09d3e5d3c3d42a5922b978a4729a16316', 1, 3, '[]', 0, '2021-08-13 05:12:54');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `oauth_clients`
  --
  
  CREATE TABLE `oauth_clients` (
    `id` bigint UNSIGNED NOT NULL,
    `user_id` bigint UNSIGNED DEFAULT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `secret` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `provider` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `redirect` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `personal_access_client` tinyint(1) NOT NULL,
    `password_client` tinyint(1) NOT NULL,
    `revoked` 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 `oauth_clients`
  --
  
  INSERT INTO `oauth_clients` (`id`, `user_id`, `name`, `secret`, `provider`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `created_at`, `updated_at`) VALUES
  (1, NULL, 'Laravel Personal Access Client', 'L4AC4ItyXOUoVgoKc7zcVMdGoSe2R6Ga2wFcJmLd', NULL, 'http://localhost', 1, 0, 0, '2021-08-12 23:44:53', '2021-08-12 23:44:53'),
  (2, NULL, 'Laravel Password Grant Client', 'qa2oJqyJkq0FQGUsdJim4JAhzK3tVkPkcyjo69a5', 'users', 'http://localhost', 0, 1, 0, '2021-08-12 23:44:53', '2021-08-12 23:44:53'),
  (3, 3, 'tohir', 'xU0nIcqdJV3kQ3kRG2gJJpuQf07oTaTwQjalYcRj', NULL, 'http://forum.oyina.uz/auth/passport', 0, 0, 0, '2021-08-12 23:58:49', '2021-08-12 23:58:49');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `oauth_personal_access_clients`
  --
  
  CREATE TABLE `oauth_personal_access_clients` (
    `id` bigint UNSIGNED NOT NULL,
    `client_id` bigint UNSIGNED 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 `oauth_personal_access_clients`
  --
  
  INSERT INTO `oauth_personal_access_clients` (`id`, `client_id`, `created_at`, `updated_at`) VALUES
  (1, 1, '2021-08-12 23:44:53', '2021-08-12 23:44:53');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `oauth_refresh_tokens`
  --
  
  CREATE TABLE `oauth_refresh_tokens` (
    `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `revoked` tinyint(1) NOT NULL,
    `expires_at` datetime DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `oauth_refresh_tokens`
  --
  
  INSERT INTO `oauth_refresh_tokens` (`id`, `access_token_id`, `revoked`, `expires_at`) VALUES
  ('05435f90b53bf0bab1a1e1c692324fdb04e12d71561b1fdfa1728635e2798ce870585004f25ef17c', '271b150201cfdfcaeda2bc974e879f4a0b0410092088fa18217445a0b48b96e33a770c38946381d3', 0, '2022-08-13 05:25:04'),
  ('0a2022b2a05cefd31477b74bdb3e69b2a5a38066e0e51dc036acdbd04e9bf8122b2f271529e108e6', 'cf8c0fb55d71550942d321bab33740ba95c9ae5dfa7f7d0fe377e2200d2a79e6f167106a346715a4', 0, '2022-08-13 05:08:46'),
  ('20769a2d4a2f8ceebee3691ca60526380805f49a230e6fc26b929daac106ea79547c9c9344e972c8', '6f845e99250777df520d11c141a0f1b69ef20216c4747a6dd04957790ca0b8d96ef189467b2ef32d', 0, '2022-08-13 05:06:19'),
  ('23ff4f6c5313a536fb8f55752a6a2cf7a7b32fde3aa95b0e5ce1fd81aa8da6af6eb91480d3571c17', 'ff45576cc8f7c5ba440140f19de1981894fb5d3664a54c36fdab30659b7a09fb137289506efa1022', 0, '2022-08-13 05:05:54'),
  ('384b68e78b12dddcde22e76b9c4b951d4ea983d9091362246b92e4c6241ff8db0204866a3ff4c377', '92a2513066017054003476c500697e35c5fbf3d9f5eb7a7dda4fe2672ea5c2661f96ab0ef0147ed6', 0, '2022-08-13 05:24:02'),
  ('621005b5b846a4438f66bf2d90ec9731373574822d00ce9496309e6668614dac95af9c79b0948a8b', '4a39614d4044c7bc6b2b2bae8b59748570fe388bce73a87f349645b393144480cda59d988f8518ff', 0, '2022-08-13 05:21:41'),
  ('932c79ffdd45d37a52bbcc36ba8ec081ee2a82f1905bd0cb742921a7fca4297cf60ce04e5fc32325', 'df7287e8be3f0962ebbdf990c89bfbfa87091deda14dcb4d8695f0e28d50dd3aebebe72f8055ed4e', 0, '2022-08-13 05:23:08'),
  ('950044ae3559516c13ec3456818dab17b4e2450b93426ffa30d29d776aad2f479c4b9fb0ae13fc9b', 'f0ef1a6fb5c8a1241b13514e67afcc1dfe2562ba664427232243adae2eb19f5f5d378b9e32d32458', 0, '2022-08-13 05:23:28'),
  ('f086a452d6165f57570e49ec93b256cdf942e7577efe0791272d88ef0b98d573d19a15a917166312', 'fa48dabc5ee32394223cdaa7f938d6f94f576a401616953e8d911ce41861202069f6f6e05425d724', 0, '2022-08-13 05:14:02');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `pages`
  --
  
  CREATE TABLE `pages` (
    `id` int UNSIGNED NOT NULL,
    `author_id` int NOT NULL,
    `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `excerpt` text COLLATE utf8mb4_unicode_ci,
    `body` text COLLATE utf8mb4_unicode_ci,
    `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `meta_description` text COLLATE utf8mb4_unicode_ci,
    `meta_keywords` text COLLATE utf8mb4_unicode_ci,
    `status` enum('ACTIVE','INACTIVE') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'INACTIVE',
    `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`, `author_id`, `title`, `excerpt`, `body`, `image`, `slug`, `meta_description`, `meta_keywords`, `status`, `created_at`, `updated_at`) VALUES
  (1, 0, 'Hello World', 'Hang the jib grog grog blossom grapple dance the hempen jig gangway pressgang bilge rat to go on account lugger. Nelsons folly gabion line draught scallywag fire ship gaff fluke fathom case shot. Sea Legs bilge rat sloop matey gabion long clothes run a shot across the bow Gold Road cog league.', '<p>Hello World. Scallywag grog swab Cat o\'nine tails scuttle rigging hardtack cable nipper Yellow Jack. Handsomely spirits knave lad killick landlubber or just lubber deadlights chantey pinnace crack Jennys tea cup. Provost long clothes black spot Yellow Jack bilged on her anchor league lateen sail case shot lee tackle.</p>\n<p>Ballast spirits fluke topmast me quarterdeck schooner landlubber or just lubber gabion belaying pin. Pinnace stern galleon starboard warp carouser to go on account dance the hempen jig jolly boat measured fer yer chains. Man-of-war fire in the hole nipperkin handsomely doubloon barkadeer Brethren of the Coast gibbet driver squiffy.</p>', 'pages/page1.jpg', 'hello-world', 'Yar Meta Description', 'Keyword1, Keyword2', 'ACTIVE', '2021-08-12 00:42:02', '2021-08-12 00:42:02');
  
  -- --------------------------------------------------------
  
  --
  -- 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 `permissions`
  --
  
  CREATE TABLE `permissions` (
    `id` bigint UNSIGNED NOT NULL,
    `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `table_name` varchar(255) CHARACTER SET utf8mb4 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 `permissions`
  --
  
  INSERT INTO `permissions` (`id`, `key`, `table_name`, `created_at`, `updated_at`) VALUES
  (1, 'browse_admin', NULL, '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (2, 'browse_bread', NULL, '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (3, 'browse_database', NULL, '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (4, 'browse_media', NULL, '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (5, 'browse_compass', NULL, '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (6, 'browse_menus', 'menus', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (7, 'read_menus', 'menus', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (8, 'edit_menus', 'menus', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (9, 'add_menus', 'menus', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (10, 'delete_menus', 'menus', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (11, 'browse_roles', 'roles', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (12, 'read_roles', 'roles', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (13, 'edit_roles', 'roles', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (14, 'add_roles', 'roles', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (15, 'delete_roles', 'roles', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (16, 'browse_users', 'users', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (17, 'read_users', 'users', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (18, 'edit_users', 'users', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (19, 'add_users', 'users', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (20, 'delete_users', 'users', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (21, 'browse_settings', 'settings', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (22, 'read_settings', 'settings', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (23, 'edit_settings', 'settings', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (24, 'add_settings', 'settings', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (25, 'delete_settings', 'settings', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (26, 'browse_categories', 'categories', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (27, 'read_categories', 'categories', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (28, 'edit_categories', 'categories', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (29, 'add_categories', 'categories', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (30, 'delete_categories', 'categories', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (31, 'browse_posts', 'posts', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (32, 'read_posts', 'posts', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (33, 'edit_posts', 'posts', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (34, 'add_posts', 'posts', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (35, 'delete_posts', 'posts', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (36, 'browse_pages', 'pages', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (37, 'read_pages', 'pages', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (38, 'edit_pages', 'pages', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (39, 'add_pages', 'pages', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (40, 'delete_pages', 'pages', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (41, 'browse_hooks', NULL, '2021-08-12 00:42:02', '2021-08-12 00:42:02');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `permission_role`
  --
  
  CREATE TABLE `permission_role` (
    `permission_id` bigint UNSIGNED NOT NULL,
    `role_id` bigint UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `permission_role`
  --
  
  INSERT INTO `permission_role` (`permission_id`, `role_id`) VALUES
  (1, 1),
  (2, 1),
  (3, 1),
  (4, 1),
  (5, 1),
  (6, 1),
  (7, 1),
  (8, 1),
  (9, 1),
  (10, 1),
  (11, 1),
  (12, 1),
  (13, 1),
  (14, 1),
  (15, 1),
  (16, 1),
  (17, 1),
  (18, 1),
  (19, 1),
  (20, 1),
  (21, 1),
  (22, 1),
  (23, 1),
  (24, 1),
  (25, 1),
  (26, 1),
  (27, 1),
  (28, 1),
  (29, 1),
  (30, 1),
  (31, 1),
  (32, 1),
  (33, 1),
  (34, 1),
  (35, 1),
  (36, 1),
  (37, 1),
  (38, 1),
  (39, 1),
  (40, 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `posts`
  --
  
  CREATE TABLE `posts` (
    `id` int UNSIGNED NOT NULL,
    `author_id` int NOT NULL,
    `category_id` int DEFAULT NULL,
    `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `seo_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `excerpt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
    `body` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `meta_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
    `meta_keywords` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
    `status` enum('PUBLISHED','DRAFT','PENDING') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'DRAFT',
    `featured` 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 `posts`
  --
  
  INSERT INTO `posts` (`id`, `author_id`, `category_id`, `title`, `seo_title`, `excerpt`, `body`, `image`, `slug`, `meta_description`, `meta_keywords`, `status`, `featured`, `created_at`, `updated_at`) VALUES
  (1, 0, NULL, 'Lorem Ipsum Post', NULL, 'This is the excerpt for the Lorem Ipsum Post', '<p>This is the body of the lorem ipsum post</p>', 'posts/post1.jpg', 'lorem-ipsum-post', 'This is the meta description', 'keyword1, keyword2, keyword3', 'PUBLISHED', 0, '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (2, 0, NULL, 'My Sample Post', NULL, 'This is the excerpt for the sample Post', '<p>This is the body for the sample post, which includes the body.</p>\n                <h2>We can use all kinds of format!</h2>\n                <p>And include a bunch of other stuff.</p>', 'posts/post2.jpg', 'my-sample-post', 'Meta Description for sample post', 'keyword1, keyword2, keyword3', 'PUBLISHED', 0, '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (3, 0, NULL, 'Latest Post', NULL, 'This is the excerpt for the latest post', '<p>This is the body for the latest post</p>', 'posts/post3.jpg', 'latest-post', 'This is the meta description', 'keyword1, keyword2, keyword3', 'PUBLISHED', 0, '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (4, 0, NULL, 'Yarr Post', NULL, 'Reef sails nipperkin bring a spring upon her cable coffer jury mast spike marooned Pieces of Eight poop deck pillage. Clipper driver coxswain galleon hempen halter come about pressgang gangplank boatswain swing the lead. Nipperkin yard skysail swab lanyard Blimey bilge water ho quarter Buccaneer.', '<p>Swab deadlights Buccaneer fire ship square-rigged dance the hempen jig weigh anchor cackle fruit grog furl. Crack Jennys tea cup chase guns pressgang hearties spirits hogshead Gold Road six pounders fathom measured fer yer chains. Main sheet provost come about trysail barkadeer crimp scuttle mizzenmast brig plunder.</p>\n<p>Mizzen league keelhaul galleon tender cog chase Barbary Coast doubloon crack Jennys tea cup. Blow the man down lugsail fire ship pinnace cackle fruit line warp Admiral of the Black strike colors doubloon. Tackle Jack Ketch come about crimp rum draft scuppers run a shot across the bow haul wind maroon.</p>\n<p>Interloper heave down list driver pressgang holystone scuppers tackle scallywag bilged on her anchor. Jack Tar interloper draught grapple mizzenmast hulk knave cable transom hogshead. Gaff pillage to go on account grog aft chase guns piracy yardarm knave clap of thunder.</p>', 'posts/post4.jpg', 'yarr-post', 'this be a meta descript', 'keyword1, keyword2, keyword3', 'PUBLISHED', 0, '2021-08-12 00:42:02', '2021-08-12 00:42:02');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `roles`
  --
  
  CREATE TABLE `roles` (
    `id` bigint UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `display_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;
  
  --
  -- Dumping data for table `roles`
  --
  
  INSERT INTO `roles` (`id`, `name`, `display_name`, `created_at`, `updated_at`) VALUES
  (1, 'admin', 'Administrator', '2021-08-12 00:42:01', '2021-08-12 00:42:01'),
  (2, 'user', 'Normal User', '2021-08-12 00:42:01', '2021-08-12 00:42:01');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `settings`
  --
  
  CREATE TABLE `settings` (
    `id` int UNSIGNED NOT NULL,
    `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `display_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
    `details` text COLLATE utf8mb4_unicode_ci,
    `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `order` int NOT NULL DEFAULT '1',
    `group` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `settings`
  --
  
  INSERT INTO `settings` (`id`, `key`, `display_name`, `value`, `details`, `type`, `order`, `group`) VALUES
  (1, 'site.title', 'Site Title', 'Site Title', '', 'text', 1, 'Site'),
  (2, 'site.description', 'Site Description', 'Site Description', '', 'text', 2, 'Site'),
  (3, 'site.logo', 'Site Logo', '', '', 'image', 3, 'Site'),
  (4, 'site.google_analytics_tracking_id', 'Google Analytics Tracking ID', '', '', 'text', 4, 'Site'),
  (5, 'admin.bg_image', 'Admin Background Image', '', '', 'image', 5, 'Admin'),
  (6, 'admin.title', 'Admin Title', 'Voyager', '', 'text', 1, 'Admin'),
  (7, 'admin.description', 'Admin Description', 'Welcome to Voyager. The Missing Admin for Laravel', '', 'text', 2, 'Admin'),
  (8, 'admin.loader', 'Admin Loader', '', '', 'image', 3, 'Admin'),
  (9, 'admin.icon_image', 'Admin Icon Image', '', '', 'image', 4, 'Admin'),
  (10, 'admin.google_analytics_client_id', 'Google Analytics Client ID (used for admin dashboard)', '', '', 'text', 1, 'Admin');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `translations`
  --
  
  CREATE TABLE `translations` (
    `id` int UNSIGNED NOT NULL,
    `table_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `column_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `foreign_key` int UNSIGNED NOT NULL,
    `locale` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `value` 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 `translations`
  --
  
  INSERT INTO `translations` (`id`, `table_name`, `column_name`, `foreign_key`, `locale`, `value`, `created_at`, `updated_at`) VALUES
  (1, 'data_types', 'display_name_singular', 5, 'pt', 'Post', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (2, 'data_types', 'display_name_singular', 6, 'pt', 'Página', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (3, 'data_types', 'display_name_singular', 1, 'pt', 'Utilizador', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (4, 'data_types', 'display_name_singular', 4, 'pt', 'Categoria', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (5, 'data_types', 'display_name_singular', 2, 'pt', 'Menu', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (6, 'data_types', 'display_name_singular', 3, 'pt', 'Função', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (7, 'data_types', 'display_name_plural', 5, 'pt', 'Posts', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (8, 'data_types', 'display_name_plural', 6, 'pt', 'Páginas', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (9, 'data_types', 'display_name_plural', 1, 'pt', 'Utilizadores', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (10, 'data_types', 'display_name_plural', 4, 'pt', 'Categorias', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (11, 'data_types', 'display_name_plural', 2, 'pt', 'Menus', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (12, 'data_types', 'display_name_plural', 3, 'pt', 'Funções', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (13, 'categories', 'slug', 1, 'pt', 'categoria-1', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (14, 'categories', 'name', 1, 'pt', 'Categoria 1', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (15, 'categories', 'slug', 2, 'pt', 'categoria-2', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (16, 'categories', 'name', 2, 'pt', 'Categoria 2', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (17, 'pages', 'title', 1, 'pt', 'Olá Mundo', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (18, 'pages', 'slug', 1, 'pt', 'ola-mundo', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (19, 'pages', 'body', 1, 'pt', '<p>Olá Mundo. Scallywag grog swab Cat o\'nine tails scuttle rigging hardtack cable nipper Yellow Jack. Handsomely spirits knave lad killick landlubber or just lubber deadlights chantey pinnace crack Jennys tea cup. Provost long clothes black spot Yellow Jack bilged on her anchor league lateen sail case shot lee tackle.</p>\r\n<p>Ballast spirits fluke topmast me quarterdeck schooner landlubber or just lubber gabion belaying pin. Pinnace stern galleon starboard warp carouser to go on account dance the hempen jig jolly boat measured fer yer chains. Man-of-war fire in the hole nipperkin handsomely doubloon barkadeer Brethren of the Coast gibbet driver squiffy.</p>', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (20, 'menu_items', 'title', 1, 'pt', 'Painel de Controle', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (21, 'menu_items', 'title', 2, 'pt', 'Media', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (22, 'menu_items', 'title', 12, 'pt', 'Publicações', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (23, 'menu_items', 'title', 3, 'pt', 'Utilizadores', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (24, 'menu_items', 'title', 11, 'pt', 'Categorias', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (25, 'menu_items', 'title', 13, 'pt', 'Páginas', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (26, 'menu_items', 'title', 4, 'pt', 'Funções', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (27, 'menu_items', 'title', 5, 'pt', 'Ferramentas', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (28, 'menu_items', 'title', 6, 'pt', 'Menus', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (29, 'menu_items', 'title', 7, 'pt', 'Base de dados', '2021-08-12 00:42:02', '2021-08-12 00:42:02'),
  (30, 'menu_items', 'title', 10, 'pt', 'Configurações', '2021-08-12 00:42:02', '2021-08-12 00:42:02');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` bigint UNSIGNED NOT NULL,
    `role_id` bigint UNSIGNED DEFAULT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 'users/default.png',
    `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,
    `settings` text COLLATE utf8mb4_unicode_ci,
    `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`, `role_id`, `name`, `email`, `avatar`, `email_verified_at`, `password`, `remember_token`, `settings`, `created_at`, `updated_at`) VALUES
  (1, 1, 'Admin', 'admin@admin.com', 'users/default.png', NULL, '$2y$10$Gqecn2Hy/r2o.jFRUoYNL.TY4Ux2hHWuRxIARon0sNnsoxD9B/0gK', 'jgeoBIR8AlqeAkt5wGTrSvUBTrlkC8M3w9kOfFRDDibHPTUpUjfyNp9qsq8K', NULL, '2021-08-12 00:42:02', '2021-08-12 00:42:02');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user_roles`
  --
  
  CREATE TABLE `user_roles` (
    `user_id` bigint UNSIGNED NOT NULL,
    `role_id` bigint UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `categories`
  --
  ALTER TABLE `categories`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `categories_slug_unique` (`slug`),
    ADD KEY `categories_parent_id_foreign` (`parent_id`);
  
  --
  -- Indexes for table `data_rows`
  --
  ALTER TABLE `data_rows`
    ADD PRIMARY KEY (`id`),
    ADD KEY `data_rows_data_type_id_foreign` (`data_type_id`);
  
  --
  -- Indexes for table `data_types`
  --
  ALTER TABLE `data_types`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `data_types_name_unique` (`name`),
    ADD UNIQUE KEY `data_types_slug_unique` (`slug`);
  
  --
  -- Indexes for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
  
  --
  -- Indexes for table `menus`
  --
  ALTER TABLE `menus`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `menus_name_unique` (`name`);
  
  --
  -- Indexes for table `menu_items`
  --
  ALTER TABLE `menu_items`
    ADD PRIMARY KEY (`id`),
    ADD KEY `menu_items_menu_id_foreign` (`menu_id`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `oauth_access_tokens`
  --
  ALTER TABLE `oauth_access_tokens`
    ADD PRIMARY KEY (`id`),
    ADD KEY `oauth_access_tokens_user_id_index` (`user_id`);
  
  --
  -- Indexes for table `oauth_auth_codes`
  --
  ALTER TABLE `oauth_auth_codes`
    ADD PRIMARY KEY (`id`),
    ADD KEY `oauth_auth_codes_user_id_index` (`user_id`);
  
  --
  -- Indexes for table `oauth_clients`
  --
  ALTER TABLE `oauth_clients`
    ADD PRIMARY KEY (`id`),
    ADD KEY `oauth_clients_user_id_index` (`user_id`);
  
  --
  -- Indexes for table `oauth_personal_access_clients`
  --
  ALTER TABLE `oauth_personal_access_clients`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `oauth_refresh_tokens`
  --
  ALTER TABLE `oauth_refresh_tokens`
    ADD PRIMARY KEY (`id`),
    ADD KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`);
  
  --
  -- Indexes for table `pages`
  --
  ALTER TABLE `pages`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `pages_slug_unique` (`slug`);
  
  --
  -- Indexes for table `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`);
  
  --
  -- Indexes for table `permissions`
  --
  ALTER TABLE `permissions`
    ADD PRIMARY KEY (`id`),
    ADD KEY `permissions_key_index` (`key`);
  
  --
  -- Indexes for table `permission_role`
  --
  ALTER TABLE `permission_role`
    ADD PRIMARY KEY (`permission_id`,`role_id`),
    ADD KEY `permission_role_permission_id_index` (`permission_id`),
    ADD KEY `permission_role_role_id_index` (`role_id`);
  
  --
  -- Indexes for table `posts`
  --
  ALTER TABLE `posts`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `posts_slug_unique` (`slug`);
  
  --
  -- Indexes for table `roles`
  --
  ALTER TABLE `roles`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `roles_name_unique` (`name`);
  
  --
  -- Indexes for table `settings`
  --
  ALTER TABLE `settings`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `settings_key_unique` (`key`);
  
  --
  -- Indexes for table `translations`
  --
  ALTER TABLE `translations`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `translations_table_name_column_name_foreign_key_locale_unique` (`table_name`,`column_name`,`foreign_key`,`locale`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `users_email_unique` (`email`),
    ADD KEY `users_role_id_foreign` (`role_id`);
  
  --
  -- Indexes for table `user_roles`
  --
  ALTER TABLE `user_roles`
    ADD PRIMARY KEY (`user_id`,`role_id`),
    ADD KEY `user_roles_user_id_index` (`user_id`),
    ADD KEY `user_roles_role_id_index` (`role_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `categories`
  --
  ALTER TABLE `categories`
    MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `data_rows`
  --
  ALTER TABLE `data_rows`
    MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56;
  
  --
  -- AUTO_INCREMENT for table `data_types`
  --
  ALTER TABLE `data_types`
    MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  
  --
  -- AUTO_INCREMENT for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `menus`
  --
  ALTER TABLE `menus`
    MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `menu_items`
  --
  ALTER TABLE `menu_items`
    MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;
  
  --
  -- AUTO_INCREMENT for table `oauth_clients`
  --
  ALTER TABLE `oauth_clients`
    MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `oauth_personal_access_clients`
  --
  ALTER TABLE `oauth_personal_access_clients`
    MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `pages`
  --
  ALTER TABLE `pages`
    MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `permissions`
  --
  ALTER TABLE `permissions`
    MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;
  
  --
  -- AUTO_INCREMENT for table `posts`
  --
  ALTER TABLE `posts`
    MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `roles`
  --
  ALTER TABLE `roles`
    MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `settings`
  --
  ALTER TABLE `settings`
    MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  
  --
  -- AUTO_INCREMENT for table `translations`
  --
  ALTER TABLE `translations`
    MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `categories`
  --
  ALTER TABLE `categories`
    ADD CONSTRAINT `categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
  
  --
  -- Constraints for table `data_rows`
  --
  ALTER TABLE `data_rows`
    ADD CONSTRAINT `data_rows_data_type_id_foreign` FOREIGN KEY (`data_type_id`) REFERENCES `data_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
  
  --
  -- Constraints for table `menu_items`
  --
  ALTER TABLE `menu_items`
    ADD CONSTRAINT `menu_items_menu_id_foreign` FOREIGN KEY (`menu_id`) REFERENCES `menus` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `permission_role`
  --
  ALTER TABLE `permission_role`
    ADD CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
    ADD CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `users`
  --
  ALTER TABLE `users`
    ADD CONSTRAINT `users_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`);
  
  --
  -- Constraints for table `user_roles`
  --
  ALTER TABLE `user_roles`
    ADD CONSTRAINT `user_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE,
    ADD CONSTRAINT `user_roles_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 */;
  