重构白银节点分配方式,使用手动接口精确配置节点
This commit is contained in:
@@ -497,12 +497,13 @@ comment on column link_client_permission.permission_id is '权限ID';
|
||||
drop table if exists proxy cascade;
|
||||
create table proxy (
|
||||
id int generated by default as identity primary key,
|
||||
version int not null,
|
||||
mac text not null,
|
||||
ip inet not null,
|
||||
version int not null,
|
||||
mac text not null,
|
||||
ip inet not null,
|
||||
host text,
|
||||
secret text,
|
||||
type int not null,
|
||||
status int not null,
|
||||
type int not null,
|
||||
status int not null,
|
||||
meta jsonb,
|
||||
created_at timestamptz default current_timestamp,
|
||||
updated_at timestamptz default current_timestamp,
|
||||
@@ -518,8 +519,9 @@ comment on column proxy.id is '代理服务ID';
|
||||
comment on column proxy.version is '代理服务版本';
|
||||
comment on column proxy.mac is '代理服务名称';
|
||||
comment on column proxy.ip is '代理服务地址';
|
||||
comment on column proxy.type is '代理服务类型:1-自有,2-白银';
|
||||
comment on column proxy.host is '代理服务域名';
|
||||
comment on column proxy.secret is '代理服务密钥';
|
||||
comment on column proxy.type is '代理服务类型:1-自有,2-白银';
|
||||
comment on column proxy.status is '代理服务状态:0-离线,1-在线';
|
||||
comment on column proxy.meta is '代理服务元信息';
|
||||
comment on column proxy.created_at is '创建时间';
|
||||
@@ -600,8 +602,10 @@ create table channel (
|
||||
resource_id int not null,
|
||||
batch_no text not null,
|
||||
proxy_id int not null,
|
||||
host text not null,
|
||||
port int not null,
|
||||
edge_id int,
|
||||
edge_ref text,
|
||||
filter_isp int,
|
||||
filter_prov text,
|
||||
filter_city text,
|
||||
@@ -626,8 +630,10 @@ comment on column channel.user_id is '用户ID';
|
||||
comment on column channel.resource_id is '套餐ID';
|
||||
comment on column channel.batch_no is '批次编号';
|
||||
comment on column channel.proxy_id is '代理ID';
|
||||
comment on column channel.host is '代理主机(快照)';
|
||||
comment on column channel.port is '代理端口';
|
||||
comment on column channel.edge_id is '节点ID(手动配置)';
|
||||
comment on column channel.edge_ref is '外部节点引用,用于索引没有ID的外部非受控节点';
|
||||
comment on column channel.filter_isp is '运营商过滤(自动配置):参考 edge.isp';
|
||||
comment on column channel.filter_prov is '省份过滤(自动配置)';
|
||||
comment on column channel.filter_city is '城市过滤(自动配置)';
|
||||
|
||||
Reference in New Issue
Block a user