create unique index concurrently origin_intrinsic_metadata_pkey on origin_intrinsic_metadata(origin_id, indexer_configuration_id);
alter table origin_intrinsic_metadata add primary key using index origin_intrinsic_metadata_pkey;

create index concurrently origin_intrinsic_metadata_fulltext_idx on origin_intrinsic_metadata using gin (metadata_tsvector);
create index concurrently origin_intrinsic_metadata_mappings_idx on origin_intrinsic_metadata using gin (mappings);
