revised frontends schema (#20)

This commit is contained in:
Michael Quigley
2022-11-15 14:48:40 -05:00
parent df86667a24
commit d661b6a567
2 changed files with 3 additions and 5 deletions

View File

@ -1,13 +1,10 @@
-- +migrate Up
create type availability_type as enum ('public', 'private');
create table frontends (
id serial primary key,
environment_id integer references environments(id),
z_id varchar(32) not null unique,
name varchar(64) unique,
type availability_type not null,
created_at timestamptz not null default(current_timestamp),
updated_at timestamptz not null default(current_timestamp)
);