create table applications ( guid uuid not null, organization , name text not null, key text not null, visibility text references visibilities not null, description text, last_updated_at timestamptz not null, audit ); comment on table applications is ' An application has a name and multiple versions of its API. '; comment on column applications.guid is ' Internal unique identifier for this application. '; comment on column applications.name is ' The unique name for this application. '; comment on column applications.key is ' Used as a unique key in the URL path. Key is automatically derived from the application name. '; comment on column applications.visibility is ' Controls who is able to view this application '; comment on column applications.last_updated_at is ' The updated_at of this application or created_at of it's latest version ';