-- MySQL dump 10.16  Distrib 10.3.8-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: 127.0.0.1    Database: Congressc5a1ff21d28b643ad8c890f768bbd1e0
-- ------------------------------------------------------
-- Server version	10.3.8-MariaDB-1:10.3.8+maria~jessie

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

DROP TABLE IF EXISTS `customer_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_data` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `shop_id` int(10) unsigned DEFAULT NULL COMMENT 'Shop Reference',
  PRIMARY KEY (`id`),
  UNIQUE KEY `shop_id` (`shop_id`),
  KEY `id` (`id`,`shop_id`)
) ENGINE=InnoDB AUTO_INCREMENT=13323 DEFAULT CHARSET=utf8 COMMENT='Customer records';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `customer_data`
--

LOCK TABLES `customer_data` WRITE;
/*!40000 ALTER TABLE `customer_data` DISABLE KEYS */;
INSERT INTO `customer_data` VALUES (13283,14732),(13313,14762);
/*!40000 ALTER TABLE `customer_data` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `syndication_partners`
--

DROP TABLE IF EXISTS `syndication_partners`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `syndication_partners` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `partner_name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_name` (`partner_name`)
) ENGINE=InnoDB AUTO_INCREMENT=428 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `syndication_partners`
--

LOCK TABLES `syndication_partners` WRITE;
/*!40000 ALTER TABLE `syndication_partners` DISABLE KEYS */;
INSERT INTO `syndication_partners` VALUES (427,'michaelyoung');
/*!40000 ALTER TABLE `syndication_partners` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `syndication_partner_white_flags`
--

DROP TABLE IF EXISTS `syndication_partner_white_flags`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `syndication_partner_white_flags` (
  `flag_id` int(10) unsigned DEFAULT NULL,
  `partner_id` int(10) unsigned DEFAULT NULL,
  `id` int(11) NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`),
  UNIQUE KEY `one_of_black_flag_per_partner` (`flag_id`,`partner_id`),
  KEY `partner_id` (`partner_id`),
  CONSTRAINT `syndication_partner_white_flags_ibfk_1` FOREIGN KEY (`flag_id`) REFERENCES `syndication_white_flags` (`id`),
  CONSTRAINT `syndication_partner_white_flags_ibfk_2` FOREIGN KEY (`partner_id`) REFERENCES `syndication_partners` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `syndication_partner_white_flags`
--

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

--
-- Table structure for table `syndication_white_flags`
--

DROP TABLE IF EXISTS `syndication_white_flags`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `syndication_white_flags` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `syndication_white_flags`
--

LOCK TABLES `syndication_white_flags` WRITE;
/*!40000 ALTER TABLE `syndication_white_flags` DISABLE KEYS */;
INSERT INTO `syndication_white_flags` VALUES (5,'iSHNOEdVdN');
/*!40000 ALTER TABLE `syndication_white_flags` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `syndication_shop_white_flags`
--

DROP TABLE IF EXISTS `syndication_shop_white_flags`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `syndication_shop_white_flags` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `white_flag_id` int(4) unsigned DEFAULT NULL,
  `customer_data_id` int(10) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `white_flag_id` (`white_flag_id`),
  KEY `syndication_shop_white_flags_customer_data_id_fk1` (`customer_data_id`),
  CONSTRAINT `syndication_shop_white_flags_customer_data_id_fk1` FOREIGN KEY (`customer_data_id`) REFERENCES `customer_data` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,
  CONSTRAINT `syndication_shop_white_flags_ibfk_3` FOREIGN KEY (`white_flag_id`) REFERENCES `syndication_white_flags` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `syndication_shop_white_flags`
--

LOCK TABLES `syndication_shop_white_flags` WRITE;
/*!40000 ALTER TABLE `syndication_shop_white_flags` DISABLE KEYS */;
INSERT INTO `syndication_shop_white_flags` VALUES (42,5,13313);
/*!40000 ALTER TABLE `syndication_shop_white_flags` 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-07-16 10:13:47
