alter table public.answer_records
  add column if not exists answer_payload jsonb not null default '{}'::jsonb;

create index if not exists idx_answer_records_answer_payload_gin
  on public.answer_records using gin (answer_payload)
  where answer_payload <> '{}'::jsonb;
