text: -- phpMyAdmin SQL Dump
  -- version 4.8.3
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1:3306
  -- Generation Time: Nov 07, 2019 at 04:50 PM
  -- Server version: 5.7.23
  -- PHP Version: 7.2.10
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  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: `restaurant_alfredo`
  --
  CREATE DATABASE IF NOT EXISTS `restaurant_alfredo` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
  USE `restaurant_alfredo`;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `admins`
  --
  
  DROP TABLE IF EXISTS `admins`;
  CREATE TABLE IF NOT EXISTS `admins` (
    `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
    `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `admins_email_unique` (`email`)
  ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `admins`
  --
  
  INSERT INTO `admins` (`id`, `name`, `email`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
  (2, 'Jahaziel Nones', 'jake@gmail.com', '$2y$10$kXVNmi67Jb5f8PPU2Fpm/.YqEd9yNlFw5uJYTr02TqKOEFePPSGeC', NULL, '2019-09-21 05:20:31', '2019-09-21 05:20:31'),
  (6, 'JahazielNones', 'nones@gmail.com', '$2y$10$DfoObq4gDFfSxmVtMEVwUeHgAfBrcv/ppzgVsKxrjIOwhyhzzc0KG', NULL, '2019-09-29 08:20:20', '2019-09-29 08:20:20');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `categories`
  --
  
  DROP TABLE IF EXISTS `categories`;
  CREATE TABLE IF NOT EXISTS `categories` (
    `category_id` int(11) NOT NULL AUTO_INCREMENT,
    `categoryName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` enum('ACTIVE','INACTIVE') COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    `price` decimal(7,2) DEFAULT NULL,
    PRIMARY KEY (`category_id`),
    UNIQUE KEY `categories_category_id_unique` (`category_id`)
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `failed_jobs`
  --
  
  DROP TABLE IF EXISTS `failed_jobs`;
  CREATE TABLE IF NOT EXISTS `failed_jobs` (
    `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
    `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    PRIMARY KEY (`id`)
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `migrations`
  --
  
  DROP TABLE IF EXISTS `migrations`;
  CREATE TABLE IF NOT EXISTS `migrations` (
    `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
    `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `batch` int(11) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=MyISAM AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `migrations`
  --
  
  INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
  (1, '2014_10_12_000000_create_users_table', 1),
  (2, '2014_10_12_100000_create_password_resets_table', 1),
  (3, '2019_08_19_000000_create_failed_jobs_table', 1),
  (4, '2019_09_21_082635_create_admins_table', 1),
  (23, '2019_10_05_023727_create_products_table', 15),
  (15, '2019_10_05_050705_create_categories_table', 8),
  (7, '2019_10_05_051357_create_orders_table', 2),
  (9, '2019_10_17_075339_create_tables_table', 3),
  (28, '2019_10_17_135531_create_transactions_table', 17),
  (25, '2019_10_17_135708_create_product_transaction_table', 16),
  (16, '2019_10_18_062340_add_price_column_categories', 9),
  (17, '2019_10_18_062940_create_product_categories_table', 10),
  (18, '2019_10_18_063624_delete_category_column_in_products', 11),
  (20, '2019_10_23_170223_add_table_id_in_transactions', 13);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `password_resets`
  --
  
  DROP TABLE IF EXISTS `password_resets`;
  CREATE TABLE IF NOT EXISTS `password_resets` (
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    KEY `password_resets_email_index` (`email`)
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `products`
  --
  
  DROP TABLE IF EXISTS `products`;
  CREATE TABLE IF NOT EXISTS `products` (
    `product_id` int(11) NOT NULL AUTO_INCREMENT,
    `image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `size` enum('xs','small','medium','large','regular','xl','none') COLLATE utf8mb4_unicode_ci NOT NULL,
    `price` decimal(7,2) NOT NULL DEFAULT '0.00',
    `description` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `status` enum('ACTIVE','INACTIVE') COLLATE utf8mb4_unicode_ci NOT NULL,
    `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    PRIMARY KEY (`product_id`),
    UNIQUE KEY `products_product_id_unique` (`product_id`)
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `prod_categories`
  --
  
  DROP TABLE IF EXISTS `prod_categories`;
  CREATE TABLE IF NOT EXISTS `prod_categories` (
    `product_id` int(11) NOT NULL,
    `category_id` int(11) NOT NULL,
    `quantity` int(11) DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    KEY `prod_categories_product_id_foreign` (`product_id`),
    KEY `prod_categories_category_id_foreign` (`category_id`)
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `prod_transact`
  --
  
  DROP TABLE IF EXISTS `prod_transact`;
  CREATE TABLE IF NOT EXISTS `prod_transact` (
    `transaction_id` int(11) NOT NULL,
    `product_id` int(11) NOT NULL,
    `category_id` int(11) NOT NULL,
    `quantity` int(11) NOT NULL,
    `price` decimal(7,2) NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    KEY `prod_transact_product_id_foreign` (`product_id`),
    KEY `prod_transact_transaction_id_foreign` (`transaction_id`)
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tables`
  --
  
  DROP TABLE IF EXISTS `tables`;
  CREATE TABLE IF NOT EXISTS `tables` (
    `tableId` int(11) NOT NULL AUTO_INCREMENT,
    `tableName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `capacity` int(11) NOT NULL,
    `status` enum('ACTIVE','INACTIVE') COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    PRIMARY KEY (`tableId`),
    UNIQUE KEY `tables_tableid_unique` (`tableId`)
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `transactions`
  --
  
  DROP TABLE IF EXISTS `transactions`;
  CREATE TABLE IF NOT EXISTS `transactions` (
    `transaction_id` int(11) NOT NULL,
    `tableId` int(11) DEFAULT NULL,
    `customer_name` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `status` enum('PAID','PENDING') COLLATE utf8mb4_unicode_ci NOT NULL,
    `totalPrice` decimal(7,2) DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    KEY `transactions_tableid_foreign` (`tableId`)
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  DROP TABLE IF EXISTS `users`;
  CREATE TABLE IF NOT EXISTS `users` (
    `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
    `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email_verified_at` timestamp NULL DEFAULT NULL,
    `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `users_email_unique` (`email`)
  ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'Jake James G Manzon', 'manzonjake15@gmail.com', NULL, '$2y$10$79YnfBCxyJVNwtjSLt8AIeNFRisGIdvbzpUJ4oIbPTIeFeF4hcbHu', NULL, '2019-09-21 01:48:47', '2019-09-21 01:48:47'),
  (3, 'jaelNone', 'jael@gmail.com', NULL, '$2y$10$bTVeia3/EqoUaoxKTcfWgeB97ZYFTxPV2bOqyB5U0TNmjqJYNXp3y', NULL, '2019-09-29 00:52:29', '2019-09-29 00:52:29');
  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 */;
  