text: -- MySQL dump 10.13  Distrib 8.0.22, for Win64 (x86_64)
  --
  -- Host: localhost    Database: bookUser
  -- ------------------------------------------------------
  -- Server version	8.0.22
  
  /*!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 */;
  /*!50503 SET NAMES utf8 */;
  /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  /*!40103 SET TIME_ZONE='+00:00' */;
  /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  
  --
  -- Table structure for table `admin`
  --
  
  DROP TABLE IF EXISTS `admin`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!50503 SET character_set_client = utf8mb4 */;
  CREATE TABLE `admin` (
    `name` varchar(250) NOT NULL,
    `password` varchar(250) NOT NULL,
    PRIMARY KEY (`name`)
  ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `admin`
  --
  
  LOCK TABLES `admin` WRITE;
  /*!40000 ALTER TABLE `admin` DISABLE KEYS */;
  INSERT INTO `admin` VALUES ('admin','admin');
  /*!40000 ALTER TABLE `admin` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `users`
  --
  
  DROP TABLE IF EXISTS `users`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!50503 SET character_set_client = utf8mb4 */;
  CREATE TABLE `users` (
    `user_id` int NOT NULL AUTO_INCREMENT,
    `name` varchar(250) NOT NULL,
    `email` varchar(250) NOT NULL,
    `password` varchar(250) NOT NULL,
    PRIMARY KEY (`user_id`),
    UNIQUE KEY `email_UNIQUE` (`email`)
  ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `users`
  --
  
  LOCK TABLES `users` WRITE;
  /*!40000 ALTER TABLE `users` DISABLE KEYS */;
  INSERT INTO `users` VALUES (1,'pk','pk@pk.com','pk');
  /*!40000 ALTER TABLE `users` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `authors`
  --
  
  
  DROP TABLE IF EXISTS `authors`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!50503 SET character_set_client = utf8mb4 */;
  
  CREATE TABLE `authors` (
    `author_name` varchar(450) NOT NULL,
    `description` varchar(450) NOT NULL,
    `location` varchar(450) NOT NULL,
    PRIMARY KEY (`author_name`)
  ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `products`
  --
  
  LOCK TABLES `authors` WRITE;
  /*!40000 ALTER TABLE `authors` DISABLE KEYS */;
  INSERT INTO `authors` VALUES ('Dan Brown','Writes with mystry and thrill','America');
  INSERT INTO `authors` VALUES ('J. K. Rowling','Imaginary writer','London');
  INSERT INTO `authors` VALUES ('Agatha Christie','storyteller','London');
  INSERT INTO `authors` VALUES ('William Shakespeare','legendary writer','London');
  INSERT INTO `authors` VALUES ('Chetan Bhagat','famous for romanctic stories','India');
  /*!40000 ALTER TABLE `authors` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `publishers`
  --
  
  
  DROP TABLE IF EXISTS `publishers`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!50503 SET character_set_client = utf8mb4 */;
  
  CREATE TABLE `publishers` (
    `publisher_name` varchar(450) NOT NULL,
    `description` varchar(450) NOT NULL,
    `location` varchar(450) NOT NULL,
    PRIMARY KEY (`publisher_name`)
  ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `products`
  --
  
  LOCK TABLES `publishers` WRITE;
  /*!40000 ALTER TABLE `publishers` DISABLE KEYS */;
  INSERT INTO `publishers` VALUES ('Jaico Publishing House','great','America');
  INSERT INTO `publishers` VALUES ('Westland Publications','Imaginary writer','London');
  INSERT INTO `publishers` VALUES ('London Publications','storyteller','London');
  INSERT INTO `publishers` VALUES ('Anmol Publications','legendary','India');
  INSERT INTO `publishers` VALUES ('Reliance Publishing House','famous','India');
  /*!40000 ALTER TABLE `publishers` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `categories`
  --
  
  DROP TABLE IF EXISTS `categories`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!50503 SET character_set_client = utf8mb4 */;
  CREATE TABLE `categories` (
    `category` varchar(250) NOT NULL,
    `description` varchar(250) NOT NULL,
    PRIMARY KEY (`category`)
  ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `users`
  --
  
  LOCK TABLES `categories` WRITE;
  /*!40000 ALTER TABLE `categories` DISABLE KEYS */;
  INSERT INTO `categories` VALUES ('Academics','study related');
  INSERT INTO `categories` VALUES ('Inspirational','inspire you');
  INSERT INTO `categories` VALUES ('Mystery','secrets');
  INSERT INTO `categories` VALUES ('Love Story','romantic');
  INSERT INTO `categories` VALUES ('Thriller','suspense');
  INSERT INTO `categories` VALUES ('Historical','ancient');
  /*!40000 ALTER TABLE `categories` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `products`
  --
  
  DROP TABLE IF EXISTS `products`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!50503 SET character_set_client = utf8mb4 */;
  
  CREATE TABLE `products` (
    `book_id` int NOT NULL AUTO_INCREMENT,
    `name` varchar(450) NOT NULL,
    `author_name` varchar(450) NOT NULL,
    `publisher_name` varchar(450) NOT NULL,
    `price` double NOT NULL,
    `category` varchar(450) NOT NULL,
    PRIMARY KEY (`book_id`),
    FOREIGN KEY (`author_name`) REFERENCES authors(`author_name`),
    FOREIGN KEY (`publisher_name`) REFERENCES publishers(`publisher_name`),
    FOREIGN KEY (`category`) REFERENCES categories(`category`)
  ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `products`
  --
  
  LOCK TABLES `products` WRITE;
  /*!40000 ALTER TABLE `products` DISABLE KEYS */;
  INSERT INTO `products` VALUES (1,'Digital Fortress','Dan Brown','Westland Publications',120,'Thriller');
  /*!40000 ALTER TABLE `products` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `orders`
  --
  
  DROP TABLE IF EXISTS `orders`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!50503 SET character_set_client = utf8mb4 */;
  CREATE TABLE `orders` (
    `order_id` int NOT NULL AUTO_INCREMENT,
    `book_id` int NOT NULL,
    `user_id` int NOT NULL,
    `quantity` int NOT NULL,
    `date` varchar(450) NOT NULL,
    PRIMARY KEY (`order_id`),
    FOREIGN KEY (`book_id`) REFERENCES products(`book_id`),
    FOREIGN KEY (`user_id`) REFERENCES users(`user_id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `orders`
  --
  
  LOCK TABLES `orders` WRITE;
  /*!40000 ALTER TABLE `orders` DISABLE KEYS */;
  INSERT INTO `orders` VALUES (1,1,1,3,'2021-05-15');
  /*!40000 ALTER TABLE `orders` ENABLE KEYS */;
  UNLOCK TABLES;
  
  /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  /*!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 */;
  /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  
  -- Dump completed on 2021-05-19 23:00:47
  