the pool_id should be nullable

Containers are subnets in vairous ranges. But only when a subnet is
assigned a pool, it is truly a subnet. When it is not assigned to a
pool, it is considered a container.

This serves the purpose of grouping or blocking containers for different
purposes, so we need to keep that up.
This commit is contained in:
Gibheer 2021-05-03 22:38:49 +02:00
parent 0f42d2b9ed
commit 5ed6482400
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ create table if not exists pools(
create table if not exists containers(
layer3domain_id integer not null references layer3domains(id),
network cidr not null,
pool_id integer not null,
pool_id integer,
created_at timestamptz not null default now(),
created_by varchar(128) not null,
modified_at timestamptz not null default now(),