基本完成远端配置的通道创建
This commit is contained in:
@@ -563,12 +563,12 @@ comment on column product.deleted_at is '删除时间';
|
||||
drop table if exists resource cascade;
|
||||
create table resource (
|
||||
id serial primary key,
|
||||
user_id int not null references "user" (id)
|
||||
user_id int not null references "user" (id)
|
||||
on update cascade
|
||||
on delete cascade,
|
||||
active bool default true,
|
||||
created_at timestamp default current_timestamp,
|
||||
updated_at timestamp default current_timestamp,
|
||||
active bool not null default true,
|
||||
created_at timestamp default current_timestamp,
|
||||
updated_at timestamp default current_timestamp,
|
||||
deleted_at timestamp
|
||||
);
|
||||
create index resource_user_id_index on resource (user_id);
|
||||
@@ -595,11 +595,11 @@ create table resource_pss (
|
||||
quota int,
|
||||
used int,
|
||||
expire timestamp,
|
||||
daily_limit int,
|
||||
daily_used int,
|
||||
daily_limit int not null default 0,
|
||||
daily_used int not null default 0,
|
||||
daily_last timestamp,
|
||||
created_at timestamp default current_timestamp,
|
||||
updated_at timestamp default current_timestamp,
|
||||
created_at timestamp default current_timestamp,
|
||||
updated_at timestamp default current_timestamp,
|
||||
deleted_at timestamp
|
||||
);
|
||||
create index resource_pss_resource_id_index on resource_pss (resource_id);
|
||||
|
||||
Reference in New Issue
Block a user