mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 08:05:04 +02:00
applied_limit_classes (#606)
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
create type limit_scope as enum ('account', 'environment', 'share');
|
||||
create type limit_action as enum ('warning', 'limit');
|
||||
|
||||
create table limits_classes (
|
||||
create table limit_classes (
|
||||
id serial primary key,
|
||||
limit_scope limit_scope not null default ('account'),
|
||||
limit_action limit_action not null default ('limit'),
|
||||
@ -16,4 +16,13 @@ create table limits_classes (
|
||||
created_at timestamptz not null default(current_timestamp),
|
||||
updated_at timestamptz not null default(current_timestamp),
|
||||
deleted boolean not null default(false)
|
||||
)
|
||||
);
|
||||
|
||||
create table applied_limit_classes (
|
||||
id serial primary key,
|
||||
account_id integer not null references accounts (id),
|
||||
limit_class_id integer not null references limit_classes (id),
|
||||
created_at timestamptz not null default(current_timestamp),
|
||||
updated_at timestamptz not null default(current_timestamp),
|
||||
deleted boolean not null default(false)
|
||||
);
|
Reference in New Issue
Block a user