-- Your SQL goes here

create table comments
(
    id           varchar   not null
        constraint comments_pk
            primary key,
    ref_id       varchar   not null,
    ref_type     varchar   not null,
    parent_id    varchar,
    created_at   timestamp not null,
    created_by   varchar   not null,
    creator_name varchar,
    content      jsonb
);

create unique index comments_id_uindex
    on comments (id);

