-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `sheeld`
--

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

--
-- Table structure for table `distance_prices`
--

CREATE TABLE `distance_prices` (
  `ID` int(20) NOT NULL,
  `Distance_From` double NOT NULL,
  `Distance_To` double NOT NULL,
  `Distance_Price` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `distance_prices`
--

INSERT INTO `distance_prices` (`ID`, `Distance_From`, `Distance_To`, `Distance_Price`) VALUES
(1, 0, 0.99, 1),
(2, 1, 15, 1),
(3, 15.01, 50, 3),
(4, 50.01, 100, 5),
(5, 100.01, 200, 7),
(6, 200.01, 300, 9),
(7, 300.01, 400, 10),
(8, 400.01, 500, 12),
(9, 500.01, 600, 15);

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

--
-- Table structure for table `drivers_notifications`
--

CREATE TABLE `drivers_notifications` (
  `ID` int(20) NOT NULL,
  `Notification` text COLLATE utf8_bin NOT NULL,
  `Send_Date_Time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `drivers_notifications`
--

INSERT INTO `drivers_notifications` (`ID`, `Notification`, `Send_Date_Time`) VALUES
(1, 'Test', '2024-03-29 19:27:45');

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

--
-- Table structure for table `drivers_private_rates`
--

CREATE TABLE `drivers_private_rates` (
  `ID` int(20) NOT NULL,
  `Trip_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `Driver_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `User_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `Rate` varchar(250) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `drivers_private_rates`
--

INSERT INTO `drivers_private_rates` (`ID`, `Trip_ID`, `Driver_ID`, `User_ID`, `Rate`) VALUES
(4, '11', '1', '1', '5'),
(5, '20', '1', '1', '5'),
(6, '22', '1', '1', '5'),
(7, '24', '1', '1', '5'),
(8, '25', '1', '1', '5'),
(9, '26', '1', '1', '5'),
(10, '28', '1', '1', '5');

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

--
-- Table structure for table `drivers_private_trips_cancelation`
--

CREATE TABLE `drivers_private_trips_cancelation` (
  `ID` int(11) NOT NULL,
  `Trip_ID` int(20) NOT NULL,
  `Driver_ID` int(20) NOT NULL,
  `Date` varchar(250) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `drivers_private_trips_cancelation`
--

INSERT INTO `drivers_private_trips_cancelation` (`ID`, `Trip_ID`, `Driver_ID`, `Date`) VALUES
(0, 27, 1, '2024-04-18'),
(0, 27, 1, '2024-04-18'),
(0, 27, 1, '2024-04-18'),
(0, 27, 1, '2024-04-18');

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

--
-- Table structure for table `drivers_rates`
--

CREATE TABLE `drivers_rates` (
  `ID` int(20) NOT NULL,
  `Trip_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `Driver_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `User_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `Rate` varchar(250) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `drivers_rates`
--

INSERT INTO `drivers_rates` (`ID`, `Trip_ID`, `Driver_ID`, `User_ID`, `Rate`) VALUES
(14, '136', '1', '1', '5'),
(15, '137', '1', '1', '5'),
(16, '138', '1', '1', '5'),
(17, '139', '1', '1', '5'),
(18, '140', '1', '1', '5'),
(19, '142', '1', '1', '5');

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

--
-- Table structure for table `drivers_trips_cancelation`
--

CREATE TABLE `drivers_trips_cancelation` (
  `ID` int(11) NOT NULL,
  `Trip_ID` int(20) NOT NULL,
  `Driver_ID` int(20) NOT NULL,
  `Date` varchar(250) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `drivers_trips_cancelation`
--

INSERT INTO `drivers_trips_cancelation` (`ID`, `Trip_ID`, `Driver_ID`, `Date`) VALUES
(0, 141, 1, '2024-06-07');

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

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

CREATE TABLE `notifications` (
  `ID` int(20) NOT NULL,
  `Notification` text COLLATE utf8_bin NOT NULL,
  `Send_Date_Time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `notifications`
--

INSERT INTO `notifications` (`ID`, `Notification`, `Send_Date_Time`) VALUES
(1, 'Test', '2024-03-29 19:27:45');

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

--
-- Table structure for table `staff_drivers_recharges`
--

CREATE TABLE `staff_drivers_recharges` (
  `ID` int(20) NOT NULL,
  `Staff_ID` int(20) NOT NULL,
  `Driver_ID` int(20) NOT NULL,
  `Balance` double NOT NULL,
  `Add_Date_Time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `staff_drivers_recharges`
--

INSERT INTO `staff_drivers_recharges` (`ID`, `Staff_ID`, `Driver_ID`, `Balance`, `Add_Date_Time`) VALUES
(4, 1, 1, 100, '2023-11-04 08:07:10');

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

--
-- Table structure for table `trips`
--

CREATE TABLE `trips` (
  `ID` int(20) NOT NULL,
  `Driver_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `Trip_Type` varchar(250) COLLATE utf8_bin NOT NULL,
  `Gender_Type` text COLLATE utf8_bin NOT NULL,
  `From_Location` varchar(250) COLLATE utf8_bin NOT NULL,
  `To_Location` varchar(250) COLLATE utf8_bin NOT NULL,
  `From_Longitude` varchar(250) COLLATE utf8_bin NOT NULL,
  `From_Latitude` varchar(250) COLLATE utf8_bin NOT NULL,
  `To_Longitude` varchar(250) COLLATE utf8_bin NOT NULL,
  `To_Latitude` varchar(250) COLLATE utf8_bin NOT NULL,
  `Date` text COLLATE utf8_bin NOT NULL,
  `From_Time` varchar(250) COLLATE utf8_bin NOT NULL,
  `To_Time` varchar(250) COLLATE utf8_bin NOT NULL,
  `Max_Limit_Riders` text COLLATE utf8_bin NOT NULL,
  `Current_Total_Riders` text COLLATE utf8_bin NOT NULL,
  `Estimation_Time` varchar(250) COLLATE utf8_bin NOT NULL,
  `Total_KM_Distance` varchar(250) COLLATE utf8_bin NOT NULL,
  `Status` varchar(250) COLLATE utf8_bin NOT NULL,
  `Add_Date_Time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `trips`
--

INSERT INTO `trips` (`ID`, `Driver_ID`, `Trip_Type`, `Gender_Type`, `From_Location`, `To_Location`, `From_Longitude`, `From_Latitude`, `To_Longitude`, `To_Latitude`, `Date`, `From_Time`, `To_Time`, `Max_Limit_Riders`, `Current_Total_Riders`, `Estimation_Time`, `Total_KM_Distance`, `Status`, `Add_Date_Time`) VALUES
(138, '1', 'Shared', 'MALE', 'Al-Jahedh St. 62،, Amman, Jordan', 'Abdul Muttaleb St. 48, Amman, Jordan', '35.89724733828453', '31.97889706429121', '35.89724733828453', '31.9757595572948', '2023-10-31', '05:16', '05:30', '4', '0', '14', '0.3', 'Finished', '2023-10-31 03:30:03'),
(139, '1', 'Shared', 'MALE', 'Al-Jahedh St. 73, Amman, Jordan', 'Muhammad Ben Toumart St. 67, Amman, Jordan', '35.8975', '31.978593', '35.89807481052018', '31.97792514701321', '2023-10-31', '06:54', '07:09', '1', '0', '15', '0.1', 'Finished', '2023-10-31 05:09:25'),
(140, '1', 'Shared', 'MALE', 'Al-Jahedh St. 73, Amman, Jordan', 'Youssef Ben Tashfin St. 81, Amman, Jordan', '35.8975035', '31.9785895', '35.89770734788514', '31.977567941535625', '2023-11-04', '10:26', '10:38', '1', '0', '12', '0.1', 'Finished', '2023-11-04 08:38:26'),
(141, '1', 'Shared', 'MALE', 'Al-Jahedh St. 62, Amman, Jordan', 'Al-Sharif Abdul Hamid Sharaf St. 95, Amman, Jordan', '35.897466', '31.978638', '35.895033236423515', '31.978526516503095', '2024-06-07', '08:53', '', '3', '0', '', '0.2', 'Canceled', '2024-06-07 05:53:52'),
(142, '1', 'Shared', 'MALE', 'Al-Jahedh St. 62, Amman, Jordan', 'Al-Jahedh St. 48, Amman, Jordan', '35.897493562203', '31.978677254306', '35.89856734989219', '31.97725288390021', '2024-07-19', '17:51', '17:53', '1', '0', '2', '0.2', 'Finished', '2024-07-19 14:53:30');

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

--
-- Table structure for table `trips_privates`
--

CREATE TABLE `trips_privates` (
  `ID` int(20) NOT NULL,
  `User_ID` int(20) NOT NULL,
  `Driver_ID` int(20) NOT NULL,
  `Date` varchar(250) COLLATE utf8_bin NOT NULL,
  `Gender` varchar(250) COLLATE utf8_bin NOT NULL,
  `Total_Riders` varchar(250) COLLATE utf8_bin NOT NULL,
  `From_Longitude` varchar(250) COLLATE utf8_bin NOT NULL,
  `From_Latitude` varchar(250) COLLATE utf8_bin NOT NULL,
  `To_Longitude` varchar(250) COLLATE utf8_bin NOT NULL,
  `To_Latitude` varchar(250) COLLATE utf8_bin NOT NULL,
  `From_Location` varchar(250) COLLATE utf8_bin NOT NULL,
  `To_Location` varchar(250) COLLATE utf8_bin NOT NULL,
  `Total_KM_Distance` varchar(250) COLLATE utf8_bin NOT NULL,
  `From_Time` varchar(250) COLLATE utf8_bin NOT NULL,
  `To_Time` varchar(250) COLLATE utf8_bin NOT NULL,
  `Estimation_Time` varchar(250) COLLATE utf8_bin NOT NULL,
  `Total_Price` varchar(250) COLLATE utf8_bin NOT NULL,
  `Payment_Type` varchar(250) COLLATE utf8_bin NOT NULL,
  `Driver_Rate_Status` varchar(250) COLLATE utf8_bin NOT NULL,
  `User_Rate_Status` varchar(250) COLLATE utf8_bin NOT NULL,
  `Status` varchar(250) COLLATE utf8_bin NOT NULL,
  `Notes` varchar(250) COLLATE utf8_bin NOT NULL,
  `Add_Date_Time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `trips_privates`
--

INSERT INTO `trips_privates` (`ID`, `User_ID`, `Driver_ID`, `Date`, `Gender`, `Total_Riders`, `From_Longitude`, `From_Latitude`, `To_Longitude`, `To_Latitude`, `From_Location`, `To_Location`, `Total_KM_Distance`, `From_Time`, `To_Time`, `Estimation_Time`, `Total_Price`, `Payment_Type`, `Driver_Rate_Status`, `User_Rate_Status`, `Status`, `Notes`, `Add_Date_Time`) VALUES
(24, 1, 1, '2023-10-31', 'MALE', '1', '35.89707914249463', '31.97821264819142', '35.89777919904752', '31.97821264819142', 'Al-Jahedh St. 66, Amman, Jordan', 'Al-Jahedh St. 67, Amman, Jordan', '0.1', '05:35', '05:44', '9', '0.375', 'Cash', 'True', 'True', 'Dropoff', '', '2023-10-31 03:55:22'),
(25, 1, 1, '2023-10-31', 'MALE', '1', '35.897154265017036', '31.978219080184406', '35.89778726634455', '31.978219080184406', 'Al-Jahedh St. 62،, Amman, Jordan', 'Al-Jahedh St. 67, Amman, Jordan', '0.1', '07:13', '07:19', '6', '0.375', 'Cash', 'True', 'True', 'Dropoff', '', '2023-10-31 05:21:56'),
(26, 1, 1, '2023-11-04', 'MALE', '1', '35.897504713316', '31.978445244551992', '35.896570842342264', '31.978445244551992', 'Al-Jahedh St. 73, Amman, Jordan', 'Youssef Ben Tashfin St. 75, Amman, Jordan', '0.1', '10:39', '10:41', '2', '0.375', 'Cash', 'True', 'True', 'Dropoff', '', '2023-11-04 08:41:25'),
(27, 1, 0, '2024-04-18', 'MALE', '1', '35.89726130598333', '31.978639036679', '35.897517471985', '31.978639036679', 'Al-Jahedh St. 73, Amman, Jordan', 'Al-Jahedh St. 62, Amman, Jordan', '1', '', '', '', '0', 'Cash', '', '', 'Canceled', 'Trip canceled by driver', '2024-04-18 15:15:50'),
(28, 1, 1, '2024-07-19', 'MALE', '1', '35.89804309099665', '31.9788569997838', '35.89712628786148', '31.9788569997838', 'Al-Jahedh St. 56, Amman, Jordan', 'Al-Jahedh St. 62،, Amman, Jordan', '0.1', '17:49', '17:50', '1', '0.39', 'Cash', 'True', 'True', 'Dropoff', '', '2024-07-19 14:50:40');

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

--
-- Table structure for table `trips_users`
--

CREATE TABLE `trips_users` (
  `ID` int(20) NOT NULL,
  `Trip_ID` int(20) NOT NULL,
  `Spot_Number` varchar(250) COLLATE utf8_bin NOT NULL,
  `Private_Status` varchar(250) COLLATE utf8_bin NOT NULL,
  `User_ID` int(20) NOT NULL,
  `Driver_ID` int(20) NOT NULL,
  `Gender` varchar(250) COLLATE utf8_bin NOT NULL,
  `Total_Riders` varchar(250) COLLATE utf8_bin NOT NULL,
  `From_Longitude` varchar(250) COLLATE utf8_bin NOT NULL,
  `From_Latitude` varchar(250) COLLATE utf8_bin NOT NULL,
  `To_Longitude` varchar(250) COLLATE utf8_bin NOT NULL,
  `To_Latitude` varchar(250) COLLATE utf8_bin NOT NULL,
  `From_Location` varchar(250) COLLATE utf8_bin NOT NULL,
  `To_Location` varchar(250) COLLATE utf8_bin NOT NULL,
  `Total_KM_Distance` varchar(250) COLLATE utf8_bin NOT NULL,
  `Total_Price` varchar(250) COLLATE utf8_bin NOT NULL,
  `Total_Price_All_Riders` varchar(250) COLLATE utf8_bin NOT NULL,
  `Payment_Type` varchar(250) COLLATE utf8_bin NOT NULL,
  `Driver_Rate_Status` varchar(250) COLLATE utf8_bin NOT NULL,
  `User_Rate_Status` varchar(250) COLLATE utf8_bin NOT NULL,
  `Status` varchar(250) COLLATE utf8_bin NOT NULL,
  `Notes` varchar(250) COLLATE utf8_bin NOT NULL,
  `Add_Date_Time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `trips_users`
--

INSERT INTO `trips_users` (`ID`, `Trip_ID`, `Spot_Number`, `Private_Status`, `User_ID`, `Driver_ID`, `Gender`, `Total_Riders`, `From_Longitude`, `From_Latitude`, `To_Longitude`, `To_Latitude`, `From_Location`, `To_Location`, `Total_KM_Distance`, `Total_Price`, `Total_Price_All_Riders`, `Payment_Type`, `Driver_Rate_Status`, `User_Rate_Status`, `Status`, `Notes`, `Add_Date_Time`) VALUES
(40, 138, '7', 'False', 1, 1, 'MALE', '1', '35.89743241070656', '31.977397717911938', '35.897359991063155', '31.977397717911938', 'Al-Jahedh St. 73, Amman, Jordan', 'XVGW XVH, Amman, Jordan', '0.1', '1', '1', 'Cash', 'True', 'True', 'Dropoff', '', '2023-10-31 03:27:19'),
(41, 139, '7', 'False', 1, 1, 'MALE', '1', '35.897198509877335', '31.978800391289504', '35.89685518712343', '31.978800391289504', 'Al-Jahedh St. 62،, Amman, Jordan', 'Mustafa Al-Ghalayni St. 3, Amman, Jordan', '1', '1', '1', 'Cash', 'True', 'True', 'Dropoff', '', '2023-10-31 05:09:22'),
(42, 140, '9', 'False', 1, 1, 'MALE', '1', '35.897409622684485', '31.977470107945933', '35.89768589021302', '31.977470107945933', 'Al-Jahedh St. 73, Amman, Jordan', 'Muhammad Ben Toumart St. 5, Amman, Jordan', '0.1', '1', '1', 'Cash', 'True', 'True', 'Dropoff', '', '2023-11-04 08:38:04'),
(43, 142, '10', 'False', 1, 1, 'MALE', '1', '35.89747547988402', '31.978077476278063', '35.897955580236456', '31.978077476278063', 'Al-Jahedh St. 73, Amman, Jordan', 'Al-Jahedh St. 56, Amman, Jordan', '0.1', '1', '1', 'Cash', 'True', 'True', 'Dropoff', '', '2024-07-19 14:53:16');

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

--
-- Table structure for table `trip_spots`
--

CREATE TABLE `trip_spots` (
  `ID` int(20) NOT NULL,
  `Trip_ID` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `Spot_Number` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `Longitude` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `Latitude` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `trip_spots`
--

INSERT INTO `trip_spots` (`ID`, `Trip_ID`, `Spot_Number`, `Longitude`, `Latitude`) VALUES
(1, '136', '6', '35.898120', '31.977800'),
(2, '136', '2', '35.899020', '31.976320'),
(3, '136', '3', '35.898890', '31.976630'),
(4, '136', '5', '35.898490', '31.977370'),
(5, '136', '7', '35.898060', '31.978020'),
(6, '136', '8', '35.897760', '31.978250'),
(7, '136', '1', '35.899030', '31.976200'),
(8, '136', '10', '35.896260', '31.979700'),
(9, '136', '4', '35.898670', '31.977060'),
(10, '136', '9', '35.897150', '31.978850'),
(11, '137', '1', '35.897530', '31.978460'),
(12, '137', '2', '35.897150', '31.978850'),
(13, '137', '3', '35.896260', '31.979700'),
(14, '137', '4', '35.895760', '31.980180'),
(15, '137', '5', '35.895600', '31.980360'),
(16, '137', '6', '35.895560', '31.980450'),
(17, '137', '7', '35.895530', '31.980510'),
(18, '137', '8', '35.895530', '31.980590'),
(19, '137', '9', '35.895530', '31.980680'),
(20, '137', '10', '35.895600', '31.980790'),
(21, '138', '5', '35.898060', '31.978020'),
(22, '138', '6', '35.898120', '31.977800'),
(23, '138', '2', '35.897150', '31.978850'),
(24, '138', '8', '35.897040', '31.977120'),
(25, '138', '9', '35.896690', '31.976920'),
(26, '138', '10', '35.896820', '31.976750'),
(27, '138', '4', '35.897760', '31.978250'),
(28, '138', '1', '35.897250', '31.978900'),
(29, '138', '3', '35.897460', '31.978530'),
(30, '138', '7', '35.897420', '31.977330'),
(31, '139', '2', '35.897440', '31.978550'),
(32, '139', '6', '35.897440', '31.978550'),
(33, '139', '5', '35.897440', '31.978550'),
(34, '139', '4', '35.897440', '31.978550'),
(35, '139', '3', '35.897440', '31.978550'),
(36, '139', '9', '35.897440', '31.978550'),
(37, '139', '1', '35.897440', '31.978550'),
(38, '139', '10', '35.897440', '31.978550'),
(39, '139', '8', '35.897440', '31.978550'),
(40, '139', '7', '35.897440', '31.978550'),
(41, '140', '4', '35.897440', '31.978550'),
(42, '140', '2', '35.897440', '31.978550'),
(43, '140', '6', '35.897440', '31.978550'),
(44, '140', '5', '35.897440', '31.978550'),
(45, '140', '1', '35.897440', '31.978550'),
(46, '140', '3', '35.897440', '31.978550'),
(47, '140', '7', '35.897440', '31.978550'),
(48, '140', '8', '35.897440', '31.978550'),
(49, '140', '10', '35.897440', '31.978550'),
(50, '140', '9', '35.897440', '31.978550'),
(51, '141', '3', '35.898060', '31.978020'),
(52, '141', '6', '35.897070', '31.977130'),
(53, '141', '4', '35.898120', '31.977800'),
(54, '141', '1', '35.897400', '31.978590'),
(55, '141', '5', '35.897420', '31.977330'),
(56, '141', '2', '35.897760', '31.978250'),
(57, '141', '7', '35.896750', '31.976960'),
(58, '141', '9', '35.896630', '31.976990'),
(59, '141', '10', '35.896350', '31.977280'),
(60, '141', '8', '35.896690', '31.976920'),
(61, '142', '5', '35.897390', '31.978600'),
(62, '142', '1', '35.897390', '31.978600'),
(63, '142', '6', '35.897390', '31.978600'),
(64, '142', '3', '35.897390', '31.978600'),
(65, '142', '4', '35.897390', '31.978600'),
(66, '142', '7', '35.897390', '31.978600'),
(67, '142', '2', '35.897390', '31.978600'),
(68, '142', '8', '35.897390', '31.978600'),
(69, '142', '9', '35.897390', '31.978600'),
(70, '142', '10', '35.897390', '31.978600');

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

--
-- Table structure for table `users_private_rates`
--

CREATE TABLE `users_private_rates` (
  `ID` int(20) NOT NULL,
  `Trip_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `User_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `Driver_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `Rate` varchar(250) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `users_private_rates`
--

INSERT INTO `users_private_rates` (`ID`, `Trip_ID`, `User_ID`, `Driver_ID`, `Rate`) VALUES
(4, '20', '1', '', '5'),
(5, '21', '1', '', '5'),
(6, '22', '1', '', '5'),
(7, '24', '1', '', '5'),
(8, '25', '1', '', '5'),
(9, '26', '1', '', '5'),
(10, '28', '1', '', '5');

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

--
-- Table structure for table `users_private_trips_cancelation`
--

CREATE TABLE `users_private_trips_cancelation` (
  `ID` int(11) NOT NULL,
  `Trip_ID` int(20) NOT NULL,
  `User_ID` int(20) NOT NULL,
  `Date` varchar(250) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

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

--
-- Table structure for table `users_private_trips_complains`
--

CREATE TABLE `users_private_trips_complains` (
  `ID` int(11) NOT NULL,
  `Trip_ID` int(20) NOT NULL,
  `User_ID` int(20) NOT NULL,
  `Driver_ID` int(20) NOT NULL,
  `Reason` text COLLATE utf8_bin NOT NULL,
  `Complain` text COLLATE utf8_bin NOT NULL,
  `Date` varchar(250) COLLATE utf8_bin NOT NULL,
  `Date_Time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

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

--
-- Table structure for table `users_private_trips_not_confirm_pickup`
--

CREATE TABLE `users_private_trips_not_confirm_pickup` (
  `ID` int(11) NOT NULL,
  `Trip_ID` int(20) NOT NULL,
  `User_ID` int(20) NOT NULL,
  `Date` varchar(250) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

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

--
-- Table structure for table `users_rates`
--

CREATE TABLE `users_rates` (
  `ID` int(20) NOT NULL,
  `Trip_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `User_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `Driver_ID` varchar(250) COLLATE utf8_bin NOT NULL,
  `Rate` varchar(250) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `users_rates`
--

INSERT INTO `users_rates` (`ID`, `Trip_ID`, `User_ID`, `Driver_ID`, `Rate`) VALUES
(4, '136', '1', '1', '5'),
(5, '137', '1', '1', '5'),
(6, '138', '1', '1', '5'),
(7, '139', '1', '1', '5'),
(8, '140', '1', '1', '5'),
(9, '142', '1', '1', '5');

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

--
-- Table structure for table `users_trips_cancelation`
--

CREATE TABLE `users_trips_cancelation` (
  `ID` int(11) NOT NULL,
  `Trip_ID` int(20) NOT NULL,
  `User_ID` int(20) NOT NULL,
  `Date` varchar(250) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

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

--
-- Table structure for table `users_trips_complains`
--

CREATE TABLE `users_trips_complains` (
  `ID` int(11) NOT NULL,
  `Trip_ID` int(20) NOT NULL,
  `User_ID` int(20) NOT NULL,
  `Driver_ID` int(20) NOT NULL,
  `Reason` text COLLATE utf8_bin NOT NULL,
  `Complain` text COLLATE utf8_bin NOT NULL,
  `Date` varchar(250) COLLATE utf8_bin NOT NULL,
  `Date_Time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

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

--
-- Table structure for table `users_trips_not_confirm_pickup`
--

CREATE TABLE `users_trips_not_confirm_pickup` (
  `ID` int(11) NOT NULL,
  `Trip_ID` int(20) NOT NULL,
  `User_ID` int(20) NOT NULL,
  `Date` varchar(250) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `distance_prices`
--
ALTER TABLE `distance_prices`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `drivers_notifications`
--
ALTER TABLE `drivers_notifications`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `drivers_private_rates`
--
ALTER TABLE `drivers_private_rates`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `drivers_rates`
--
ALTER TABLE `drivers_rates`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `staff_drivers_recharges`
--
ALTER TABLE `staff_drivers_recharges`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `trips`
--
ALTER TABLE `trips`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `trips_privates`
--
ALTER TABLE `trips_privates`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `trips_users`
--
ALTER TABLE `trips_users`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `trip_spots`
--
ALTER TABLE `trip_spots`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `users_private_rates`
--
ALTER TABLE `users_private_rates`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `users_rates`
--
ALTER TABLE `users_rates`
  ADD PRIMARY KEY (`ID`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `distance_prices`
--
ALTER TABLE `distance_prices`
  MODIFY `ID` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `drivers_notifications`
--
ALTER TABLE `drivers_notifications`
  MODIFY `ID` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `drivers_private_rates`
--
ALTER TABLE `drivers_private_rates`
  MODIFY `ID` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `drivers_rates`
--
ALTER TABLE `drivers_rates`
  MODIFY `ID` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `notifications`
--
ALTER TABLE `notifications`
  MODIFY `ID` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `staff_drivers_recharges`
--
ALTER TABLE `staff_drivers_recharges`
  MODIFY `ID` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `trips`
--
ALTER TABLE `trips`
  MODIFY `ID` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=143;

--
-- AUTO_INCREMENT for table `trips_privates`
--
ALTER TABLE `trips_privates`
  MODIFY `ID` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `trips_users`
--
ALTER TABLE `trips_users`
  MODIFY `ID` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;

--
-- AUTO_INCREMENT for table `trip_spots`
--
ALTER TABLE `trip_spots`
  MODIFY `ID` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=71;

--
-- AUTO_INCREMENT for table `users_private_rates`
--
ALTER TABLE `users_private_rates`
  MODIFY `ID` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `users_rates`
--
ALTER TABLE `users_rates`
  MODIFY `ID` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
COMMIT;

