D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
truka.dentostock.com
/
Filename :
truka.sql
back
Copy
-- phpMyAdmin SQL Dump -- version 5.2.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 27, 2025 at 11:52 PM -- Server version: 10.11.10-MariaDB -- PHP Version: 7.2.34 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: `u827283894_Truka` -- -- -------------------------------------------------------- -- -- Table structure for table `additional_fees` -- CREATE TABLE `additional_fees` ( `id` bigint(20) UNSIGNED NOT NULL, `title` varchar(255) DEFAULT NULL, `status` tinyint(4) DEFAULT 1, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `app_settings` -- CREATE TABLE `app_settings` ( `id` bigint(20) UNSIGNED NOT NULL, `site_name` varchar(255) DEFAULT NULL, `site_email` varchar(255) DEFAULT NULL, `site_logo` varchar(255) DEFAULT NULL, `site_favicon` varchar(255) DEFAULT NULL, `site_description` longtext DEFAULT NULL, `site_copyright` varchar(255) DEFAULT NULL, `facebook_url` varchar(255) DEFAULT NULL, `instagram_url` varchar(255) DEFAULT NULL, `support_number` varchar(255) DEFAULT NULL, `twitter_url` varchar(255) DEFAULT NULL, `linkedin_url` varchar(255) DEFAULT NULL, `language_option` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`language_option`)), `contact_email` varchar(255) DEFAULT NULL, `contact_number` varchar(255) DEFAULT NULL, `help_support_url` varchar(255) DEFAULT NULL, `notification_settings` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`notification_settings`)), `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 `app_settings` -- INSERT INTO `app_settings` (`id`, `site_name`, `site_email`, `site_logo`, `site_favicon`, `site_description`, `site_copyright`, `facebook_url`, `instagram_url`, `support_number`, `twitter_url`, `linkedin_url`, `language_option`, `contact_email`, `contact_number`, `help_support_url`, `notification_settings`, `created_at`, `updated_at`) VALUES (1, 'TRUKA', NULL, '/tmp/phpS1hhCb', '/tmp/phpMBd9du', 'TRUKA offers real-time tracking, transparent pricing in JOD, and a verified fleet of professional drivers—making cargo movement seamless, secure, and scalable across Jordan. Whether you\'re transporting goods within the city or across regions, TRUKA empowers your logistics with smart tools and trusted support.', 'Copyright 2025 © TRUKA- ICS Group All Rights Reserved.', 'www.facebook.com', 'https://www.instagram.com/', NULL, 'https://twitter.com/', 'https://www.linkedin.com/', '[\"ar\",\"en\"]', 'info@truka.com', '+962775982626', NULL, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `complaints` -- CREATE TABLE `complaints` ( `id` bigint(20) UNSIGNED NOT NULL, `driver_id` bigint(20) UNSIGNED DEFAULT NULL, `rider_id` bigint(20) UNSIGNED DEFAULT NULL, `complaint_by` varchar(255) DEFAULT NULL COMMENT 'rider, driver', `subject` text DEFAULT NULL, `description` text DEFAULT NULL, `ride_request_id` bigint(20) UNSIGNED DEFAULT NULL, `status` varchar(255) DEFAULT 'pending' COMMENT 'pending, investigation, resolved', `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 `complaint_comments` -- CREATE TABLE `complaint_comments` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED DEFAULT NULL, `complaint_id` bigint(20) UNSIGNED DEFAULT NULL, `added_by` varchar(255) DEFAULT NULL, `status` varchar(255) DEFAULT NULL, `comment` longtext 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 `coupons` -- CREATE TABLE `coupons` ( `id` bigint(20) UNSIGNED NOT NULL, `code` varchar(255) DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `coupon_type` varchar(255) DEFAULT NULL COMMENT 'all,first_ride,region_wise,service_wise', `usage_limit_per_rider` bigint(20) UNSIGNED DEFAULT NULL, `discount_type` varchar(255) DEFAULT NULL COMMENT 'fixed,percentage', `discount` double DEFAULT NULL, `start_date` date DEFAULT NULL, `end_date` date DEFAULT NULL, `minimum_amount` double DEFAULT NULL, `maximum_discount` double DEFAULT NULL, `description` text DEFAULT NULL, `status` tinyint(4) DEFAULT NULL, `region_ids` text DEFAULT NULL, `service_ids` text DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `documents` -- CREATE TABLE `documents` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) DEFAULT NULL, `type` varchar(255) DEFAULT 'driver' COMMENT 'driver', `is_required` tinyint(4) DEFAULT NULL, `has_expiry_date` tinyint(4) DEFAULT NULL, `status` tinyint(4) 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 `driver_documents` -- CREATE TABLE `driver_documents` ( `id` bigint(20) UNSIGNED NOT NULL, `document_id` bigint(20) UNSIGNED DEFAULT NULL, `driver_id` bigint(20) UNSIGNED DEFAULT NULL, `expire_date` date DEFAULT NULL, `is_verified` tinyint(4) DEFAULT 0 COMMENT '0-pending,1-approved,2-rejected', `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 `driver_services` -- CREATE TABLE `driver_services` ( `id` bigint(20) UNSIGNED NOT NULL, `driver_id` bigint(20) UNSIGNED DEFAULT NULL, `service_id` bigint(20) UNSIGNED DEFAULT NULL, `status` tinyint(4) DEFAULT 1, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(255) NOT NULL, `connection` text NOT NULL, `queue` text NOT NULL, `payload` longtext NOT NULL, `exception` longtext NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `frontend_data` -- CREATE TABLE `frontend_data` ( `id` bigint(20) UNSIGNED NOT NULL, `title` varchar(255) DEFAULT NULL, `subtitle` varchar(255) DEFAULT NULL, `type` varchar(255) DEFAULT NULL, `description` longtext 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 `frontend_data` -- INSERT INTO `frontend_data` (`id`, `title`, `subtitle`, `type`, `description`, `created_at`, `updated_at`) VALUES (2, NULL, NULL, 'our_mission', '🚚At TRUKA, our mission is to redefine smart logistics by offering an intelligent, efficient, and reliable transportation platform tailored to pickups and trucks. We empower businesses and individuals to move goods seamlessly across urban and rural landscapes, combining cutting-edge technology with a commitment to operational excellence.\r\n\r\nWe aim to:\r\n\r\nOptimize cargo mobility through smart routing and real-time tracking\r\n\r\nProvide trusted and transparent access to professional drivers and vehicles\r\n\r\nReduce delivery friction through intuitive booking and management tools\r\n\r\nDrive innovation in local and regional logistics for small businesses and growing enterprises\r\n\r\nTRUKA is more than transport—we’re building a smarter way to move.', '2025-07-12 22:04:29', '2025-07-12 22:04:29'), (3, 'Smart Routing & Tracking', NULL, 'why_choose', 'Get real-time visibility and optimized delivery paths to save time and fuel.', '2025-07-12 22:08:57', '2025-07-12 22:08:57'), (4, 'Verified Drivers & Vehicles', NULL, 'why_choose', 'Safety and professionalism are guaranteed with our thoroughly vetted fleet.', '2025-07-12 22:09:30', '2025-07-12 22:09:30'), (5, 'Transparent Pricing', NULL, 'why_choose', 'No hidden fees. Just fair, upfront rates tailored to your delivery needs.', '2025-07-12 22:10:06', '2025-07-12 22:10:06'), (6, 'Co-founder Statement', 'Co-founder of TRUKA', 'client_testimonials', 'I’m proud to lead a platform built with purpose—designed to simplify logistics and elevate the way goods move. From day one, our mission has been to empower communities, drivers, and businesses with intelligent, transparent, and accessible transportation solutions.', '2025-07-13 00:59:49', '2025-07-13 01:01:32'); -- -------------------------------------------------------- -- -- Table structure for table `media` -- CREATE TABLE `media` ( `id` bigint(20) UNSIGNED NOT NULL, `model_type` varchar(255) NOT NULL, `model_id` bigint(20) UNSIGNED NOT NULL, `uuid` char(36) DEFAULT NULL, `collection_name` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `file_name` varchar(255) NOT NULL, `mime_type` varchar(255) DEFAULT NULL, `disk` varchar(255) NOT NULL, `conversions_disk` varchar(255) DEFAULT NULL, `size` bigint(20) UNSIGNED NOT NULL, `manipulations` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`manipulations`)), `custom_properties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`custom_properties`)), `generated_conversions` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`generated_conversions`)), `responsive_images` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`responsive_images`)), `order_column` int(10) UNSIGNED 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 `media` -- INSERT INTO `media` (`id`, `model_type`, `model_id`, `uuid`, `collection_name`, `name`, `file_name`, `mime_type`, `disk`, `conversions_disk`, `size`, `manipulations`, `custom_properties`, `generated_conversions`, `responsive_images`, `order_column`, `created_at`, `updated_at`) VALUES (18, 'App\\Models\\Setting', 9, '4b702cd6-1344-48a8-a32f-6a613874d94c', 'logo_image', 'Capture-removebg-preview', 'Capture-removebg-preview.png', 'image/png', 'uploads', 'uploads', 64338, '[]', '[]', '[]', '[]', 7, '2025-07-12 21:59:57', '2025-07-12 21:59:57'), (20, 'App\\Models\\FrontendData', 3, 'd81160f6-dbfb-4c61-a9f9-06c4fd1101fc', 'frontend_data_image', 'Copilot_20250712_221124', 'Copilot_20250712_221124.png', 'image/png', 'uploads', 'uploads', 1156572, '[]', '[]', '[]', '[]', 9, '2025-07-12 22:12:43', '2025-07-12 22:12:43'), (21, 'App\\Models\\FrontendData', 4, '97d699c0-2686-4b30-bffa-587ebe8f4f78', 'frontend_data_image', 'Copilot_20250712_221302', 'Copilot_20250712_221302.png', 'image/png', 'uploads', 'uploads', 1104488, '[]', '[]', '[]', '[]', 10, '2025-07-12 22:13:13', '2025-07-12 22:13:13'), (23, 'App\\Models\\FrontendData', 5, '993f6381-f1ce-42ff-b508-48a3fd58a2ae', 'frontend_data_image', 'Copilot_20250712_221741', 'Copilot_20250712_221741.png', 'image/png', 'uploads', 'uploads', 1080181, '[]', '[]', '[]', '[]', 12, '2025-07-12 22:18:29', '2025-07-12 22:18:29'), (26, 'App\\Models\\Setting', 3, '92d829ac-ed20-4f70-9a66-0a71844b7305', 'image', 'Copilot_20250712_223315', 'Copilot_20250712_223315.png', 'image/png', 'uploads', 'uploads', 1397388, '[]', '[]', '[]', '[]', 15, '2025-07-12 22:33:26', '2025-07-12 22:33:26'), (31, 'App\\Models\\Setting', 16, 'dd7dc802-af66-43eb-bb90-da8f1cb09452', 'image', 'ayman', 'ayman.jpg', 'image/jpeg', 'uploads', 'uploads', 319985, '[]', '[]', '[]', '[]', 17, '2025-07-12 23:25:12', '2025-07-12 23:25:12'), (32, 'App\\Models\\Setting', 14, '2dc46d82-04d2-46f6-9032-0b98d33d65b8', 'image', 'ayman', 'ayman.jpg', 'image/jpeg', 'uploads', 'uploads', 319985, '[]', '[]', '[]', '[]', 18, '2025-07-12 23:25:38', '2025-07-12 23:25:38'), (33, 'App\\Models\\Setting', 8, 'da8a3ffb-521b-4cb2-bc2d-e7aadb0b5510', 'background_image', '369-comparativo-cabinas2-camiones-03', '369-comparativo-cabinas2-camiones-03.jpg', 'image/jpeg', 'uploads', 'uploads', 55719, '[]', '[]', '[]', '[]', 19, '2025-07-13 00:43:04', '2025-07-13 00:43:04'), (34, 'App\\Models\\Setting', 11, '323b6f48-ab07-4719-a5e5-5eeaa4dfdcab', 'image', 'Semi-Truck-Images-HD (2)', 'Semi-Truck-Images-HD-(2).jpg', 'image/jpeg', 'uploads', 'uploads', 258088, '[]', '[]', '[]', '[]', 20, '2025-07-13 00:47:24', '2025-07-13 00:47:24'), (36, 'App\\Models\\AppSetting', 1, 'bdc49214-ddf1-4e2e-a117-1a1ef02435af', 'site_logo', 'Capture-removebg-preview', 'Capture-removebg-preview.png', 'image/png', 'uploads', 'uploads', 64338, '[]', '[]', '[]', '[]', 22, '2025-07-13 01:10:56', '2025-07-13 01:10:56'), (37, 'App\\Models\\AppSetting', 1, '2f7bbb24-e30b-449b-a2b1-db74d484ee94', 'site_dark_logo', 'Capture-removebg-preview', 'Capture-removebg-preview.png', 'image/png', 'uploads', 'uploads', 64338, '[]', '[]', '[]', '[]', 23, '2025-07-13 01:10:56', '2025-07-13 01:10:56'), (38, 'App\\Models\\AppSetting', 1, 'ee3d1e47-d2f5-4d50-b61a-f0f419cd218b', 'site_favicon', 'Capture-removebg-preview', 'Capture-removebg-preview.png', 'image/png', 'uploads', 'uploads', 64338, '[]', '[]', '[]', '[]', 24, '2025-07-13 01:10:56', '2025-07-13 01:10:56'), (39, 'App\\Models\\FrontendData', 6, '43fec2e2-648a-4bff-92f2-7305355b62d1', 'frontend_data_image', '20211003_122042', '20211003_122042.jpg', 'image/jpeg', 'uploads', 'uploads', 374081, '[]', '[]', '[]', '[]', 25, '2025-07-13 04:08:13', '2025-07-13 04:08:13'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2019_12_14_000001_create_personal_access_tokens_table', 1), (5, '2022_04_28_130817_create_user_details_table', 1), (6, '2022_04_29_063151_create_regions_table', 1), (7, '2022_04_29_063230_create_services_table', 1), (8, '2022_04_29_064239_create_ride_requests_table', 1), (9, '2022_04_29_064325_create_driver_services_table', 1), (10, '2022_04_29_064758_create_complaints_table', 1), (11, '2022_04_29_064809_create_reviews_table', 1), (12, '2022_05_02_061025_create_ride_request_histories_table', 1), (13, '2022_05_02_102753_create_payment_gateways_table', 1), (14, '2022_05_02_102825_create_payments_table', 1), (15, '2022_05_02_120722_create_permission_tables', 1), (16, '2022_05_04_100102_create_media_table', 1), (17, '2022_05_18_095512_create_coupons_table', 1), (18, '2022_05_18_095624_create_wallets_table', 1), (19, '2022_05_18_096432_create_wallet_histories_table', 1), (20, '2022_05_23_084042_create_notifications_table', 1), (21, '2022_05_23_094130_create_settings_table', 1), (22, '2022_05_23_104508_create_app_settings_table', 1), (23, '2022_06_09_074731_create_additional_fees_table', 1), (24, '2022_06_13_125956_create_documents_table', 1), (25, '2022_06_13_130010_create_driver_documents_table', 1), (26, '2022_08_05_071122_create_sos_table', 1), (27, '2022_08_05_113139_create_ride_request_ratings_table', 1), (28, '2022_08_08_052703_create_withdraw_requests_table', 1), (29, '2022_08_08_090613_create_user_bank_accounts_table', 1), (30, '2022_12_10_091040_alter_services_table', 1), (31, '2022_12_12_082101_alter_users_table', 1), (32, '2022_12_20_100326_create_complaint_comments_table', 1), (33, '2023_01_13_071123_add_last_location_update_at_in_users_table', 1), (34, '2023_01_13_071835_alter_ride_requests_table', 1), (35, '2023_05_19_095236_add_otp_verify_at_in_users_table', 1), (36, '2023_05_19_095243_add_drop_location_in_ride_requests_table', 1), (37, '2023_06_26_061335_create_push_notifications_table', 1), (38, '2024_06_03_073031_create_surge_prices_table', 1), (39, '2024_06_04_063850_add_column_to_users_table', 1), (40, '2024_06_06_073251_create_frontend_data_table', 1), (41, '2024_07_17_110852_add_country_code_column_to_users_table', 1), (42, '2024_07_19_132851_create_pages_table', 1), (43, '2024_08_07_060628_add_columns_to_user_bank_accounts_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `model_has_permissions` -- CREATE TABLE `model_has_permissions` ( `permission_id` bigint(20) UNSIGNED NOT NULL, `model_type` varchar(255) 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) 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), (2, 'App\\Models\\User', 3); -- -------------------------------------------------------- -- -- Table structure for table `notifications` -- CREATE TABLE `notifications` ( `id` char(36) NOT NULL, `type` varchar(255) NOT NULL, `notifiable_type` varchar(255) NOT NULL, `notifiable_id` bigint(20) UNSIGNED NOT NULL, `data` text NOT NULL, `read_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 `pages` -- CREATE TABLE `pages` ( `id` bigint(20) UNSIGNED NOT NULL, `title` varchar(255) DEFAULT NULL, `description` longtext DEFAULT NULL, `slug` varchar(255) NOT NULL, `status` tinyint(4) DEFAULT 1, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) NOT NULL, `token` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `payments` -- CREATE TABLE `payments` ( `id` bigint(20) UNSIGNED NOT NULL, `rider_id` bigint(20) UNSIGNED NOT NULL, `ride_request_id` bigint(20) UNSIGNED NOT NULL, `datetime` datetime DEFAULT NULL, `total_amount` double DEFAULT 0, `admin_commission` double DEFAULT 0, `received_by` varchar(255) DEFAULT NULL, `driver_fee` double DEFAULT 0, `driver_tips` double DEFAULT 0, `driver_commission` double DEFAULT 0, `fleet_commission` double DEFAULT 0, `payment_type` varchar(255) DEFAULT 'cash', `txn_id` varchar(255) DEFAULT NULL, `payment_status` varchar(255) DEFAULT NULL COMMENT 'pending, paid, failed', `transaction_detail` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`transaction_detail`)), `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 `payment_gateways` -- CREATE TABLE `payment_gateways` ( `id` bigint(20) UNSIGNED NOT NULL, `title` varchar(255) DEFAULT NULL, `type` varchar(255) DEFAULT NULL, `status` tinyint(4) DEFAULT 1 COMMENT '0- InActive, 1- Active', `is_test` tinyint(4) DEFAULT 1 COMMENT '0- No, 1- Yes', `test_value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`test_value`)), `live_value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`live_value`)), `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 `permissions` -- CREATE TABLE `permissions` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `guard_name` varchar(255) NOT NULL, `parent_id` bigint(20) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `permissions` -- INSERT INTO `permissions` (`id`, `name`, `guard_name`, `parent_id`, `created_at`, `updated_at`) VALUES (1, 'role', 'web', NULL, '2025-05-31 09:34:29', NULL), (2, 'role add', 'web', 1, '2025-05-31 09:34:29', NULL), (3, 'role list', 'web', 1, '2025-05-31 09:34:29', NULL), (4, 'permission', 'web', NULL, '2025-05-31 09:34:29', NULL), (5, 'permission add', 'web', 4, '2025-05-31 09:34:29', NULL), (6, 'permission list', 'web', 4, '2025-05-31 09:34:29', NULL), (7, 'region', 'web', NULL, '2025-05-31 09:34:29', NULL), (8, 'region list', 'web', 7, '2025-05-31 09:34:29', NULL), (9, 'region add', 'web', 7, '2025-05-31 09:34:29', NULL), (10, 'region edit', 'web', 7, '2025-05-31 09:34:29', NULL), (11, 'region delete', 'web', 7, '2025-05-31 09:34:29', NULL), (12, 'service', 'web', NULL, '2025-05-31 09:34:29', NULL), (13, 'service list', 'web', 12, '2025-05-31 09:34:29', NULL), (14, 'service add', 'web', 12, '2025-05-31 09:34:29', NULL), (15, 'service edit', 'web', 12, '2025-05-31 09:34:29', NULL), (16, 'service delete', 'web', 12, '2025-05-31 09:34:29', NULL), (17, 'driver', 'web', NULL, '2025-05-31 09:34:29', NULL), (18, 'driver list', 'web', 17, '2025-05-31 09:34:29', NULL), (19, 'driver add', 'web', 17, '2025-05-31 09:34:29', NULL), (20, 'driver edit', 'web', 17, '2025-05-31 09:34:29', NULL), (21, 'driver delete', 'web', 17, '2025-05-31 09:34:29', NULL), (22, 'rider', 'web', NULL, '2025-05-31 09:34:29', NULL), (23, 'rider list', 'web', 22, '2025-05-31 09:34:29', NULL), (24, 'rider add', 'web', 22, '2025-05-31 09:34:29', NULL), (25, 'rider edit', 'web', 22, '2025-05-31 09:34:29', NULL), (26, 'rider delete', 'web', 22, '2025-05-31 09:34:29', NULL), (27, 'riderequest', 'web', NULL, '2025-05-31 09:34:29', NULL), (28, 'riderequest list', 'web', 27, '2025-05-31 09:34:29', NULL), (29, 'riderequest show', 'web', 27, '2025-05-31 09:34:29', NULL), (30, 'riderequest delete', 'web', 27, '2025-05-31 09:34:29', NULL), (31, 'pending driver', 'web', 17, '2025-05-31 09:34:29', NULL), (32, 'document', 'web', NULL, '2025-05-31 09:34:29', NULL), (33, 'document list', 'web', 32, '2025-05-31 09:34:29', NULL), (34, 'document add', 'web', 32, '2025-05-31 09:34:29', NULL), (35, 'document edit', 'web', 32, '2025-05-31 09:34:29', NULL), (36, 'document delete', 'web', 32, '2025-05-31 09:34:29', NULL), (37, 'driverdocument', 'web', NULL, '2025-05-31 09:34:29', NULL), (38, 'driverdocument list', 'web', 37, '2025-05-31 09:34:29', NULL), (39, 'driverdocument add', 'web', 37, '2025-05-31 09:34:29', NULL), (40, 'driverdocument edit', 'web', 37, '2025-05-31 09:34:29', NULL), (41, 'driverdocument delete', 'web', 37, '2025-05-31 09:34:29', NULL), (42, 'coupon', 'web', NULL, '2025-05-31 09:34:29', NULL), (43, 'coupon list', 'web', 42, '2025-05-31 09:34:29', NULL), (44, 'coupon add', 'web', 42, '2025-05-31 09:34:29', NULL), (45, 'coupon edit', 'web', 42, '2025-05-31 09:34:29', NULL), (46, 'coupon delete', 'web', 42, '2025-05-31 09:34:29', NULL), (47, 'additionalfees', 'web', NULL, '2025-05-31 09:34:29', NULL), (48, 'additionalfees list', 'web', 47, '2025-05-31 09:34:29', NULL), (49, 'additionalfees add', 'web', 47, '2025-05-31 09:34:29', NULL), (50, 'additionalfees edit', 'web', 47, '2025-05-31 09:34:29', NULL), (51, 'additionalfees delete', 'web', 47, '2025-05-31 09:34:29', NULL), (52, 'sos', 'web', NULL, '2025-05-31 09:34:29', NULL), (53, 'sos list', 'web', 52, '2025-05-31 09:34:29', NULL), (54, 'sos add', 'web', 52, '2025-05-31 09:34:29', NULL), (55, 'sos edit', 'web', 52, '2025-05-31 09:34:29', NULL), (56, 'sos delete', 'web', 52, '2025-05-31 09:34:29', NULL), (57, 'complaint', 'web', NULL, '2025-05-31 09:34:29', NULL), (58, 'complaint list', 'web', 57, '2025-05-31 09:34:29', NULL), (59, 'complaint add', 'web', 57, '2025-05-31 09:34:29', NULL), (60, 'complaint edit', 'web', 57, '2025-05-31 09:34:29', NULL), (61, 'complaint delete', 'web', 57, '2025-05-31 09:34:29', NULL), (62, 'pages', 'web', NULL, '2025-05-31 09:34:29', NULL), (63, 'terms condition', 'web', 62, '2025-05-31 09:34:29', NULL), (64, 'privacy policy', 'web', 62, '2025-05-31 09:34:29', NULL), (65, 'driver show', 'web', 17, '2025-05-31 09:34:29', NULL), (66, 'rider show', 'web', 22, '2025-05-31 09:34:29', NULL), (67, 'complaint show', 'web', 57, '2025-05-31 09:34:29', NULL), (68, 'driverearning list', 'web', 17, '2025-05-31 09:34:29', NULL), (69, 'driver location', 'web', 17, '2025-05-31 09:34:29', NULL), (70, 'pushnotification', 'web', NULL, '2025-05-31 09:34:29', NULL), (71, 'pushnotification list', 'web', 70, '2025-05-31 09:34:29', NULL), (72, 'pushnotification add', 'web', 70, '2025-05-31 09:34:29', NULL), (73, 'pushnotification delete', 'web', 70, '2025-05-31 09:34:29', NULL), (74, 'dispatch add', 'web', 27, '2025-05-31 09:34:29', NULL), (75, 'pages list', 'web', 62, '2025-05-31 09:34:29', NULL), (76, 'pages add', 'web', 62, '2025-05-31 09:34:29', NULL), (77, 'pages edit', 'web', 62, '2025-05-31 09:34:29', NULL), (78, 'pages delete', 'web', 62, '2025-05-31 09:34:29', NULL); -- -------------------------------------------------------- -- -- Table structure for table `personal_access_tokens` -- CREATE TABLE `personal_access_tokens` ( `id` bigint(20) UNSIGNED NOT NULL, `tokenable_type` varchar(255) NOT NULL, `tokenable_id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `token` varchar(64) NOT NULL, `abilities` text DEFAULT NULL, `last_used_at` timestamp NULL DEFAULT NULL, `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 `push_notifications` -- CREATE TABLE `push_notifications` ( `id` bigint(20) UNSIGNED NOT NULL, `title` varchar(255) DEFAULT NULL, `message` longtext DEFAULT NULL, `for_rider` tinyint(1) DEFAULT 0, `for_driver` tinyint(1) DEFAULT 0, `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 `regions` -- CREATE TABLE `regions` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) DEFAULT NULL, `distance_unit` varchar(255) DEFAULT 'km' COMMENT 'km,mile', `coordinates` polygon DEFAULT NULL, `status` tinyint(4) DEFAULT 1, `timezone` varchar(255) DEFAULT 'UTC', `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 `reviews` -- CREATE TABLE `reviews` ( `id` bigint(20) UNSIGNED NOT NULL, `driver_id` bigint(20) UNSIGNED DEFAULT NULL, `rider_id` bigint(20) UNSIGNED DEFAULT NULL, `ride_request_id` bigint(20) UNSIGNED DEFAULT NULL, `driver_rating` double DEFAULT 0, `rider_rating` double DEFAULT 0, `driver_review` text DEFAULT NULL, `rider_review` text DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `ride_requests` -- CREATE TABLE `ride_requests` ( `id` bigint(20) UNSIGNED NOT NULL, `rider_id` bigint(20) UNSIGNED DEFAULT NULL, `service_id` bigint(20) UNSIGNED DEFAULT NULL, `datetime` datetime DEFAULT NULL, `is_schedule` tinyint(1) DEFAULT 0 COMMENT '0-regular, 1-schedule', `ride_attempt` int(11) DEFAULT 0, `distance_unit` varchar(255) DEFAULT NULL, `total_amount` double DEFAULT 0, `subtotal` double DEFAULT 0, `extra_charges_amount` double DEFAULT 0, `driver_id` bigint(20) UNSIGNED DEFAULT NULL, `riderequest_in_driver_id` bigint(20) UNSIGNED DEFAULT NULL, `riderequest_in_datetime` datetime DEFAULT NULL, `start_latitude` varchar(255) DEFAULT NULL, `start_longitude` varchar(255) DEFAULT NULL, `start_address` text DEFAULT NULL, `end_latitude` varchar(255) DEFAULT NULL, `end_longitude` varchar(255) DEFAULT NULL, `end_address` text DEFAULT NULL, `distance` double DEFAULT NULL, `base_distance` double DEFAULT NULL, `duration` double DEFAULT NULL, `seat_count` double DEFAULT NULL, `reason` text DEFAULT NULL, `status` varchar(20) NOT NULL DEFAULT 'active', `base_fare` double DEFAULT NULL, `minimum_fare` double DEFAULT NULL, `per_distance` double DEFAULT NULL, `per_distance_charge` double DEFAULT NULL, `per_minute_drive` double DEFAULT NULL, `per_minute_drive_charge` double DEFAULT NULL, `extra_charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`extra_charges`)), `coupon_discount` double DEFAULT NULL, `coupon_code` bigint(20) UNSIGNED DEFAULT NULL, `coupon_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`coupon_data`)), `otp` varchar(255) DEFAULT NULL, `cancel_by` enum('rider','driver','auto') DEFAULT NULL, `cancelation_charges` double DEFAULT NULL, `waiting_time` double DEFAULT NULL, `waiting_time_limit` double DEFAULT NULL, `tips` double DEFAULT NULL, `per_minute_waiting` double DEFAULT NULL, `per_minute_waiting_charge` double DEFAULT NULL, `payment_type` varchar(255) DEFAULT NULL, `is_driver_rated` tinyint(1) DEFAULT 0, `is_rider_rated` tinyint(1) DEFAULT 0, `cancelled_driver_ids` text DEFAULT NULL, `service_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`service_data`)), `max_time_for_find_driver_for_ride_request` double DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `is_ride_for_other` tinyint(1) DEFAULT 0 COMMENT '0-self, 1-other', `other_rider_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`other_rider_data`)), `drop_location` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`drop_location`)), `datetime_utc` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `ride_request_histories` -- CREATE TABLE `ride_request_histories` ( `id` bigint(20) UNSIGNED NOT NULL, `ride_request_id` bigint(20) UNSIGNED NOT NULL, `datetime` datetime DEFAULT NULL, `history_type` varchar(255) DEFAULT NULL, `history_message` varchar(255) DEFAULT NULL, `history_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`history_data`)), `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 `ride_request_ratings` -- CREATE TABLE `ride_request_ratings` ( `id` bigint(20) UNSIGNED NOT NULL, `ride_request_id` bigint(20) UNSIGNED NOT NULL, `rider_id` bigint(20) UNSIGNED DEFAULT NULL, `driver_id` bigint(20) UNSIGNED DEFAULT NULL, `rating` double NOT NULL DEFAULT 0, `comment` text DEFAULT NULL, `rating_by` varchar(255) 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 `roles` -- CREATE TABLE `roles` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `guard_name` varchar(255) NOT NULL, `status` tinyint(4) DEFAULT 1, `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`, `status`, `created_at`, `updated_at`) VALUES (1, 'admin', 'web', 1, '2025-05-31 09:34:28', NULL), (2, 'rider', 'web', 1, '2025-05-31 09:34:28', NULL), (3, 'driver', 'web', 1, '2025-05-31 09:34:28', NULL); -- -------------------------------------------------------- -- -- 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), (7, 1), (8, 1), (9, 1), (10, 1), (11, 1), (12, 1), (13, 1), (14, 1), (15, 1), (16, 1), (17, 1), (18, 1), (19, 1), (20, 1), (21, 1), (22, 1), (23, 1), (24, 1), (25, 1), (26, 1), (27, 1), (28, 1), (29, 1), (30, 1), (31, 1), (32, 1), (33, 1), (34, 1), (35, 1), (36, 1), (37, 1), (38, 1), (39, 1), (40, 1), (41, 1), (42, 1), (43, 1), (44, 1), (45, 1), (46, 1), (47, 1), (48, 1), (49, 1), (50, 1), (51, 1), (52, 1), (53, 1), (54, 1), (55, 1), (56, 1), (57, 1), (58, 1), (59, 1), (60, 1), (61, 1), (62, 1), (63, 1), (64, 1), (65, 1), (66, 1), (67, 1), (68, 1), (69, 1), (70, 1), (71, 1), (72, 1), (73, 1), (74, 1), (75, 1), (76, 1), (77, 1), (78, 1); -- -------------------------------------------------------- -- -- Table structure for table `services` -- CREATE TABLE `services` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) DEFAULT NULL, `region_id` bigint(20) UNSIGNED DEFAULT NULL, `capacity` bigint(20) UNSIGNED DEFAULT 1, `base_fare` double DEFAULT NULL, `minimum_fare` double DEFAULT NULL, `minimum_distance` double DEFAULT NULL, `per_distance` double DEFAULT NULL, `per_minute_drive` double DEFAULT NULL, `per_minute_wait` double DEFAULT NULL, `waiting_time_limit` double DEFAULT NULL, `cancellation_fee` double DEFAULT NULL, `payment_method` enum('cash_wallet','cash','wallet') NOT NULL DEFAULT 'cash', `commission_type` varchar(255) DEFAULT NULL COMMENT 'fixed, percentage', `admin_commission` double DEFAULT 0, `fleet_commission` double DEFAULT 0, `status` tinyint(4) DEFAULT NULL, `description` text DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `settings` -- CREATE TABLE `settings` ( `id` bigint(20) UNSIGNED NOT NULL, `key` varchar(255) DEFAULT NULL, `type` varchar(255) DEFAULT NULL, `value` text DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `settings` -- INSERT INTO `settings` (`id`, `key`, `type`, `value`) VALUES (1, 'title', 'download_app', 'Let\'s Download'), (2, 'subtitle', 'download_app', 'TRUKA App'), (3, 'image', 'download_app', '/tmp/php53jUhT'), (4, 'play_store', 'download_app', NULL), (5, 'app_store', 'download_app', NULL), (6, 'app_name', 'app_info', 'TRUKA'), (7, 'image_title', 'app_info', 'TRUKA'), (8, 'background_image', 'app_info', '/tmp/phpcL5RSw'), (9, 'logo_image', 'app_info', NULL), (10, 'title', 'our_mission', 'Our Mission'), (11, 'image', 'our_mission', '/tmp/phpevZ40X'), (12, 'title', 'why_choose', 'Why TRUKA'), (13, 'subtitle', 'why_choose', 'Next-generation logistics platform'), (14, 'image', 'why_choose', '/tmp/phpGCxN8k'), (15, 'about_title', 'contactus_info', 'TRUKA is a next-generation logistics platform designed to transform the way pickups and trucks are booked and managed'), (16, 'image', 'contactus_info', '/tmp/phptcfzgy'), (17, 'title', 'client_testimonials', '🚚 TRUKA | Smart Logistics in Motion'), (18, 'subtitle', 'client_testimonials', 'Empowering Deliveries with Intelligent Pickup & Truck Solutions'), (19, 'image', 'client_testimonials', NULL), (20, 'CURRENCY_CODE', 'CURRENCY', 'JOD'), (21, 'CURRENCY_POSITION', 'CURRENCY', 'left'), (22, 'ONESIGNAL_APP_ID', 'ONESIGNAL', NULL), (23, 'ONESIGNAL_REST_API_KEY', 'ONESIGNAL', NULL), (24, 'ONESIGNAL_DRIVER_APP_ID', 'ONESIGNAL', NULL), (25, 'ONESIGNAL_DRIVER_REST_API_KEY', 'ONESIGNAL', NULL), (26, 'DISTANCE_RADIUS', 'DISTANCE', NULL), (27, 'RIDE_FOR_OTHER', 'RIDE', '0'), (28, 'FIREBASE_SERVER_KEY', 'FIREBASE', NULL), (29, 'terms_condition', 'terms_condition', '<p><strong>📜 TRUKA Terms of Use</strong></p>\r\n<p><strong>Last Updated: [July-2025]</strong></p>\r\n<p>Welcome to TRUKA! By accessing or using our platform, services, or applications, you agree to abide by the following Terms of Use. These terms govern your use of TRUKA as a client, driver, or partner.</p>\r\n<h4>1. <strong>Acceptance of Terms</strong></h4>\r\n<p>By creating an account or booking services through TRUKA, you confirm your agreement with these Terms and our Privacy Policy.</p>\r\n<h4>2. <strong>Eligibility</strong></h4>\r\n<p>Users must be at least 18 years old and legally permitted to enter into contracts under Jordanian law.</p>\r\n<h4>3. <strong>Account Responsibility</strong></h4>\r\n<ul>\r\n<li>\r\n<p>You are responsible for maintaining the confidentiality of your account credentials.</p>\r\n</li>\r\n<li>\r\n<p>TRUKA is not liable for losses resulting from unauthorized account access.</p>\r\n</li>\r\n</ul>\r\n<h4>4. <strong>Service Usage</strong></h4>\r\n<ul>\r\n<li>\r\n<p>You agree to use TRUKA only for lawful transportation and delivery purposes.</p>\r\n</li>\r\n<li>\r\n<p>Misuse, fraudulent bookings, or misuse of vehicle resources may lead to account suspension or legal action.</p>\r\n</li>\r\n</ul>\r\n<h4>5. <strong>Pricing & Payments</strong></h4>\r\n<ul>\r\n<li>\r\n<p>All service fees are presented in Jordanian Dinar (JOD).</p>\r\n</li>\r\n<li>\r\n<p>TRUKA reserves the right to update prices or offer promotions as needed.</p>\r\n</li>\r\n<li>\r\n<p>Payments are processed securely via authorized channels.</p>\r\n</li>\r\n</ul>\r\n<h4>6. <strong>Driver & Vehicle Standards</strong></h4>\r\n<ul>\r\n<li>\r\n<p>TRUKA verifies drivers and vehicles for safety and professionalism.</p>\r\n</li>\r\n<li>\r\n<p>Any complaints or safety concerns must be reported promptly via the app.</p>\r\n</li>\r\n</ul>\r\n<h4>7. <strong>Cancellation & Refunds</strong></h4>\r\n<ul>\r\n<li>\r\n<p>Cancellation policies may vary based on service type and timing.</p>\r\n</li>\r\n<li>\r\n<p>Refunds are issued according to TRUKA’s fair use and cancellation policy.</p>\r\n</li>\r\n</ul>\r\n<h4>8. <strong>Limitation of Liability</strong></h4>\r\n<p>TRUKA is not liable for delays, damages, or losses caused by third parties, road conditions, or circumstances beyond our control.</p>\r\n<h4>9. <strong>Changes to Terms</strong></h4>\r\n<p>TRUKA may modify these Terms of Use at any time. Continued use of the platform signifies acceptance of any changes.</p>\r\n<div> </div>'), (30, 'privacy_policy', 'privacy_policy', '<h3>🔐 TRUKA Privacy Policy</h3>\r\n<p><strong>Last Updated: [July-2025]</strong></p>\r\n<p>Your privacy matters. At TRUKA, we are committed to protecting your personal data and providing you with clear insight into how it is collected, used, and safeguarded across our platform.</p>\r\n<h4>1. <strong>Information We Collect</strong></h4>\r\n<p>We may collect:</p>\r\n<ul>\r\n<li>\r\n<p>Personal details (name, phone number, email)</p>\r\n</li>\r\n<li>\r\n<p>Location data for pickups and deliveries</p>\r\n</li>\r\n<li>\r\n<p>Payment information (securely processed)</p>\r\n</li>\r\n<li>\r\n<p>Vehicle and driver credentials (for fleet users)</p>\r\n</li>\r\n<li>\r\n<p>App usage data to improve performance and user experience</p>\r\n</li>\r\n</ul>\r\n<h4>2. <strong>How We Use Your Information</strong></h4>\r\n<ul>\r\n<li>\r\n<p>To process bookings and manage logistics</p>\r\n</li>\r\n<li>\r\n<p>To match users with drivers and vehicles efficiently</p>\r\n</li>\r\n<li>\r\n<p>To improve service quality and app functionality</p>\r\n</li>\r\n<li>\r\n<p>To communicate updates, promotions, and support</p>\r\n</li>\r\n<li>\r\n<p>To comply with local laws and regulatory requirements</p>\r\n</li>\r\n</ul>\r\n<h4>3. <strong>Data Sharing</strong></h4>\r\n<p>TRUKA does not sell your information. We only share data:</p>\r\n<ul>\r\n<li>\r\n<p>With verified drivers and service providers to complete bookings</p>\r\n</li>\r\n<li>\r\n<p>With secure third-party services (e.g., payment processors)</p>\r\n</li>\r\n<li>\r\n<p>If required by law enforcement or governmental authorities</p>\r\n</li>\r\n</ul>\r\n<h4>4. <strong>User Control & Access</strong></h4>\r\n<ul>\r\n<li>\r\n<p>You can update or delete your account at any time</p>\r\n</li>\r\n<li>\r\n<p>You may request access to review the information we hold about you</p>\r\n</li>\r\n<li>\r\n<p>Location sharing settings are adjustable through the app</p>\r\n</li>\r\n</ul>\r\n<h4>5. <strong>Data Security</strong></h4>\r\n<ul>\r\n<li>\r\n<p>We use industry-standard encryption and access controls</p>\r\n</li>\r\n<li>\r\n<p>Regular audits and updates ensure your data stays protected</p>\r\n</li>\r\n</ul>\r\n<h4>6. <strong>Cookies & Tracking</strong></h4>\r\n<ul>\r\n<li>\r\n<p>TRUKA may use cookies or similar technologies to enhance your user experience</p>\r\n</li>\r\n<li>\r\n<p>You can manage these settings in your browser preferences</p>\r\n</li>\r\n</ul>\r\n<h4>7. <strong>Policy Updates</strong></h4>\r\n<p>This policy may be updated periodically. Continued use of TRUKA signifies your agreement to the current version.</p>'); -- -------------------------------------------------------- -- -- Table structure for table `sos` -- CREATE TABLE `sos` ( `id` bigint(20) UNSIGNED NOT NULL, `region_id` bigint(20) UNSIGNED DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `contact_number` varchar(255) DEFAULT NULL, `status` tinyint(4) DEFAULT NULL, `added_by` bigint(20) UNSIGNED 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 `surge_prices` -- CREATE TABLE `surge_prices` ( `id` bigint(20) UNSIGNED NOT NULL, `day` varchar(255) NOT NULL, `type` varchar(255) NOT NULL COMMENT 'fixed, multiply', `value` double DEFAULT 0, `from_time` text DEFAULT NULL, `to_time` text 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 `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `first_name` varchar(255) DEFAULT NULL, `last_name` varchar(255) DEFAULT NULL, `email` varchar(255) NOT NULL, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `country_code` varchar(255) DEFAULT NULL, `contact_number` varchar(255) DEFAULT NULL, `gender` enum('male','female','other') DEFAULT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `address` text DEFAULT NULL, `user_type` varchar(255) DEFAULT NULL, `player_id` varchar(255) DEFAULT NULL, `service_id` bigint(20) UNSIGNED DEFAULT NULL, `fleet_id` bigint(20) UNSIGNED DEFAULT NULL, `latitude` varchar(255) DEFAULT NULL, `longitude` varchar(255) DEFAULT NULL, `remember_token` varchar(100) DEFAULT NULL, `last_notification_seen` timestamp NULL DEFAULT NULL, `status` varchar(20) NOT NULL DEFAULT 'active', `is_online` tinyint(4) DEFAULT 0, `is_available` tinyint(4) DEFAULT 1, `is_verified_driver` tinyint(4) DEFAULT 0, `uid` varchar(255) DEFAULT NULL, `fcm_token` text DEFAULT NULL, `display_name` varchar(255) DEFAULT NULL, `login_type` varchar(255) DEFAULT NULL, `timezone` varchar(255) DEFAULT 'UTC', `last_actived_at` datetime DEFAULT NULL, `app_version` varchar(255) DEFAULT NULL, `last_location_update_at` datetime DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `otp_verify_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`, `username`, `password`, `country_code`, `contact_number`, `gender`, `email_verified_at`, `address`, `user_type`, `player_id`, `service_id`, `fleet_id`, `latitude`, `longitude`, `remember_token`, `last_notification_seen`, `status`, `is_online`, `is_available`, `is_verified_driver`, `uid`, `fcm_token`, `display_name`, `login_type`, `timezone`, `last_actived_at`, `app_version`, `last_location_update_at`, `created_at`, `updated_at`, `otp_verify_at`) VALUES (1, 'Admin', 'Admin', 'admin@admin.com', 'admin', '$2y$10$.AlZlUmfY9ZnG34LVCjWMO6KBrDXTAZZaHYiVRgBRWZN6gwaw0tsa', NULL, '+919876543210', NULL, NULL, NULL, 'admin', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'active', 0, 1, 0, NULL, NULL, 'Admin', NULL, 'Asia/Amman', '2025-07-16 07:56:28', NULL, NULL, '2025-05-31 09:34:29', '2025-07-16 07:56:28', NULL), (2, 'Doha', 'Akram', 'doha.akram.1980@gmail.com', 'admin@admin.com', '$2y$10$xhM.0zVihvTsReV/CWhMHeHdOtNkVrk3hd/gmPCWUHJ757eClnbUy', NULL, '+201145270392', 'male', NULL, 'Hadaek El Ahram,\r\n22', 'rider', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'active', 0, 1, 0, NULL, NULL, 'Doha Akram', NULL, 'UTC', NULL, NULL, NULL, '2025-05-31 13:18:22', '2025-05-31 13:18:22', NULL), (3, 'Sherif', 'Hamdy', 'Sherif@gmail.com', 'Sherif2020', '$2y$10$9jvBcxXoEXDVcMSogwgTXuFK8Je9cDXL5dsOoiWAPetJEKs1MDJCy', NULL, '+962776565659', 'male', NULL, 'ggeheryh', 'rider', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'active', 0, 1, 0, NULL, NULL, 'Sherif Hamdy', NULL, 'UTC', '2025-06-07 09:04:10', NULL, NULL, '2025-06-07 09:01:08', '2025-06-07 09:04:10', NULL); -- -------------------------------------------------------- -- -- Table structure for table `user_bank_accounts` -- CREATE TABLE `user_bank_accounts` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED DEFAULT NULL, `bank_name` varchar(255) DEFAULT NULL, `bank_code` varchar(255) DEFAULT NULL, `account_holder_name` varchar(255) DEFAULT NULL, `account_number` varchar(255) DEFAULT NULL, `bank_address` text DEFAULT NULL, `routing_number` varchar(255) DEFAULT NULL, `bank_iban` varchar(255) DEFAULT NULL, `bank_swift` varchar(255) 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 `user_details` -- CREATE TABLE `user_details` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED DEFAULT NULL, `car_model` varchar(255) DEFAULT NULL, `car_color` varchar(255) DEFAULT NULL, `car_plate_number` varchar(255) DEFAULT NULL, `car_production_year` varchar(255) DEFAULT NULL, `work_address` text DEFAULT NULL, `home_address` text DEFAULT NULL, `work_latitude` varchar(255) DEFAULT NULL, `work_longitude` varchar(255) DEFAULT NULL, `home_latitude` varchar(255) DEFAULT NULL, `home_longitude` varchar(255) 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 `wallets` -- CREATE TABLE `wallets` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED DEFAULT NULL, `total_amount` double DEFAULT NULL, `online_received` double DEFAULT NULL, `collected_cash` double DEFAULT NULL, `manual_received` double DEFAULT NULL, `total_withdrawn` double DEFAULT NULL, `currency` varchar(255) 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 `wallet_histories` -- CREATE TABLE `wallet_histories` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED DEFAULT NULL, `type` varchar(255) DEFAULT NULL COMMENT 'credit,debit', `transaction_type` varchar(255) DEFAULT NULL COMMENT 'credit- ,debit', `currency` varchar(255) DEFAULT NULL, `amount` double DEFAULT 0, `balance` double DEFAULT 0, `datetime` datetime DEFAULT NULL, `ride_request_id` bigint(20) UNSIGNED DEFAULT NULL, `description` text DEFAULT NULL, `data` text DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `withdraw_requests` -- CREATE TABLE `withdraw_requests` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED DEFAULT NULL, `amount` double DEFAULT 0, `currency` varchar(255) DEFAULT NULL, `status` tinyint(4) DEFAULT 0 COMMENT '0-requested,1-approved,2-decline', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Indexes for dumped tables -- -- -- Indexes for table `additional_fees` -- ALTER TABLE `additional_fees` ADD PRIMARY KEY (`id`); -- -- Indexes for table `app_settings` -- ALTER TABLE `app_settings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `complaints` -- ALTER TABLE `complaints` ADD PRIMARY KEY (`id`), ADD KEY `complaints_rider_id_foreign` (`rider_id`), ADD KEY `complaints_ride_request_id_foreign` (`ride_request_id`); -- -- Indexes for table `complaint_comments` -- ALTER TABLE `complaint_comments` ADD PRIMARY KEY (`id`), ADD KEY `complaint_comments_complaint_id_foreign` (`complaint_id`); -- -- Indexes for table `coupons` -- ALTER TABLE `coupons` ADD PRIMARY KEY (`id`); -- -- Indexes for table `documents` -- ALTER TABLE `documents` ADD PRIMARY KEY (`id`); -- -- Indexes for table `driver_documents` -- ALTER TABLE `driver_documents` ADD PRIMARY KEY (`id`), ADD KEY `driver_documents_driver_id_foreign` (`driver_id`), ADD KEY `driver_documents_document_id_foreign` (`document_id`); -- -- Indexes for table `driver_services` -- ALTER TABLE `driver_services` ADD PRIMARY KEY (`id`), ADD KEY `driver_services_driver_id_foreign` (`driver_id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indexes for table `frontend_data` -- ALTER TABLE `frontend_data` ADD PRIMARY KEY (`id`); -- -- Indexes for table `media` -- ALTER TABLE `media` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `media_uuid_unique` (`uuid`), ADD KEY `media_model_type_model_id_index` (`model_type`,`model_id`), ADD KEY `media_order_column_index` (`order_column`); -- -- 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 `notifications` -- ALTER TABLE `notifications` ADD PRIMARY KEY (`id`), ADD KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`); -- -- Indexes for table `pages` -- ALTER TABLE `pages` 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`), ADD KEY `payments_rider_id_foreign` (`rider_id`), ADD KEY `payments_ride_request_id_foreign` (`ride_request_id`); -- -- Indexes for table `payment_gateways` -- ALTER TABLE `payment_gateways` 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 `push_notifications` -- ALTER TABLE `push_notifications` ADD PRIMARY KEY (`id`); -- -- Indexes for table `regions` -- ALTER TABLE `regions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `reviews` -- ALTER TABLE `reviews` ADD PRIMARY KEY (`id`), ADD KEY `reviews_rider_id_foreign` (`rider_id`), ADD KEY `reviews_ride_request_id_foreign` (`ride_request_id`); -- -- Indexes for table `ride_requests` -- ALTER TABLE `ride_requests` ADD PRIMARY KEY (`id`), ADD KEY `ride_requests_rider_id_foreign` (`rider_id`); -- -- Indexes for table `ride_request_histories` -- ALTER TABLE `ride_request_histories` ADD PRIMARY KEY (`id`), ADD KEY `ride_request_histories_ride_request_id_foreign` (`ride_request_id`); -- -- Indexes for table `ride_request_ratings` -- ALTER TABLE `ride_request_ratings` ADD PRIMARY KEY (`id`), ADD KEY `ride_request_ratings_ride_request_id_foreign` (`ride_request_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`), ADD KEY `services_region_id_foreign` (`region_id`); -- -- Indexes for table `settings` -- ALTER TABLE `settings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `sos` -- ALTER TABLE `sos` ADD PRIMARY KEY (`id`), ADD KEY `sos_region_id_foreign` (`region_id`); -- -- Indexes for table `surge_prices` -- ALTER TABLE `surge_prices` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`), ADD UNIQUE KEY `users_username_unique` (`username`); -- -- Indexes for table `user_bank_accounts` -- ALTER TABLE `user_bank_accounts` ADD PRIMARY KEY (`id`), ADD KEY `user_bank_accounts_user_id_foreign` (`user_id`); -- -- Indexes for table `user_details` -- ALTER TABLE `user_details` ADD PRIMARY KEY (`id`); -- -- Indexes for table `wallets` -- ALTER TABLE `wallets` ADD PRIMARY KEY (`id`), ADD KEY `wallets_user_id_foreign` (`user_id`); -- -- Indexes for table `wallet_histories` -- ALTER TABLE `wallet_histories` ADD PRIMARY KEY (`id`), ADD KEY `wallet_histories_user_id_foreign` (`user_id`), ADD KEY `wallet_histories_ride_request_id_foreign` (`ride_request_id`); -- -- Indexes for table `withdraw_requests` -- ALTER TABLE `withdraw_requests` ADD PRIMARY KEY (`id`), ADD KEY `withdraw_requests_user_id_foreign` (`user_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `additional_fees` -- ALTER TABLE `additional_fees` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `app_settings` -- ALTER TABLE `app_settings` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `complaints` -- ALTER TABLE `complaints` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `complaint_comments` -- ALTER TABLE `complaint_comments` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `coupons` -- ALTER TABLE `coupons` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `documents` -- ALTER TABLE `documents` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `driver_documents` -- ALTER TABLE `driver_documents` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `driver_services` -- ALTER TABLE `driver_services` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `frontend_data` -- ALTER TABLE `frontend_data` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `media` -- ALTER TABLE `media` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44; -- -- AUTO_INCREMENT for table `pages` -- ALTER TABLE `pages` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `payments` -- ALTER TABLE `payments` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `payment_gateways` -- ALTER TABLE `payment_gateways` 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=79; -- -- 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 `push_notifications` -- ALTER TABLE `push_notifications` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `regions` -- ALTER TABLE `regions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `reviews` -- ALTER TABLE `reviews` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `ride_requests` -- ALTER TABLE `ride_requests` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `ride_request_histories` -- ALTER TABLE `ride_request_histories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `ride_request_ratings` -- ALTER TABLE `ride_request_ratings` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `services` -- ALTER TABLE `services` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `settings` -- ALTER TABLE `settings` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31; -- -- AUTO_INCREMENT for table `sos` -- ALTER TABLE `sos` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `surge_prices` -- ALTER TABLE `surge_prices` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `user_bank_accounts` -- ALTER TABLE `user_bank_accounts` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `user_details` -- ALTER TABLE `user_details` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `wallets` -- ALTER TABLE `wallets` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `wallet_histories` -- ALTER TABLE `wallet_histories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `withdraw_requests` -- ALTER TABLE `withdraw_requests` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `complaints` -- ALTER TABLE `complaints` ADD CONSTRAINT `complaints_ride_request_id_foreign` FOREIGN KEY (`ride_request_id`) REFERENCES `ride_requests` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `complaints_rider_id_foreign` FOREIGN KEY (`rider_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `complaint_comments` -- ALTER TABLE `complaint_comments` ADD CONSTRAINT `complaint_comments_complaint_id_foreign` FOREIGN KEY (`complaint_id`) REFERENCES `complaints` (`id`) ON DELETE CASCADE; -- -- Constraints for table `driver_documents` -- ALTER TABLE `driver_documents` ADD CONSTRAINT `driver_documents_document_id_foreign` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `driver_documents_driver_id_foreign` FOREIGN KEY (`driver_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `driver_services` -- ALTER TABLE `driver_services` ADD CONSTRAINT `driver_services_driver_id_foreign` FOREIGN KEY (`driver_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- 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 `payments` -- ALTER TABLE `payments` ADD CONSTRAINT `payments_ride_request_id_foreign` FOREIGN KEY (`ride_request_id`) REFERENCES `ride_requests` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `payments_rider_id_foreign` FOREIGN KEY (`rider_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `reviews` -- ALTER TABLE `reviews` ADD CONSTRAINT `reviews_ride_request_id_foreign` FOREIGN KEY (`ride_request_id`) REFERENCES `ride_requests` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `reviews_rider_id_foreign` FOREIGN KEY (`rider_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `ride_requests` -- ALTER TABLE `ride_requests` ADD CONSTRAINT `ride_requests_rider_id_foreign` FOREIGN KEY (`rider_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `ride_request_histories` -- ALTER TABLE `ride_request_histories` ADD CONSTRAINT `ride_request_histories_ride_request_id_foreign` FOREIGN KEY (`ride_request_id`) REFERENCES `ride_requests` (`id`) ON DELETE CASCADE; -- -- Constraints for table `ride_request_ratings` -- ALTER TABLE `ride_request_ratings` ADD CONSTRAINT `ride_request_ratings_ride_request_id_foreign` FOREIGN KEY (`ride_request_id`) REFERENCES `ride_requests` (`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; -- -- Constraints for table `services` -- ALTER TABLE `services` ADD CONSTRAINT `services_region_id_foreign` FOREIGN KEY (`region_id`) REFERENCES `regions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `sos` -- ALTER TABLE `sos` ADD CONSTRAINT `sos_region_id_foreign` FOREIGN KEY (`region_id`) REFERENCES `regions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `user_bank_accounts` -- ALTER TABLE `user_bank_accounts` ADD CONSTRAINT `user_bank_accounts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `wallets` -- ALTER TABLE `wallets` ADD CONSTRAINT `wallets_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `wallet_histories` -- ALTER TABLE `wallet_histories` ADD CONSTRAINT `wallet_histories_ride_request_id_foreign` FOREIGN KEY (`ride_request_id`) REFERENCES `ride_requests` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `wallet_histories_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `withdraw_requests` -- ALTER TABLE `withdraw_requests` ADD CONSTRAINT `withdraw_requests_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;