|
|
|
@ -510,25 +510,21 @@ ADD INDEX `widthdraw_number`(`widthdraw_number`);
|
|
|
|
|
--玩家角色数据统计表
|
|
|
|
|
CREATE TABLE `tab_user_play_data_count` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`game_id` int(11) NOT NULL DEFAULT '0' COMMENT '游戏id',
|
|
|
|
|
`user_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家ID',
|
|
|
|
|
`promote_id` int(11) NOT NULL DEFAULT 0 COMMENT '推广员ID',
|
|
|
|
|
`game_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
|
|
|
|
|
`server_id` varchar(255) NOT NULL COMMENT '区服id',
|
|
|
|
|
`role_id` varchar(255) NOT NULL COMMENT '角色id',
|
|
|
|
|
`recharge_cost` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '充值总额',
|
|
|
|
|
`recharge_count` int(10) NOT NULL DEFAULT '0' COMMENT '充值次数',
|
|
|
|
|
`create_time` int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
|
|
|
`recharge_count` int(10) NOT NULL DEFAULT 0 COMMENT '充值次数',
|
|
|
|
|
`create_time` int(10) NOT NULL DEFAULT 0 COMMENT '创建时间',
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
KEY `recharge_cost` (`recharge_cost`) USING BTREE,
|
|
|
|
|
KEY `recharge_count` (`recharge_count`) USING BTREE,
|
|
|
|
|
KEY `search` (`game_id`,`server_id`,`role_id`) USING BTREE,
|
|
|
|
|
KEY `create_time` (`create_time`) USING BTREE
|
|
|
|
|
KEY `create_time` (`create_time`) USING BTREE,
|
|
|
|
|
KEY `search` (`user_id`,`promote_id`,`game_id`,`server_id`,`role_id`,`create_time`) USING BTREE
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
ALTER TABLE `tab_user_play_data_count`
|
|
|
|
|
ADD INDEX `search`(`game_id`, `server_id`, `role_id`, `create_time`) USING BTREE,
|
|
|
|
|
ADD INDEX `create_time`(`create_time`) USING BTREE;
|
|
|
|
|
ADD INDEX `recharge_cost`(`recharge_cost`) USING BTREE,
|
|
|
|
|
ADD INDEX `recharge_count`(`recharge_count`) USING BTREE;
|
|
|
|
|
|
|
|
|
|
--身份证认证信息
|
|
|
|
|
CREATE TABLE `tab_idcard_log` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
@ -551,15 +547,6 @@ ADD COLUMN `spend_ids` longtext NOT NULL COMMENT '充值订单id';
|
|
|
|
|
ALTER TABLE `tab_promote`
|
|
|
|
|
ADD COLUMN`oa_associated` tinyint(1) DEFAULT '0' COMMENT 'oa是否关联',
|
|
|
|
|
|
|
|
|
|
--玩家角色数据统计表--添加玩家ID和推广员ID
|
|
|
|
|
ALTER TABLE `tab_user_play_data_count`
|
|
|
|
|
ADD COLUMN `user_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家ID',
|
|
|
|
|
ADD COLUMN `promote_id` int(11) NOT NULL DEFAULT 0 COMMENT '推广员ID';
|
|
|
|
|
|
|
|
|
|
ALTER TABLE `tab_user_play_data_count`
|
|
|
|
|
DROP INDEX `search`,
|
|
|
|
|
ADD INDEX `search`(`user_id`, `promote_id`, `game_id`, `server_id`, `role_id`, `create_time`) USING BTREE;
|
|
|
|
|
|
|
|
|
|
--玩家角色表--添加索引
|
|
|
|
|
ALTER TABLE `tab_user_play_info`
|
|
|
|
|
ADD INDEX `game_id`(`game_id`, `server_id`, `role_id`);
|