text: CREATE DATABASE  IF NOT EXISTS `anno-stratis` /*!40100 DEFAULT CHARACTER SET utf8 */;
  USE `anno-stratis`;
  -- MySQL dump 10.13  Distrib 5.6.17, for Win32 (x86)
  --
  -- Host: localhost    Database: anno-stratis
  -- ------------------------------------------------------
  -- Server version	5.6.21-log
  
  /*!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 `api_keys`
  --
  
  DROP TABLE IF EXISTS `api_keys`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `api_keys` (
    `key_id` int(11) NOT NULL AUTO_INCREMENT,
    `host_id` int(11) DEFAULT NULL,
    `api_key` varchar(50) DEFAULT NULL,
    `record_status` varchar(15) DEFAULT NULL,
    `created_date` datetime DEFAULT NULL,
    PRIMARY KEY (`key_id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `api_keys`
  --
  
  LOCK TABLES `api_keys` WRITE;
  /*!40000 ALTER TABLE `api_keys` DISABLE KEYS */;
  /*!40000 ALTER TABLE `api_keys` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `customer`
  --
  
  DROP TABLE IF EXISTS `customer`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `customer` (
    `customer_id` int(11) NOT NULL AUTO_INCREMENT,
    `host_id` int(11) DEFAULT NULL,
    `ref_id` varchar(30) DEFAULT NULL,
    `address` varchar(40) DEFAULT NULL,
    `record_status` varchar(15) DEFAULT NULL,
    `created_date` datetime DEFAULT NULL,
    PRIMARY KEY (`customer_id`),
    UNIQUE KEY `unique_index` (`host_id`,`ref_id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `customer`
  --
  
  LOCK TABLES `customer` WRITE;
  /*!40000 ALTER TABLE `customer` DISABLE KEYS */;
  /*!40000 ALTER TABLE `customer` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `customer_booking`
  --
  
  DROP TABLE IF EXISTS `customer_booking`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `customer_booking` (
    `booking_id` int(11) NOT NULL AUTO_INCREMENT,
    `customer_id` int(11) DEFAULT NULL,
    `event_id` int(11) DEFAULT NULL,
    `confirmation_number` varchar(30) DEFAULT NULL,
    `record_status` varchar(15) DEFAULT NULL,
    `created_date` datetime DEFAULT NULL,
    PRIMARY KEY (`booking_id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `customer_booking`
  --
  
  LOCK TABLES `customer_booking` WRITE;
  /*!40000 ALTER TABLE `customer_booking` DISABLE KEYS */;
  /*!40000 ALTER TABLE `customer_booking` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `customer_ticket`
  --
  
  DROP TABLE IF EXISTS `customer_ticket`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `customer_ticket` (
    `ticket_id` int(11) NOT NULL AUTO_INCREMENT,
    `customer_id` int(11) DEFAULT NULL,
    `booking_id` int(11) DEFAULT NULL,
    `event_id` int(11) DEFAULT NULL,
    `tier_id` int(11) DEFAULT NULL,
    `ticket_number` varchar(30) DEFAULT NULL,
    `seat_number` varchar(15) DEFAULT NULL,
    `paid_price` decimal(10,0) DEFAULT NULL,
    `status` varchar(30) DEFAULT NULL,
    `address` varchar(40) DEFAULT NULL,
    `record_status` varchar(15) DEFAULT NULL,
    `created_date` datetime DEFAULT NULL,
    PRIMARY KEY (`ticket_id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `customer_ticket`
  --
  
  LOCK TABLES `customer_ticket` WRITE;
  /*!40000 ALTER TABLE `customer_ticket` DISABLE KEYS */;
  /*!40000 ALTER TABLE `customer_ticket` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `events`
  --
  
  DROP TABLE IF EXISTS `events`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `events` (
    `event_id` int(11) NOT NULL AUTO_INCREMENT,
    `host_id` int(11) DEFAULT NULL,
    `ref_id` varchar(30) DEFAULT NULL,
    `title` varchar(200) DEFAULT NULL,
    `description` varchar(1000) DEFAULT NULL,
    `start_date` datetime DEFAULT NULL,
    `status` varchar(30) DEFAULT NULL,
    `address` varchar(40) DEFAULT NULL,
    `record_status` varchar(15) DEFAULT NULL,
    `created_date` datetime DEFAULT NULL,
    PRIMARY KEY (`event_id`),
    UNIQUE KEY `unique_index` (`host_id`,`ref_id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `events`
  --
  
  LOCK TABLES `events` WRITE;
  /*!40000 ALTER TABLE `events` DISABLE KEYS */;
  /*!40000 ALTER TABLE `events` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `events_tier`
  --
  
  DROP TABLE IF EXISTS `events_tier`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `events_tier` (
    `tier_id` int(11) NOT NULL AUTO_INCREMENT,
    `host_id` int(11) DEFAULT NULL,
    `event_id` int(11) DEFAULT NULL,
    `ref_id` varchar(30) DEFAULT NULL,
    `title` varchar(200) DEFAULT NULL,
    `description` varchar(1000) DEFAULT NULL,
    `total_tickets` int(11) DEFAULT NULL,
    `available_tickets` int(11) DEFAULT NULL,
    `price` decimal(10,0) DEFAULT NULL,
    `status` varchar(30) DEFAULT NULL,
    `address` varchar(40) DEFAULT NULL,
    `record_status` varchar(15) DEFAULT NULL,
    `created_date` datetime DEFAULT NULL,
    PRIMARY KEY (`tier_id`),
    UNIQUE KEY `unique_index` (`host_id`,`ref_id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `events_tier`
  --
  
  LOCK TABLES `events_tier` WRITE;
  /*!40000 ALTER TABLE `events_tier` DISABLE KEYS */;
  /*!40000 ALTER TABLE `events_tier` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `host`
  --
  
  DROP TABLE IF EXISTS `host`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `host` (
    `host_id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(250) DEFAULT NULL,
    `address` varchar(40) DEFAULT NULL,
    `record_status` varchar(15) DEFAULT NULL,
    `created_date` datetime DEFAULT NULL,
    PRIMARY KEY (`host_id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `host`
  --
  
  LOCK TABLES `host` WRITE;
  /*!40000 ALTER TABLE `host` DISABLE KEYS */;
  /*!40000 ALTER TABLE `host` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `transactions`
  --
  
  DROP TABLE IF EXISTS `transactions`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `transactions` (
    `transaction_id` int(11) NOT NULL AUTO_INCREMENT,
    `transaction_datetime` datetime DEFAULT NULL,
    `address_from` varchar(40) DEFAULT NULL,
    `address_to` varchar(40) DEFAULT NULL,
    `amount` decimal(10,0) DEFAULT NULL,
    `booking_id` int(11) DEFAULT NULL,
    `description` varchar(30) DEFAULT NULL,
    `created_date` datetime DEFAULT NULL,
    PRIMARY KEY (`transaction_id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `transactions`
  --
  
  LOCK TABLES `transactions` WRITE;
  /*!40000 ALTER TABLE `transactions` DISABLE KEYS */;
  /*!40000 ALTER TABLE `transactions` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `wallet`
  --
  
  DROP TABLE IF EXISTS `wallet`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `wallet` (
    `wallet_id` int(11) NOT NULL AUTO_INCREMENT,
    `owner_id` int(11) DEFAULT NULL,
    `owner_type` varchar(10) DEFAULT NULL,
    `address` varchar(40) DEFAULT NULL,
    `balance` int(11) DEFAULT NULL,
    `record_status` varchar(15) DEFAULT NULL,
    `created_date` datetime DEFAULT NULL,
    PRIMARY KEY (`wallet_id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `wallet`
  --
  
  LOCK TABLES `wallet` WRITE;
  /*!40000 ALTER TABLE `wallet` DISABLE KEYS */;
  /*!40000 ALTER TABLE `wallet` 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 2018-03-08 22:35:34
  