update: sql

This commit is contained in:
tokumeikoi 2022-02-25 17:10:43 +08:00
parent 1813fdca5d
commit ebfba1b178
2 changed files with 10 additions and 2 deletions

View File

@ -322,7 +322,10 @@ CREATE TABLE `v2_stat_user` (
`record_at` int(11) NOT NULL,
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL,
PRIMARY KEY (`id`)
PRIMARY KEY (`id`),
KEY `server_id` (`server_id`),
KEY `user_id` (`user_id`),
KEY `record_at` (`record_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
@ -390,4 +393,4 @@ CREATE TABLE `v2_user` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 2022-02-23 07:42:04
-- 2022-02-25 09:10:24

View File

@ -508,3 +508,8 @@ CREATE TABLE `v2_stat_user` (
ALTER TABLE `v2_payment`
ADD `notify_domain` varchar(128) COLLATE 'utf8mb4_general_ci' NULL AFTER `config`;
ALTER TABLE `v2_stat_user`
ADD INDEX `server_id` (`server_id`),
ADD INDEX `user_id` (`user_id`),
ADD INDEX `record_at` (`record_at`);