create table public.thread
  ( id int not null generated always as identity
  , uid uuid not null default gen_random_uuid()
  , kind thread_kind not null
  );
