Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- phpMyAdmin SQL Dump
- -- version 5.2.1
- -- https://www.phpmyadmin.net/
- --
- -- Host: mariadb
- -- Generation Time: Jan 12, 2025 at 01:36 PM
- -- Server version: 11.6.2-MariaDB-ubu2404
- -- PHP Version: 8.2.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: `bookstore`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `customers`
- --
- CREATE TABLE `customers` (
- `id` int(11) NOT NULL,
- `name` text NOT NULL,
- `email` text NOT NULL,
- `created` timestamp NULL DEFAULT current_timestamp()
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
- --
- -- Dumping data for table `customers`
- --
- INSERT INTO `customers` (`id`, `name`, `email`, `created`) VALUES
- (1, 'Jarid', 'jguerrieri0@samsung.com', '2024-01-12 00:00:00'),
- (2, 'Turner', 'tklesl1@blog.com', '2024-01-12 00:00:00'),
- (3, 'Adelheid', 'amackee2@blog.com', '2024-01-12 00:00:00'),
- (4, 'Leia', 'landriesse3@smugmug.com', '2024-01-12 00:00:00'),
- (5, 'Meryl', 'mschollick4@bbb.org', '2024-01-12 00:00:00'),
- (6, 'Sydney', 'spigne5@dagondesign.com', '2024-01-12 00:00:00'),
- (7, 'Danyelle', 'dpeasnone6@scribd.com', '2024-01-12 00:00:00'),
- (8, 'Rebekkah', 'rcastelot7@epa.gov', '2024-01-12 00:00:00'),
- (9, 'Gery', 'gcusick8@geocities.jp', '2024-01-12 00:00:00'),
- (10, 'Arron', 'aslavin9@eventbrite.com', '2024-01-12 00:00:00'),
- (11, 'Fakhry', 'fakhry@mail.com', '2025-01-12 13:22:00');
- -- --------------------------------------------------------
- --
- -- Table structure for table `orders`
- --
- CREATE TABLE `orders` (
- `id` int(11) NOT NULL,
- `customer_id` int(11) DEFAULT NULL,
- `product` text NOT NULL,
- `quantity` int(11) NOT NULL,
- `created` timestamp NULL DEFAULT current_timestamp(),
- `category_id` int(11) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
- --
- -- Dumping data for table `orders`
- --
- INSERT INTO `orders` (`id`, `customer_id`, `product`, `quantity`, `created`, `category_id`) VALUES
- (1, 9, 'Lazarus Project, The', 1, '2024-03-27 02:00:03', 1),
- (2, 10, 'High School', 5, '2024-07-11 15:44:32', 2),
- (3, 1, 'Bandits (Bandidos)', 5, '2024-11-08 23:16:49', 2),
- (4, 8, 'Ong-Bak: The Thai Warrior (Ong Bak)', 5, '2024-08-30 20:26:51', 1),
- (5, 5, 'All Night Long', 2, '2024-11-12 08:35:03', 2),
- (6, 5, 'A Chinese in a Coma', 5, '2024-12-19 08:17:08', 3),
- (7, 5, 'Girl in the Café, The', 4, '2024-09-25 04:40:27', 3),
- (8, 10, 'Catwoman', 2, '2024-11-16 13:59:32', 2),
- (9, 4, 'Bill Maher: Victory Begins at Home', 3, '2024-10-07 19:11:56', 2),
- (10, 6, 'Talaash', 3, '2024-11-29 12:32:41', 1),
- (11, 10, 'Miracles - Mr. Canton and Lady Rose', 1, '2024-10-10 04:39:02', 1),
- (12, 2, 'The Spectacular Now', 1, '2024-07-18 01:12:12', 3),
- (13, 1, 'Last of the Unjust, The (Dernier des injustes, Le)', 3, '2024-04-21 12:02:27', 3),
- (14, 6, 'Thieves, The (Dodookdeul)', 5, '2024-04-01 08:25:58', 3),
- (15, 7, 'Ashes, The (Popioly)', 4, '2024-08-17 18:10:22', 3),
- (16, 9, 'Terror is a Man', 2, '2024-12-11 23:40:38', 1),
- (17, 2, 'Peacock', 4, '2024-05-22 21:46:05', 2),
- (18, 7, 'Charley Varrick', 1, '2024-11-09 15:43:08', 3),
- (19, 9, 'Wonderful World', 4, '2024-11-15 18:56:34', 2),
- (20, 10, 'Kiss Me Kate', 5, '2024-08-20 17:13:49', 1),
- (21, 10, 'Dark Star', 1, '2024-06-22 17:26:49', 2),
- (22, 9, 'Ants in the Pants', 3, '2024-07-10 21:54:17', 2),
- (23, 7, 'Concert for George, The', 3, '2024-02-23 12:22:38', 1),
- (24, 3, 'The Loft', 5, '2024-03-14 12:16:34', 1),
- (25, 8, 'Sweet Home', 3, '2024-04-28 01:54:19', 3);
- -- --------------------------------------------------------
- --
- -- Table structure for table `product_categories`
- --
- CREATE TABLE `product_categories` (
- `id` int(11) NOT NULL,
- `category` text NOT NULL,
- `created` timestamp NULL DEFAULT current_timestamp()
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
- --
- -- Dumping data for table `product_categories`
- --
- INSERT INTO `product_categories` (`id`, `category`, `created`) VALUES
- (1, 'History', '2025-01-12 09:43:53'),
- (2, 'Science', '2025-01-12 09:43:53'),
- (3, 'Fiction', '2025-01-12 09:43:53');
- --
- -- Indexes for dumped tables
- --
- --
- -- Indexes for table `customers`
- --
- ALTER TABLE `customers`
- ADD PRIMARY KEY (`id`);
- --
- -- Indexes for table `orders`
- --
- ALTER TABLE `orders`
- ADD PRIMARY KEY (`id`),
- ADD KEY `customer_id` (`customer_id`),
- ADD KEY `category_id` (`category_id`);
- --
- -- Indexes for table `product_categories`
- --
- ALTER TABLE `product_categories`
- ADD PRIMARY KEY (`id`);
- --
- -- AUTO_INCREMENT for dumped tables
- --
- --
- -- AUTO_INCREMENT for table `customers`
- --
- ALTER TABLE `customers`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
- --
- -- AUTO_INCREMENT for table `orders`
- --
- ALTER TABLE `orders`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
- --
- -- AUTO_INCREMENT for table `product_categories`
- --
- ALTER TABLE `product_categories`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
- --
- -- Constraints for dumped tables
- --
- --
- -- Constraints for table `orders`
- --
- ALTER TABLE `orders`
- ADD CONSTRAINT `orders_ibfk_1` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`),
- ADD CONSTRAINT `orders_ibfk_2` FOREIGN KEY (`category_id`) REFERENCES `product_categories` (`id`);
- 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 */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement