-- Comments schema
-- Postgres dialect

create table comments (
    id serial primary key,
    cid text not null,
    is_current bool not null default true,
    previous_cid text,
    proposal_id integer not null references proposals(id) on delete cascade,
    created_at timestamptz not null default now(),
    updated_at timestamptz not null default now()
);
