|
|
|
@ -254,3 +254,48 @@ MODIFY COLUMN `name` char(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT N
|
|
|
|
|
ALTER TABLE `tab_spend_month_count`
|
|
|
|
|
MODIFY COLUMN `balance_coin_count` decimal(10,2) NULL DEFAULT 0.00 COMMENT '平台币游戏支付流水' AFTER `cash_count`,
|
|
|
|
|
ADD COLUMN `balance_coin_deposit` decimal(10,2) NULL DEFAULT 0.00 COMMENT '平台币充值流水' AFTER `balance_coin_count`;
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `tab_spend_count`;
|
|
|
|
|
CREATE TABLE `tab_spend_count` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增主键',
|
|
|
|
|
`promote_id` int(11) NOT NULL DEFAULT '0' COMMENT '推广员id',
|
|
|
|
|
`promote_account` varchar(30) DEFAULT '' COMMENT '推广员账号',
|
|
|
|
|
`chain` varchar(255) NOT NULL DEFAULT '' COMMENT '推广员链路',
|
|
|
|
|
`level` tinyint(1) NOT NULL DEFAULT '0' COMMENT '推广员级别',
|
|
|
|
|
`game_id` int(11) NOT NULL DEFAULT '0' COMMENT '游戏id',
|
|
|
|
|
`game_name` varchar(30) DEFAULT '' COMMENT '游戏名称',
|
|
|
|
|
`partner_id` int(11) DEFAULT '0' COMMENT '合作方id',
|
|
|
|
|
`partner_name` varchar(50) DEFAULT NULL COMMENT '合作方名称',
|
|
|
|
|
`cash_count` decimal(10,2) DEFAULT '0.00' COMMENT '现金流水',
|
|
|
|
|
`balance_coin_count` decimal(10,2) DEFAULT '0.00' COMMENT '平台币流水',
|
|
|
|
|
`inside_cash_count` decimal(10,2) DEFAULT '0.00' COMMENT '内充流水/绑定币流水',
|
|
|
|
|
`count_date` varchar(30) DEFAULT '' COMMENT '统计月份',
|
|
|
|
|
`create_time` int(11) DEFAULT NULL COMMENT '添加时间',
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
|
KEY `game_id` (`game_id`) USING BTREE,
|
|
|
|
|
KEY `promote_id` (`promote_id`) USING BTREE,
|
|
|
|
|
KEY `partner_id` (`partner_id`) USING BTREE,
|
|
|
|
|
KEY `chain` (`chain`) USING BTREE,
|
|
|
|
|
KEY `level` (`level`) USING BTREE,
|
|
|
|
|
KEY `count_date` (`count_date`) USING BTREE
|
|
|
|
|
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='游戏流水聚合表';
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `tab_spend_user_count`;
|
|
|
|
|
CREATE TABLE `tab_spend_user_count` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增主键',
|
|
|
|
|
`promote_id` int(11) NOT NULL DEFAULT '0' COMMENT '推广员id',
|
|
|
|
|
`promote_account` varchar(30) DEFAULT '' COMMENT '推广员账号',
|
|
|
|
|
`chain` varchar(255) NOT NULL DEFAULT '' COMMENT '推广员链路',
|
|
|
|
|
`level` tinyint(1) NOT NULL DEFAULT '0' COMMENT '推广员级别',
|
|
|
|
|
`cash_count` decimal(10,2) DEFAULT '0.00' COMMENT '现金流水',
|
|
|
|
|
`balance_coin_count` decimal(10,2) DEFAULT '0.00' COMMENT '平台币流水',
|
|
|
|
|
`inside_cash_count` decimal(10,2) DEFAULT '0.00' COMMENT '内充流水',
|
|
|
|
|
`all_count` decimal(10,2) DEFAULT '0.00' COMMENT '流水和',
|
|
|
|
|
`count_date` varchar(30) DEFAULT '' COMMENT '统计月份',
|
|
|
|
|
`create_time` int(11) DEFAULT NULL COMMENT '添加时间',
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
|
KEY `promote_id` (`promote_id`) USING BTREE,
|
|
|
|
|
KEY `chain` (`chain`) USING BTREE,
|
|
|
|
|
KEY `level` (`level`) USING BTREE,
|
|
|
|
|
KEY `count_date` (`count_date`) USING BTREE
|
|
|
|
|
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='流水角色聚合表';
|