-- MySQL dump 10.13  Distrib 5.5.19, for Linux (x86_64)
--
-- Host: localhost    Database: wrtmc
-- ------------------------------------------------------
-- Server version	5.5.19

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

/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE IF NOT EXISTS `bfcms_redirects` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `url` varchar(255) NOT NULL,
  `redirect_to` varchar(255) NOT NULL,
  `redirect_code` smallint(3) NOT NULL DEFAULT '301',
  `enabled` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `created_by` varchar(128) DEFAULT NULL,
  `created_on` datetime DEFAULT NULL,
  `modified_by` varchar(128) DEFAULT NULL,
  `modified_on` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `bf_redirect_url` (`url`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bfcms_ad_injection`
--

/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE IF NOT EXISTS `bfcms_ad_injection` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `target` varchar(32) NOT NULL DEFAULT 'default',
  `placement` int(10) unsigned NOT NULL DEFAULT '0',
  `position` int(10) unsigned NOT NULL DEFAULT '0',
  `created_on` datetime DEFAULT NULL,
  `created_by` varchar(128) DEFAULT NULL,
  `modified_on` timestamp NULL DEFAULT NULL,
  `modified_by` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bfcms_ad_manager`
--

/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE IF NOT EXISTS `bfcms_ad_manager` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `client` varchar(64) DEFAULT NULL,
  `campaign` varchar(32) DEFAULT NULL,
  `placement` int(10) unsigned NOT NULL,
  `revenue_type` varchar(16) NOT NULL DEFAULT 'CPM',
  `media_mime_type` varchar(64) DEFAULT NULL,
  `media_type` varchar(16) NOT NULL,
  `media` mediumtext,
  `failover` varchar(255) DEFAULT NULL,
  `clickthrough_url` varchar(255) NOT NULL,
  `impressions` bigint(20) unsigned NOT NULL DEFAULT '0',
  `views` bigint(20) unsigned NOT NULL DEFAULT '0',
  `clicks` bigint(20) unsigned NOT NULL DEFAULT '0',
  `failover_impressions` int(11) unsigned NOT NULL DEFAULT '0',
  `failover_clicks` int(11) unsigned NOT NULL DEFAULT '0',
  `failover_views` int(11) unsigned NOT NULL DEFAULT '0',
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `hard_end_date` date DEFAULT NULL,
  `max_impressions` bigint(20) DEFAULT '0',
  `max_clicks` int(11) NOT NULL DEFAULT '0',
  `max_views` int(11) DEFAULT '0',
  `last_impression` datetime DEFAULT NULL,
  `last_impression_url` varchar(255) DEFAULT NULL,
  `last_click_url` varchar(255) DEFAULT NULL,
  `last_click` datetime DEFAULT NULL,
  `enabled` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `verified` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `completed` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `completed_on` datetime DEFAULT NULL,
  `premature` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `stopped_on` datetime DEFAULT NULL,
  `enable_analytics` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `analytics_category` varchar(32) DEFAULT NULL,
  `analytics_label` varchar(32) DEFAULT NULL,
  `comments` text,
  `created_on` datetime DEFAULT NULL,
  `created_by` varchar(128) DEFAULT NULL,
  `modified_on` timestamp NULL DEFAULT NULL,
  `modified_by` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bfcms_ad_placement`
--

/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE IF NOT EXISTS `bfcms_ad_placement` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(64) NOT NULL,
  `width` int(10) unsigned NOT NULL,
  `height` int(10) unsigned NOT NULL,
  `allow_multiple_ads` tinyint(1) DEFAULT '0',
  `custom1` varchar(64) DEFAULT NULL,
  `custom2` varchar(64) DEFAULT NULL,
  `custom_int1` int(11) DEFAULT NULL,
  `custom_int2` int(11) DEFAULT NULL,
  `custom_flag1` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `custom_flag2` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `created_on` datetime DEFAULT NULL,
  `created_by` varchar(128) DEFAULT NULL,
  `modified_on` timestamp NULL DEFAULT NULL,
  `modified_by` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!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 2012-03-16 13:29:10
