-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Feb 23, 2024 at 08:56 AM
-- Server version: 10.6.17-MariaDB
-- PHP Version: 8.1.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: `aiderste_hexandeal`
--

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

--
-- Table structure for table `deal`
--

CREATE TABLE `deal` (
  `dealid` varchar(14) DEFAULT NULL,
  `description` varchar(150) DEFAULT NULL,
  `cvalue` double DEFAULT NULL,
  `category` varchar(35) DEFAULT NULL,
  `title` varchar(75) DEFAULT NULL,
  `cphone` varchar(13) DEFAULT NULL,
  `cperson` varchar(65) DEFAULT NULL,
  `locationaddress` varchar(155) DEFAULT NULL,
  `advertiserid` varchar(14) DEFAULT NULL,
  `profileimage` varchar(155) DEFAULT NULL,
  `currency` varchar(8) DEFAULT NULL,
  `status` varchar(15) DEFAULT NULL,
  `posteddate` datetime NOT NULL DEFAULT current_timestamp(),
  `addeadline` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `dealimage`
--

CREATE TABLE `dealimage` (
  `directory` varchar(75) DEFAULT NULL,
  `title` varchar(65) DEFAULT NULL,
  `dealid` varchar(14) DEFAULT NULL,
  `posteddate` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `need`
--

CREATE TABLE `need` (
  `needid` varchar(14) NOT NULL,
  `adverstiserid` varchar(14) NOT NULL,
  `title` varchar(75) NOT NULL,
  `cperson` varchar(65) NOT NULL,
  `cphone` varchar(13) NOT NULL,
  `region` varchar(55) NOT NULL,
  `district` varchar(55) NOT NULL,
  `street` varchar(155) NOT NULL,
  `category` varchar(45) NOT NULL,
  `description` varchar(250) NOT NULL,
  `posteddate` datetime NOT NULL DEFAULT current_timestamp(),
  `deadline` date NOT NULL,
  `status` varchar(15) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `needoffer`
--

CREATE TABLE `needoffer` (
  `offerid` varchar(14) NOT NULL,
  `needid` varchar(14) NOT NULL,
  `senderid` varchar(14) NOT NULL,
  `receiverid` varchar(14) NOT NULL,
  `description` varchar(250) NOT NULL,
  `directory` varchar(85) DEFAULT NULL,
  `poston` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
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 */;
