-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 24, 2023 at 02:24 AM
-- Server version: 5.7.44
-- PHP Version: 8.1.16

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

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

--
-- Table structure for table `additional_services`
--

CREATE TABLE `additional_services` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(33) DEFAULT NULL,
  `title` varchar(100) DEFAULT NULL,
  `price` varchar(100) DEFAULT NULL,
  `status` int(11) DEFAULT '1',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `additional_services`
--

INSERT INTO `additional_services` (`id`, `slug`, `title`, `price`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, '1700810553.0016208', 'Steps & Path to Door', '15', 1, '2023-11-24 07:22:33', NULL, NULL),
(2, '1700810553.8071287', 'Steps & Path to Door With Ice Melt', '20', 1, '2023-11-24 07:22:33', NULL, NULL),
(3, '1700810553.9992883', 'Side Walks', '25', 1, '2023-11-24 07:22:33', NULL, NULL);

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

--
-- Table structure for table `adonis_schema`
--

CREATE TABLE `adonis_schema` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `batch` int(11) DEFAULT NULL,
  `migration_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `adonis_schema`
--

INSERT INTO `adonis_schema` (`id`, `name`, `batch`, `migration_time`) VALUES
(34, '1651857415145_user_groups_schema', 1, '2023-11-24 07:22:32'),
(35, '1651857549873_users_schema', 1, '2023-11-24 07:22:32'),
(36, '1651857557185_user_api_tokens_schema', 1, '2023-11-24 07:22:32'),
(37, '1651857581696_cms_modules_schema', 1, '2023-11-24 07:22:32'),
(38, '1651857589816_cms_module_permissions_schema', 1, '2023-11-24 07:22:32'),
(39, '1651857603473_mail_template_schema', 1, '2023-11-24 07:22:32'),
(40, '1651857615934_reset_password_schema', 1, '2023-11-24 07:22:32'),
(41, '1651857629953_application_setting_schema', 1, '2023-11-24 07:22:32'),
(42, '1651857674340_content_management_schema', 1, '2023-11-24 07:22:32'),
(43, '1651857681926_faqs_schema', 1, '2023-11-24 07:22:32'),
(44, '1651857690517_media_schema', 1, '2023-11-24 07:22:32'),
(45, '1651857728996_notifications_schema', 1, '2023-11-24 07:22:32'),
(46, '1651857735074_notification_setting_schema', 1, '2023-11-24 07:22:32'),
(47, '1661949461494_user_vehicles_schema', 1, '2023-11-24 07:22:32'),
(48, '1662100265170_booking_schema', 1, '2023-11-24 07:22:32'),
(49, '1662469183291_user_reviews_schema', 1, '2023-11-24 07:22:32'),
(50, '1664457280821_additional_services_schema', 1, '2023-11-24 07:22:32'),
(51, '1664457280821_services_schema', 1, '2023-11-24 07:22:32'),
(52, '1664457688121_user_services_schema', 1, '2023-11-24 07:22:32'),
(53, '1664794050944_booking_additional_services_schema', 1, '2023-11-24 07:22:32'),
(54, '1664794050944_booking_services_schema', 1, '2023-11-24 07:22:32'),
(55, '1664794050944_user_addresses_schema', 1, '2023-11-24 07:22:32'),
(56, '1679477580698_chat_rooms_schema', 1, '2023-11-24 07:22:32'),
(57, '1679477580699_chat_messages_schema', 1, '2023-11-24 07:22:32'),
(58, '1679477591562_chat_message_status_schema', 1, '2023-11-24 07:22:32'),
(59, '1679477625224_chat_room_status_schema', 1, '2023-11-24 07:22:33'),
(60, '1679477634184_chat_room_users_schema', 1, '2023-11-24 07:22:33'),
(61, '1680762336949_user_connect_account_schema', 1, '2023-11-24 07:22:33'),
(62, '1680767735639_user_transaction_schema', 1, '2023-11-24 07:22:33'),
(63, '1680768299532_user_external_account_schema', 1, '2023-11-24 07:22:33'),
(64, '1680768439634_user_card_schema', 1, '2023-11-24 07:22:33'),
(65, '1680768684973_contact_us_schema', 1, '2023-11-24 07:22:33'),
(66, '1680768684973_payout_request_schema', 1, '2023-11-24 07:22:33');

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

--
-- Table structure for table `application_settings`
--

CREATE TABLE `application_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `identifier` varchar(200) DEFAULT NULL,
  `meta_key` varchar(200) DEFAULT NULL,
  `value` text,
  `is_file` enum('1','0') NOT NULL DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `application_settings`
--

INSERT INTO `application_settings` (`id`, `identifier`, `meta_key`, `value`, `is_file`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'application_setting', 'favicon', '/images/favicon.png', '1', '2023-11-24 07:22:33', NULL, NULL),
(2, 'application_setting', 'logo', '/images/logo.jpg', '1', '2023-11-24 07:22:33', NULL, NULL),
(3, 'application_setting', 'application_name', 'RetroCube', '0', '2023-11-24 07:22:33', NULL, NULL),
(4, 'application_setting', 'application_fees', '35', '0', '2023-11-24 07:22:33', NULL, NULL);

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

--
-- Table structure for table `bookings`
--

CREATE TABLE `bookings` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(200) NOT NULL,
  `operator_id` int(10) UNSIGNED DEFAULT NULL,
  `price` decimal(11,2) DEFAULT '0.00',
  `charge_id` varchar(255) DEFAULT NULL,
  `work_type` varchar(33) DEFAULT NULL,
  `location` varchar(255) DEFAULT NULL,
  `latitude` varchar(33) DEFAULT NULL,
  `longitude` varchar(33) DEFAULT NULL,
  `service_schedule_time` datetime DEFAULT NULL,
  `service_type` varchar(33) DEFAULT 'urgent',
  `shape_size` varchar(33) DEFAULT NULL,
  `slider_meter` varchar(33) DEFAULT NULL,
  `additional_service` varchar(33) DEFAULT NULL,
  `cancellation_reason` text,
  `booking_status` varchar(55) DEFAULT 'in_progress',
  `is_paid` int(11) DEFAULT '0',
  `is_owner_agree` int(11) DEFAULT '0',
  `status` int(11) DEFAULT '1',
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `booking_additional_services`
--

CREATE TABLE `booking_additional_services` (
  `id` int(10) UNSIGNED NOT NULL,
  `service_id` int(10) UNSIGNED DEFAULT NULL,
  `booking_id` int(10) UNSIGNED DEFAULT NULL,
  `status` int(11) DEFAULT '1',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `booking_services`
--

CREATE TABLE `booking_services` (
  `id` int(10) UNSIGNED NOT NULL,
  `service_id` int(10) UNSIGNED DEFAULT NULL,
  `booking_id` int(10) UNSIGNED DEFAULT NULL,
  `status` int(11) DEFAULT '1',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `chat_messages`
--

CREATE TABLE `chat_messages` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(150) NOT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `chat_room_id` int(10) UNSIGNED DEFAULT NULL,
  `message_type` varchar(255) DEFAULT 'text',
  `message` text,
  `file_url` text,
  `file_data` text,
  `custom_data` text,
  `ip_address` varchar(255) DEFAULT NULL,
  `is_anonymous` int(11) DEFAULT '0',
  `status` int(11) DEFAULT '1',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `chat_message_status`
--

CREATE TABLE `chat_message_status` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `chat_room_id` int(10) UNSIGNED DEFAULT NULL,
  `chat_message_id` int(10) UNSIGNED DEFAULT NULL,
  `is_read` int(11) DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `chat_rooms`
--

CREATE TABLE `chat_rooms` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(150) NOT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `ref_module_type` varchar(255) DEFAULT 'parties',
  `ref_module_id` int(11) DEFAULT '0',
  `identifier` varchar(255) DEFAULT 'comments',
  `title` varchar(255) DEFAULT 'comments',
  `image_url` text,
  `description` text,
  `type` varchar(255) DEFAULT NULL,
  `member_limit` int(11) DEFAULT '0',
  `is_anonymous` int(11) DEFAULT '0',
  `status` int(11) DEFAULT '1',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `chat_room_status`
--

CREATE TABLE `chat_room_status` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `chat_room_id` int(10) UNSIGNED DEFAULT NULL,
  `chat_message_id` int(10) UNSIGNED DEFAULT NULL,
  `is_read` int(11) DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `chat_room_users`
--

CREATE TABLE `chat_room_users` (
  `id` int(10) UNSIGNED NOT NULL,
  `chat_room_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `ref_module_type` varchar(255) DEFAULT 'parties',
  `ref_module_id` int(11) DEFAULT '0',
  `last_chat_message_id` int(11) DEFAULT '0',
  `last_message_timestamp` datetime DEFAULT NULL,
  `unread_message_counts` int(11) DEFAULT '0',
  `is_anonymous` int(11) DEFAULT '0',
  `status` int(11) DEFAULT '1',
  `is_owner` int(11) DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `cms_modules`
--

CREATE TABLE `cms_modules` (
  `id` int(10) UNSIGNED NOT NULL,
  `parent_id` int(11) DEFAULT '0',
  `name` varchar(100) DEFAULT NULL,
  `route_name` varchar(100) DEFAULT NULL,
  `icon` varchar(100) DEFAULT NULL,
  `status` enum('1','0') DEFAULT '1',
  `sort_order` decimal(8,2) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cms_modules`
--

INSERT INTO `cms_modules` (`id`, `parent_id`, `name`, `route_name`, `icon`, `status`, `sort_order`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 0, 'Cms Roles Management', 'cms-roles-management.index', 'fa fa-key', '1', 1.00, '2023-11-24 07:22:33', NULL, NULL),
(2, 0, 'Cms Users Management', 'cms-users-management.index', 'fa fa-users', '1', 2.00, '2023-11-24 07:22:33', NULL, NULL),
(3, 0, 'Application Setting', 'admin.application-setting', 'fa fa-cog', '1', 3.00, '2023-11-24 07:22:33', NULL, NULL),
(4, 0, 'Users Management', 'app-users.index', 'fa fa-users', '1', 4.00, '2023-11-24 07:22:33', NULL, NULL),
(5, 0, 'Content Management', 'content-management.index', 'fa fa-tasks', '1', 5.00, '2023-11-24 07:22:33', NULL, NULL),
(6, 0, 'FAQ\'s', 'faq.index', 'fa fa-question-circle-o', '1', 6.00, '2023-11-24 07:22:33', NULL, NULL);

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

--
-- Table structure for table `cms_module_permissions`
--

CREATE TABLE `cms_module_permissions` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_group_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `cms_module_id` int(10) UNSIGNED DEFAULT NULL,
  `is_add` enum('1','0') DEFAULT '0',
  `is_view` enum('1','0') DEFAULT '0',
  `is_update` enum('1','0') DEFAULT '0',
  `is_delete` enum('1','0') DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `contact_us`
--

CREATE TABLE `contact_us` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(33) DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone_number` varchar(255) DEFAULT NULL,
  `message` text,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `content_managements`
--

CREATE TABLE `content_managements` (
  `id` int(10) UNSIGNED NOT NULL,
  `title` varchar(150) NOT NULL,
  `slug` varchar(150) NOT NULL,
  `content` text,
  `status` enum('1','0') DEFAULT '1',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `content_managements`
--

INSERT INTO `content_managements` (`id`, `title`, `slug`, `content`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'About US', 'about-us', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', '1', '2023-11-24 07:22:33', NULL, NULL),
(2, 'Privacy Policy', 'privacy-policy', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', '1', '2023-11-24 07:22:33', NULL, NULL),
(3, 'Terms & Conditions', 'terms-conditions', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', '1', '2023-11-24 07:22:33', NULL, NULL);

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

--
-- Table structure for table `faqs`
--

CREATE TABLE `faqs` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(200) NOT NULL,
  `question` text NOT NULL,
  `answer` text NOT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `mail_templates`
--

CREATE TABLE `mail_templates` (
  `id` int(10) UNSIGNED NOT NULL,
  `identifier` varchar(100) DEFAULT NULL,
  `subject` varchar(200) DEFAULT NULL,
  `body` text NOT NULL,
  `wildcard` text NOT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `media`
--

CREATE TABLE `media` (
  `id` int(10) UNSIGNED NOT NULL,
  `module` varchar(100) NOT NULL,
  `module_id` int(11) NOT NULL,
  `filename` varchar(200) NOT NULL,
  `original_name` varchar(200) NOT NULL,
  `file_url` text NOT NULL,
  `file_url_blur` varchar(200) NOT NULL,
  `thumbnail_url` text,
  `mime_type` varchar(255) DEFAULT NULL,
  `file_type` varchar(255) DEFAULT NULL,
  `driver` varchar(50) NOT NULL DEFAULT 'local',
  `media_type` enum('public','private') NOT NULL DEFAULT 'public',
  `meta` text,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

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

CREATE TABLE `notifications` (
  `id` int(10) UNSIGNED NOT NULL,
  `unique_id` varchar(200) NOT NULL,
  `identifier` varchar(200) NOT NULL,
  `actor_id` int(10) UNSIGNED DEFAULT NULL,
  `target_id` int(10) UNSIGNED DEFAULT NULL,
  `module` varchar(100) NOT NULL,
  `module_id` int(11) NOT NULL,
  `module_slug` varchar(100) NOT NULL,
  `reference_module` varchar(255) DEFAULT NULL,
  `reference_id` int(11) DEFAULT NULL,
  `reference_slug` varchar(100) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` text,
  `web_redirect_link` text,
  `bg_color` varchar(33) DEFAULT '#1B57BA',
  `is_read` enum('1','0') NOT NULL DEFAULT '0',
  `is_view` enum('1','0') NOT NULL DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `notification_settings`
--

CREATE TABLE `notification_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `meta_key` varchar(100) NOT NULL,
  `meta_value` text NOT NULL,
  `description` text,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `payout_requests`
--

CREATE TABLE `payout_requests` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(33) DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `amount` decimal(11,2) DEFAULT NULL,
  `status` varchar(255) DEFAULT 'Pending',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `reset_passwords`
--

CREATE TABLE `reset_passwords` (
  `id` int(10) UNSIGNED NOT NULL,
  `email` varchar(150) DEFAULT NULL,
  `token` varchar(255) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

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

CREATE TABLE `services` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(33) DEFAULT NULL,
  `title` varchar(100) DEFAULT NULL,
  `status` int(11) DEFAULT '1',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `services`
--

INSERT INTO `services` (`id`, `slug`, `title`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, '1700810553.9277174', 'Snow Removal', 1, '2023-11-24 07:22:33', NULL, NULL),
(2, '1700810553.3560207', 'Jump Start', 1, '2023-11-24 07:22:33', NULL, NULL),
(3, '1700810553.6722507', 'Steps & Path to Door', 1, '2023-11-24 07:22:33', NULL, NULL),
(4, '1700810553.4119258', 'Steps & Path to Door with Ice Melt', 1, '2023-11-24 07:22:33', NULL, NULL),
(5, '1700810553.29106', 'Sidewalk Clearing', 1, '2023-11-24 07:22:33', NULL, NULL);

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

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

CREATE TABLE `users` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_type` enum('admin','user') NOT NULL DEFAULT 'user',
  `user_group_id` int(10) UNSIGNED DEFAULT NULL,
  `name` varchar(150) NOT NULL,
  `username` varchar(150) NOT NULL,
  `slug` varchar(150) NOT NULL,
  `email` varchar(150) DEFAULT NULL,
  `mobile_no` varchar(100) DEFAULT NULL,
  `password` varchar(255) NOT NULL,
  `image_url` text,
  `gender` int(11) DEFAULT '1',
  `date_of_birth` date DEFAULT NULL,
  `blur_image` varchar(200) DEFAULT NULL,
  `gateway_customer_id` varchar(255) DEFAULT NULL,
  `gateway_connect_id` varchar(255) DEFAULT NULL,
  `wallet` decimal(11,2) DEFAULT '0.00',
  `payout_pending` decimal(11,2) DEFAULT '0.00',
  `payout_approved` decimal(11,2) DEFAULT '0.00',
  `is_email_verify` enum('1','0') NOT NULL DEFAULT '0',
  `email_verify_at` timestamp NULL DEFAULT NULL,
  `is_mobile_verify` enum('1','0') DEFAULT '1',
  `mobile_verify_at` timestamp NULL DEFAULT NULL,
  `country` varchar(100) DEFAULT NULL,
  `city` varchar(100) DEFAULT NULL,
  `state` varchar(100) DEFAULT NULL,
  `zipcode` varchar(100) DEFAULT NULL,
  `address` varchar(100) DEFAULT NULL,
  `latitude` varchar(100) DEFAULT NULL,
  `longitude` varchar(100) DEFAULT NULL,
  `online_status` enum('2','1','0') NOT NULL DEFAULT '0',
  `mobile_otp` varchar(100) DEFAULT NULL,
  `email_otp` varchar(100) DEFAULT NULL,
  `driving_licence_number` varchar(33) DEFAULT NULL,
  `driving_licence_front_image` text,
  `driving_licence_back_image` text,
  `insurance_number` varchar(33) DEFAULT NULL,
  `insurance_licence_front_image` text,
  `insurance_licence_back_image` text,
  `which_equipment` text,
  `rating` decimal(11,2) DEFAULT '0.00',
  `status` enum('1','0') NOT NULL DEFAULT '1',
  `is_completed` enum('1','0') NOT NULL DEFAULT '0',
  `is_payment_enable` enum('1','0') NOT NULL DEFAULT '0',
  `is_payout_enable` enum('1','0') NOT NULL DEFAULT '0',
  `become_to_operator` enum('1','0') NOT NULL DEFAULT '0',
  `is_admin_approved` enum('1','0') NOT NULL DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

INSERT INTO `users` (`id`, `user_type`, `user_group_id`, `name`, `username`, `slug`, `email`, `mobile_no`, `password`, `image_url`, `gender`, `date_of_birth`, `blur_image`, `gateway_customer_id`, `gateway_connect_id`, `wallet`, `payout_pending`, `payout_approved`, `is_email_verify`, `email_verify_at`, `is_mobile_verify`, `mobile_verify_at`, `country`, `city`, `state`, `zipcode`, `address`, `latitude`, `longitude`, `online_status`, `mobile_otp`, `email_otp`, `driving_licence_number`, `driving_licence_front_image`, `driving_licence_back_image`, `insurance_number`, `insurance_licence_front_image`, `insurance_licence_back_image`, `which_equipment`, `rating`, `status`, `is_completed`, `is_payment_enable`, `is_payout_enable`, `become_to_operator`, `is_admin_approved`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'admin', 1, 'RetroCube', 'retrocube', 'retrocube', 'admin@retrocube.com', '1-8882051816', '$2a$10$RHBXhSj2MEtIxK5R0OSKl.G5ZDHhm544zWYgcRlIydDxNi64fKxau', NULL, 1, NULL, NULL, NULL, NULL, 0.00, 0.00, 0.00, '1', '2023-11-24 12:22:33', '1', '2023-11-24 12:22:33', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00, '1', '0', '0', '0', '0', '0', '2023-11-24 07:22:33', NULL, NULL),
(2, 'admin', 4, 'SnowByrd', 'snowbyrd', 'snowbyrd', 'admin@snowbyrd.com', '1-8882051817', '$2a$10$48SJKEkWZany/FLQ8H0MFOyQmt8pmz8Y3L4i0O/twN.6EddCFvny.', NULL, 1, NULL, NULL, NULL, NULL, 0.00, 0.00, 0.00, '1', '2023-11-24 12:22:33', '1', '2023-11-24 12:22:33', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00, '1', '0', '0', '0', '0', '0', '2023-11-24 07:22:33', NULL, NULL);

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

--
-- Table structure for table `user_addresses`
--

CREATE TABLE `user_addresses` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(150) NOT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `identifier` varchar(255) DEFAULT NULL,
  `address` text,
  `latitude` text,
  `longitude` text,
  `street` text,
  `city` text,
  `status` int(11) DEFAULT '1',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `user_api_tokens`
--

CREATE TABLE `user_api_tokens` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `user_group_id` int(10) UNSIGNED DEFAULT NULL,
  `api_token` text NOT NULL,
  `device_type` varchar(100) DEFAULT NULL,
  `device_token` varchar(255) DEFAULT NULL,
  `platform_type` varchar(100) DEFAULT NULL,
  `platform_id` varchar(255) DEFAULT NULL,
  `ip_address` varchar(100) DEFAULT NULL,
  `user_agent` text,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `user_cards`
--

CREATE TABLE `user_cards` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(33) DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `card_id` varchar(255) DEFAULT NULL,
  `brand` varchar(255) DEFAULT NULL,
  `last4_digit` varchar(255) DEFAULT NULL,
  `is_default` enum('0','1') DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `user_connect_accounts`
--

CREATE TABLE `user_connect_accounts` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(33) DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `first_name` varchar(255) DEFAULT NULL,
  `last_name` varchar(255) DEFAULT NULL,
  `date_of_birth` date DEFAULT NULL,
  `ssn` varchar(255) DEFAULT NULL,
  `id_front` text,
  `id_back` text,
  `state` varchar(255) DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `street` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `postal_code` varchar(255) DEFAULT NULL,
  `due_fields` text,
  `status` enum('pending','verified','unverified') DEFAULT 'pending',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `user_external_accounts`
--

CREATE TABLE `user_external_accounts` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(33) DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `gateway_external_account_id` varchar(255) DEFAULT NULL,
  `account_holder_name` varchar(255) DEFAULT NULL,
  `last4_digit` varchar(255) DEFAULT NULL,
  `is_default` enum('0','1') DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `user_groups`
--

CREATE TABLE `user_groups` (
  `id` int(10) UNSIGNED NOT NULL,
  `title` varchar(100) NOT NULL,
  `slug` varchar(100) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `type` enum('admin','user') NOT NULL DEFAULT 'user',
  `is_super_admin` enum('1','0') NOT NULL DEFAULT '0',
  `status` enum('1','0') NOT NULL DEFAULT '1',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user_groups`
--

INSERT INTO `user_groups` (`id`, `title`, `slug`, `description`, `type`, `is_super_admin`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Super Admin', 'super-admin', NULL, 'admin', '1', '1', '2023-11-24 07:22:33', NULL, NULL),
(2, 'App User', 'app-user', NULL, 'user', '0', '1', '2023-11-24 07:22:33', NULL, NULL),
(3, 'Operator', 'operator', NULL, 'user', '0', '1', '2023-11-24 07:22:33', NULL, NULL),
(4, 'Admin', 'admin', NULL, 'admin', '0', '1', '2023-11-24 07:22:33', NULL, NULL);

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

--
-- Table structure for table `user_reviews`
--

CREATE TABLE `user_reviews` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(100) DEFAULT NULL,
  `module` varchar(100) DEFAULT NULL,
  `module_id` int(11) DEFAULT NULL,
  `actor_id` int(10) UNSIGNED DEFAULT NULL,
  `target_id` int(10) UNSIGNED DEFAULT NULL,
  `rating` decimal(11,2) DEFAULT NULL,
  `review` text,
  `status` int(11) DEFAULT '1',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `user_services`
--

CREATE TABLE `user_services` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(33) DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `service_id` int(10) UNSIGNED DEFAULT NULL,
  `identifier` varchar(33) DEFAULT 'operator',
  `time_duration` varchar(33) DEFAULT NULL,
  `service_charge` decimal(11,2) DEFAULT '0.00',
  `is_available` int(11) DEFAULT '0',
  `status` int(11) DEFAULT '1',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `user_transactions`
--

CREATE TABLE `user_transactions` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(33) DEFAULT NULL,
  `sender_id` int(10) UNSIGNED DEFAULT NULL,
  `receiver_id` int(10) UNSIGNED DEFAULT NULL,
  `module` varchar(255) DEFAULT NULL,
  `charge_id` varchar(255) DEFAULT NULL,
  `module_id` int(11) DEFAULT '0',
  `gateway_transaction_id` varchar(255) DEFAULT NULL,
  `total_charges` decimal(11,2) DEFAULT '0.00',
  `admin_tax` decimal(11,2) DEFAULT '0.00',
  `net_amount` decimal(11,2) DEFAULT '0.00',
  `stripe_fee` decimal(11,2) DEFAULT '0.00',
  `gateway_response` text,
  `gateway` enum('stripe','paypal') DEFAULT 'stripe',
  `is_transfer` enum('1','0') DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `user_vehicles`
--

CREATE TABLE `user_vehicles` (
  `id` int(10) UNSIGNED NOT NULL,
  `slug` varchar(33) DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `vehicle_name` varchar(33) DEFAULT NULL,
  `vehicle_description` text,
  `vehicle_color` varchar(33) DEFAULT NULL,
  `insurance_number` varchar(33) DEFAULT NULL,
  `vehicle_type` varchar(33) DEFAULT NULL,
  `vehicle_registration_number` varchar(33) DEFAULT NULL,
  `registration_year` varchar(33) DEFAULT NULL,
  `status` int(11) DEFAULT '1',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `additional_services`
--
ALTER TABLE `additional_services`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `additional_services_slug_unique` (`slug`);

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

--
-- Indexes for table `application_settings`
--
ALTER TABLE `application_settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `application_settings_identifier_index` (`identifier`),
  ADD KEY `application_settings_meta_key_index` (`meta_key`);

--
-- Indexes for table `bookings`
--
ALTER TABLE `bookings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bookings_slug_unique` (`slug`),
  ADD KEY `bookings_operator_id_foreign` (`operator_id`),
  ADD KEY `bookings_created_by_foreign` (`created_by`);

--
-- Indexes for table `booking_additional_services`
--
ALTER TABLE `booking_additional_services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `booking_additional_services_service_id_foreign` (`service_id`),
  ADD KEY `booking_additional_services_booking_id_foreign` (`booking_id`);

--
-- Indexes for table `booking_services`
--
ALTER TABLE `booking_services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `booking_services_service_id_foreign` (`service_id`),
  ADD KEY `booking_services_booking_id_foreign` (`booking_id`);

--
-- Indexes for table `chat_messages`
--
ALTER TABLE `chat_messages`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `chat_messages_slug_unique` (`slug`),
  ADD KEY `chat_messages_user_id_foreign` (`user_id`),
  ADD KEY `chat_messages_chat_room_id_foreign` (`chat_room_id`);

--
-- Indexes for table `chat_message_status`
--
ALTER TABLE `chat_message_status`
  ADD PRIMARY KEY (`id`),
  ADD KEY `chat_message_status_user_id_foreign` (`user_id`),
  ADD KEY `chat_message_status_chat_room_id_foreign` (`chat_room_id`),
  ADD KEY `chat_message_status_chat_message_id_foreign` (`chat_message_id`);

--
-- Indexes for table `chat_rooms`
--
ALTER TABLE `chat_rooms`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `chat_rooms_slug_unique` (`slug`),
  ADD KEY `chat_rooms_created_by_foreign` (`created_by`);

--
-- Indexes for table `chat_room_status`
--
ALTER TABLE `chat_room_status`
  ADD PRIMARY KEY (`id`),
  ADD KEY `chat_room_status_user_id_foreign` (`user_id`),
  ADD KEY `chat_room_status_chat_room_id_foreign` (`chat_room_id`),
  ADD KEY `chat_room_status_chat_message_id_foreign` (`chat_message_id`);

--
-- Indexes for table `chat_room_users`
--
ALTER TABLE `chat_room_users`
  ADD PRIMARY KEY (`id`),
  ADD KEY `chat_room_users_chat_room_id_foreign` (`chat_room_id`),
  ADD KEY `chat_room_users_user_id_foreign` (`user_id`);

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

--
-- Indexes for table `cms_module_permissions`
--
ALTER TABLE `cms_module_permissions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cms_module_permissions_user_group_id_foreign` (`user_group_id`),
  ADD KEY `cms_module_permissions_user_id_foreign` (`user_id`),
  ADD KEY `cms_module_permissions_cms_module_id_foreign` (`cms_module_id`);

--
-- Indexes for table `contact_us`
--
ALTER TABLE `contact_us`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `contact_us_slug_unique` (`slug`),
  ADD KEY `contact_us_user_id_foreign` (`user_id`);

--
-- Indexes for table `content_managements`
--
ALTER TABLE `content_managements`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `content_managements_slug_unique` (`slug`),
  ADD KEY `content_managements_slug_index` (`slug`);

--
-- Indexes for table `faqs`
--
ALTER TABLE `faqs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `faqs_slug_unique` (`slug`);

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

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

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `notifications_unique_id_unique` (`unique_id`),
  ADD KEY `notifications_actor_id_foreign` (`actor_id`),
  ADD KEY `notifications_target_id_foreign` (`target_id`);

--
-- Indexes for table `notification_settings`
--
ALTER TABLE `notification_settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notification_settings_user_id_foreign` (`user_id`),
  ADD KEY `notification_settings_meta_key_index` (`meta_key`);

--
-- Indexes for table `payout_requests`
--
ALTER TABLE `payout_requests`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `payout_requests_slug_unique` (`slug`),
  ADD KEY `payout_requests_user_id_foreign` (`user_id`);

--
-- Indexes for table `reset_passwords`
--
ALTER TABLE `reset_passwords`
  ADD PRIMARY KEY (`id`),
  ADD KEY `reset_passwords_email_index` (`email`);

--
-- Indexes for table `services`
--
ALTER TABLE `services`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `services_slug_unique` (`slug`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_username_unique` (`username`),
  ADD UNIQUE KEY `users_slug_unique` (`slug`),
  ADD UNIQUE KEY `users_email_unique` (`email`),
  ADD UNIQUE KEY `users_mobile_no_unique` (`mobile_no`),
  ADD KEY `users_user_group_id_foreign` (`user_group_id`),
  ADD KEY `users_name_index` (`name`);

--
-- Indexes for table `user_addresses`
--
ALTER TABLE `user_addresses`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_addresses_slug_unique` (`slug`),
  ADD KEY `user_addresses_user_id_foreign` (`user_id`);

--
-- Indexes for table `user_api_tokens`
--
ALTER TABLE `user_api_tokens`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_api_tokens_user_id_foreign` (`user_id`),
  ADD KEY `user_api_tokens_user_group_id_foreign` (`user_group_id`);

--
-- Indexes for table `user_cards`
--
ALTER TABLE `user_cards`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_cards_slug_unique` (`slug`),
  ADD KEY `user_cards_user_id_foreign` (`user_id`);

--
-- Indexes for table `user_connect_accounts`
--
ALTER TABLE `user_connect_accounts`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_connect_accounts_slug_unique` (`slug`),
  ADD KEY `user_connect_accounts_user_id_foreign` (`user_id`);

--
-- Indexes for table `user_external_accounts`
--
ALTER TABLE `user_external_accounts`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_external_accounts_slug_unique` (`slug`),
  ADD KEY `user_external_accounts_user_id_foreign` (`user_id`);

--
-- Indexes for table `user_groups`
--
ALTER TABLE `user_groups`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_groups_title_unique` (`title`),
  ADD UNIQUE KEY `user_groups_slug_unique` (`slug`);

--
-- Indexes for table `user_reviews`
--
ALTER TABLE `user_reviews`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_reviews_slug_unique` (`slug`),
  ADD KEY `user_reviews_actor_id_foreign` (`actor_id`),
  ADD KEY `user_reviews_target_id_foreign` (`target_id`);

--
-- Indexes for table `user_services`
--
ALTER TABLE `user_services`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_services_slug_unique` (`slug`),
  ADD KEY `user_services_user_id_foreign` (`user_id`),
  ADD KEY `user_services_service_id_foreign` (`service_id`);

--
-- Indexes for table `user_transactions`
--
ALTER TABLE `user_transactions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_transactions_slug_unique` (`slug`),
  ADD KEY `user_transactions_sender_id_foreign` (`sender_id`),
  ADD KEY `user_transactions_receiver_id_foreign` (`receiver_id`);

--
-- Indexes for table `user_vehicles`
--
ALTER TABLE `user_vehicles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_vehicles_slug_unique` (`slug`),
  ADD KEY `user_vehicles_user_id_foreign` (`user_id`);

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Constraints for dumped tables
--

--
-- Constraints for table `bookings`
--
ALTER TABLE `bookings`
  ADD CONSTRAINT `bookings_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `bookings_operator_id_foreign` FOREIGN KEY (`operator_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `booking_additional_services`
--
ALTER TABLE `booking_additional_services`
  ADD CONSTRAINT `booking_additional_services_booking_id_foreign` FOREIGN KEY (`booking_id`) REFERENCES `bookings` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `booking_additional_services_service_id_foreign` FOREIGN KEY (`service_id`) REFERENCES `services` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `booking_services`
--
ALTER TABLE `booking_services`
  ADD CONSTRAINT `booking_services_booking_id_foreign` FOREIGN KEY (`booking_id`) REFERENCES `bookings` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `booking_services_service_id_foreign` FOREIGN KEY (`service_id`) REFERENCES `services` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `chat_messages`
--
ALTER TABLE `chat_messages`
  ADD CONSTRAINT `chat_messages_chat_room_id_foreign` FOREIGN KEY (`chat_room_id`) REFERENCES `chat_rooms` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `chat_messages_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `chat_message_status`
--
ALTER TABLE `chat_message_status`
  ADD CONSTRAINT `chat_message_status_chat_message_id_foreign` FOREIGN KEY (`chat_message_id`) REFERENCES `chat_messages` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `chat_message_status_chat_room_id_foreign` FOREIGN KEY (`chat_room_id`) REFERENCES `chat_rooms` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `chat_message_status_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `chat_rooms`
--
ALTER TABLE `chat_rooms`
  ADD CONSTRAINT `chat_rooms_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `chat_room_status`
--
ALTER TABLE `chat_room_status`
  ADD CONSTRAINT `chat_room_status_chat_message_id_foreign` FOREIGN KEY (`chat_message_id`) REFERENCES `chat_messages` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `chat_room_status_chat_room_id_foreign` FOREIGN KEY (`chat_room_id`) REFERENCES `chat_rooms` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `chat_room_status_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `chat_room_users`
--
ALTER TABLE `chat_room_users`
  ADD CONSTRAINT `chat_room_users_chat_room_id_foreign` FOREIGN KEY (`chat_room_id`) REFERENCES `chat_rooms` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `chat_room_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `cms_module_permissions`
--
ALTER TABLE `cms_module_permissions`
  ADD CONSTRAINT `cms_module_permissions_cms_module_id_foreign` FOREIGN KEY (`cms_module_id`) REFERENCES `cms_modules` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `cms_module_permissions_user_group_id_foreign` FOREIGN KEY (`user_group_id`) REFERENCES `user_groups` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `cms_module_permissions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `contact_us`
--
ALTER TABLE `contact_us`
  ADD CONSTRAINT `contact_us_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `notifications`
--
ALTER TABLE `notifications`
  ADD CONSTRAINT `notifications_actor_id_foreign` FOREIGN KEY (`actor_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `notifications_target_id_foreign` FOREIGN KEY (`target_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `notification_settings`
--
ALTER TABLE `notification_settings`
  ADD CONSTRAINT `notification_settings_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `payout_requests`
--
ALTER TABLE `payout_requests`
  ADD CONSTRAINT `payout_requests_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `users_user_group_id_foreign` FOREIGN KEY (`user_group_id`) REFERENCES `user_groups` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `user_addresses`
--
ALTER TABLE `user_addresses`
  ADD CONSTRAINT `user_addresses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `user_api_tokens`
--
ALTER TABLE `user_api_tokens`
  ADD CONSTRAINT `user_api_tokens_user_group_id_foreign` FOREIGN KEY (`user_group_id`) REFERENCES `user_groups` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `user_api_tokens_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `user_cards`
--
ALTER TABLE `user_cards`
  ADD CONSTRAINT `user_cards_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `user_connect_accounts`
--
ALTER TABLE `user_connect_accounts`
  ADD CONSTRAINT `user_connect_accounts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `user_external_accounts`
--
ALTER TABLE `user_external_accounts`
  ADD CONSTRAINT `user_external_accounts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `user_reviews`
--
ALTER TABLE `user_reviews`
  ADD CONSTRAINT `user_reviews_actor_id_foreign` FOREIGN KEY (`actor_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `user_reviews_target_id_foreign` FOREIGN KEY (`target_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `user_services`
--
ALTER TABLE `user_services`
  ADD CONSTRAINT `user_services_service_id_foreign` FOREIGN KEY (`service_id`) REFERENCES `services` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `user_services_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `user_transactions`
--
ALTER TABLE `user_transactions`
  ADD CONSTRAINT `user_transactions_receiver_id_foreign` FOREIGN KEY (`receiver_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  ADD CONSTRAINT `user_transactions_sender_id_foreign` FOREIGN KEY (`sender_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `user_vehicles`
--
ALTER TABLE `user_vehicles`
  ADD CONSTRAINT `user_vehicles_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;
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 */;
