12 lines
298 B
SQL
12 lines
298 B
SQL
create type public.thread_kind as enum
|
|
( 'post'
|
|
, 'short'
|
|
, 'message'
|
|
);
|
|
|
|
create table public.thread
|
|
( id int not null primary key generated always as identity
|
|
, uid uuid not null default gen_random_uuid()
|
|
, kind public.thread_kind not null
|
|
);
|