Kahwabar S

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 7

-- phpMyAdmin SQL Dump

-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: May 28, 2023 at 01:32 PM
-- Server version: 8.0.30
-- PHP Version: 8.1.10

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

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

--
-- Table structure for table `address`
--

CREATE TABLE `address` (


`Id` int NOT NULL,
`UserId` int NOT NULL,
`OrderId` int NOT NULL,
`City` text NOT NULL,
`Street` text NOT NULL,
`Details` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `address`
--

INSERT INTO `address` (`Id`, `UserId`, `OrderId`, `City`, `Street`, `Details`)


VALUES
(1, 0, 0, 'a', 'a', 'a'),
(3, 1, 18, 'a', 'a', 'a'),
(4, 1, 19, 'a', 'a', 'a'),
(5, 1, 21, 'w', 'w', 'w'),
(6, 1, 22, 'test1', 'test1', 'test1'),
(7, 1, 23, 'test1', 'test1', 'test1'),
(8, 1, 24, '123', '123', '123'),
(9, 1, 25, '123', '123', '123'),
(10, 1, 26, '123', '123', '123'),
(11, 1, 27, 'a', 'a', 'a'),
(12, 1, 28, 'a', 'a', 'a'),
(13, 1, 29, 'a', 'a', 'a'),
(14, 1, 30, 'tripoli,qubbe', 'ibin sina', 'aaaa'),
(15, 3, 31, '123', 'wad', 'wda');
-- --------------------------------------------------------

--
-- Table structure for table `category`
--

CREATE TABLE `category` (


`Id` int NOT NULL,
`Name` text NOT NULL,
`Description` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `category`
--

INSERT INTO `category` (`Id`, `Name`, `Description`) VALUES


(1, 'cups', 'idk'),
(2, 'mugs', 'idk 2'),
(3, 'batata', 'hvfhhgh');

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

--
-- Table structure for table `order`
--

CREATE TABLE `order` (


`Id` int NOT NULL,
`UserId` int NOT NULL,
`Date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`TotalPrice` int NOT NULL,
`OrderDetails` text NOT NULL,
`Status` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `order`
--

INSERT INTO `order` (`Id`, `UserId`, `Date`, `TotalPrice`, `OrderDetails`,


`Status`) VALUES
(19, 1, '2023-05-27 23:33:55', 2391, 'a', 1),
(20, 1, '2023-05-27 23:33:55', 23912, 'a2', 1),
(21, 1, '2023-05-28 12:40:14', 615, 'w', 1),
(22, 1, '2023-05-28 12:41:37', 615, 'test1', 1),
(23, 1, '2023-05-28 12:42:21', 615, 'test1', 1),
(24, 1, '2023-05-28 12:42:45', 1230, '231', 1),
(25, 1, '2023-05-28 12:43:05', 1230, '231', 1),
(26, 1, '2023-05-28 12:43:38', 1230, '231', 1),
(27, 1, '2023-05-28 13:00:53', 1230, 'a', 1),
(28, 1, '2023-05-28 13:01:09', 1230, 'a', 1),
(29, 1, '2023-05-28 13:01:51', 1230, 'a', 1),
(30, 1, '2023-05-28 15:19:32', 1230, 'dawda', 1),
(31, 3, '2023-05-28 16:05:58', 1063, 'dw', 1);

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

--
-- Table structure for table `orderproducts`
--

CREATE TABLE `orderproducts` (


`Id` int NOT NULL,
`OrderId` int NOT NULL,
`ProductId` int NOT NULL,
`Count` int NOT NULL,
`Date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `orderproducts`
--

INSERT INTO `orderproducts` (`Id`, `OrderId`, `ProductId`, `Count`, `Date`) VALUES


(1, 0, 0, 2, '2023-05-28 12:41:02'),
(5, 1, 11, 2, '2023-05-28 12:41:02'),
(6, 1, 12, 2, '2023-05-28 12:41:02'),
(7, 1, 29, 2, '2023-05-28 12:41:02'),
(8, 1, 30, 7, '2023-05-28 12:41:02'),
(9, 1, 11, 2, '2023-05-28 12:41:02'),
(10, 1, 12, 2, '2023-05-28 12:41:02'),
(11, 1, 29, 2, '2023-05-28 12:41:02'),
(12, 1, 30, 7, '2023-05-28 12:41:02'),
(13, 1, 11, 2, '2023-05-28 12:41:02'),
(14, 1, 12, 2, '2023-05-28 12:41:02'),
(15, 1, 29, 2, '2023-05-28 12:41:02'),
(16, 1, 30, 7, '2023-05-28 12:41:02'),
(17, 1, 11, 2, '2023-05-28 12:41:02'),
(18, 1, 12, 2, '2023-05-28 12:41:02'),
(19, 1, 29, 2, '2023-05-28 12:41:02'),
(20, 1, 30, 7, '2023-05-28 12:41:02'),
(21, 1, 11, 2, '2023-05-28 12:41:02'),
(22, 1, 12, 2, '2023-05-28 12:41:02'),
(23, 1, 29, 2, '2023-05-28 12:41:02'),
(24, 1, 30, 7, '2023-05-28 12:41:02'),
(25, 1, 29, 3, '2023-05-28 12:41:02'),
(26, 1, 30, 2, '2023-05-28 12:41:02'),
(27, 1, 29, 3, '2023-05-28 12:41:37'),
(28, 1, 30, 2, '2023-05-28 12:41:37'),
(29, 1, 29, 3, '2023-05-28 12:42:21'),
(30, 1, 30, 2, '2023-05-28 12:42:21'),
(31, 1, 29, 4, '2023-05-28 12:42:45'),
(32, 1, 30, 6, '2023-05-28 12:42:45'),
(33, 1, 29, 4, '2023-05-28 12:43:05'),
(34, 1, 30, 6, '2023-05-28 12:43:05'),
(35, 26, 29, 4, '2023-05-28 12:43:38'),
(36, 26, 30, 6, '2023-05-28 12:43:38'),
(37, 27, 29, 4, '2023-05-28 13:00:53'),
(38, 27, 30, 6, '2023-05-28 13:00:53'),
(39, 28, 29, 4, '2023-05-28 13:01:09'),
(40, 28, 30, 6, '2023-05-28 13:01:09'),
(41, 29, 29, 4, '2023-05-28 13:01:51'),
(42, 29, 30, 6, '2023-05-28 13:01:51'),
(43, 30, 31, 10, '2023-05-28 15:19:32'),
(44, 31, 11, 3, '2023-05-28 16:05:58'),
(45, 31, 32, 1, '2023-05-28 16:05:58');
-- --------------------------------------------------------

--
-- Table structure for table `product`
--

CREATE TABLE `product` (


`Id` int NOT NULL,
`Name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`CategoryId` int NOT NULL,
`Description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`ShortDescription` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT
NULL,
`Price` decimal(10,0) NOT NULL,
`CreatedOn` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`Active` int NOT NULL DEFAULT '1',
`Image` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `product`
--

INSERT INTO `product` (`Id`, `Name`, `CategoryId`, `Description`,


`ShortDescription`, `Price`, `CreatedOn`, `Active`, `Image`) VALUES
(1, 'coffee 1', 1, 'Description 1', 'Short Description 1', 9, '2023-05-21
12:19:51', 0, ''),
(2, 'coffee 2', 2, 'coffee 2', 'coffee 2', 15, '2023-05-21 12:19:51', 0, ''),
(10, 'test123', 1, '123312123', '123', 21123, '2023-05-27 19:52:27', 0,
'WhatsAppaaaa-347.jpeg'),
(11, '123', 1, '123', '123', 321, '2023-05-27 20:05:54', 1, 'WhatsAppaaaa-
154.jpeg'),
(12, '123', 1, '123', '123', 321, '2023-05-27 20:21:54', 1, 'WhatsAppaaaa-
114.jpeg'),
(13, '123', 1, '123', '123', 321, '2023-05-27 20:22:24', 0, 'WhatsAppaaaa-
144.jpeg'),
(14, '123', 1, '123', '123', 321, '2023-05-27 20:24:07', 0, 'WhatsAppaaaa-
247.jpeg'),
(15, '123', 1, '123', '123', 321, '2023-05-27 20:24:10', 0, 'WhatsAppaaaa-
250.jpeg'),
(16, '123', 1, '123', '123', 321, '2023-05-27 20:24:43', 0, 'WhatsAppaaaa-
283.jpeg'),
(17, '123', 1, '123', '123', 321, '2023-05-27 20:25:40', 0, 'WhatsAppaaaa-
340.jpeg'),
(18, '123', 1, '123', '123', 321, '2023-05-27 20:25:45', 0, 'WhatsAppaaaa-
345.jpeg'),
(19, '123', 1, '123', '123', 321, '2023-05-27 20:25:55', 0, 'WhatsAppaaaa-
355.jpeg'),
(20, '123', 1, '123', '123', 321, '2023-05-27 20:25:59', 0, 'WhatsAppaaaa-
359.jpeg'),
(21, '123', 1, '123', '123', 321, '2023-05-27 20:26:25', 0, 'WhatsAppaaaa-
385.jpeg'),
(22, '123', 1, '123', '123', 321, '2023-05-27 20:27:00', 0, 'WhatsAppaaaa-
420.jpeg'),
(23, '123', 1, '123', '123', 321, '2023-05-27 20:27:04', 0, 'WhatsAppaaaa-
424.jpeg'),
(24, '123', 1, '123', '123', 321, '2023-05-27 20:29:27', 0, 'WhatsAppaaaa-
567.jpeg'),
(25, '123', 1, '123', '123', 321, '2023-05-27 20:29:32', 0, 'WhatsAppaaaa-
572.jpeg'),
(26, '123', 1, '123', '123', 321, '2023-05-27 20:30:11', 0, 'WhatsAppaaaa-
611.jpeg'),
(27, '123', 1, '123', '123', 321, '2023-05-27 20:30:13', 0, 'WhatsAppaaaa-
613.jpeg'),
(28, '123', 1, '123', '123', 321, '2023-05-27 20:30:15', 0, 'WhatsAppaaaa-
615.jpeg'),
(29, 'test', 1, '123', '123', 123, '2023-05-27 20:43:52', 1, 'WhatsAppaaaa-
432.jpeg'),
(30, 'test', 1, '123', '123', 123, '2023-05-27 20:44:46', 1, 'WhatsAppaaaa-
486.jpeg'),
(31, 'test', 2, '123', '123', 123, '2023-05-28 08:45:47', 1, '9disciplines-
747.png'),
(32, 'ahmad tissieh', 2, 'sho bi3arfni', 'zalami', 100, '2023-05-28 15:22:07', 1,
'WhatsAppaaaa-527.jpeg'),
(33, 'vghgfg', 3, 'fjffjh', 'vjvgygyy', 1599, '2023-05-28 15:32:22', 1,
'WhatsAppaaaa-142.jpeg');

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

--
-- Table structure for table `user`
--

CREATE TABLE `user` (


`Id` int NOT NULL,
`FirstName` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`LastName` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`Email` text NOT NULL,
`Password` text NOT NULL,
`PhoneNumber` int NOT NULL,
`Username` text NOT NULL,
`Admin` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `user`
--

INSERT INTO `user` (`Id`, `FirstName`, `LastName`, `Email`, `Password`,


`PhoneNumber`, `Username`, `Admin`) VALUES
(1, 'Ahmad', 'Tissieh', 'test@gmail.com', '1234', 1234, 'Atiss', 1),
(2, 'stealth', 'kill', 'abd.silo.d@hotmail.com', '123', 123, 'aaa', 1),
(3, 'brahim', 'chami', 'ibrahimchami@hotmail.com', '159', 961, 'ibrahim', 1);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `address`
--
ALTER TABLE `address`
ADD PRIMARY KEY (`Id`);

--
-- Indexes for table `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`Id`);

--
-- Indexes for table `order`
--
ALTER TABLE `order`
ADD PRIMARY KEY (`Id`);

--
-- Indexes for table `orderproducts`
--
ALTER TABLE `orderproducts`
ADD PRIMARY KEY (`Id`);

--
-- Indexes for table `product`
--
ALTER TABLE `product`
ADD PRIMARY KEY (`Id`),
ADD KEY `CategoryId` (`CategoryId`);

--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`Id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `address`
--
ALTER TABLE `address`
MODIFY `Id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
MODIFY `Id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `order`
--
ALTER TABLE `order`
MODIFY `Id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;

--
-- AUTO_INCREMENT for table `orderproducts`
--
ALTER TABLE `orderproducts`
MODIFY `Id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;

--
-- AUTO_INCREMENT for table `product`
--
ALTER TABLE `product`
MODIFY `Id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;

--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `Id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
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 */;

You might also like