实现节点筛选函数,调整节点数据表结构
This commit is contained in:
@@ -387,14 +387,17 @@ create table node (
|
||||
name varchar(255) not null unique,
|
||||
version int not null,
|
||||
fwd_port int not null,
|
||||
provider varchar(255) not null,
|
||||
location varchar(255) not null,
|
||||
isp varchar(255) not null,
|
||||
prov varchar(255) not null,
|
||||
city varchar(255) not null,
|
||||
|
||||
created_at timestamp default current_timestamp,
|
||||
updated_at timestamp default current_timestamp,
|
||||
deleted_at timestamp
|
||||
);
|
||||
create index node_provider_index on node (provider);
|
||||
create index node_location_index on node (location);
|
||||
create index node_isp_index on node (isp);
|
||||
create index node_prov_index on node (prov);
|
||||
create index node_city_index on node (city);
|
||||
|
||||
-- node表字段注释
|
||||
comment on table node is '节点表';
|
||||
@@ -402,8 +405,9 @@ comment on column node.id is '节点ID';
|
||||
comment on column node.name is '节点名称';
|
||||
comment on column node.version is '节点版本';
|
||||
comment on column node.fwd_port is '转发端口';
|
||||
comment on column node.provider is '运营商';
|
||||
comment on column node.location is '位置';
|
||||
comment on column node.isp is '运营商';
|
||||
comment on column node.prov is '省份';
|
||||
comment on column node.city is '城市';
|
||||
comment on column node.created_at is '创建时间';
|
||||
comment on column node.updated_at is '更新时间';
|
||||
comment on column node.deleted_at is '删除时间';
|
||||
|
||||
Reference in New Issue
Block a user