-- MySQL dump 10.13 Distrib 8.0.28, for macos11 (x86_64) -- -- Host: 127.0.0.1 Database: bug-report -- ------------------------------------------------------ -- Server version 8.0.28 /*!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 */; CREATE DATABASE `bug-report`; -- -- Table structure for table `Customer` -- DROP TABLE IF EXISTS `Customer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `Customer` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Customer` -- LOCK TABLES `Customer` WRITE; /*!40000 ALTER TABLE `Customer` DISABLE KEYS */; INSERT INTO `Customer` VALUES (1,'customer 1'),(2,'customer 2'),(3,'customer 3'); /*!40000 ALTER TABLE `Customer` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `OrderDetailStatus` -- DROP TABLE IF EXISTS `OrderDetailStatus`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `OrderDetailStatus` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name_UNIQUE` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `OrderDetailStatus` -- LOCK TABLES `OrderDetailStatus` WRITE; /*!40000 ALTER TABLE `OrderDetailStatus` DISABLE KEYS */; INSERT INTO `OrderDetailStatus` VALUES (3,'COMPLETED'),(1,'CREATED'),(2,'PENDING'),(4,'REFUNDED'); /*!40000 ALTER TABLE `OrderDetailStatus` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Order` -- DROP TABLE IF EXISTS `Order`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `Order` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `idCustomer` int unsigned NOT NULL, `code` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `code_UNIQUE` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Order` -- LOCK TABLES `Order` WRITE; /*!40000 ALTER TABLE `Order` DISABLE KEYS */; INSERT INTO `Order` VALUES (1,1,'0001','2022-02-09 20:33:21'),(2,1,'0002','2022-02-09 20:33:21'),(3,2,'0003','2022-02-09 20:33:21'),(4,2,'0004','2022-02-09 20:33:21'),(5,2,'0005','2022-02-09 20:33:21'),(6,3,'0006','2022-02-09 20:33:21'),(7,3,'0007','2022-02-09 20:33:21'); /*!40000 ALTER TABLE `Order` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `OrderDetail` -- DROP TABLE IF EXISTS `OrderDetail`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `OrderDetail` ( `idOrder` int unsigned NOT NULL, `idOrderDetailStatus` int unsigned NOT NULL, `description` text COLLATE utf8mb4_unicode_ci, PRIMARY KEY (`idOrder`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `OrderDetail` -- LOCK TABLES `OrderDetail` WRITE; /*!40000 ALTER TABLE `OrderDetail` DISABLE KEYS */; INSERT INTO `OrderDetail` VALUES (1,2,'Order detail 1'),(2,3,'Order detail 2'),(3,2,'Order detail 3'),(4,3,'Order detail 4'),(5,2,'Order detail 5'),(6,2,'Order detail 6'),(7,2,'Order detail 7'); /*!40000 ALTER TABLE `OrderDetail` 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 2022-02-09 21:47:45