From 17cd03d3c91242d31b70871b09c33e10d31a28d6 Mon Sep 17 00:00:00 2001 From: Carlos Narro Date: Sat, 30 May 2026 19:43:59 +0200 Subject: [PATCH] Usar AnyPgColumn en vez de any para la referencia forward de plan_id Co-Authored-By: Claude Opus 4.7 --- mvp/b2c/src/db/schema.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mvp/b2c/src/db/schema.ts b/mvp/b2c/src/db/schema.ts index cf09c33..ce33c61 100644 --- a/mvp/b2c/src/db/schema.ts +++ b/mvp/b2c/src/db/schema.ts @@ -11,6 +11,7 @@ import { index, doublePrecision, uniqueIndex, + type AnyPgColumn, } from 'drizzle-orm/pg-core'; // Estado comercial del lead — RF-D-03. Lo que el reformista gestiona a mano. @@ -73,7 +74,7 @@ export const tenants = pgTable('tenants', { logoUrl: text('logo_url'), provincia: text('provincia'), whatsappBusiness: text('whatsapp_business'), - planId: uuid('plan_id').references((): any => plans.id), + planId: uuid('plan_id').references((): AnyPgColumn => plans.id), subscriptionStatus: subscriptionStatus('subscription_status').notNull().default('trial'), trialEndsAt: timestamp('trial_ends_at', { withTimezone: true }), stripeCustomerId: text('stripe_customer_id'),