text: -- MySQL dump 10.13  Distrib 5.6.27, for debian-linux-gnu (x86_64)
  --
  -- Host: localhost    Database: credit_card_payment
  -- ------------------------------------------------------
  -- Server version	5.6.27-0ubuntu0.15.04.1
  
  /*!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 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 `currency`
  --
  
  DROP TABLE IF EXISTS `currency`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `currency` (
    `primaryKey` char(36) COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:guid)',
    `name` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
    PRIMARY KEY (`primaryKey`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `currency`
  --
  
  LOCK TABLES `currency` WRITE;
  /*!40000 ALTER TABLE `currency` DISABLE KEYS */;
  INSERT INTO `currency` VALUES ('10ce1dce-9d3e-11e5-b37b-080027eb1e56','RUB'),('c97cc166-9d3e-11e5-b37b-080027eb1e56','USD');
  /*!40000 ALTER TABLE `currency` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `exchange`
  --
  
  DROP TABLE IF EXISTS `exchange`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `exchange` (
    `primaryKey` char(36) COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:guid)',
    `rate` decimal(15,2) NOT NULL,
    `currency1` char(36) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:guid)',
    `currency2` char(36) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:guid)',
    PRIMARY KEY (`primaryKey`),
    KEY `IDX_D33BB079A95273CF` (`currency1`),
    KEY `IDX_D33BB079827F200C` (`currency2`),
    CONSTRAINT `FK_D33BB079827F200C` FOREIGN KEY (`currency2`) REFERENCES `currency` (`primaryKey`),
    CONSTRAINT `FK_D33BB079A95273CF` FOREIGN KEY (`currency1`) REFERENCES `currency` (`primaryKey`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `exchange`
  --
  
  LOCK TABLES `exchange` WRITE;
  /*!40000 ALTER TABLE `exchange` DISABLE KEYS */;
  /*!40000 ALTER TABLE `exchange` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `orders`
  --
  
  DROP TABLE IF EXISTS `orders`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `orders` (
    `primaryKey` char(36) COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:guid)',
    `code` int(11) NOT NULL,
    `summa` decimal(15,2) NOT NULL,
    `card_number` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
    `card_owner` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
    `card_month` int(11) NOT NULL,
    `card_year` int(11) NOT NULL,
    `cvv` int(11) NOT NULL,
    `currency` char(36) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:guid)',
    PRIMARY KEY (`primaryKey`),
    KEY `IDX_E52FFDEEFDDB8DC8` (`currency`),
    CONSTRAINT `FK_E52FFDEEFDDB8DC8` FOREIGN KEY (`currency`) REFERENCES `currency` (`primaryKey`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_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 ('2097d2e4-9dae-11e5-a933-080027eb1e56',10,10.00,'1234567890123','sdf',11,17,123,'10ce1dce-9d3e-11e5-b37b-080027eb1e56'),('69c370bb-9db0-11e5-a933-080027eb1e56',101,10.00,'1234567890123','asdd',11,19,321,'10ce1dce-9d3e-11e5-b37b-080027eb1e56');
  /*!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 2015-12-08 18:40:56
  