FYPBackend / cardplatformUpated.sql
cardplatformUpated.sql
Raw
-- MySQL dump 10.13  Distrib 8.0.23, for Win64 (x86_64)
--
-- Host: 127.0.0.1    Database: cardplatform
-- ------------------------------------------------------
-- Server version	8.0.23

/*!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 `business`
--

DROP TABLE IF EXISTS `business`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `business` (
  `business_id` int NOT NULL AUTO_INCREMENT,
  `business_name` varchar(45) NOT NULL,
  `business_email` varchar(45) NOT NULL,
  `nb_customers` int NOT NULL,
  `date_created` date NOT NULL,
  `enabled` tinyint(1) NOT NULL DEFAULT '1',
  `password` varchar(255) NOT NULL,
  `roles` varchar(45) NOT NULL DEFAULT 'ROLE_BUSINESS',
  `business_title` varchar(45) NOT NULL,
  `link` varchar(45) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`business_id`),
  UNIQUE KEY `business_name_UNIQUE` (`business_name`),
  UNIQUE KEY `business_email_UNIQUE` (`business_email`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `business`
--

LOCK TABLES `business` WRITE;
/*!40000 ALTER TABLE `business` DISABLE KEYS */;
INSERT INTO `business` VALUES (5,'dummybusiness','dummybusiness@email.com',0,'2021-02-15',0,'$2a$10$dWUToKUN6Tv3uKLLl3tAJewyrd3jRRh93jRAu2WoCAKZEnDzR0DKW','ROLE_BUSINESS','The First',NULL,NULL),(7,'dummybusiness3','dummybusiness3@email.com',2,'2021-02-15',1,'$2a$10$W/oFl.yChgvJO0YI2s12G.lpX3E7fIPtcmMcf5V/N6avFMt0IQ2XW','ROLE_BUSINESS','Good Corporation',NULL,NULL),(9,'dummybusiness6','dummybusiness6@gmail.com',0,'2021-02-18',1,'$2a$10$XdocLSGHYMJ0VeLZNgB/te5eW4G29r7wIxWL2gfNkLVl.hqZWRTni','ROLE_BUSINESS','Money',NULL,NULL),(24,'testangbusiness','testangularbusinesssignup@gmail.com',0,'2021-04-05',1,'$2a$10$VXuyTZwXoaz4QKPoKxHe5uI0/8VFbR6TrdpLPeNUlvtXFGA1qw5wW','ROLE_BUSINESS','Cash',NULL,NULL),(25,'stoneindustry','stoneindustry@example.com',0,'2021-04-06',0,'$2a$10$dlHy1AfbTuVYcugMq2XDXOeYukrcNGbXntUv47oRTKKMq5XE7pq7.','ROLE_BUSINESS','Stone Industries',NULL,NULL);
/*!40000 ALTER TABLE `business` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `business_verification_token`
--

DROP TABLE IF EXISTS `business_verification_token`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `business_verification_token` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `expiry_date` datetime DEFAULT NULL,
  `token` varchar(255) DEFAULT NULL,
  `business_id` int DEFAULT NULL,
  `card_id` int DEFAULT NULL,
  `pending_funds` decimal(6,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FKfdy0n4is837ygnyrw4syk4rlo` (`business_id`),
  KEY `FKa8ibbdki7dbp5qiibocb2fq4y` (`card_id`)
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `business_verification_token`
--

LOCK TABLES `business_verification_token` WRITE;
/*!40000 ALTER TABLE `business_verification_token` DISABLE KEYS */;
INSERT INTO `business_verification_token` VALUES (30,NULL,'a1169563-743f-4f86-b749-637e2a080e31',17,0,NULL),(31,NULL,'67c6a31e-01bf-4712-bfa1-722d4ba4931a',20,0,NULL),(32,NULL,'18ef216e-082c-4628-81c3-c5ca9fe15882',21,0,NULL),(33,NULL,'64df7796-92b1-49b0-b9b1-d1df0fba9399',22,0,NULL),(44,NULL,'e8fbc159-9a64-49fe-ad7d-1e7f9978538d',25,0,NULL),(45,NULL,'7943e0a6-50e2-4915-bd36-1a0788749db5',0,19,NULL),(46,NULL,'bbc38f32-58c5-4d5d-a24f-7f72e143e5f9',0,20,NULL);
/*!40000 ALTER TABLE `business_verification_token` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `card`
--

DROP TABLE IF EXISTS `card`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `card` (
  `card_id` int NOT NULL AUTO_INCREMENT,
  `customer_id` int NOT NULL,
  `business_id` int NOT NULL,
  `credits` decimal(6,2) NOT NULL,
  `activated` tinyint(1) NOT NULL DEFAULT '0',
  `tag_id` varchar(8) NOT NULL,
  `has_pin` tinyint(1) NOT NULL DEFAULT '1',
  `pin` int DEFAULT NULL,
  `has_pattern` tinyint(1) NOT NULL DEFAULT '0',
  `pattern` int DEFAULT NULL,
  `has_location` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`card_id`),
  UNIQUE KEY `tag_id_UNIQUE` (`tag_id`),
  KEY `FK_cardbusiness` (`business_id`),
  KEY `FK_cardcustomer` (`customer_id`),
  CONSTRAINT `FK_cardbusiness` FOREIGN KEY (`business_id`) REFERENCES `business` (`business_id`),
  CONSTRAINT `FK_cardcustomer` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`customer_id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `card`
--

LOCK TABLES `card` WRITE;
/*!40000 ALTER TABLE `card` DISABLE KEYS */;
INSERT INTO `card` VALUES (3,5,9,101.25,1,'ABC',1,NULL,0,NULL,0),(4,5,7,70.50,1,'DEF',1,NULL,0,NULL,0),(5,4,9,75.83,1,'GHI',1,NULL,0,NULL,0),(6,5,7,310.50,1,'JKL',1,NULL,0,NULL,0),(17,4,7,193.32,1,'ABCD',1,1222,0,NULL,0),(19,16,7,100.50,0,'ZKZK',1,1222,0,NULL,0),(20,4,7,100.50,0,'GKUK',1,5453,0,NULL,0);
/*!40000 ALTER TABLE `card` ENABLE KEYS */;
UNLOCK TABLES;

--
-- 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` (
  `customer_id` int NOT NULL AUTO_INCREMENT,
  `customer_name` varchar(45) NOT NULL,
  `customer_email` varchar(45) NOT NULL,
  `birthdate` date NOT NULL,
  `is_child` tinyint(1) NOT NULL DEFAULT '0',
  `enabled` tinyint(1) NOT NULL DEFAULT '1',
  `password` varchar(255) NOT NULL,
  `roles` varchar(45) NOT NULL DEFAULT 'ROLE_USER',
  `first_name` varchar(45) NOT NULL,
  `last_name` varchar(45) NOT NULL,
  PRIMARY KEY (`customer_id`),
  UNIQUE KEY `customer_name_UNIQUE` (`customer_name`),
  UNIQUE KEY `customer_email_UNIQUE` (`customer_email`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_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 (4,'dummycustomer','dummycustomer@email.com','2010-10-10',0,1,'$2a$10$.Gb6dQis8wJ3fR46ZU1h4u.Rg2i2ojZUSkyPjVr9q/V.v1SRyAzR2','ROLE_CUSTOMER','Joe','Smith'),(5,'dummycustomer2','dummycustomer2@email.com','2010-10-10',0,1,'$2a$10$v/lvYaeDBKEkICRhAnMuJOpx9ck5yGIdTs89Ql9vwARnNmt8QAeiu','ROLE_CUSTOMER','Moe','Z'),(12,'democustomerWEB','democustomerWEB@email.com','2000-01-27',0,1,'$2a$10$p9U4c9Tr0ehP7.yMumU1euiSjKDwpeMbUX37Rmmh7AaZtMe2JgJGW','ROLE_CUSTOMER','Jim','Lan'),(13,'testcustang','testangularcustomersignup@gmail.com','2021-04-05',0,1,'$2a$10$16QgzhL6ei0gWoiHfS3F2OqwS13gdADPO.PX3b3GEihzixywRaJAG','ROLE_CUSTOMER','Apra','Net'),(14,'testlegal','test@email.com','2020-10-10',0,0,'$2a$10$Ci7Qq/6SC6g/yS2GkcMD9O6gsAR6dvIRy.atb5CV2oBRuaZ7ah2AS','ROLE_CUSTOMER','Joe','Smith'),(15,'joey','joe@example.com','2000-01-06',0,0,'$2a$10$ICuDtt9doyCgaSt5J0gwQuokUVW6hSkPlpaj2wq1dxo6TpbYDLXd.','ROLE_CUSTOMER','Joe ','Smith'),(16,'autosignup','autosignup@email.com','2000-10-10',0,1,'$2a$10$3ivbHcYPuopP8HItMOZy5uGj/j7Iv8P8F3DE7JSNKIlL0qQovhpUK','ROLE_CUSTOMER','auto','signup');
/*!40000 ALTER TABLE `customer` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `customer_verification_token`
--

DROP TABLE IF EXISTS `customer_verification_token`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `customer_verification_token` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `expiry_date` datetime DEFAULT NULL,
  `token` varchar(255) DEFAULT NULL,
  `customer_customer_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK19fifly8jo76tr04g2mmjyr65` (`customer_customer_id`),
  CONSTRAINT `FK19fifly8jo76tr04g2mmjyr65` FOREIGN KEY (`customer_customer_id`) REFERENCES `customer` (`customer_id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `customer_verification_token`
--

LOCK TABLES `customer_verification_token` WRITE;
/*!40000 ALTER TABLE `customer_verification_token` DISABLE KEYS */;
INSERT INTO `customer_verification_token` VALUES (8,NULL,'7677dc0e-06c1-4c6a-a9a9-0486324c6d22',12),(9,NULL,'df32d3a4-3ce7-4425-9158-dc0942f40f41',13),(10,NULL,'46b303db-5c3d-4611-a771-f4b2d9d8eb5c',14),(11,NULL,'09e35e07-aa7b-416e-b66d-0972b6ff7729',15),(12,NULL,'e400dc5a-8774-40be-b541-fb3ae7bfb79d',16);
/*!40000 ALTER TABLE `customer_verification_token` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `hibernate_sequence`
--

DROP TABLE IF EXISTS `hibernate_sequence`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `hibernate_sequence` (
  `next_val` bigint DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `hibernate_sequence`
--

LOCK TABLES `hibernate_sequence` WRITE;
/*!40000 ALTER TABLE `hibernate_sequence` DISABLE KEYS */;
INSERT INTO `hibernate_sequence` VALUES (1);
/*!40000 ALTER TABLE `hibernate_sequence` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `product`
--

DROP TABLE IF EXISTS `product`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `product` (
  `product_id` int NOT NULL AUTO_INCREMENT,
  `product_name` varchar(45) NOT NULL,
  `product_description` varchar(255) NOT NULL,
  `business_id` int NOT NULL,
  `unit_cost` decimal(6,2) NOT NULL,
  `product_category` varchar(45) NOT NULL,
  `image_link` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`product_id`),
  KEY `FK_productbusiness` (`business_id`),
  CONSTRAINT `FK_productbusiness` FOREIGN KEY (`business_id`) REFERENCES `business` (`business_id`)
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `product`
--

LOCK TABLES `product` WRITE;
/*!40000 ALTER TABLE `product` DISABLE KEYS */;
INSERT INTO `product` VALUES (33,'lastOneAng','angulardesc2',7,0.30,'angularcat','https://res.cloudinary.com/cardplatform/image/upload/v1617481560/wbds0lzn0czzopdw7kwm'),(34,'myProd','Good stuff',24,1.48,'Consumables','https://res.cloudinary.com/cardplatform/image/upload/v1617481560/bgjpxebcojbur0yvvibx'),(35,'testProduct2','Good product',7,0.30,'Consumables','https://res.cloudinary.com/cardplatform/image/upload/v1617481560/fk45apnivndklkihq3om'),(36,'testProduct3','excellent',7,0.50,'Perfume','https://res.cloudinary.com/cardplatform/image/upload/v1617481560/hri0yfa9m9nv2vlxcthf'),(37,'testProduct4','great',7,0.70,'Cake','https://res.cloudinary.com/cardplatform/image/upload/v1617481560/kfuczmec7duvtzuqagty'),(38,'Dior','A veritable manifesto on the essence of fashion and fit, the Dior spring-summer 2021 ready-to-wear collection by Maria Grazia Chiuri celebrates excellence of savoir-faire and a passion for the arts in all its forms.',7,100.50,'Perfume','https://res.cloudinary.com/cardplatform/image/upload/v1617481560/h99mxrna6j9xayt1vsxd'),(39,'willCountIncrease','Dummy desc',7,53.50,'consumables',NULL),(40,'willCountIncrease number 2','Dummy desc',7,3.50,'consumables',NULL);
/*!40000 ALTER TABLE `product` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `purchase`
--

DROP TABLE IF EXISTS `purchase`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `purchase` (
  `receipt_id` int NOT NULL,
  `quantity` int NOT NULL,
  `purchase_id` int NOT NULL AUTO_INCREMENT,
  `product_id` int NOT NULL,
  PRIMARY KEY (`purchase_id`),
  KEY `FK_purchasereceipt` (`receipt_id`),
  KEY `FK_PURCHASEPRODUCT` (`product_id`),
  CONSTRAINT `FK_PURCHASEPRODUCT` FOREIGN KEY (`product_id`) REFERENCES `product` (`product_id`),
  CONSTRAINT `FK_purchasereceipt` FOREIGN KEY (`receipt_id`) REFERENCES `receipt` (`receipt_id`)
) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `purchase`
--

LOCK TABLES `purchase` WRITE;
/*!40000 ALTER TABLE `purchase` DISABLE KEYS */;
/*!40000 ALTER TABLE `purchase` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `receipt`
--

DROP TABLE IF EXISTS `receipt`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `receipt` (
  `receipt_id` int NOT NULL AUTO_INCREMENT,
  `totalcost` decimal(10,3) NOT NULL DEFAULT '0.000',
  `checked_out` tinyint(1) NOT NULL DEFAULT '0',
  `card_id` int NOT NULL,
  PRIMARY KEY (`receipt_id`),
  KEY `FK_RECEIPTCARD` (`card_id`),
  CONSTRAINT `FK_RECEIPTCARD` FOREIGN KEY (`card_id`) REFERENCES `card` (`card_id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `receipt`
--

LOCK TABLES `receipt` WRITE;
/*!40000 ALTER TABLE `receipt` DISABLE KEYS */;
/*!40000 ALTER TABLE `receipt` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `refresh_token`
--

DROP TABLE IF EXISTS `refresh_token`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `refresh_token` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `created_date` datetime DEFAULT NULL,
  `token` varchar(255) DEFAULT NULL,
  `username` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=230 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `refresh_token`
--

LOCK TABLES `refresh_token` WRITE;
/*!40000 ALTER TABLE `refresh_token` DISABLE KEYS */;
INSERT INTO `refresh_token` VALUES (192,'2021-04-04 21:50:06','160c27f3-9760-43d4-9318-f8c4068aa107','dummybusiness3:business'),(193,'2021-04-04 21:51:18','808ddb22-aa19-48ed-88bb-948d2ce7dd95','dummybusiness3:business'),(194,'2021-04-04 21:54:50','28088077-6b7c-4729-9c9e-9aaeb740e683','dummybusiness3:business'),(195,'2021-04-04 21:56:26','a6a14988-048a-4852-bb3e-2f1e2147e5b2','dummybusiness3:business'),(196,'2021-04-04 22:04:14','9cea830c-492c-443a-befd-bf718239fed2','dummybusiness3:business'),(197,'2021-04-05 13:46:43','caec002c-5905-46c0-b222-a8037e0d5b89','testcustang:customer'),(198,'2021-04-05 13:48:14','a318d42d-24bc-484b-88f7-ccd11d25d61e','testangbusiness:business'),(199,'2021-04-05 19:01:58','1147246f-da02-4bc0-a3a6-c74f0a54d084','dummybusiness3:business'),(200,'2021-04-05 19:03:04','61088329-6781-473c-9dad-2ea5416fbac1','dummybusiness3:business'),(201,'2021-04-05 19:28:43','d87d0b53-6f5f-4c5a-8119-d26e9cffce5e','dummybusiness3:business'),(202,'2021-04-05 20:59:55','178de320-447b-461f-b701-684e94490fba','dummybusiness3:business'),(203,'2021-04-05 21:01:46','ffc99bd2-8c75-4e5b-ae43-e7a5bacc7e1b','dummybusiness3:business'),(204,'2021-04-06 19:43:18','8137084e-399a-421d-a0c7-a41a38a5f07f','dummybusiness3:business'),(205,'2021-04-06 21:51:52','f00e8015-86cf-45de-977f-ebd5bebe0ee7','testcustang:customer'),(206,'2021-04-06 21:52:08','0d522b6f-a736-4d5c-ac2e-10df32d0cc90','testcustang:customer'),(207,'2021-04-06 21:52:14','4c72fe31-5cc4-4a4b-93df-951d463d11a5','testcustang:customer'),(208,'2021-04-06 22:02:41','8f52c73c-a0cf-446b-96af-50d95e1cc60b','dummybusiness3:business'),(209,'2021-04-06 22:02:51','bac2309e-6dda-47d0-92d9-9363c256ce58','dummybusiness3:business'),(210,'2021-04-06 22:05:10','bbc0a5da-d2f8-47a1-9e05-863813c2efe5','dummybusiness3:business'),(211,'2021-04-06 22:05:29','ff3bcea6-6734-4123-9a7d-806a819555ea','dummybusiness3:business'),(212,'2021-04-06 22:05:38','bfefd05d-cb48-4ef1-a6b0-d8d317ade71f','dummycustomer:customer'),(213,'2021-04-06 22:05:52','fb0d3382-1f91-4ef5-a3a0-c2bf88412882','dummycustomer:customer'),(214,'2021-04-06 22:53:26','bc981f37-2b58-4671-aab3-7d62ba1fa0ee','dummybusiness3:business'),(215,'2021-04-06 22:54:30','2b9b3607-89a8-46ab-8176-937a3dacf0dd','autosignup:customer'),(216,'2021-04-06 22:54:47','90dd9b6c-d53d-4643-86ce-041d340ed694','dummybusiness3:business'),(217,'2021-04-06 23:11:23','758cd1ec-30d9-4217-b39f-48c3defe0d47','dummybusiness3:business'),(218,'2021-04-06 23:13:01','1f5724e8-0be5-4bfd-bf50-01c3382243b5','dummybusiness3:business'),(219,'2021-04-06 23:22:01','e491fd4c-9b4c-4db1-84a1-04f245018ff5','dummybusiness3:business'),(220,'2021-04-06 23:23:24','ffbf29bf-4cd5-4bb4-9c97-0afcdbb9646d','dummybusiness3:business'),(221,'2021-04-06 23:23:38','0e938f6c-2231-48e3-b68b-6e99b91f9c8d','dummybusiness3:business'),(222,'2021-04-06 23:24:50','bd63bebd-ab54-414d-b71e-97a1f35a90a1','dummybusiness3:business'),(223,'2021-04-06 23:25:02','62fb9776-365e-49d3-96a1-48e321cb0165','dummybusiness3:business'),(224,'2021-04-06 23:28:17','a14a35da-c715-4bae-aa74-52b8df54785a','dummybusiness3:business'),(225,'2021-04-06 23:28:59','46c533db-3951-482f-9c4f-b7b38344e142','dummybusiness3:business'),(226,'2021-04-06 23:29:55','84c49454-2f47-4595-9db4-8cc6586be957','dummycustomer:customer'),(227,'2021-04-06 23:31:33','62914a51-1650-474a-b7ce-11ff0ac9f355','dummycustomer:customer'),(228,'2021-04-06 23:31:46','aa91a860-1617-4dce-8df6-754fd44f1d33','dummycustomer:customer'),(229,'2021-04-06 23:44:24','1b5ad19a-6b0f-4414-8712-2741d84fb039','dummybusiness3:business');
/*!40000 ALTER TABLE `refresh_token` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `store`
--

DROP TABLE IF EXISTS `store`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `store` (
  `business_id` int NOT NULL,
  `nb_products` int NOT NULL,
  `net_income` decimal(10,2) NOT NULL,
  PRIMARY KEY (`business_id`),
  CONSTRAINT `FK_storebusiness` FOREIGN KEY (`business_id`) REFERENCES `business` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `store`
--

LOCK TABLES `store` WRITE;
/*!40000 ALTER TABLE `store` DISABLE KEYS */;
INSERT INTO `store` VALUES (5,0,0.00),(7,2,0.00),(9,0,0.00);
/*!40000 ALTER TABLE `store` 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-04-07  0:05:48