openai service and basic tables with migrations

This commit is contained in:
Lucas Tettamanti
2026-01-01 23:20:13 -03:00
parent 5c67b27859
commit 5e9cc8fe1a
9 changed files with 172 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
-- migrate:up
create table wa_identity_map (
tenant_id uuid not null references tenants(id) on delete cascade,
wa_chat_id text not null,
woo_customer_id bigint not null,
created_at timestamptz not null default now(),
updated_at timestamptz not null default now(),
primary key (tenant_id, wa_chat_id)
);
-- migrate:down
drop table if exists wa_identity_map;