diff --git a/database/update.sql b/database/update.sql
index 8b4ba483..5f50de3f 100644
--- a/database/update.sql
+++ b/database/update.sql
@@ -1,149 +1,13 @@
-ALTER TABLE `v2_server`
-ADD `last_check_at` int(11) NULL AFTER `rate`;
+-- Adminer 4.7.3 MySQL dump
-ALTER TABLE `v2_server`
-ADD `network` varchar(11) COLLATE 'utf8_general_ci' NOT NULL AFTER `rate`;
-
-ALTER TABLE `v2_server`
-ADD `settings` text COLLATE 'utf8_general_ci' NULL AFTER `network`;
-
-ALTER TABLE `v2_server`
-ADD `show` tinyint(1) NOT NULL DEFAULT '0' AFTER `settings`;
-
-ALTER TABLE `v2_user`
-CHANGE `enable` `enable` tinyint(1) NOT NULL DEFAULT '1' AFTER `transfer_enable`;
-
-ALTER TABLE `v2_order`
-ADD `type` int(11) NOT NULL COMMENT '1新购2续费3升级' AFTER `plan_id`;
-
-ALTER TABLE `v2_user`
-ADD `commission_rate` int(11) NULL AFTER `password`;
-
-ALTER TABLE `v2_user`
-ADD `balance` int(11) NOT NULL DEFAULT '0' AFTER `password`;
-
-CREATE TABLE `v2_notice` (
- `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
- `title` varchar(255) NOT NULL,
- `content` text NOT NULL,
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL
-);
-
-ALTER TABLE `v2_notice`
-ADD `img_url` varchar(255) COLLATE 'utf8_general_ci' NULL AFTER `content`;
-
-CREATE TABLE `v2_ticket` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL,
- `subject` varchar(255) NOT NULL,
- `level` tinyint(1) NOT NULL,
- `status` tinyint(1) NOT NULL DEFAULT '0',
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-
-CREATE TABLE `v2_ticket_message` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL,
- `ticket_id` int(11) NOT NULL,
- `message` varchar(255) NOT NULL,
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-
-ALTER TABLE `v2_ticket`
-ADD `last_reply_user_id` int(11) NOT NULL AFTER `user_id`;
-
-ALTER TABLE `v2_user`
-CHANGE `last_login_at` `last_login_at` int(11) NULL AFTER `is_admin`;
-
-ALTER TABLE `v2_server_log`
-CHANGE `node_id` `server_id` int(11) NOT NULL AFTER `user_id`,
-CHANGE `u` `u` varchar(255) COLLATE 'utf8_general_ci' NOT NULL AFTER `server_id`,
-CHANGE `d` `d` varchar(255) COLLATE 'utf8_general_ci' NOT NULL AFTER `u`,
-CHANGE `rate` `rate` int(11) NOT NULL AFTER `d`;
-
-ALTER TABLE `v2_server`
-DROP `last_check_at`;
-
-ALTER TABLE `v2_server`
-CHANGE `name` `name` varchar(255) COLLATE 'utf8mb4_general_ci' NOT NULL AFTER `group_id`;
-
-ALTER TABLE `v2_plan`
-CHANGE `month_price` `month_price` int(11) NULL DEFAULT '0' AFTER `content`,
-CHANGE `quarter_price` `quarter_price` int(11) NULL DEFAULT '0' AFTER `month_price`,
-CHANGE `half_year_price` `half_year_price` int(11) NULL DEFAULT '0' AFTER `quarter_price`,
-CHANGE `year_price` `year_price` int(11) NULL DEFAULT '0' AFTER `half_year_price`;
-
-ALTER TABLE `v2_server`
-ADD `parent_id` int(11) NULL AFTER `group_id`;
-
-CREATE TABLE `v2_mail_log` (
- `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
- `email` varchar(64) NOT NULL,
- `subject` varchar(255) NOT NULL,
- `template_name` varchar(255) NOT NULL,
- `error` varchar(255) DEFAULT NULL,
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL
-);
-
-CREATE TABLE `v2_coupon` (
- `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
- `code` char(32) NOT NULL,
- `name` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
- `type` tinyint(1) NOT NULL,
- `value` int(11) NOT NULL,
- `limit_use` int(11) DEFAULT NULL,
- `started_at` int(11) NOT NULL,
- `ended_at` int(11) NOT NULL,
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL
-);
-
-ALTER TABLE `v2_order`
-ADD `discount_amount` int(11) NULL AFTER `total_amount`;
-
-CREATE TABLE `v2_tutorial` (
- `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
- `title` varchar(255) COLLATE 'utf8mb4_general_ci' NOT NULL,
- `description` varchar(255) COLLATE 'utf8mb4_general_ci' NOT NULL,
- `icon` varchar(255) COLLATE 'utf8mb4_general_ci' NOT NULL,
- `steps` text NULL,
- `show` tinyint(1) NOT NULL DEFAULT '0',
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL
-);
+SET NAMES utf8;
+SET time_zone = '+00:00';
+SET foreign_key_checks = 0;
+SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
SET NAMES utf8mb4;
-INSERT INTO `v2_tutorial` (`id`, `title`, `description`, `icon`, `steps`, `show`, `created_at`, `updated_at`) VALUES
-(1, 'Windows', '兼容 Windows 7 以上的版本', 'fab fa-2x fa-windows', '[{\"default_area\":\"
下载 V2rayN 客户端。
下载完成后解压,解压完成后运行V2rayN
运行时请右键,以管理员身份运行
\",\"download_url\":\"/downloads/V2rayN.zip\"},{\"default_area\":\"点击订阅按钮,选择订阅设置点击添加,输入如下内容后点击确定保存
\",\"safe_area\":\"备注:{{$app_name}}
\\n地址(url):{{$subscribe_url}}
\",\"img_url\":\"https://i.loli.net/2019/11/21/UkcHNtERTnjLVS8.jpg\"},{\"default_area\":\"点击订阅后,从服务器列表选择服务器
\",\"img_url\":\"https://i.loli.net/2019/11/21/BgPGFQ3kCSuIRjJ.jpg\"},{\"default_area\":\"点击参数设置,找到Http代理,选择PAC模式后按确定保存即启动代理。
\",\"img_url\":\"https://i.loli.net/2019/11/21/vnVykKEFT8Lzo3f.jpg\"}]', 1, 1577972408, 1577980882),
-(2, 'Android', '兼容 Android 6 以上的版本', 'fab fa-2x fa-android', '[{\"default_area\":\"下载 V2rayNG 客户端。
\",\"safe_area\":\"\",\"download_url\":\"/downloads/V2rayNG.apk\"},{\"default_area\":\"打开 V2rayNG 点击左上角的菜单图标打开侧边栏,随后点击 订阅设置,点击右上角的➕按钮新增订阅。
按照下方内容进行填写,填写完毕后点击右上角的☑️按钮。
\",\"safe_area\":\"备注:{{$app_name}}
\\n地址(url):{{$subscribe_url}}
\",\"download_url\":\"\",\"img_url\":\"https://i.loli.net/2019/11/21/ghuVkTe6LBqRxSO.jpg\"},{\"default_area\":\"再次从侧边栏进入 设置 页面,点击 路由模式 将其更改为 \\b绕过局域网及大陆地址。
\",\"img_url\":\"https://i.loli.net/2019/11/21/Tf1AGoXZuhJrwOq.jpg\"},{\"default_area\":\"随后从侧边栏回到 配置文件 页面,点击右上角的省略号图标选择更新订阅。
\",\"img_url\":\"https://i.loli.net/2019/11/21/UtfPShQXupRmB4L.jpg\"},{\"img_url\":\"https://i.loli.net/2019/11/21/ZkbNsSrAg3m5Dny.jpg\",\"default_area\":\"点击选择您需要的节点,点击右下角的V字按钮即可连接。
\"}]', 1, 1577972534, 1577981610),
-(3, 'macOS', '兼容 Yosemite 以上的版本', 'fab fa-2x fa-apple', '[{\"default_area\":\"下载 ClashX 客户端,安装后运行。
\",\"download_url\":\"/downloads/ClashX.dmg\",\"img_url\":\"https://i.loli.net/2019/11/20/uNGrjl2noCL1f5B.jpg\"},{\"default_area\":\"点击通知栏 ClashX 图标保持选中状态,按快捷键 ⌘+M(订阅快捷键),在弹出的窗口点击添加输入下方信息
\",\"safe_area\":\"Url:{{$subscribe_url}}
\\nConfig Name:{{$app_name}}
\",\"img_url\":\"https://i.loli.net/2019/11/20/8eB13mRbFuszwxg.jpg\"},{\"default_area\":\"点击通知栏 ClashX 图标保持选中状态,按快捷键 ⌘+S(设置为系统代理快捷键),即连接完成
\"}]', 1, 1577979855, 1577981646),
-(4, 'iOS', '兼容 iOS 9 以上的版本', 'fab fa-2x fa-apple', '[{\"default_area\":\"iOS上使用请在iOS浏览器中打开本页
\"},{\"default_area\":\"在 App Store 登录本站提供的美区 Apple ID 下载客户端。
为了保护您的隐私,请勿在手机设置里直接登录,仅在 App Store 登录即可。
登陆完成后点击下方下载会自动唤起下载。
\",\"safe_area\":\"Apple ID:{{$apple_id}}
密码:点击复制密码
\",\"download_url\":\"https://apps.apple.com/us/app/shadowrocket/id932747118\",\"img_url\":\"https://i.loli.net/2019/11/21/5idkjJ61stWgREV.jpg\"},{\"default_area\":\"待客户端安装完成后,点击下方一键订阅按钮会自动唤起并进行订阅
\",\"safe_area\":\"\",\"img_url\":\"https://i.loli.net/2019/11/21/ZcqlNMb3eg5Uhxd.jpg\",\"download_url\":\"shadowrocket://add/sub://{{$b64_subscribe_url}}?remark={{$app_name}}\"},{\"default_area\":\"选择节点进行链接,首次链接过程授权窗口请一路允许。
\",\"img_url\":\"https://i.loli.net/2019/11/21/9Zdxksr7Ey6hjlm.jpg\"}]', 1, 1577982016, 1577983283);
-
-ALTER TABLE `v2_server_log`
-CHANGE `rate` `rate` decimal(10,2) NOT NULL AFTER `d`;
-
-ALTER TABLE `v2_order`
-DROP `method`;
-
-ALTER TABLE `v2_invite_code`
-ADD `pv` int(11) NOT NULL DEFAULT '0' AFTER `status`;
-
-ALTER TABLE `v2_user`
-ADD `password_algo` char(10) COLLATE 'utf8_general_ci' NULL AFTER `password`;
-
-ALTER TABLE `v2_server`
-CHANGE `tls` `tls` tinyint(4) NOT NULL DEFAULT '0' AFTER `server_port`;
-
-ALTER TABLE `v2_server`
-ADD `rules` text COLLATE 'utf8_general_ci' NULL AFTER `settings`;
-
+DROP TABLE IF EXISTS `failed_jobs`;
CREATE TABLE `failed_jobs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
@@ -154,31 +18,225 @@ CREATE TABLE `failed_jobs` (
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-ALTER TABLE `v2_user`
-ADD `discount` int(11) NULL AFTER `balance`;
-ALTER TABLE `v2_order`
-ADD `surplus_amount` int(11) NULL COMMENT '剩余价值' AFTER `discount_amount`;
+DROP TABLE IF EXISTS `v2_coupon`;
+CREATE TABLE `v2_coupon` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `code` char(8) NOT NULL,
+ `name` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
+ `type` tinyint(1) NOT NULL,
+ `value` int(11) NOT NULL,
+ `limit_use` int(11) DEFAULT NULL,
+ `started_at` int(11) NOT NULL,
+ `ended_at` int(11) NOT NULL,
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-ALTER TABLE `v2_order`
-ADD `refund_amount` int(11) NULL COMMENT '退款金额' AFTER `surplus_amount`;
-ALTER TABLE `v2_tutorial`
-ADD `category_id` int(11) NOT NULL AFTER `id`;
+DROP TABLE IF EXISTS `v2_invite_code`;
+CREATE TABLE `v2_invite_code` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `user_id` int(11) NOT NULL,
+ `code` char(32) NOT NULL,
+ `status` tinyint(1) NOT NULL DEFAULT '0',
+ `pv` int(11) NOT NULL DEFAULT '0',
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-ALTER TABLE `v2_tutorial`
-DROP `description`;
-ALTER TABLE `v2_plan`
-CHANGE `month_price` `month_price` int(11) NULL AFTER `content`,
-CHANGE `quarter_price` `quarter_price` int(11) NULL AFTER `month_price`,
-CHANGE `half_year_price` `half_year_price` int(11) NULL AFTER `quarter_price`,
-CHANGE `year_price` `year_price` int(11) NULL AFTER `half_year_price`,
-ADD `onetime_price` int(11) NULL AFTER `year_price`;
+DROP TABLE IF EXISTS `v2_mail_log`;
+CREATE TABLE `v2_mail_log` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `email` varchar(64) NOT NULL,
+ `subject` varchar(255) NOT NULL,
+ `template_name` varchar(255) NOT NULL,
+ `error` varchar(255) DEFAULT NULL,
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-ALTER TABLE `v2_user`
-DROP `enable`,
-ADD `banned` tinyint(1) NOT NULL DEFAULT '0' AFTER `transfer_enable`;
-ALTER TABLE `v2_user`
-CHANGE `expired_at` `expired_at` bigint(20) NULL DEFAULT '0' AFTER `token`;
+DROP TABLE IF EXISTS `v2_notice`;
+CREATE TABLE `v2_notice` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `title` varchar(255) NOT NULL,
+ `content` text NOT NULL,
+ `img_url` varchar(255) DEFAULT NULL,
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+
+DROP TABLE IF EXISTS `v2_order`;
+CREATE TABLE `v2_order` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `invite_user_id` int(11) DEFAULT NULL,
+ `user_id` int(11) NOT NULL,
+ `plan_id` int(11) NOT NULL,
+ `type` int(11) NOT NULL COMMENT '1新购2续费3升级',
+ `cycle` varchar(255) NOT NULL,
+ `trade_no` varchar(36) NOT NULL,
+ `callback_no` varchar(255) DEFAULT NULL,
+ `total_amount` int(11) NOT NULL,
+ `discount_amount` int(11) DEFAULT NULL,
+ `surplus_amount` int(11) DEFAULT NULL COMMENT '剩余价值',
+ `refund_amount` int(11) DEFAULT NULL COMMENT '退款金额',
+ `status` tinyint(1) NOT NULL DEFAULT '0',
+ `commission_status` tinyint(1) NOT NULL DEFAULT '0',
+ `commission_balance` int(11) NOT NULL DEFAULT '0',
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+
+DROP TABLE IF EXISTS `v2_plan`;
+CREATE TABLE `v2_plan` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `group_id` int(11) NOT NULL,
+ `transfer_enable` int(11) NOT NULL,
+ `name` varchar(255) NOT NULL,
+ `show` tinyint(1) NOT NULL DEFAULT '0',
+ `renew` tinyint(1) NOT NULL DEFAULT '1',
+ `content` text,
+ `month_price` int(11) DEFAULT '0',
+ `quarter_price` int(11) DEFAULT '0',
+ `half_year_price` int(11) DEFAULT '0',
+ `year_price` int(11) DEFAULT '0',
+ `onetime_price` int(11) DEFAULT NULL,
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+
+DROP TABLE IF EXISTS `v2_server`;
+CREATE TABLE `v2_server` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `group_id` varchar(255) NOT NULL,
+ `name` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
+ `parent_id` int(11) DEFAULT NULL,
+ `host` varchar(255) NOT NULL,
+ `port` int(11) NOT NULL,
+ `server_port` int(11) NOT NULL,
+ `tls` tinyint(4) NOT NULL DEFAULT '0',
+ `tags` varchar(255) DEFAULT NULL,
+ `rate` varchar(11) NOT NULL,
+ `network` varchar(11) NOT NULL,
+ `settings` text,
+ `rules` text,
+ `show` tinyint(1) NOT NULL DEFAULT '0',
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+
+DROP TABLE IF EXISTS `v2_server_group`;
+CREATE TABLE `v2_server_group` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(255) NOT NULL,
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+
+DROP TABLE IF EXISTS `v2_server_log`;
+CREATE TABLE `v2_server_log` (
+ `user_id` int(11) NOT NULL,
+ `server_id` int(11) NOT NULL,
+ `u` varchar(255) NOT NULL,
+ `d` varchar(255) NOT NULL,
+ `rate` decimal(10,2) NOT NULL,
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+
+DROP TABLE IF EXISTS `v2_ticket`;
+CREATE TABLE `v2_ticket` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `user_id` int(11) NOT NULL,
+ `last_reply_user_id` int(11) NOT NULL,
+ `subject` varchar(255) NOT NULL,
+ `level` tinyint(1) NOT NULL,
+ `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0:已开启 1:已关闭',
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+
+DROP TABLE IF EXISTS `v2_ticket_message`;
+CREATE TABLE `v2_ticket_message` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `user_id` int(11) NOT NULL,
+ `ticket_id` int(11) NOT NULL,
+ `message` varchar(255) NOT NULL,
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+
+DROP TABLE IF EXISTS `v2_tutorial`;
+CREATE TABLE `v2_tutorial` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `category_id` int(11) NOT NULL,
+ `title` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
+ `steps` text,
+ `show` tinyint(1) NOT NULL DEFAULT '0',
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+INSERT INTO `v2_tutorial` (`id`, `category_id`, `title`, `steps`, `show`, `created_at`, `updated_at`) VALUES
+(1, 1, 'V2rayN', '[{\"default_area\":\"下载 V2rayN 客户端。
下载完成后解压,解压完成后运行V2rayN
运行时请右键,以管理员身份运行
\",\"download_url\":\"/downloads/V2rayN.zip\"},{\"default_area\":\"点击订阅按钮,选择订阅设置点击添加,输入如下内容后点击确定保存
\",\"safe_area\":\"备注:{{$app_name}}
\\n地址(url):{{$subscribe_url}}
\",\"img_url\":\"https://i.loli.net/2019/11/21/UkcHNtERTnjLVS8.jpg\"},{\"default_area\":\"点击订阅后,从服务器列表选择服务器
\",\"img_url\":\"https://i.loli.net/2019/11/21/BgPGFQ3kCSuIRjJ.jpg\"},{\"default_area\":\"点击参数设置,找到Http代理,选择PAC模式后按确定保存即启动代理。
\",\"img_url\":\"https://i.loli.net/2019/11/21/vnVykKEFT8Lzo3f.jpg\"}]', 1, 1577972408, 1577980882),
+(2, 4, 'V2rayNG', '[{\"default_area\":\"下载 V2rayNG 客户端。
\",\"safe_area\":\"\",\"download_url\":\"/downloads/V2rayNG.apk\"},{\"default_area\":\"打开 V2rayNG 点击左上角的菜单图标打开侧边栏,随后点击 订阅设置,点击右上角的➕按钮新增订阅。
按照下方内容进行填写,填写完毕后点击右上角的☑️按钮。
\",\"safe_area\":\"备注:{{$app_name}}
\\n地址(url):{{$subscribe_url}}
\",\"download_url\":\"\",\"img_url\":\"https://i.loli.net/2019/11/21/ghuVkTe6LBqRxSO.jpg\"},{\"default_area\":\"再次从侧边栏进入 设置 页面,点击 路由模式 将其更改为 \\b绕过局域网及大陆地址。
\",\"img_url\":\"https://i.loli.net/2019/11/21/Tf1AGoXZuhJrwOq.jpg\"},{\"default_area\":\"随后从侧边栏回到 配置文件 页面,点击右上角的省略号图标选择更新订阅。
\",\"img_url\":\"https://i.loli.net/2019/11/21/UtfPShQXupRmB4L.jpg\"},{\"img_url\":\"https://i.loli.net/2019/11/21/ZkbNsSrAg3m5Dny.jpg\",\"default_area\":\"点击选择您需要的节点,点击右下角的V字按钮即可连接。
\"}]', 1, 1577972534, 1577981610),
+(3, 2, 'ClashX', '[{\"default_area\":\"下载 ClashX 客户端,安装后运行。
\",\"download_url\":\"/downloads/ClashX.dmg\",\"img_url\":\"https://i.loli.net/2019/11/20/uNGrjl2noCL1f5B.jpg\"},{\"default_area\":\"点击通知栏 ClashX 图标保持选中状态,按快捷键 ⌘+M(订阅快捷键),在弹出的窗口点击添加输入下方信息
\",\"safe_area\":\"Url:{{$subscribe_url}}
\\nConfig Name:{{$app_name}}
\",\"img_url\":\"https://i.loli.net/2019/11/20/8eB13mRbFuszwxg.jpg\"},{\"default_area\":\"点击通知栏 ClashX 图标保持选中状态,按快捷键 ⌘+S(设置为系统代理快捷键),即连接完成
\"}]', 1, 1577979855, 1577981646),
+(4, 3, 'Shadowrocket', '[{\"default_area\":\"iOS上使用请在iOS浏览器中打开本页
\"},{\"default_area\":\"在 App Store 登录本站提供的美区 Apple ID 下载客户端。
为了保护您的隐私,请勿在手机设置里直接登录,仅在 App Store 登录即可。
登陆完成后点击下方下载会自动唤起下载。
\",\"safe_area\":\"Apple ID:{{$apple_id}}
密码:点击复制密码
\",\"download_url\":\"https://apps.apple.com/us/app/shadowrocket/id932747118\",\"img_url\":\"https://i.loli.net/2019/11/21/5idkjJ61stWgREV.jpg\"},{\"default_area\":\"待客户端安装完成后,点击下方一键订阅按钮会自动唤起并进行订阅
\",\"safe_area\":\"\",\"img_url\":\"https://i.loli.net/2019/11/21/ZcqlNMb3eg5Uhxd.jpg\",\"download_url\":\"shadowrocket://add/sub://{{$b64_subscribe_url}}?remark={{$app_name}}\"},{\"default_area\":\"选择节点进行链接,首次链接过程授权窗口请一路允许。
\",\"img_url\":\"https://i.loli.net/2019/11/21/9Zdxksr7Ey6hjlm.jpg\"}]', 1, 1577982016, 1577983283);
+
+DROP TABLE IF EXISTS `v2_user`;
+CREATE TABLE `v2_user` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `invite_user_id` int(11) DEFAULT NULL,
+ `email` varchar(64) NOT NULL,
+ `password` varchar(64) NOT NULL,
+ `password_algo` char(10) DEFAULT NULL,
+ `balance` int(11) NOT NULL DEFAULT '0',
+ `discount` int(11) DEFAULT NULL,
+ `commission_rate` int(11) DEFAULT NULL,
+ `commission_balance` int(11) NOT NULL DEFAULT '0',
+ `t` int(11) NOT NULL DEFAULT '0',
+ `u` bigint(20) NOT NULL DEFAULT '0',
+ `d` bigint(20) NOT NULL DEFAULT '0',
+ `transfer_enable` bigint(20) NOT NULL DEFAULT '0',
+ `banned` tinyint(1) NOT NULL DEFAULT '0',
+ `is_admin` tinyint(1) NOT NULL DEFAULT '0',
+ `last_login_at` int(11) DEFAULT NULL,
+ `last_login_ip` int(11) DEFAULT NULL,
+ `v2ray_uuid` varchar(36) NOT NULL,
+ `v2ray_alter_id` tinyint(4) NOT NULL DEFAULT '2',
+ `v2ray_level` tinyint(4) NOT NULL DEFAULT '0',
+ `group_id` int(11) DEFAULT NULL,
+ `plan_id` int(11) DEFAULT NULL,
+ `remind_expire` tinyint(4) DEFAULT '1',
+ `remind_traffic` tinyint(4) DEFAULT '1',
+ `token` char(32) NOT NULL,
+ `expired_at` bigint(20) DEFAULT '0',
+ `created_at` int(11) NOT NULL,
+ `updated_at` int(11) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `email` (`email`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+
+-- 2020-03-05 14:10:26