create table if not exists posts
(
    id serial primary key,
    thread_id serial references threads(id) on delete cascade,
    p_content text,
    p_time timestamp
);