added Mercado Pago integration with new payment handling functions and updated app routing
This commit is contained in:
16
db/migrations/20260114130100_product_embeddings_cache.sql
Normal file
16
db/migrations/20260114130100_product_embeddings_cache.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
-- 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;
|
||||
Reference in New Issue
Block a user