update: statistics

This commit is contained in:
tokumeikoi
2020-12-20 16:57:33 +08:00
parent 1d70382aee
commit 7e5e696c70
6 changed files with 200 additions and 39 deletions

View File

@ -375,3 +375,17 @@ ALTER TABLE `v2_stat_server`
ADD INDEX `record_at` (`record_at`),
ADD INDEX `server_id` (`server_id`);
CREATE TABLE `v2_stat_order` (
`id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`order_count` int(11) NOT NULL COMMENT '订单数量',
`order_amount` int(11) NOT NULL COMMENT '订单合计',
`commission_count` int(11) NOT NULL,
`commission_amount` int(11) NOT NULL COMMENT '佣金合计',
`record_type` char(1) NOT NULL,
`record_at` int(11) NOT NULL,
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL
) COMMENT='订单统计' COLLATE 'utf8_general_ci';
ALTER TABLE `v2_stat_order`
ADD UNIQUE `record_at` (`record_at`);