mirror of
https://github.com/openziti/zrok.git
synced 2025-06-25 20:22:45 +02:00
availability_type; frontends; environments.account_id nullale; (#20)
This commit is contained in:
parent
bc98096881
commit
cf77948ac5
@ -1,9 +1,16 @@
|
||||
-- +migrate Up
|
||||
|
||||
create table ingress (
|
||||
create type availability_type as enum ('public', 'private');
|
||||
|
||||
create table frontends (
|
||||
id serial primary key,
|
||||
account_id integer references accounts(id),
|
||||
environment_id integer references environments(id),
|
||||
z_id varchar(32) not null unique,
|
||||
type availability_type not null,
|
||||
created_at timestamptz not null default(current_timestamp),
|
||||
updated_at timestamptz not null default(current_timestamp)
|
||||
);
|
||||
|
||||
-- environments.account_id should allow NULL; environments with NULL account_id are "ephemeral"
|
||||
alter table environments drop constraint fk_accounts_identities;
|
||||
alter table environments add constraint fk_accounts_id foreign key (account_id) references accounts(id);
|
Loading…
x
Reference in New Issue
Block a user