-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 26, 2022 at 02:07 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 7.4.27

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

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

--
-- Table structure for table `tracking_admin`
--

CREATE TABLE `tracking_admin` (
  `id` int(11) NOT NULL,
  `email` varchar(255) NOT NULL,
  `password` varchar(300) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tracking_admin`
--

INSERT INTO `tracking_admin` (`id`, `email`, `password`) VALUES
(1, 'admin', '12345');

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

--
-- Table structure for table `tracking_details`
--

CREATE TABLE `tracking_details` (
  `id` int(11) NOT NULL,
  `tracking_number` varchar(255) NOT NULL,
  `origin` varchar(255) NOT NULL,
  `destination` varchar(255) NOT NULL,
  `weight` varchar(50) NOT NULL,
  `cubic` varchar(50) NOT NULL,
  `sender_name` varchar(255) NOT NULL,
  `receiver_name` varchar(255) NOT NULL,
  `receiver_number` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `parcel_name` varchar(255) NOT NULL,
  `status` varchar(255) NOT NULL,
  `size` varchar(255) NOT NULL,
  `message` text NOT NULL,
  `delivery_required_by` varchar(255) NOT NULL,
  `estimated_delivery` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `tracking_details`
--

INSERT INTO `tracking_details` (`id`, `tracking_number`, `origin`, `destination`, `weight`, `cubic`, `sender_name`, `receiver_name`, `receiver_number`, `email`, `parcel_name`, `status`, `size`, `message`, `delivery_required_by`, `estimated_delivery`) VALUES
(3, 'WIYD8XtY0O', 'lagos', 'china', '12', '15', 'John', 'James', '1234567890', 'john@mail.com', 'white boat', 'Pending', '30', 'new', '2021-12-24 00:24', '2021-12-26 01:24');

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

--
-- Table structure for table `tracking_update`
--

CREATE TABLE `tracking_update` (
  `id` int(11) NOT NULL,
  `tracking_number` varchar(255) NOT NULL,
  `message` varchar(1000) NOT NULL,
  `status` varchar(50) NOT NULL,
  `created_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `tracking_update`
--

INSERT INTO `tracking_update` (`id`, `tracking_number`, `message`, `status`, `created_at`) VALUES
(2, 'WIYD8XtY0O', 'new', 'Pending', '2021-12-27 02:24:00'),
(3, 'WIYD8XtY0O', 'Picked ', 'Picked up', '2021-12-24 01:56:00'),
(4, 'WIYD8XtY0O', 're', 'Returned', '2021-12-31 12:58:00'),
(5, 'WIYD8XtY0O', 'Cancelled', 'Cancelled', '2021-12-26 10:36:00');

--
-- Indexes for dumped tables
--

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `tracking_admin`
--
ALTER TABLE `tracking_admin`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `tracking_details`
--
ALTER TABLE `tracking_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `tracking_update`
--
ALTER TABLE `tracking_update`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
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 */;
