测试:增加设备数限制功能

This commit is contained in:
wyx2685
2023-10-14 18:32:15 +09:00
parent dffe39b6d9
commit ac38036f8e
14 changed files with 113 additions and 4 deletions

View File

@@ -180,6 +180,7 @@ CREATE TABLE `v2_plan` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`transfer_enable` int(11) NOT NULL,
`device_limit` int(11) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`speed_limit` int(11) DEFAULT NULL,
`show` tinyint(1) NOT NULL DEFAULT '0',
@@ -451,6 +452,7 @@ CREATE TABLE `v2_user` (
`u` bigint(20) NOT NULL DEFAULT '0',
`d` bigint(20) NOT NULL DEFAULT '0',
`transfer_enable` bigint(20) NOT NULL DEFAULT '0',
`device_limit` int(11) DEFAULT NULL,
`banned` tinyint(1) NOT NULL DEFAULT '0',
`is_admin` tinyint(1) NOT NULL DEFAULT '0',
`last_login_at` int(11) DEFAULT NULL,

View File

@@ -723,3 +723,8 @@ ALTER TABLE `v2_server_hysteria`
UPDATE v2_server_vless
SET tls_settings = REPLACE(tls_settings, 'shortId', 'short_id');
ALTER TABLE `v2_plan`
ADD `device_limit` int(11) NULL AFTER `transfer_enable`;
ALTER TABLE `v2_user`
ADD `device_limit` int(11) NULL AFTER `transfer_enable`;