-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 05, 2021 at 01:16 PM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 8.0.8

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

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

--
-- Table structure for table `adverts`
--

CREATE TABLE `adverts` (
  `id` int(11) NOT NULL,
  `picture` varchar(250) DEFAULT NULL,
  `country` varchar(250) NOT NULL DEFAULT 'UG',
  `description` text DEFAULT NULL,
  `link` varchar(250) DEFAULT NULL,
  `status` enum('active','removed','deleted','canceled') NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `start_date` date DEFAULT current_timestamp(),
  `end_date` date DEFAULT NULL,
  `title` varchar(250) DEFAULT NULL,
  `amount` int(20) DEFAULT NULL,
  `name` varchar(250) DEFAULT NULL,
  `contact` varchar(250) DEFAULT NULL,
  `show_name` int(11) NOT NULL DEFAULT 0,
  `show_contact` int(11) NOT NULL DEFAULT 0,
  `transaction_id` varchar(250) DEFAULT NULL,
  `days` int(11) DEFAULT NULL,
  `views` int(11) NOT NULL DEFAULT 0,
  `actions` int(11) NOT NULL DEFAULT 0,
  `priority` int(11) NOT NULL DEFAULT 1,
  `remarks` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `adverts`
--

INSERT INTO `adverts` (`id`, `picture`, `country`, `description`, `link`, `status`, `created_at`, `start_date`, `end_date`, `title`, `amount`, `name`, `contact`, `show_name`, `show_contact`, `transaction_id`, `days`, `views`, `actions`, `priority`, `remarks`) VALUES
(1, 'advert_20210903121858.jpg', 'UG', 'i am describing ', 'https://', 'active', '2021-09-02 06:47:27', '2021-09-01', '2021-09-02', 'Hens for sell', 2000, 'Isaac', '0704873305', 1, 1, 'qazqaz', 1, 1, 0, 1, 'No thing'),
(2, '0', 'UG', 'this is a description of a blank page', 'http://okay.com', 'active', '2021-09-03 09:07:35', '2021-09-03', '2021-09-04', 'Blank Page', 10000, 'Paul Balando', '+256704873305', 1, 1, NULL, 1, 0, 0, 1, 'No Comment'),
(11, 'advert_20210903112647.png', 'UG', 'this is a description of a blank page', 'http://okay.com', 'active', '2021-09-03 09:26:47', '2021-09-02', '2021-09-07', 'Blank Page', 10000, 'Paul Balando', '+256704873305', 1, 1, NULL, 1, 0, 0, 2, 'No Comment');

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

--
-- Table structure for table `adverts_plans`
--

CREATE TABLE `adverts_plans` (
  `id` int(11) NOT NULL,
  `day` int(5) NOT NULL,
  `amount` int(20) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `adverts_plans`
--

INSERT INTO `adverts_plans` (`id`, `day`, `amount`, `created_at`) VALUES
(1, 2, 1000, '2021-09-02 06:09:35'),
(2, 5, 3500, '2021-09-02 06:09:35'),
(4, 15, 15000, '2021-09-02 06:27:20');

--
-- Indexes for dumped tables
--

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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