完善通道删除与定时失效功能
This commit is contained in:
@@ -388,6 +388,7 @@ create table proxy (
|
||||
name varchar(255) not null unique,
|
||||
host varchar(255) not null,
|
||||
type int not null default 0,
|
||||
secret varchar(255),
|
||||
created_at timestamp default current_timestamp,
|
||||
updated_at timestamp default current_timestamp,
|
||||
deleted_at timestamp
|
||||
@@ -402,6 +403,7 @@ comment on column proxy.version is '代理服务版本';
|
||||
comment on column proxy.name is '代理服务名称';
|
||||
comment on column proxy.host is '代理服务地址';
|
||||
comment on column proxy.type is '代理服务类型:0-自有,1-三方';
|
||||
comment on column proxy.secret is '代理服务密钥';
|
||||
comment on column proxy.created_at is '创建时间';
|
||||
comment on column proxy.updated_at is '更新时间';
|
||||
comment on column proxy.deleted_at is '删除时间';
|
||||
@@ -507,6 +509,7 @@ create index channel_user_host_index on channel (user_host);
|
||||
create index channel_proxy_port_index on channel (proxy_port);
|
||||
create index channel_node_host_index on channel (node_host);
|
||||
create index channel_expiration_index on channel (expiration);
|
||||
create index channel_deleted_at_index on channel (deleted_at);
|
||||
|
||||
-- channel表字段注释
|
||||
comment on table channel is '通道表';
|
||||
@@ -593,8 +596,8 @@ create table resource_pss (
|
||||
type int,
|
||||
live int,
|
||||
quota int,
|
||||
used int,
|
||||
expire timestamp,
|
||||
used int not null default 0,
|
||||
daily_limit int not null default 0,
|
||||
daily_used int not null default 0,
|
||||
daily_last timestamp,
|
||||
|
||||
Reference in New Issue
Block a user