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:
parent
0f42d2b9ed
commit
5ed6482400
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user