-
-
Save ramindu90/76d22a7b6e5dc5900c5941ab438155e8 to your computer and use it in GitHub Desktop.
database backup file that is required to create tables and data required for ecom-database ballerina service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- MySQL dump 10.13 Distrib 8.0.33, for macos13 (arm64) | |
-- | |
-- Host: localhost Database: ecomdb | |
-- ------------------------------------------------------ | |
-- Server version 8.0.33 | |
use defaultdb; | |
set SQL_REQUIRE_PRIMARY_KEY=OFF; | |
/*!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 utf8mb4 */; | |
/*!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 `departmentTable` | |
-- | |
DROP TABLE IF EXISTS `departmentTable`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!50503 SET character_set_client = utf8mb4 */; | |
CREATE TABLE `departmentTable` ( | |
`id` int NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) DEFAULT NULL, | |
`location` varchar(255) DEFAULT NULL, | |
`manager` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `departmentTable` | |
-- | |
LOCK TABLES `departmentTable` WRITE; | |
/*!40000 ALTER TABLE `departmentTable` DISABLE KEYS */; | |
INSERT INTO `departmentTable` VALUES (1,'clothing','colombo','John'),(2,'footwear','tokyo','Yao'),(3,'clothing','colombo','John'),(4,'footwear','tokyo','Yao'); | |
/*!40000 ALTER TABLE `departmentTable` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- Table structure for table `itemtable` | |
-- | |
DROP TABLE IF EXISTS `itemtable`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!50503 SET character_set_client = utf8mb4 */; | |
CREATE TABLE `itemtable` ( | |
`id` int NOT NULL AUTO_INCREMENT, | |
`title` varchar(255) NOT NULL, | |
`description` varchar(255) DEFAULT NULL, | |
`includes` varchar(255) DEFAULT NULL, | |
`intendedFor` varchar(255) DEFAULT NULL, | |
`color` varchar(255) DEFAULT NULL, | |
`material` varchar(255) DEFAULT NULL, | |
`price` double DEFAULT NULL, | |
`sellerId` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `itemtable` | |
-- | |
LOCK TABLES `itemtable` WRITE; | |
/*!40000 ALTER TABLE `itemtable` DISABLE KEYS */; | |
INSERT INTO `itemtable` VALUES (7,'Dog collar','abcd','abcd','abcd','abcd','abcd',100,'clothing'),(9,'Test','Added by Seltron','dfg','dfg','dfg','dfg',345,'clothing'); | |
/*!40000 ALTER TABLE `itemtable` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- Table structure for table `PurchaseItemTable` | |
-- | |
DROP TABLE IF EXISTS `PurchaseItemTable`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!50503 SET character_set_client = utf8mb4 */; | |
CREATE TABLE `PurchaseItemTable` ( | |
`purchaseId` int NOT NULL, | |
`name` varchar(225) DEFAULT NULL, | |
`quantity` int DEFAULT NULL, | |
`unitPrice` double DEFAULT NULL, | |
`total` double DEFAULT NULL, | |
`sellerId` varchar(255) DEFAULT NULL, | |
`delivered` tinyint DEFAULT NULL, | |
`itemId` int DEFAULT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `PurchaseItemTable` | |
-- | |
LOCK TABLES `PurchaseItemTable` WRITE; | |
/*!40000 ALTER TABLE `PurchaseItemTable` DISABLE KEYS */; | |
INSERT INTO `PurchaseItemTable` VALUES (18,'Dog collar',1,100,100,'clothing',0,7); | |
/*!40000 ALTER TABLE `PurchaseItemTable` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- Table structure for table `PurchaseTable` | |
-- | |
DROP TABLE IF EXISTS `PurchaseTable`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!50503 SET character_set_client = utf8mb4 */; | |
CREATE TABLE `PurchaseTable` ( | |
`id` int NOT NULL AUTO_INCREMENT, | |
`cardnumber` double DEFAULT NULL, | |
`itemList` longtext, | |
`fullName` varchar(255) DEFAULT NULL, | |
`total` double DEFAULT NULL, | |
`cvv` int DEFAULT NULL, | |
`subtotal` double DEFAULT NULL, | |
`shipping` double DEFAULT NULL, | |
`tax` double DEFAULT NULL, | |
`delivered` tinyint DEFAULT NULL, | |
`expirationdate` varchar(255) DEFAULT NULL, | |
`username` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `PurchaseTable` | |
-- | |
LOCK TABLES `PurchaseTable` WRITE; | |
/*!40000 ALTER TABLE `PurchaseTable` DISABLE KEYS */; | |
INSERT INTO `PurchaseTable` VALUES (18,3241,'[{\"id\":7, \"name\":\"Dog collar\", \"quantity\":1, \"unitPrice\":100, \"total\":100}]','ramindu',111,14,100,1,10,NULL,'314','cade@customer.com'); | |
/*!40000 ALTER TABLE `PurchaseTable` 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 2024-03-01 17:09:07 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment