mirror of
https://github.com/v2board/v2board.git
synced 2025-07-09 07:09:17 +08:00
update: statistics
This commit is contained in:
@ -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`);
|
||||
|
Reference in New Issue
Block a user