-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 04, 2022 at 12:14 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 8.1.2

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

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

--
-- Table structure for table `accounts`
--

CREATE TABLE `accounts` (
  `id` int(10) UNSIGNED NOT NULL,
  `service_amount` double NOT NULL DEFAULT 0,
  `commission` double NOT NULL DEFAULT 0,
  `service_id` int(10) UNSIGNED NOT NULL,
  `organization_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `audits`
--

CREATE TABLE `audits` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `event` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `auditable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `auditable_id` bigint(20) UNSIGNED NOT NULL,
  `old_values` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `new_values` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `url` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_agent` varchar(1023) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tags` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `audits`
--

INSERT INTO `audits` (`id`, `user_type`, `user_id`, `event`, `auditable_type`, `auditable_id`, `old_values`, `new_values`, `url`, `ip_address`, `user_agent`, `tags`, `created_at`, `updated_at`) VALUES
(1, NULL, NULL, 'created', 'App\\Models\\User', 1, '[]', '{\"email\":\"wangoken2@gmail.com\",\"password\":\"$2y$10$D\\/J2BtfbJVwO1loBiSVEa.liAWztqpmHeOazjIW0whB1a4QfVC\\/2K\",\"id\":1}', 'http://localhost/rrr/public/register', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-30 14:35:46', '2022-03-30 14:35:46'),
(2, NULL, NULL, 'updated', 'App\\Models\\User', 1, '{\"password\":\"$2y$10$D\\/J2BtfbJVwO1loBiSVEa.liAWztqpmHeOazjIW0whB1a4QfVC\\/2K\",\"remember_token\":null}', '{\"password\":\"$2y$10$8S60TLhE01KctlBw0s93uOwuRW6hVjSxZXVyFxC8iKu6jth5MlOSe\",\"remember_token\":\"Nds0rO0xxCTRhCQkRgRX6kRtjMh0ctQHiGF4AuDD4J0qdSD8m1mvMj15X6jJ\"}', 'http://localhost/rrr/public/password/reset', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-30 15:19:01', '2022-03-30 15:19:01'),
(3, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 1, '{\"remember_token\":\"Nds0rO0xxCTRhCQkRgRX6kRtjMh0ctQHiGF4AuDD4J0qdSD8m1mvMj15X6jJ\"}', '{\"remember_token\":\"6t3ZvYMbrETlymqQflzM3hVmRKCpXGJon27Ffr6DDE9jBgucq5jIvvsZcpeP\"}', 'http://localhost/rrr/public/logout', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-30 15:19:33', '2022-03-30 15:19:33'),
(4, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 1, '{\"remember_token\":\"6t3ZvYMbrETlymqQflzM3hVmRKCpXGJon27Ffr6DDE9jBgucq5jIvvsZcpeP\"}', '{\"remember_token\":\"JNgtmyVLyh7gazJRKzRiaZ6l46GeCg09mfrgruWDNLJ7mksBSDx5RVKj47yO\"}', 'http://localhost/rrr/public/logout', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-30 15:32:09', '2022-03-30 15:32:09'),
(5, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 1, '{\"remember_token\":\"JNgtmyVLyh7gazJRKzRiaZ6l46GeCg09mfrgruWDNLJ7mksBSDx5RVKj47yO\"}', '{\"remember_token\":\"OaISip340bFK9rgTViU0JbjoTNQi5AiPJayjXkkjUe72cLk8dEdMTE17hFqi\"}', 'http://localhost/rrr/public/logout', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-31 13:31:12', '2022-03-31 13:31:12'),
(6, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 1, '{\"remember_token\":\"OaISip340bFK9rgTViU0JbjoTNQi5AiPJayjXkkjUe72cLk8dEdMTE17hFqi\"}', '{\"remember_token\":\"JGd8x6zsEZ2gxKOqSf2rz9JZraHoUsv9IKLJ9wwCdgL06ORaVW18VhagjmtK\"}', 'http://localhost/rrr/public/logout', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-31 15:16:19', '2022-03-31 15:16:19'),
(7, 'App\\Models\\User', 1, 'created', 'App\\Models\\Category', 1, '[]', '{\"name\":\"Tow\",\"status\":\"ACTIVE\",\"id\":1}', 'http://localhost/rrr/public/categories/create', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-31 16:08:04', '2022-03-31 16:08:04'),
(8, 'App\\Models\\User', 1, 'updated', 'App\\Models\\Category', 1, '{\"status\":\"ACTIVE\"}', '{\"status\":\"INACTIVE\"}', 'http://localhost/rrr/public/categories/edit/1', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-31 16:18:39', '2022-03-31 16:18:39'),
(9, 'App\\Models\\User', 1, 'updated', 'App\\Models\\Category', 1, '{\"status\":\"INACTIVE\"}', '{\"status\":\"ACTIVE\"}', 'http://localhost/rrr/public/categories/edit/1', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-31 16:18:49', '2022-03-31 16:18:49'),
(10, 'App\\Models\\User', 1, 'created', 'App\\Models\\Category', 2, '[]', '{\"name\":\"Rescue\",\"status\":\"ACTIVE\",\"id\":2}', 'http://localhost/rrr/public/categories/create', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-31 16:19:46', '2022-03-31 16:19:46'),
(11, 'App\\Models\\User', 1, 'created', 'App\\Models\\Category', 3, '[]', '{\"name\":\"Flat Tyre\",\"status\":\"ACTIVE\",\"id\":3}', 'http://localhost/rrr/public/categories/create', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-31 16:19:55', '2022-03-31 16:19:55'),
(12, 'App\\Models\\User', 1, 'created', 'App\\Models\\Category', 4, '[]', '{\"name\":\"Key Retrieval\",\"status\":\"ACTIVE\",\"id\":4}', 'http://localhost/rrr/public/categories/create', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-31 16:20:09', '2022-03-31 16:20:09'),
(13, 'App\\Models\\User', 1, 'created', 'App\\Models\\Category', 5, '[]', '{\"name\":\"Fuel Delivery\",\"status\":\"ACTIVE\",\"id\":5}', 'http://localhost/rrr/public/categories/create', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36', NULL, '2022-03-31 16:20:25', '2022-03-31 16:20:25'),
(14, 'App\\Models\\User', 1, 'created', 'App\\Models\\User', 2, '[]', '{\"first_name\":\"Mark\",\"last_name\":\"Mwangi\",\"email\":\"skeww12345@gmail.com\",\"phone\":\"0712345678\",\"gender\":\"Male\",\"id_number\":\"12345677\",\"type\":\"System User\",\"status\":1,\"password\":\"$2y$10$.wwtttDb1cOoDMByGF3wB.Ciq2.hXjMMaEHBdcJRUtSev1r9NxUKi\",\"id\":2}', 'http://localhost/rrr/public/users/create', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-01 15:38:52', '2022-04-01 15:38:52'),
(15, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 2, '{\"status\":1}', '{\"status\":0}', 'http://localhost/rrr/public/users/deactivate/2', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-01 15:56:09', '2022-04-01 15:56:09'),
(16, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 2, '{\"status\":0}', '{\"status\":1}', 'http://localhost/rrr/public/users/activate/2', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-01 15:56:18', '2022-04-01 15:56:18'),
(17, 'App\\Models\\User', 1, 'created', 'App\\Models\\User', 5, '[]', '{\"first_name\":\"Kennedy\",\"last_name\":\"Wango\",\"email\":\"skeww12345@gmail.com\",\"phone\":\"+254725145304\",\"gender\":null,\"id_number\":null,\"type\":\"Service Provider\",\"status\":1,\"password\":\"$2y$10$dBB1OchNt6bRHF4IIpVvi.c0sdO5H..fyfw9z6q0vCSxdzKkrURNu\",\"id\":5}', 'http://localhost/rrr/public/service-providers/create', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 05:34:14', '2022-04-04 05:34:14'),
(18, 'App\\Models\\User', 1, 'created', 'App\\Models\\User', 3, '[]', '{\"first_name\":\"Kennedy\",\"last_name\":\"Wango\",\"email\":\"skeww12345@gmail.com\",\"phone\":\"0725145304\",\"gender\":null,\"id_number\":null,\"type\":\"Service Provider\",\"status\":1,\"password\":\"$2y$10$\\/8Z8Pp4WKZKp5rkQjmYLU.hBfBbDwqiKF13Gs2VndMLIDI52c1pV2\",\"id\":3}', 'http://localhost/rrr/public/service-providers/create', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 05:38:27', '2022-04-04 05:38:27'),
(19, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 3, '{\"type\":\"Service Provider\"}', '{\"type\":null}', 'http://localhost/rrr/public/service-providers/edit/3', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 06:11:37', '2022-04-04 06:11:37'),
(20, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 3, '{\"type\":\"\"}', '{\"type\":null}', 'http://localhost/rrr/public/service-providers/edit/3', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 06:12:54', '2022-04-04 06:12:54'),
(21, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 3, '{\"phone\":\"0725145304\"}', '{\"phone\":\"07251453046\"}', 'http://localhost/rrr/public/service-providers/edit/3', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 06:13:53', '2022-04-04 06:13:53'),
(22, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 3, '{\"phone\":\"07251453046\"}', '{\"phone\":\"0725145304\"}', 'http://localhost/rrr/public/service-providers/edit/3', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 06:14:40', '2022-04-04 06:14:40'),
(23, 'App\\Models\\User', 1, 'created', 'App\\Models\\User', 4, '[]', '{\"first_name\":\"John\",\"last_name\":\"Doe\",\"email\":\"skeww12345@gmail.com\",\"phone\":\"0725145304\",\"gender\":\"Male\",\"id_number\":\"27781190\",\"type\":\"Customer\",\"status\":1,\"password\":\"$2y$10$LIiANiGQBm63oSq2edpzvOTueojzV7LU6h\\/LEbCON3LUAdMojnhKK\",\"id\":4}', 'http://localhost/rrr/public/clients/create', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 09:52:57', '2022-04-04 09:52:57'),
(24, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 4, '{\"phone\":\"0725145304\"}', '{\"phone\":\"07251453045\"}', 'http://localhost/rrr/public/clients/edit/4', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 09:54:24', '2022-04-04 09:54:24'),
(25, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 4, '{\"phone\":\"07251453045\"}', '{\"phone\":\"0725145304\"}', 'http://localhost/rrr/public/clients/edit/4', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 09:54:33', '2022-04-04 09:54:33'),
(26, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 4, '{\"status\":1}', '{\"status\":0}', 'http://localhost/rrr/public/clients/deactivate/4', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 10:02:21', '2022-04-04 10:02:21'),
(27, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 4, '{\"is_new\":0}', '{\"is_new\":1}', 'http://localhost/rrr/public/clients/show/4', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 10:02:25', '2022-04-04 10:02:25'),
(28, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 4, '{\"status\":0}', '{\"status\":1}', 'http://localhost/rrr/public/clients/activate/4', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 10:02:29', '2022-04-04 10:02:29'),
(29, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 4, '{\"is_new\":0}', '{\"is_new\":1}', 'http://localhost/rrr/public/clients/edit/4', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 10:10:25', '2022-04-04 10:10:25'),
(30, 'App\\Models\\User', 1, 'updated', 'App\\Models\\User', 3, '{\"is_new\":0}', '{\"is_new\":1}', 'http://localhost/rrr/public/service-providers/show/3', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', NULL, '2022-04-04 10:12:10', '2022-04-04 10:12:10');

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

--
-- Table structure for table `categories`
--

CREATE TABLE `categories` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `categories`
--

INSERT INTO `categories` (`id`, `name`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Tow', 'ACTIVE', '2022-03-31 16:08:03', '2022-03-31 16:18:49', NULL),
(2, 'Rescue', 'ACTIVE', '2022-03-31 16:19:46', '2022-03-31 16:19:46', NULL),
(3, 'Flat Tyre', 'ACTIVE', '2022-03-31 16:19:55', '2022-03-31 16:19:55', NULL),
(4, 'Key Retrieval', 'ACTIVE', '2022-03-31 16:20:09', '2022-03-31 16:20:09', NULL),
(5, 'Fuel Delivery', 'ACTIVE', '2022-03-31 16:20:25', '2022-03-31 16:20:25', NULL);

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

--
-- Table structure for table `documents`
--

CREATE TABLE `documents` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `document_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` date DEFAULT NULL,
  `expiry_date` date DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `organization_id` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `documents`
--

INSERT INTO `documents` (`id`, `path`, `name`, `document_type`, `start_date`, `expiry_date`, `user_id`, `organization_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, '164905327812.jpg', 'Driving Licence', 'Expiry', NULL, NULL, 3, 2, '2022-04-04 05:38:27', '2022-04-04 06:21:18', NULL),
(2, '164905332783.jpg', 'ID FRONT', 'No Expiry', NULL, NULL, 3, 2, '2022-04-04 05:38:27', '2022-04-04 06:22:07', NULL),
(3, '164905070812.jpg', 'ID BACK', 'No Expiry', NULL, NULL, 3, 2, '2022-04-04 05:38:28', '2022-04-04 05:38:28', NULL),
(4, '164905332734.png', 'Passport', 'No Expiry', NULL, NULL, 3, 2, '2022-04-04 05:38:28', '2022-04-04 06:22:07', NULL);

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

--
-- 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 `fcm_tokens`
--

CREATE TABLE `fcm_tokens` (
  `id` int(10) UNSIGNED NOT NULL,
  `device_token` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `jobs`
--

CREATE TABLE `jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `queue` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `attempts` tinyint(3) UNSIGNED NOT NULL,
  `reserved_at` int(10) UNSIGNED DEFAULT NULL,
  `available_at` int(10) UNSIGNED NOT NULL,
  `created_at` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `locations`
--

CREATE TABLE `locations` (
  `id` int(10) UNSIGNED NOT NULL,
  `latitude` double(10,6) NOT NULL,
  `longitude` double(10,6) NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(22, '2014_10_12_000000_create_users_table', 1),
(23, '2014_10_12_100000_create_categories_table', 1),
(24, '2014_10_12_100000_create_password_resets_table', 1),
(25, '2015_03_30_101601_create_organizations_table', 1),
(26, '2018_05_26_122234_create_services_table', 1),
(27, '2018_05_26_123107_create_ratings_table', 1),
(28, '2018_05_26_124344_create_wallets_table', 1),
(29, '2018_05_28_201829_create_fcm_tokens_table', 1),
(30, '2018_06_09_094356_create_locations_table', 1),
(31, '2018_07_01_140928_create_notifications_table', 1),
(32, '2018_07_01_141832_create_jobs_table', 1),
(33, '2018_07_01_141946_create_failed_jobs_table', 1),
(34, '2018_09_18_215334_create_transactions_table', 1),
(35, '2018_09_22_163801_create_accounts_table', 1),
(36, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(37, '2022_03_30_101633_create_documents_table', 1),
(38, '2022_03_30_103111_create_payments_table', 1),
(39, '2022_03_30_104236_create_mpesa_transactions_table', 1),
(40, '2022_03_30_104524_create_subscriptions_table', 1),
(41, '2022_03_30_163331_create_permission_tables', 1),
(42, '2022_03_30_164234_create_audits_table', 1),
(43, '2022_03_30_173427_create_sessions_table', 2),
(44, '2022_04_04_093148_create_service_categories_table', 3);

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

--
-- Table structure for table `model_has_permissions`
--

CREATE TABLE `model_has_permissions` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `model_has_roles`
--

CREATE TABLE `model_has_roles` (
  `role_id` bigint(20) UNSIGNED NOT NULL,
  `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `model_has_roles`
--

INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
(1, 'App\\Models\\User', 1),
(2, 'App\\Models\\User', 2);

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

--
-- Table structure for table `mpesa_transactions`
--

CREATE TABLE `mpesa_transactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `FirstName` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `MiddleName` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `LastName` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `TransactionType` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `TransID` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `TransTime` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `BusinessShortCode` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `BillRefNumber` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `InvoiceNumber` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ThirdPartyTransID` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `MSISDN` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `TransAmount` double DEFAULT NULL,
  `OrgAccountBalance` double DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `notifications`
--

CREATE TABLE `notifications` (
  `id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `notifiable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `notifiable_id` bigint(20) UNSIGNED NOT NULL,
  `data` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `read_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `organizations`
--

CREATE TABLE `organizations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `kra_pin` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `organizations`
--

INSERT INTO `organizations` (`id`, `logo`, `name`, `email`, `phone`, `address`, `location`, `kra_pin`, `user_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, '164904295844.png', 'Reliable Road Rescue', 'wangoken2@gmail.com', '+254725145304', '123 street bakhita', 'Utawala', '', 1, NULL, '2022-04-04 03:29:19', NULL),
(2, '164905070726.png', 'Tow Coop', 'wangoken2@gmail.com', '0725145304', '123 street bakhita', 'Utawala1', 'A008787799', 3, '2022-04-04 05:38:27', '2022-04-04 06:12:54', NULL);

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

--
-- Table structure for table `password_resets`
--

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

--
-- Dumping data for table `password_resets`
--

INSERT INTO `password_resets` (`email`, `token`, `created_at`) VALUES
('wangoken2@gmail.com', '$2y$10$rSWEwKTdcOvzRqr1xTlVfeeoB6rzBQH.p3xPxJAFSHEzGU3dGUBl2', '2022-03-30 15:19:42');

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

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `service_id` int(10) UNSIGNED NOT NULL,
  `organization_id` int(10) UNSIGNED NOT NULL,
  `amount` double NOT NULL,
  `service_provider_pay` double(15,2) NOT NULL,
  `rrr_pay` double(15,2) DEFAULT NULL,
  `payment_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `transaction_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `permissions`
--

CREATE TABLE `permissions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_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 `permissions`
--

INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'View All Roles', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(2, 'Create Role', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(3, 'Edit Role', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(4, 'Show Role', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(5, 'Delete Role', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(6, 'View All Categories', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(7, 'Create Category', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(8, 'Edit Category', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(9, 'Show Category', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(10, 'Delete Category', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(11, 'View All Users', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(12, 'Create User', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(13, 'Edit User', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(14, 'Show User', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(15, 'Delete User', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(16, 'Activate Users', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(17, 'Deactivate Users', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(18, 'Update Organization', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(19, 'View All Service Providers', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(20, 'Create Service Provider', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(21, 'Edit Service Provider', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(22, 'Show Service Provider', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(23, 'Delete Service Provider', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(24, 'Activate Service Providers', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(25, 'Reject Service Providers', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(26, 'Deactivate Service Providers', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(27, 'View All Payments', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(28, 'Show Payment', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(29, 'View All Clients', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(30, 'Create Client', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(31, 'Edit Client', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(32, 'Show Client', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(33, 'Delete Client', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(34, 'Activate Clients', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(35, 'Reject Clients', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53'),
(36, 'Deactivate Clients', 'web', '2022-03-31 15:01:53', '2022-03-31 15:01:53');

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

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

CREATE TABLE `personal_access_tokens` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `ratings`
--

CREATE TABLE `ratings` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `service_id` int(10) UNSIGNED NOT NULL,
  `rating` double NOT NULL DEFAULT 0,
  `comment` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_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`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'Admin', 'web', '2022-03-31 15:09:18', '2022-03-31 15:09:18'),
(2, 'User', 'web', '2022-04-01 15:37:45', '2022-04-01 15:37:45');

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

--
-- Table structure for table `role_has_permissions`
--

CREATE TABLE `role_has_permissions` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `role_has_permissions`
--

INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES
(1, 1),
(2, 1),
(3, 1),
(4, 1),
(5, 1),
(6, 1),
(6, 2),
(7, 1),
(7, 2),
(8, 1),
(8, 2),
(9, 1),
(9, 2),
(11, 1),
(12, 1),
(13, 1),
(14, 1),
(16, 1),
(17, 1),
(18, 1),
(19, 1),
(20, 1),
(21, 1),
(22, 1),
(24, 1),
(25, 1),
(26, 1),
(27, 1),
(28, 1),
(29, 1),
(30, 1),
(31, 1),
(32, 1),
(34, 1),
(36, 1);

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

--
-- Table structure for table `services`
--

CREATE TABLE `services` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `category_id` int(10) UNSIGNED NOT NULL,
  `organization_id` int(10) UNSIGNED NOT NULL,
  `pickup` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `service_date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `tracking_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `image_url` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `active` tinyint(1) NOT NULL DEFAULT 1,
  `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'open',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `service_categories`
--

CREATE TABLE `service_categories` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `amount` double NOT NULL,
  `vehicle` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fuel_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `category_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `organization_id` int(10) 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 `service_categories`
--

INSERT INTO `service_categories` (`id`, `amount`, `vehicle`, `fuel_type`, `category_id`, `user_id`, `organization_id`, `created_at`, `updated_at`) VALUES
(13, 2000, 'Saloon Car', NULL, 1, 3, 2, '2022-04-04 08:12:55', '2022-04-04 08:12:55'),
(14, 200, NULL, NULL, 5, 3, 2, '2022-04-04 08:12:55', '2022-04-04 08:12:55'),
(15, 1500, NULL, NULL, 2, 3, 2, '2022-04-04 08:12:55', '2022-04-04 08:12:55'),
(16, 300, NULL, 'Petrol', 5, 3, 2, '2022-04-04 08:12:55', '2022-04-04 08:12:55'),
(17, 2500, 'Lorries', NULL, 1, 3, 2, '2022-04-04 08:12:55', '2022-04-04 08:12:55');

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

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_agent` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payload` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_activity` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sessions`
--

INSERT INTO `sessions` (`id`, `user_id`, `ip_address`, `user_agent`, `payload`, `last_activity`) VALUES
('TLJU8U3XHVREpuR7sjrQdFFfZdosRwxgkKLLNvp4', 1, '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36', 'YTo3OntzOjY6Il90b2tlbiI7czo0MDoiZjBKekVudFMxamlnM0d6MGVLRmZkRjVJQ3lQUEpHc1BveFNaNlZiWSI7czozOiJ1cmwiO2E6MDp7fXM6OToiX3ByZXZpb3VzIjthOjE6e3M6MzoidXJsIjtzOjQ1OiJodHRwOi8vbG9jYWxob3N0L3Jyci9wdWJsaWMvc2VydmljZS1wcm92aWRlcnMiO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX1zOjUwOiJsb2dpbl93ZWJfNTliYTM2YWRkYzJiMmY5NDAxNTgwZjAxNGM3ZjU4ZWE0ZTMwOTg5ZCI7aToxO3M6NDoiYXV0aCI7YToxOntzOjIxOiJwYXNzd29yZF9jb25maXJtZWRfYXQiO2k6MTY0OTA0MDM5Njt9czoxNzoicGFzc3dvcmRfaGFzaF93ZWIiO3M6NjA6IiQyeSQxMCQ4UzYwVExoRTAxS2N0bEJ3MHM5M3VPd3VSVzZoVmpTeFpYVnlGeEM4aUt1Nmp0aDVNbE9TZSI7fQ==', 1649067137);

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

--
-- Table structure for table `subscriptions`
--

CREATE TABLE `subscriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `amount` double NOT NULL,
  `payment_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `transaction_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date NOT NULL,
  `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `transactions`
--

CREATE TABLE `transactions` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `wallet_id` int(10) UNSIGNED DEFAULT NULL,
  `reference` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` enum('credit','debit') COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Type of transaction credit/debit',
  `amount` double(10,2) NOT NULL,
  `balance` double(10,2) NOT NULL DEFAULT 0.00,
  `comments` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Details of this transaction',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `users` (
  `id` int(10) UNSIGNED NOT NULL,
  `first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `gender` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `id_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `is_new` int(11) NOT NULL DEFAULT 0,
  `last_login` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `first_name`, `last_name`, `email`, `phone`, `gender`, `id_number`, `photo`, `password`, `type`, `status`, `is_new`, `last_login`, `remember_token`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Admin', '', 'wangoken2@gmail.com', NULL, NULL, NULL, NULL, '$2y$10$8S60TLhE01KctlBw0s93uOwuRW6hVjSxZXVyFxC8iKu6jth5MlOSe', 'admin', 1, 1, NULL, 'JGd8x6zsEZ2gxKOqSf2rz9JZraHoUsv9IKLJ9wwCdgL06ORaVW18VhagjmtK', '2022-03-30 14:35:46', '2022-03-30 15:19:00', NULL),
(2, 'Mark', 'Mwangi', 'kw@gmail.com', '0712345678', 'Male', '12345677', NULL, '$2y$10$.wwtttDb1cOoDMByGF3wB.Ciq2.hXjMMaEHBdcJRUtSev1r9NxUKi', 'System User', 1, 1, NULL, NULL, '2022-04-01 15:38:51', '2022-04-01 15:56:18', NULL),
(3, 'Kennedy', 'Wango', 'catekennie@gmail.com', '0725145304', NULL, NULL, NULL, '$2y$10$/8Z8Pp4WKZKp5rkQjmYLU.hBfBbDwqiKF13Gs2VndMLIDI52c1pV2', 'Service Provider', 1, 1, NULL, NULL, '2022-04-04 05:38:27', '2022-04-04 10:12:10', NULL),
(4, 'John', 'Doe', 'skeww12345@gmail.com', '0725145304', 'Male', '27781190', NULL, '$2y$10$LIiANiGQBm63oSq2edpzvOTueojzV7LU6h/LEbCON3LUAdMojnhKK', 'Customer', 1, 1, NULL, NULL, '2022-04-04 09:52:56', '2022-04-04 10:10:25', NULL);

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

--
-- Table structure for table `wallets`
--

CREATE TABLE `wallets` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `amount` decimal(18,2) NOT NULL DEFAULT 0.00,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

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

--
-- Indexes for table `audits`
--
ALTER TABLE `audits`
  ADD PRIMARY KEY (`id`),
  ADD KEY `audits_auditable_type_auditable_id_index` (`auditable_type`,`auditable_id`),
  ADD KEY `audits_user_id_user_type_index` (`user_id`,`user_type`);

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

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

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

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

--
-- Indexes for table `jobs`
--
ALTER TABLE `jobs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jobs_queue_index` (`queue`);

--
-- Indexes for table `locations`
--
ALTER TABLE `locations`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `locations_user_id_unique` (`user_id`);

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

--
-- Indexes for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
  ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);

--
-- Indexes for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
  ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);

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

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`);

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

--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
  ADD KEY `password_resets_email_index` (`email`);

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

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`);

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

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`);

--
-- Indexes for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`role_id`),
  ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);

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

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

--
-- Indexes for table `sessions`
--
ALTER TABLE `sessions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `sessions_user_id_index` (`user_id`),
  ADD KEY `sessions_last_activity_index` (`last_activity`);

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

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

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`);

--
-- Indexes for table `wallets`
--
ALTER TABLE `wallets`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `wallets_user_id_unique` (`user_id`);

--
-- AUTO_INCREMENT for dumped tables
--

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

--
-- AUTO_INCREMENT for table `audits`
--
ALTER TABLE `audits`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

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

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

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `jobs`
--
ALTER TABLE `jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

--
-- AUTO_INCREMENT for table `mpesa_transactions`
--
ALTER TABLE `mpesa_transactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `organizations`
--
ALTER TABLE `organizations`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `payments`
--
ALTER TABLE `payments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;

--
-- 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 `ratings`
--
ALTER TABLE `ratings`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

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

--
-- AUTO_INCREMENT for table `service_categories`
--
ALTER TABLE `service_categories`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `subscriptions`
--
ALTER TABLE `subscriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

--
-- Constraints for dumped tables
--

--
-- Constraints for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`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 */;
