-- MySQL dump 10.14  Distrib 5.5.60-MariaDB, for Linux (x86_64)
--
-- Host: localhost    Database: netsmart_za_db
-- ------------------------------------------------------
-- Server version	5.5.60-MariaDB

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

DROP TABLE IF EXISTS `tbl_ActivationsCount`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_ActivationsCount` (
  `iSno` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `iActivations` int(11) NOT NULL DEFAULT '0',
  `iPostback` int(11) NOT NULL DEFAULT '0',
  `iPromotionConfigID` int(11) NOT NULL DEFAULT '0',
  `dtCreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`iSno`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_ActivationsCount`
--

LOCK TABLES `tbl_ActivationsCount` WRITE;
/*!40000 ALTER TABLE `tbl_ActivationsCount` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_ActivationsCount` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_AocPageRequests`
--

DROP TABLE IF EXISTS `tbl_AocPageRequests`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_AocPageRequests` (
  `iSno` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `vcToken` varchar(50) NOT NULL,
  `vcRedirectLink` varchar(255) NOT NULL,
  `vcProvider` varchar(15) NOT NULL,
  `iPartnerToken` bigint(20) unsigned NOT NULL DEFAULT '0',
  `iServiceID` tinyint(4) NOT NULL DEFAULT '1',
  `iStatus` tinyint(4) NOT NULL,
  `dtCreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`iSno`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_AocPageRequests`
--

LOCK TABLES `tbl_AocPageRequests` WRITE;
/*!40000 ALTER TABLE `tbl_AocPageRequests` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_AocPageRequests` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_AocPageResponses`
--

DROP TABLE IF EXISTS `tbl_AocPageResponses`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_AocPageResponses` (
  `iSno` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `vcToken` varchar(50) NOT NULL,
  `iServiceID` tinyint(4) NOT NULL DEFAULT '1',
  `iMSISDN` bigint(20) unsigned NOT NULL DEFAULT '0',
  `iNetSmartID` bigint(20) unsigned NOT NULL DEFAULT '0',
  `vcProvider` varchar(15) NOT NULL,
  `vcInGracePeriod` varchar(10) NOT NULL,
  `dtGracePeriod` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `iPartnerToken` bigint(20) unsigned NOT NULL DEFAULT '0',
  `iStatus` tinyint(4) NOT NULL,
  `dtCreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`iSno`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_AocPageResponses`
--

LOCK TABLES `tbl_AocPageResponses` WRITE;
/*!40000 ALTER TABLE `tbl_AocPageResponses` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_AocPageResponses` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_Billing_Logs`
--

DROP TABLE IF EXISTS `tbl_Billing_Logs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_Billing_Logs` (
  `iBillingID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `iSubscriptionID` bigint(20) unsigned NOT NULL,
  `iTransactionID` bigint(20) unsigned NOT NULL,
  `iConfigID` int(11) NOT NULL DEFAULT '0',
  `iServiceID` tinyint(4) NOT NULL DEFAULT '1',
  `iMSISDN` bigint(20) unsigned NOT NULL,
  `vcSubscriptionSource` varchar(5) NOT NULL,
  `iMsgIdFrmAgg` bigint(20) unsigned NOT NULL,
  `iBillingStatus` tinyint(1) DEFAULT '1' COMMENT '0= Initate Payment 1=Success 2=Failed 3- Pending',
  `vcBillingType` varchar(5) NOT NULL,
  `dtBilling` datetime DEFAULT NULL,
  `dtBillingEnd` datetime DEFAULT NULL,
  `dtUnsubscribed` datetime DEFAULT NULL,
  `dtCreatedOn` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `dtUpdatedOn` datetime DEFAULT NULL,
  PRIMARY KEY (`iBillingID`),
  KEY `Billing_Logs_msisdn_indx` (`iMSISDN`),
  KEY `Billing_Logs_Createddt_indx` (`dtCreatedOn`),
  KEY `Billing_Logs_msisdn_msgid` (`iMsgIdFrmAgg`),
  KEY `Billing_Logs_BillingStatus_indx` (`iBillingStatus`),
  KEY `Billing_Logs_BillingType_indx` (`vcBillingType`),
  KEY `iSubscriptionID` (`iSubscriptionID`),
  KEY `indx_vcTransactionID_bill` (`iTransactionID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_Billing_Logs`
--

LOCK TABLES `tbl_Billing_Logs` WRITE;
/*!40000 ALTER TABLE `tbl_Billing_Logs` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_Billing_Logs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_DCB_Mos_Received`
--

DROP TABLE IF EXISTS `tbl_DCB_Mos_Received`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_DCB_Mos_Received` (
  `iSno` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `iMSISDN` bigint(20) unsigned NOT NULL DEFAULT '0',
  `iNetSmartID` bigint(20) unsigned NOT NULL DEFAULT '0',
  `iMoId` bigint(20) unsigned NOT NULL DEFAULT '0',
  `vcCarrier` varchar(15) NOT NULL,
  `vcMsg` varchar(50) NOT NULL,
  `dtReceivedDate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `iShortcode` int(11) NOT NULL DEFAULT '8877',
  `dtCreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`iSno`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_DCB_Mos_Received`
--

LOCK TABLES `tbl_DCB_Mos_Received` WRITE;
/*!40000 ALTER TABLE `tbl_DCB_Mos_Received` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_DCB_Mos_Received` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_Dlrs`
--

DROP TABLE IF EXISTS `tbl_Dlrs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_Dlrs` (
  `iSno` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `vcShortcode` varchar(10) NOT NULL,
  `iMSISDN` bigint(20) unsigned NOT NULL DEFAULT '0',
  `iNetSmartID` bigint(20) unsigned NOT NULL DEFAULT '0',
  `iMtID` bigint(20) unsigned NOT NULL DEFAULT '0',
  `vcProvider` varchar(15) NOT NULL,
  `vcPartnerID` varchar(15) NOT NULL,
  `dtTs` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `iAccount` tinyint(4) NOT NULL,
  `iTariff` int(6) DEFAULT NULL,
  `iError` tinyint(4) NOT NULL,
  `iStatus` tinyint(4) NOT NULL,
  `dtCreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`iSno`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_Dlrs`
--

LOCK TABLES `tbl_Dlrs` WRITE;
/*!40000 ALTER TABLE `tbl_Dlrs` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_Dlrs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_Incoming_Requests`
--

DROP TABLE IF EXISTS `tbl_Incoming_Requests`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_Incoming_Requests` (
  `iSno` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `vcUserIp` varchar(20) NOT NULL,
  `iUserLongIp` bigint(20) unsigned NOT NULL,
  `iServiceID` tinyint(4) NOT NULL DEFAULT '1',
  `dtCreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `iStatus` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`iSno`),
  KEY `idx_longip_createdon` (`iUserLongIp`,`dtCreatedOn`),
  KEY `idx_longip` (`iUserLongIp`),
  KEY `idx_created_date` (`dtCreatedOn`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_Incoming_Requests`
--

LOCK TABLES `tbl_Incoming_Requests` WRITE;
/*!40000 ALTER TABLE `tbl_Incoming_Requests` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_Incoming_Requests` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_OperatorConfig`
--

DROP TABLE IF EXISTS `tbl_OperatorConfig`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_OperatorConfig` (
  `iConfigID` int(11) NOT NULL AUTO_INCREMENT,
  `iOperatorID` int(11) NOT NULL,
  `vcServiceName` varchar(50) NOT NULL,
  `vcUserName` varchar(20) NOT NULL,
  `vcPassword` varchar(20) NOT NULL,
  `iShortCode` int(11) NOT NULL,
  `vcKeyword` varchar(10) NOT NULL,
  `iPeriod` tinyint(2) NOT NULL,
  `vcCurrency` varchar(5) NOT NULL,
  `iPrice` tinyint(2) NOT NULL,
  `vcMOUrl` varchar(100) NOT NULL,
  `vcDLRUrl` varchar(100) NOT NULL,
  `vcCallbackUrl` varchar(100) NOT NULL,
  `vcMOApiUrl` varchar(100) NOT NULL,
  `vcSessionApiUrl` varchar(100) NOT NULL,
  `vcPortalUrl` varchar(100) NOT NULL,
  `dtCreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `dtUpdatedOn` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `iStatus` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1-Active 2-InActive',
  PRIMARY KEY (`iConfigID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_OperatorConfig`
--

LOCK TABLES `tbl_OperatorConfig` WRITE;
/*!40000 ALTER TABLE `tbl_OperatorConfig` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_OperatorConfig` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_OperatorIPRanges`
--

DROP TABLE IF EXISTS `tbl_OperatorIPRanges`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_OperatorIPRanges` (
  `iSNo` int(11) NOT NULL AUTO_INCREMENT,
  `cOperatorName` char(20) NOT NULL,
  `cCidr` char(20) NOT NULL,
  `cLowIp` char(20) NOT NULL,
  `cHighIp` char(20) NOT NULL,
  `cLowLongIp` char(100) DEFAULT NULL,
  `cHighLongIp` char(100) DEFAULT NULL,
  `iStatus` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`iSNo`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_OperatorIPRanges`
--

LOCK TABLES `tbl_OperatorIPRanges` WRITE;
/*!40000 ALTER TABLE `tbl_OperatorIPRanges` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_OperatorIPRanges` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_Operators`
--

DROP TABLE IF EXISTS `tbl_Operators`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_Operators` (
  `iOperatorID` int(11) NOT NULL AUTO_INCREMENT,
  `vcOperatorName` varchar(20) NOT NULL,
  `iOperatorCode` int(5) NOT NULL DEFAULT '0',
  `iCountryID` int(11) NOT NULL,
  `dtCreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `iStatus` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1-Active 2-InActive',
  PRIMARY KEY (`iOperatorID`),
  KEY `tbl_operators_idx_ioperatorid_vcoperatorname` (`iOperatorID`,`vcOperatorName`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_Operators`
--

LOCK TABLES `tbl_Operators` WRITE;
/*!40000 ALTER TABLE `tbl_Operators` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_Operators` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_PromotionNotifications`
--

DROP TABLE IF EXISTS `tbl_PromotionNotifications`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_PromotionNotifications` (
  `iSno` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `iTransactionID` bigint(20) unsigned NOT NULL,
  `iOperatorID` tinyint(4) NOT NULL,
  `dtCreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `dtUpdatedOn` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `iStatus` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1-active 2-inactive',
  PRIMARY KEY (`iSno`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_PromotionNotifications`
--

LOCK TABLES `tbl_PromotionNotifications` WRITE;
/*!40000 ALTER TABLE `tbl_PromotionNotifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_PromotionNotifications` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_Promotions`
--

DROP TABLE IF EXISTS `tbl_Promotions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_Promotions` (
  `iPromotionID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `iPromotionConfigID` int(11) NOT NULL,
  `iOperatorID` smallint(6) NOT NULL,
  `iServiceID` tinyint(4) NOT NULL DEFAULT '1',
  `iTransactionID` bigint(20) unsigned NOT NULL,
  `iPayout` int(6) NOT NULL DEFAULT '0',
  `vcClickID` varchar(100) NOT NULL,
  `vcPubID` varchar(100) NOT NULL,
  `dtCreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `dtUpdatedOn` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `iStatus` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0-initiated,1-success',
  `iPostbackStatus` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`iPromotionID`),
  KEY `iPromotionConfigID` (`iPromotionConfigID`),
  KEY `tbl_promotions_idx_vcclickid_ipromotionid` (`vcClickID`,`iPromotionID`),
  KEY `tbl_promotions_idx_istatus_ipromotion_ipromotion` (`iStatus`,`iPromotionConfigID`,`iPromotionID`),
  KEY `tbl_promotions_idx_ipromo_iopera_dtcrea_istatu_ipostb` (`iPromotionConfigID`,`iOperatorID`,`dtCreatedOn`,`iStatus`,`iPostbackStatus`),
  KEY `iTransactionID` (`iTransactionID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_Promotions`
--

LOCK TABLES `tbl_Promotions` WRITE;
/*!40000 ALTER TABLE `tbl_Promotions` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_Promotions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_PromotionsConfig`
--

DROP TABLE IF EXISTS `tbl_PromotionsConfig`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_PromotionsConfig` (
  `iPromotionConfigID` int(11) NOT NULL AUTO_INCREMENT,
  `vcPromoterName` varchar(50) NOT NULL,
  `iOperatorID` int(11) NOT NULL,
  `iServiceID` tinyint(4) NOT NULL DEFAULT '1',
  `vcPromotionUrl` varchar(200) NOT NULL,
  `vcSourceKeyword` varchar(20) NOT NULL,
  `vcKeyword` varchar(10) NOT NULL,
  `vcPostbackUrl` varchar(200) NOT NULL,
  `iPostbackPercentage` tinyint(4) NOT NULL,
  `iPostbackLimit` int(11) NOT NULL,
  `iPayout` int(6) NOT NULL DEFAULT '0',
  `iTelcoLimit` int(11) NOT NULL DEFAULT '0',
  `iIpCheckTimeOut` smallint(6) NOT NULL DEFAULT '0',
  `iEnableIpCheck` tinyint(1) NOT NULL DEFAULT '1',
  `iPubPromotionEnabled` tinyint(1) DEFAULT '0',
  `iPubIpCheckPriority` tinyint(1) NOT NULL DEFAULT '0',
  `vcTrackingKeyword` varchar(10) NOT NULL,
  `vcPubIdKeyword` varchar(10) NOT NULL,
  `dtCreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `dtUpdatedOn` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `iStatus` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1-Active,2-InActive',
  PRIMARY KEY (`iPromotionConfigID`),
  KEY `vcTrackingKeyword` (`vcTrackingKeyword`),
  KEY `vcSourceKeyword` (`vcSourceKeyword`),
  KEY `tbl_promotionsconfig_idx_ipromotion_vcpromoter_ipostbackp` (`iPromotionConfigID`,`vcPromoterName`,`iPostbackPercentage`),
  KEY `tbl_promotionsconfig_idx_vcsour_istatu_ipromo_vctrac_vcpubi` (`vcSourceKeyword`,`iStatus`,`iPromotionConfigID`,`vcTrackingKeyword`,`vcPubIdKeyword`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_PromotionsConfig`
--

LOCK TABLES `tbl_PromotionsConfig` WRITE;
/*!40000 ALTER TABLE `tbl_PromotionsConfig` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_PromotionsConfig` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tbl_Subscriptions`
--

DROP TABLE IF EXISTS `tbl_Subscriptions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_Subscriptions` (
  `iSubscriptionID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `iConfigID` int(11) NOT NULL DEFAULT '0',
  `iServiceID` tinyint(4) NOT NULL DEFAULT '1',
  `iMSISDN` bigint(20) unsigned NOT NULL,
  `iTransactionID` bigint(20) unsigned NOT NULL,
  `iMoIdFrmAgg` bigint(20) unsigned NOT NULL,
  `vcSubscriptionSource` varchar(5) NOT NULL,
  `iActiveStatus` tinyint(1) DEFAULT NULL COMMENT '0=Initiated 1=Active 2=UnSubscribe',
  `dtSubscriptionRequest` datetime DEFAULT NULL,
  `dtSubscriptionEnd` datetime DEFAULT NULL,
  `dtUnsubscribed` datetime DEFAULT NULL,
  `dtCreatedOn` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `dtUpdatedOn` datetime DEFAULT NULL,
  PRIMARY KEY (`iSubscriptionID`),
  KEY `Subscriptions_Createddt_indx` (`dtCreatedOn`),
  KEY `Subscriptions_msidn_indx` (`iMSISDN`),
  KEY `Subscriptions_dtend_indx` (`dtSubscriptionEnd`),
  KEY `Subscriptions_Actstatus_indx` (`iActiveStatus`),
  KEY `iConfigID` (`iConfigID`),
  KEY `Billing_Logs_msisdn_msgid` (`iMoIdFrmAgg`),
  KEY `transaction_id_indx` (`iTransactionID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_Subscriptions`
--

LOCK TABLES `tbl_Subscriptions` WRITE;
/*!40000 ALTER TABLE `tbl_Subscriptions` DISABLE KEYS */;
/*!40000 ALTER TABLE `tbl_Subscriptions` 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 2020-05-11 12:02:47
