-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `pizza`
--

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

--
-- Table structure for table `add_to_carts`
--

CREATE TABLE `add_to_carts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `quantity` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `add_to_carts`
--

INSERT INTO `add_to_carts` (`id`, `user_id`, `product_id`, `quantity`, `created_at`, `updated_at`) VALUES
(1, 1, 1, '10', '2021-09-14 12:00:40', '2021-09-14 12:09:22'),
(2, 2, 3, '20', '2021-09-14 12:06:46', '2021-09-14 12:06:46'),
(4, 1, 6, '20', '2021-09-15 04:47:24', '2021-09-15 04:47:24');

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

--
-- Table structure for table `categories`
--

CREATE TABLE `categories` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
  `desc` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `categories`
--

INSERT INTO `categories` (`id`, `name`, `desc`, `created_at`, `updated_at`) VALUES
(1, 'Burger', NULL, '2021-09-14 09:55:51', '2021-09-14 09:55:51'),
(2, 'Pizza', NULL, '2021-09-14 09:56:58', '2021-09-14 09:56:58'),
(4, 'Shuwarma', NULL, '2021-09-14 10:00:07', '2021-09-14 10:02:58');

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

--
-- Table structure for table `cold_drinks`
--

CREATE TABLE `cold_drinks` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cold_drinks`
--

INSERT INTO `cold_drinks` (`id`, `name`, `image`, `created_at`, `updated_at`) VALUES
(1, 'Coca Cola', 'coldDrinks-images/drink21631619115.jpg', '2021-09-14 11:31:55', '2021-09-14 11:31:55'),
(2, 'Pepsi', 'coldDrinks-images/drink11631619134.jpeg', '2021-09-14 11:32:14', '2021-09-14 11:32:14'),
(3, 'Sprite', 'coldDrinks-images/drink31631619147.jpg', '2021-09-14 11:32:27', '2021-09-14 11:32:27');

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

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2021_09_14_072521_create_users_table', 1),
(2, '2021_09_14_080744_create_categories_table', 2),
(3, '2021_09_14_100519_create_products_table', 3),
(4, '2021_09_14_111611_create_cold_drinks_table', 4),
(6, '2021_09_14_113514_create_add_to_carts_table', 5);

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

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `category_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `price` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_code` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL,
  `size1` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
  `size2` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
  `stock_status` tinyint(1) DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `products`
--

INSERT INTO `products` (`id`, `category_id`, `name`, `image`, `price`, `product_code`, `size1`, `size2`, `stock_status`, `created_at`, `updated_at`) VALUES
(1, 2, 'Fajjita', 'products-images/pizza1631617987.jpeg', '12', '008651', '13', '9', 1, '2021-09-14 10:37:41', '2021-09-14 11:13:07'),
(3, 2, 'Tikka', 'products-images/pizza41631618047.jpeg', '12', '008651', '13', '9', 1, '2021-09-14 11:04:20', '2021-09-14 11:14:07'),
(6, 2, 'Special', 'products-images/pizza1631618095.jpeg', '12', '004873', '13', '9', 1, '2021-09-14 11:14:55', '2021-09-14 11:14:55');

--
-- Indexes for dumped tables
--

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

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

--
-- Indexes for table `cold_drinks`
--
ALTER TABLE `cold_drinks`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `cold_drinks_name_unique` (`name`);

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `add_to_carts`
--
ALTER TABLE `add_to_carts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `cold_drinks`
--
ALTER TABLE `cold_drinks`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
COMMIT;

