alter table crm_opportunity
  add column if not exists archived boolean not null default false;

create index if not exists idx_crm_opportunity_archived
  on crm_opportunity(archived);
