mirror of
https://github.com/openziti/zrok.git
synced 2025-06-01 15:48:21 +02:00
This commit is contained in:
parent
94d49bacd5
commit
f23f2495ef
@ -5,14 +5,21 @@ create type limit_action as enum ('warning', 'limit');
|
|||||||
|
|
||||||
create table limit_classes (
|
create table limit_classes (
|
||||||
id serial primary key,
|
id serial primary key,
|
||||||
|
|
||||||
limit_scope limit_scope not null default ('account'),
|
limit_scope limit_scope not null default ('account'),
|
||||||
limit_action limit_action not null default ('limit'),
|
limit_action limit_action not null default ('limit'),
|
||||||
share_mode share_mode,
|
share_mode share_mode,
|
||||||
backend_mode backend_mode,
|
backend_mode backend_mode,
|
||||||
|
|
||||||
|
environments int not null default (-1),
|
||||||
|
shares int not null default (-1),
|
||||||
|
reserved_shares int not null default (-1),
|
||||||
|
unique_names int not null default (-1),
|
||||||
period_minutes int not null default (1440),
|
period_minutes int not null default (1440),
|
||||||
rx_bytes bigint not null default (-1),
|
rx_bytes bigint not null default (-1),
|
||||||
tx_bytes bigint not null default (-1),
|
tx_bytes bigint not null default (-1),
|
||||||
total_bytes bigint not null default (-1),
|
total_bytes bigint not null default (-1),
|
||||||
|
|
||||||
created_at timestamptz not null default(current_timestamp),
|
created_at timestamptz not null default(current_timestamp),
|
||||||
updated_at timestamptz not null default(current_timestamp),
|
updated_at timestamptz not null default(current_timestamp),
|
||||||
deleted boolean not null default(false)
|
deleted boolean not null default(false)
|
||||||
|
@ -2,14 +2,21 @@
|
|||||||
|
|
||||||
create table limit_classes (
|
create table limit_classes (
|
||||||
id serial primary key,
|
id serial primary key,
|
||||||
|
|
||||||
limit_scope string not null default ('account'),
|
limit_scope string not null default ('account'),
|
||||||
limit_action string not null default ('limit'),
|
limit_action string not null default ('limit'),
|
||||||
share_mode string,
|
share_mode string,
|
||||||
backend_mode string,
|
backend_mode string,
|
||||||
|
|
||||||
|
environments integer not null default (-1),
|
||||||
|
shares integer not null default (-1),
|
||||||
|
reserved_shares integer not null default (-1),
|
||||||
|
unique_names integer not null default (-1),
|
||||||
period_minutes integer not null default (1440),
|
period_minutes integer not null default (1440),
|
||||||
rx_bytes bigint not null default (-1),
|
rx_bytes bigint not null default (-1),
|
||||||
tx_bytes bigint not null default (-1),
|
tx_bytes bigint not null default (-1),
|
||||||
total_bytes bigint not null default (-1),
|
total_bytes bigint not null default (-1),
|
||||||
|
|
||||||
created_at datetime not null default(strftime('%Y-%m-%d %H:%M:%f', 'now')),
|
created_at datetime not null default(strftime('%Y-%m-%d %H:%M:%f', 'now')),
|
||||||
updated_at datetime not null default(strftime('%Y-%m-%d %H:%M:%f', 'now')),
|
updated_at datetime not null default(strftime('%Y-%m-%d %H:%M:%f', 'now')),
|
||||||
deleted boolean not null default(false)
|
deleted boolean not null default(false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user