added Mercado Pago integration with new payment handling functions and updated app routing

This commit is contained in:
Lucas Tettamanti
2026-01-15 13:06:37 -03:00
parent 29fa2d127e
commit eedd16afdb
13 changed files with 1652 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
-- migrate:up
create table if not exists product_aliases (
tenant_id uuid not null references tenants(id) on delete cascade,
alias text not null,
normalized_alias text not null,
woo_product_id integer null,
category_hint text null,
boost numeric(6,3) not null default 0.0,
metadata jsonb not null default '{}'::jsonb,
created_at timestamptz not null default now(),
updated_at timestamptz not null default now(),
primary key (tenant_id, alias)
);
create index if not exists product_aliases_tenant_norm_idx
on product_aliases (tenant_id, normalized_alias);
-- migrate:down
drop table if exists product_aliases;