seven 3 days ago
parent
commit
1b2abc808f
1 changed files with 36 additions and 0 deletions
  1. 36 0
      sql/sql_prod.sql

+ 36 - 0
sql/sql_prod.sql

@@ -427,5 +427,41 @@ CREATE TABLE `bot_gameplay_rules` (
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='玩法规则';
 
+-- ----------------------------
+-- Table structure for bot_bets
+-- ----------------------------
+DROP TABLE IF EXISTS `bot_bets`;
+CREATE TABLE `bot_bets` (
+  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `issue_id` int(11) DEFAULT NULL COMMENT '投注ID',
+  `issue_no` varchar(50) DEFAULT NULL COMMENT '投注期号',
+  `member_id` varchar(40) DEFAULT NULL COMMENT '飞机ID',
+  `user_id` int(11) DEFAULT NULL COMMENT '用户ID',
+  `keywords` varchar(50) DEFAULT NULL COMMENT '玩法',
+  `amount` decimal(20,2) DEFAULT '0.00' COMMENT '下分',
+  `odds` decimal(10,2) DEFAULT '1.00' COMMENT '倍率',
+  `status` tinyint(2) DEFAULT '1' COMMENT '状态:1-待结算,2-已结算',
+  `profit` decimal(20,2) DEFAULT '0.00' COMMENT '利润',
+  `created_at` datetime DEFAULT NULL COMMENT '创建时间',
+  `updated_at` datetime DEFAULT NULL,
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+-- ----------------------------
+-- Table structure for bot_issues
+-- ----------------------------
+DROP TABLE IF EXISTS `bot_issues`;
+CREATE TABLE `bot_issues` (
+  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `issue_no` varchar(50) DEFAULT NULL COMMENT '期号',
+  `start_time` datetime DEFAULT NULL COMMENT '开始时间',
+  `end_time` datetime DEFAULT NULL COMMENT '截止时间',
+  `winning_numbers` varchar(100) DEFAULT NULL COMMENT '中奖号码 按顺序 1,8,6',
+  `status` tinyint(2) DEFAULT '1' COMMENT '状态:0-待发布,1-投注中,2-封盘,3-开奖',
+  `created_at` datetime DEFAULT NULL COMMENT '创建时间',
+  `updated_at` datetime DEFAULT NULL,
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
+
 SET FOREIGN_KEY_CHECKS = 1;