Usar AnyPgColumn en vez de any para la referencia forward de plan_id
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user