overrides for enviroments and shares (#606); overrides for reserved shares and unique names (#632)

This commit is contained in:
Michael Quigley 2024-05-21 15:16:56 -04:00
parent 94d49bacd5
commit f23f2495ef
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 14 additions and 0 deletions

View File

@ -5,14 +5,21 @@ create type limit_action as enum ('warning', 'limit');
create table limit_classes (
id serial primary key,
limit_scope limit_scope not null default ('account'),
limit_action limit_action not null default ('limit'),
share_mode share_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),
rx_bytes bigint not null default (-1),
tx_bytes bigint not null default (-1),
total_bytes bigint not null default (-1),
created_at timestamptz not null default(current_timestamp),
updated_at timestamptz not null default(current_timestamp),
deleted boolean not null default(false)

View File

@ -2,14 +2,21 @@
create table limit_classes (
id serial primary key,
limit_scope string not null default ('account'),
limit_action string not null default ('limit'),
share_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),
rx_bytes bigint not null default (-1),
tx_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')),
updated_at datetime not null default(strftime('%Y-%m-%d %H:%M:%f', 'now')),
deleted boolean not null default(false)