CREATE DATABASE  IF NOT EXISTS `log_db` /*!40100 DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci */;
USE `log_db`;
-- MySQL dump 10.13  Distrib 8.0.13, for Win64 (x86_64)
--
-- Host: localhost    Database: log_db
-- ------------------------------------------------------
-- Server version	5.5.5-10.4.31-MariaDB-1:10.4.31+maria~ubu1804-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 */;
 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 `bet_log_data_prematch`
--

DROP TABLE IF EXISTS `bet_log_data_prematch`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `bet_log_data_prematch` (
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `bet_id` bigint(20) NOT NULL,
  `sports_id` int(11) DEFAULT NULL,
  `league_id` int(11) DEFAULT NULL,
  `fixture_id` int(11) NOT NULL,
  `markets_id` smallint(4) NOT NULL,
  `bet_base_line` varchar(20) NOT NULL,
  `bet_name` varchar(20) NOT NULL,
  `bet_line` varchar(20) DEFAULT NULL,
  `bet_price` decimal(7,2) DEFAULT NULL,
  `tempPrice` decimal(7,2) DEFAULT NULL,
  `bet_status` tinyint(2) DEFAULT NULL,
  `last_update_provider` datetime DEFAULT NULL,
  `refund_rate` decimal(5,2) DEFAULT NULL,
  `deduction_rate` decimal(5,2) DEFAULT NULL,
  `margin_rate` decimal(5,2) DEFAULT NULL,
  `kstStartDate` datetime DEFAULT NULL,
  `providers` varchar(4096) DEFAULT NULL,
  KEY `create_dt_idx` (`create_dt`),
  KEY `fix_mk_idx` (`fixture_id`,`markets_id`,`bet_base_line`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bet_log_data_real`
--

DROP TABLE IF EXISTS `bet_log_data_real`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `bet_log_data_real` (
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `bet_id` bigint(20) NOT NULL,
  `sports_id` int(11) DEFAULT NULL,
  `league_id` int(11) DEFAULT NULL,
  `fixture_id` int(11) NOT NULL,
  `markets_id` smallint(4) NOT NULL,
  `bet_base_line` varchar(20) NOT NULL,
  `bet_name` varchar(20) NOT NULL,
  `bet_line` varchar(20) DEFAULT NULL,
  `bet_price` decimal(7,2) DEFAULT NULL,
  `tempPrice` decimal(7,2) DEFAULT NULL,
  `bet_status` tinyint(2) DEFAULT NULL,
  `last_update_provider` datetime DEFAULT NULL,
  `refund_rate` decimal(5,2) DEFAULT NULL,
  `deduction_rate` decimal(5,2) DEFAULT NULL,
  `margin_rate` decimal(5,2) DEFAULT NULL,
  `kstStartDate` datetime DEFAULT NULL,
  `providers` varchar(4096) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bet_log_data_rmq_prematch`
--

DROP TABLE IF EXISTS `bet_log_data_rmq_prematch`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `bet_log_data_rmq_prematch` (
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `create_db_dt` datetime(6) DEFAULT current_timestamp(6),
  `bet_id` bigint(20) NOT NULL,
  `sports_id` int(11) DEFAULT NULL,
  `league_id` int(11) DEFAULT NULL,
  `fixture_id` int(11) NOT NULL,
  `markets_id` smallint(4) NOT NULL,
  `bet_base_line` varchar(20) NOT NULL,
  `bet_name` varchar(20) NOT NULL,
  `bet_line` varchar(20) DEFAULT NULL,
  `bet_price` decimal(7,2) DEFAULT NULL,
  `tempPrice` decimal(7,2) DEFAULT NULL,
  `bet_status` tinyint(2) DEFAULT NULL,
  `last_update_provider` datetime DEFAULT NULL,
  `lsports_send_date` bigint(20) DEFAULT NULL,
  `rmq_recv_Date` datetime DEFAULT NULL,
  `base_timestamp` bigint(20) DEFAULT NULL,
  `msg_guid` varchar(64) DEFAULT NULL,
  `refund_rate` decimal(5,2) DEFAULT NULL,
  `deduction_rate` decimal(5,2) DEFAULT NULL,
  `margin_rate` decimal(5,2) DEFAULT NULL,
  `kstStartDate` datetime DEFAULT NULL,
  `providers` varchar(4096) DEFAULT NULL,
  `isInput` tinyint(2) DEFAULT NULL,
  KEY `fix_idx` (`fixture_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bet_log_data_rmq_real`
--

DROP TABLE IF EXISTS `bet_log_data_rmq_real`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `bet_log_data_rmq_real` (
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `create_db_dt` datetime(6) DEFAULT current_timestamp(6),
  `bet_id` bigint(20) NOT NULL,
  `sports_id` int(11) DEFAULT NULL,
  `league_id` int(11) DEFAULT NULL,
  `fixture_id` int(11) NOT NULL,
  `markets_id` smallint(4) NOT NULL,
  `bet_base_line` varchar(20) NOT NULL,
  `bet_name` varchar(20) NOT NULL,
  `bet_line` varchar(20) DEFAULT NULL,
  `bet_price` decimal(7,2) DEFAULT NULL,
  `tempPrice` decimal(7,2) DEFAULT NULL,
  `bet_status` tinyint(2) DEFAULT NULL,
  `last_update_provider` datetime DEFAULT NULL,
  `lsports_send_date` bigint(20) DEFAULT NULL,
  `rmq_recv_Date` datetime DEFAULT NULL,
  `base_timestamp` bigint(20) DEFAULT NULL,
  `msg_guid` varchar(64) DEFAULT NULL,
  `refund_rate` decimal(5,2) DEFAULT NULL,
  `deduction_rate` decimal(5,2) DEFAULT NULL,
  `margin_rate` decimal(5,2) DEFAULT NULL,
  `kstStartDate` datetime DEFAULT NULL,
  `providers` varchar(4096) DEFAULT NULL,
  `isInput` tinyint(2) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rmq1_log_data_prematch`
--

DROP TABLE IF EXISTS `rmq1_log_data_prematch`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `rmq1_log_data_prematch` (
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `create_db_dt` datetime(6) DEFAULT current_timestamp(6),
  `fixture_id` int(11) NOT NULL,
  `sports_id` int(11) DEFAULT NULL,
  `location_id` int(11) DEFAULT NULL,
  `league_id` int(11) DEFAULT NULL,
  `kstStartDate` datetime DEFAULT NULL,
  `fixture_status` tinyint(4) DEFAULT NULL,
  `fixture_participants_1_id` int(11) DEFAULT NULL,
  `fixture_participants_2_id` int(11) DEFAULT NULL,
  `display_status` int(11) DEFAULT NULL,
  `last_update` datetime DEFAULT current_timestamp(),
  `lsports_send_date` bigint(20) DEFAULT NULL,
  `rmq_recv_Date` datetime DEFAULT NULL,
  `base_timestamp` bigint(20) DEFAULT NULL,
  `msg_guid` varchar(64) DEFAULT NULL,
  `received` text DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rmq1_log_data_real`
--

DROP TABLE IF EXISTS `rmq1_log_data_real`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `rmq1_log_data_real` (
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `create_db_dt` datetime(6) DEFAULT current_timestamp(6),
  `fixture_id` int(11) NOT NULL,
  `sports_id` int(11) DEFAULT NULL,
  `location_id` int(11) DEFAULT NULL,
  `league_id` int(11) DEFAULT NULL,
  `kstStartDate` datetime DEFAULT NULL,
  `fixture_status` varchar(2) DEFAULT NULL,
  `fixture_participants_1_id` int(11) DEFAULT NULL,
  `fixture_participants_2_id` tinyint(2) DEFAULT NULL,
  `display_status` int(11) DEFAULT NULL,
  `last_update` datetime(6) DEFAULT current_timestamp(6),
  `lsports_send_date` bigint(20) DEFAULT NULL,
  `rmq_recv_Date` datetime DEFAULT NULL,
  `base_timestamp` bigint(20) DEFAULT NULL,
  `msg_guid` varchar(64) DEFAULT NULL,
  `live_score` mediumtext DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rmq2_live_score_log_prematch`
--

DROP TABLE IF EXISTS `rmq2_live_score_log_prematch`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `rmq2_live_score_log_prematch` (
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `create_db_dt` datetime(6) DEFAULT current_timestamp(6),
  `fixture_id` int(11) NOT NULL,
  `value1` smallint(4) NOT NULL,
  `value2` smallint(4) NOT NULL,
  `liveTime` int(11) NOT NULL,
  `liveCurrentPeriod` smallint(4) DEFAULT NULL,
  `status` smallint(4) NOT NULL,
  `lsports_send_date` bigint(20) DEFAULT NULL,
  `rmq_recv_Date` datetime DEFAULT NULL,
  `base_timestamp` bigint(20) DEFAULT NULL,
  `msg_guid` varchar(64) DEFAULT NULL,
  `live_score` mediumtext DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rmq2_live_score_log_real`
--

DROP TABLE IF EXISTS `rmq2_live_score_log_real`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `rmq2_live_score_log_real` (
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `create_db_dt` datetime(6) DEFAULT current_timestamp(6),
  `fixture_id` int(11) NOT NULL,
  `value1` smallint(4) NOT NULL,
  `value2` smallint(4) NOT NULL,
  `liveTime` int(11) NOT NULL,
  `liveCurrentPeriod` smallint(4) DEFAULT NULL,
  `status` smallint(4) NOT NULL,
  `lsports_send_date` bigint(20) DEFAULT NULL,
  `rmq_recv_Date` datetime DEFAULT NULL,
  `base_timestamp` bigint(20) DEFAULT NULL,
  `msg_guid` varchar(64) DEFAULT NULL,
  `live_score` mediumtext DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rmq35_log_data_prematch`
--

DROP TABLE IF EXISTS `rmq35_log_data_prematch`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `rmq35_log_data_prematch` (
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `create_db_dt` datetime(6) DEFAULT current_timestamp(6),
  `bet_id` bigint(20) NOT NULL,
  `sports_id` int(11) DEFAULT NULL,
  `league_id` int(11) DEFAULT NULL,
  `fixture_id` int(11) NOT NULL,
  `markets_id` smallint(4) NOT NULL,
  `bet_base_line` varchar(20) NOT NULL,
  `bet_name` varchar(20) NOT NULL,
  `bet_line` varchar(20) DEFAULT NULL,
  `bet_price` decimal(7,2) DEFAULT NULL,
  `bet_status` tinyint(2) DEFAULT NULL,
  `last_update` datetime DEFAULT NULL,
  `lsports_send_date` bigint(20) DEFAULT NULL,
  `rmq_recv_Date` datetime DEFAULT NULL,
  `base_timestamp` bigint(20) DEFAULT NULL,
  `msg_guid` varchar(64) DEFAULT NULL,
  `providerId` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rmq35_log_data_real`
--

DROP TABLE IF EXISTS `rmq35_log_data_real`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `rmq35_log_data_real` (
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `create_db_dt` datetime(6) DEFAULT current_timestamp(6),
  `bet_id` bigint(20) NOT NULL,
  `sports_id` int(11) DEFAULT NULL,
  `fixture_id` int(11) NOT NULL,
  `markets_id` smallint(4) NOT NULL,
  `bet_base_line` varchar(20) NOT NULL,
  `bet_name` varchar(20) NOT NULL,
  `bet_line` varchar(20) DEFAULT NULL,
  `bet_price` decimal(7,2) DEFAULT NULL,
  `bet_status` tinyint(2) DEFAULT NULL,
  `last_update` datetime DEFAULT NULL,
  `lsports_send_date` bigint(20) DEFAULT NULL,
  `rmq_recv_Date` datetime DEFAULT NULL,
  `base_timestamp` bigint(20) DEFAULT NULL,
  `msg_guid` varchar(64) DEFAULT NULL,
  `providerId` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!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 2023-10-02  8:44:57
