1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| drop database IF EXISTS AiMacauAnalyse;
create database AiMacauAnalyse DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; use AiMacauAnalyse;
DROP TABLE IF EXISTS `t_analyse_gametotal`; CREATE TABLE `t_analyse_gametotal` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dbkey` bigint(20) DEFAULT '0', `ukey` varchar(50) DEFAULT NULL, `client_type` int(20) DEFAULT '0', `cp_id` varchar(20) DEFAULT NULL, `dnu` int(11) DEFAULT '0', `dau` int(11) DEFAULT '0', `wau` int(11) DEFAULT '0', `mau` int(11) DEFAULT '0', `login_times` int(11) DEFAULT '0', `time_length` int(11) DEFAULT '0', `new_pay_num` int(11) DEFAULT '0', `pay_money` double(20,2) DEFAULT '0.00', `pay_num` int(11) DEFAULT '0', `sec_num` int(11) DEFAULT '0', `three_num` int(11) DEFAULT '0', `seven_num` int(11) DEFAULT '0', `mpay` double(20,2) DEFAULT '0.00', `mpay_num` int(11) DEFAULT '0', `pay_times` int(11) DEFAULT '0', `mpay_times` int(11) DEFAULT '0', `create_time` bigint(20) DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `ukey` (`ukey`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS db_poker_sgame.`tb_player_daily_profit`; CREATE TABLE `tb_player_daily_profit` ( `id` int(11) NOT NULL AUTO_INCREMENT, `pid` int(11) NOT NULL, `nickName` varchar(20) DEFAULT '', `userName` varchar(20) NOT NULL DEFAULT '', `clubId` int(11) NOT NULL, `clubName` varchar(20) NOT NULL DEFAULT '', `superClubId` int(11) NOT NULL, `superClubName` varchar(20) NOT NULL DEFAULT '', `sumPlayerProfit` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家总盈亏', `sumValidBet` bigint(20) NOT NULL DEFAULT '0' COMMENT '有效下注', `sgameRebateNegative` float(4,4) NOT NULL DEFAULT '0.00' COMMENT '俱乐部街机游戏分成比例-负数', `sgameRebatePostive` float(4,4) NOT NULL DEFAULT '0.00' COMMENT '俱乐部街机游戏分成比例-正数', `sgameBetRebate` float(4,4) NOT NULL DEFAULT '0.00' COMMENT '街机游戏投注分成比例', `sumClubProfit` bigint(20) NOT NULL DEFAULT '0' COMMENT '俱乐部总盈亏', `sumPlatformProfit` bigint(20) NOT NULL DEFAULT '0' COMMENT '平台总盈亏', `perDay` varchar(11) NOT NULL COMMENT '单日', `countEndTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `IDX_UNIQUE` (`pid`,`perDay`), index `IDX_CLUB_ID`(`clubId`), index `IDX_DAY`(`perDay`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|