-- MySQL dump 10.11
--
-- Host: localhost    Database: ztest
-- ------------------------------------------------------
-- Server version	5.0.77

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

DROP TABLE IF EXISTS `opl_bcmBc`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `opl_bcmBc` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `rid` int(10) unsigned default NULL,
  `barcode` varchar(50) NOT NULL default '',
  `status` varchar(25) NOT NULL default 'available',
  `pending` int(10) default '-1',
  `pendingFor` varchar(25) default '',
  `sessionid` varchar(40) default NULL,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `rid_bc` (`rid`,`barcode`),
  KEY `barcode` (`barcode`),
  KEY `status` (`status`(1))
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `opl_bcmRange`
--

DROP TABLE IF EXISTS `opl_bcmRange`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `opl_bcmRange` (
  `rid` int(10) unsigned NOT NULL auto_increment,
  `vid` int(10) unsigned default NULL,
  `bcLen` tinyint(4) default NULL,
  `preFix` varchar(10) default NULL,
  `rangeFr` int(10) unsigned default NULL,
  `rangeTo` int(10) unsigned default NULL,
  PRIMARY KEY  (`rid`),
  UNIQUE KEY `range` (`vid`,`preFix`,`bcLen`,`rangeFr`,`rangeTo`),
  KEY `vid` (`vid`),
  KEY `preFix` (`preFix`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `opl_bcmVendor`
--

DROP TABLE IF EXISTS `opl_bcmVendor`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `opl_bcmVendor` (
  `vid` int(10) unsigned NOT NULL auto_increment,
  `vendor` varchar(40) NOT NULL default 'Local',
  PRIMARY KEY  (`vid`),
  UNIQUE KEY `vendor` (`vendor`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `opl_emailRequest`
--

DROP TABLE IF EXISTS `opl_emailRequest`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `opl_emailRequest` (
  `eid` int(10) unsigned NOT NULL auto_increment,
  `email` varchar(255) default NULL,
  `uid` int(10) unsigned NOT NULL default '0',
  `sendDate` datetime default NULL,
  `status` enum('sent','waiting','rejected') NOT NULL default 'waiting',
  `retryCount` tinyint(5) unsigned NOT NULL default '0',
  `requestDate` datetime default NULL,
  `modDate` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`eid`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `opl_emailDetails`
--

DROP TABLE IF EXISTS `opl_emailDetails`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `opl_emailDetails` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `eid` int(10) unsigned NOT NULL default '0',
  `eContent` text,
  `eBarcodes` text,
  `subject` varchar(255) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
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 2010-08-05 16:19:42
