-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 11, 2025 at 10:33 AM
-- Server version: 10.11.10-MariaDB
-- PHP Version: 8.3.12

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

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

--
-- Table structure for table `admin`
--

CREATE TABLE `admin` (
  `id` int(11) NOT NULL,
  `username` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `admin`
--

INSERT INTO `admin` (`id`, `username`, `password`) VALUES
(1, 'admin', '123456');

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

--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `id` int(11) NOT NULL,
  `sitename` varchar(255) NOT NULL,
  `site_title` varchar(255) NOT NULL,
  `site_url` varchar(255) NOT NULL,
  `mailhost` varchar(255) NOT NULL,
  `webmail` varchar(255) NOT NULL,
  `mailpassword` varchar(255) NOT NULL,
  `mailport` varchar(255) NOT NULL,
  `mailsmtpsecure` varchar(255) NOT NULL,
  `track_prefix` varchar(255) NOT NULL,
  `track_num` varchar(255) NOT NULL,
  `invoice_terms` text NOT NULL,
  `allow_print` enum('Yes','No','','') NOT NULL,
  `show_map` enum('Yes','No','','') NOT NULL,
  `email_name` varchar(255) NOT NULL,
  `mail_track_update` enum('Yes','No','','') NOT NULL,
  `mail_track_save` enum('Yes','No','','') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` (`id`, `sitename`, `site_title`, `site_url`, `mailhost`, `webmail`, `mailpassword`, `mailport`, `mailsmtpsecure`, `track_prefix`, `track_num`, `invoice_terms`, `allow_print`, `show_map`, `email_name`, `mail_track_update`, `mail_track_save`) VALUES
(1, 'Swift Link', 'Swift Link', 'https://swiftlink.com', 'webtechs.com.ng', 'support@webtechs.com.ng', '@@mailpass##', '465', 'ssl', 'SL', '8', 'For your convenience we have Swift Link several payment reliable, fast, secure.', 'Yes', 'Yes', 'swiftlink', 'Yes', 'Yes');

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

--
-- Table structure for table `tracking`
--

CREATE TABLE `tracking` (
  `id` int(11) NOT NULL,
  `tracking_number` varchar(255) NOT NULL,
  `sender_name` varchar(255) NOT NULL,
  `sender_contact` varchar(255) NOT NULL,
  `sender_email` varchar(255) NOT NULL,
  `sender_address` varchar(255) NOT NULL,
  `status` varchar(255) NOT NULL,
  `dispatch_location` varchar(255) NOT NULL,
  `receiver_email` varchar(255) NOT NULL,
  `receiver_name` varchar(255) NOT NULL,
  `receiver_contact` varchar(255) NOT NULL,
  `receiver_address` varchar(255) NOT NULL,
  `dispatch_date` varchar(255) NOT NULL,
  `delivery_date` varchar(255) NOT NULL,
  `pdesc` varchar(255) NOT NULL,
  `destination` varchar(255) NOT NULL,
  `current_location` varchar(255) DEFAULT NULL,
  `carrier` varchar(255) NOT NULL,
  `carrier_ref` varchar(255) NOT NULL,
  `ship_mode` varchar(255) NOT NULL,
  `weight` varchar(255) NOT NULL,
  `quantity` varchar(255) NOT NULL,
  `payment_mode` varchar(255) NOT NULL,
  `image` varchar(255) NOT NULL,
  `travel_progress` varchar(255) NOT NULL,
  `delivery_time` varchar(255) NOT NULL,
  `date` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tracking`
--

INSERT INTO `tracking` (`id`, `tracking_number`, `sender_name`, `sender_contact`, `sender_email`, `sender_address`, `status`, `dispatch_location`, `receiver_email`, `receiver_name`, `receiver_contact`, `receiver_address`, `dispatch_date`, `delivery_date`, `pdesc`, `destination`, `current_location`, `carrier`, `carrier_ref`, `ship_mode`, `weight`, `quantity`, `payment_mode`, `image`, `travel_progress`, `delivery_time`, `date`) VALUES
(18, '1234567890', 'Michael brown', '+1 (225) 1234-2459', 'michael@gmail.com', 'Main Avenue, 987', 'Active', 'Avenue', 'funds12095@gmail.com', 'mike smith', '+1 (305) 1234-5678', '192 Houston Texas', '2024-12-10', '2024-12-18', 'A box', 'Houston', 'New York', 'DHL', '097', 'Air', '12', '12', 'cash', 'SL-12-20149873.png', '', '12:03', '2024-12-16 16:30:06'),
(19, 'SL-01-80194625', 'mike smith', '2342342423', 'michael@gmail.com', 'Main Avenue, 987', 'Pending', 'dvdfs', 'funds12095@gmail.com', 'Michael Johnson', '+1 (305) 1234-5678', '192 Houston Texas', '2025-01-15', '2025-01-23', 'A box', 'Houston', 'USA', 'DHL', '3342', 'Air', '12', '12', 'cash', 'SL-01-80194625.png', '', '13:12', '2025-01-03 23:05:54');

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

--
-- Table structure for table `track_update`
--

CREATE TABLE `track_update` (
  `id` int(11) NOT NULL,
  `track_num` varchar(255) NOT NULL,
  `status` varchar(255) NOT NULL,
  `date` varchar(255) NOT NULL,
  `time` varchar(255) NOT NULL,
  `note` varchar(255) NOT NULL,
  `current_location` varchar(255) NOT NULL,
  `updated_at` datetime NOT NULL DEFAULT current_timestamp(),
  `shiping_cost` varchar(255) NOT NULL DEFAULT '0',
  `clearance_cost` varchar(255) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `track_update`
--

INSERT INTO `track_update` (`id`, `track_num`, `status`, `date`, `time`, `note`, `current_location`, `updated_at`, `shiping_cost`, `clearance_cost`) VALUES
(20, 'PR-06-342719', 'Pending', '2024-06-20', '21:26', 'sdsf', '12312', '2024-06-06 21:22:34', '12', '12'),
(21, 'PR-06-342719', 'Active', '2024-06-15', '22:19', 'on the way to you', 'london uk', '2024-06-06 22:16:37', '10', '20'),
(22, 'PR-06-342719', 'On hold', '2024-06-13', '22:26', 'You package on currently on hold by the FBI', 'london uk', '2024-06-06 22:23:59', '20', '5'),
(23, 'PR-06-342719', 'Picked Up', '2024-06-19', '22:30', 'you package by the carrier', 'Italy', '2024-06-06 22:32:03', '10', '25'),
(24, 'PR-06-426193', 'Active', '2024-06-29', '13:34', 'on the way', 'london uk', '2024-06-06 22:34:18', '12', '20'),
(25, 'PR-06-426193', 'Picked Up', '2024-06-21', '22:43', 'pick up by DHL', 'Italy', '2024-06-06 22:39:37', '30', '40'),
(26, 'PR-06-426193', 'Arrived', '2024-06-13', '12:44', 'arrived country', 'Nigeria', '2024-06-06 22:44:27', '4', '3'),
(27, 'PR-06-426193', 'Picked Up', '2024-06-19', '07:23', 'pick up  by DHL', 'london uk', '2024-06-07 07:20:41', '12', '12'),
(28, 'PP-06-839657', 'Inactive', '2024-06-10', '07:53', 'on the way', 'london uk', '2024-06-07 07:49:42', '20', '40'),
(29, 'PP-06-839657', 'Arrived', '2024-06-20', '07:53', 'on the way', 'london uk', '2024-06-07 07:53:49', '20', '30'),
(30, 'PP-06-823150', 'Active', '2024-06-07', '08:35', 'product is active now ready to be shipped', 'uk', '2024-06-07 08:33:43', '12', '2'),
(31, 'PP-06-823150', 'Pending', '2024-06-20', '10:26', 'on the way', 'london uk', '2024-06-10 10:23:35', '10', '5'),
(32, 'PP-06-59327468', 'On hold', '2024-06-20', '16:26', 'your package is on hold', 'london uk', '2024-06-13 16:24:15', '10', '12'),
(33, 'PP-06-59327468', 'Active', '2024-06-14', '16:36', 'you package is active now', 'Nigeria', '2024-06-13 16:34:31', '30', '12'),
(34, '1234567890', 'Active', '2024-07-30', '02:04', 'Being held by custom', 'paris', '2024-06-24 07:15:28', '200', '20'),
(35, '12345690', 'Pending', '2024-09-04', '12:02', 'dssdg', 'uk', '2024-09-02 10:51:57', '32', 'gdsg'),
(36, '12345690', 'Active', '2024-09-05', '03:20', '', 'France', '2024-09-05 03:20:55', '', ''),
(37, 'SL-12-20149873', 'Active', '2024-12-17', '12:31', 'is active now', 'Italy', '2024-12-16 16:41:01', '2', '3'),
(38, 'SL-12-20149873', 'Inactive', '2024-12-19', '13:12', 'you package is inactive', 'New York', '2024-12-18 13:30:13', '12', '4'),
(39, 'SL-12-20149873', 'On hold', '2024-12-12', '13:02', 'you package is on hold', 'Houston', '2024-12-18 13:41:27', '1', '3'),
(40, 'SL-01-80194625', 'Pending', '2025-01-07', '', 'dsfsdfsd', 'USA', '2025-01-03 23:38:50', '2', ''),
(41, '1234567890', 'Active', '2025-01-16', '12:03', 'you package active now', 'New York', '2025-01-11 10:29:29', '12', '');

--
-- Indexes for dumped tables
--

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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