update: optimization stat user

This commit is contained in:
tokumeikoi
2022-03-29 14:57:09 +08:00
parent 20b60d553c
commit af2f6a31da
4 changed files with 16 additions and 9 deletions

View File

@ -524,3 +524,13 @@ ADD `handling_fee_percent` decimal(5,2) NULL AFTER `handling_fee_fixed`;
ALTER TABLE `v2_order`
ADD `handling_amount` int(11) NULL AFTER `total_amount`;
ALTER TABLE `v2_stat_user`
ADD UNIQUE `server_rate_user_id_record_at` (`server_rate`, `user_id`, `record_at`),
ADD INDEX `server_rate` (`server_rate`),
DROP INDEX `server_id_user_id_record_at`,
DROP INDEX `server_id`;
ALTER TABLE `v2_stat_user`
DROP `server_id`,
DROP `server_type`;