-- migrate:up create table if not exists product_embeddings_cache ( tenant_id uuid not null references tenants(id) on delete cascade, content_hash text not null, content_text text not null, embedding jsonb not null, model text not null, updated_at timestamptz not null default now(), primary key (tenant_id, content_hash) ); create index if not exists product_embeddings_cache_tenant_idx on product_embeddings_cache (tenant_id); -- migrate:down drop table if exists product_embeddings_cache;