text: -- phpMyAdmin SQL Dump
  -- version 4.8.5
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jan 29, 2021 at 03:34 PM
  -- Server version: 10.1.38-MariaDB
  -- PHP Version: 7.2.17
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  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: `laravel_test`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `failed_jobs`
  --
  
  CREATE TABLE `failed_jobs` (
    `id` bigint(20) UNSIGNED 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 `migrations`
  --
  
  CREATE TABLE `migrations` (
    `id` int(10) UNSIGNED NOT NULL,
    `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `batch` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `migrations`
  --
  
  INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
  (1, '2014_10_12_000000_create_users_table', 1),
  (2, '2014_10_12_100000_create_password_resets_table', 1),
  (3, '2019_08_19_000000_create_failed_jobs_table', 1),
  (4, '2021_01_27_180534_create_permissions_table', 1),
  (5, '2021_01_27_180543_create_roles_table', 1),
  (6, '2021_01_27_181536_create_users_permissions_table', 1),
  (7, '2021_01_27_181643_create_users_roles_table', 1),
  (8, '2021_01_27_182006_create_roles_permissions_table', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `email` varchar(191) 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` int(10) UNSIGNED NOT NULL,
    `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 `permissions`
  --
  
  INSERT INTO `permissions` (`id`, `name`, `slug`, `created_at`, `updated_at`) VALUES
  (1, 'Create Sales Rep', 'create-sales-rep', NULL, NULL),
  (4, 'View Sales Rep', 'view-sales-rep', NULL, NULL),
  (6, 'Edit Sales Rep', 'edit-sales-rep', NULL, NULL),
  (7, 'Delete Sales Rep', 'delete-sales-rep', NULL, NULL),
  (8, 'Create Contributor', 'create-contributor', NULL, NULL),
  (9, 'View Contributor', 'view-contributor', NULL, NULL),
  (10, 'Edit Contributor', 'edit-contributor', NULL, NULL),
  (11, 'Delete Contributor', 'delete-contributor', NULL, NULL),
  (12, 'Create Customer', 'create-customer', NULL, NULL),
  (13, 'View Customer', 'view-customer', NULL, NULL),
  (14, 'Edit Customer', 'edit-customer', NULL, NULL),
  (15, 'Delete Customer', 'delete-customer', NULL, NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `roles`
  --
  
  CREATE TABLE `roles` (
    `id` int(10) UNSIGNED NOT NULL,
    `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 `roles`
  --
  
  INSERT INTO `roles` (`id`, `name`, `slug`, `created_at`, `updated_at`) VALUES
  (1, 'Admin', 'admin', '2021-01-28 18:30:00', '2021-01-28 18:30:00'),
  (2, 'Sales Rep', 'sales-rep', '2021-01-28 18:30:00', '2021-01-28 18:30:00'),
  (3, 'Contributor', 'contributor', '2021-01-28 18:30:00', '2021-01-28 18:30:00'),
  (4, 'Customer', 'customer', '2021-01-28 18:30:00', '2021-01-28 18:30:00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `roles_permissions`
  --
  
  CREATE TABLE `roles_permissions` (
    `role_id` int(10) UNSIGNED NOT NULL,
    `permission_id` int(10) UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `roles_permissions`
  --
  
  INSERT INTO `roles_permissions` (`role_id`, `permission_id`) VALUES
  (1, 1),
  (1, 4),
  (1, 6),
  (1, 7),
  (1, 8),
  (1, 9),
  (1, 10),
  (1, 11),
  (1, 12),
  (1, 13),
  (1, 14),
  (1, 15),
  (2, 8),
  (2, 9),
  (2, 10),
  (2, 11),
  (2, 12),
  (2, 13),
  (2, 14),
  (2, 15),
  (3, 13);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email_verified_at` timestamp NULL DEFAULT NULL,
    `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'Missouri Rolfson', 'juwan49@example.com', '2021-01-28 12:26:12', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'CXBpXWEmMxcGx9Rk6aHFWhNgXPaFESed9bFgzU2T51kpcjK9JxfWwjv6MhvT', '2021-01-28 12:26:13', '2021-01-28 15:15:58'),
  (2, 'Jerome Harvey', 'april.mitchell@example.com', '2021-01-28 12:26:12', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'UOAyNYegsUOtUbj4BVmZwObhYHo7crS9TSC2pPqr7h9A6dDNPsxSfCkHzEGV', '2021-01-28 12:26:13', '2021-01-28 12:26:13'),
  (3, 'Prof. Florian Cruickshank', 'alvis.graham@example.net', '2021-01-28 12:26:12', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'ygB2OcP4jV', '2021-01-28 12:26:13', '2021-01-28 12:26:13'),
  (4, 'Vivien Morar', 'alayna79@example.org', '2021-01-28 12:26:12', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'OG7kMCQJvG1msp1Ib9PLi1KTUH2BrB4wVdb74mAoMGUBO4xnb9ie6M41MzsA', '2021-01-28 12:26:13', '2021-01-28 12:26:13'),
  (5, 'Mrs. Ayla Greenholt Jr.', 'breitenberg.eryn@example.org', '2021-01-28 12:26:12', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'ZmmSOI5LxZ', '2021-01-28 12:26:13', '2021-01-28 12:26:13'),
  (6, 'Georgianna Strosin', 'cathrine55@example.net', '2021-01-28 12:26:12', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'piTl6uEDS5', '2021-01-28 12:26:13', '2021-01-28 12:26:13'),
  (7, 'Cristal Pagac', 'zschuppe@example.net', '2021-01-28 12:26:12', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'tQYvyAygwZ', '2021-01-28 12:26:13', '2021-01-28 12:26:13'),
  (8, 'Elinore Medhurst', 'dmoen@example.net', '2021-01-28 12:26:12', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'b0sR2cu5W0', '2021-01-28 12:26:13', '2021-01-28 12:26:13'),
  (9, 'Fannie Wehner', 'tmarks@example.net', '2021-01-28 12:26:12', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'RhmaisTMaH', '2021-01-28 12:26:13', '2021-01-28 12:26:13');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users_permissions`
  --
  
  CREATE TABLE `users_permissions` (
    `user_id` int(10) UNSIGNED NOT NULL,
    `permission_id` int(10) UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users_roles`
  --
  
  CREATE TABLE `users_roles` (
    `user_id` int(10) UNSIGNED NOT NULL,
    `role_id` int(10) UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `users_roles`
  --
  
  INSERT INTO `users_roles` (`user_id`, `role_id`) VALUES
  (1, 1),
  (2, 2),
  (3, 2),
  (4, 3),
  (5, 3),
  (6, 4),
  (7, 4),
  (8, 4),
  (9, 4);
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    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 `permissions`
  --
  ALTER TABLE `permissions`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `roles`
  --
  ALTER TABLE `roles`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `roles_permissions`
  --
  ALTER TABLE `roles_permissions`
    ADD PRIMARY KEY (`role_id`,`permission_id`),
    ADD KEY `roles_permissions_permission_id_foreign` (`permission_id`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `users_email_unique` (`email`);
  
  --
  -- Indexes for table `users_permissions`
  --
  ALTER TABLE `users_permissions`
    ADD PRIMARY KEY (`user_id`,`permission_id`),
    ADD KEY `users_permissions_permission_id_foreign` (`permission_id`);
  
  --
  -- Indexes for table `users_roles`
  --
  ALTER TABLE `users_roles`
    ADD PRIMARY KEY (`user_id`,`role_id`),
    ADD KEY `users_roles_role_id_foreign` (`role_id`);
  
  --
  -- 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 `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
  
  --
  -- AUTO_INCREMENT for table `permissions`
  --
  ALTER TABLE `permissions`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
  
  --
  -- AUTO_INCREMENT for table `roles`
  --
  ALTER TABLE `roles`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `roles_permissions`
  --
  ALTER TABLE `roles_permissions`
    ADD CONSTRAINT `roles_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
    ADD CONSTRAINT `roles_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `users_permissions`
  --
  ALTER TABLE `users_permissions`
    ADD CONSTRAINT `users_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
    ADD CONSTRAINT `users_permissions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `users_roles`
  --
  ALTER TABLE `users_roles`
    ADD CONSTRAINT `users_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE,
    ADD CONSTRAINT `users_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 */;
  