Add campos de urgencia, target, gustos y snapshot de preferencias a leads
This commit is contained in:
@@ -47,6 +47,8 @@ export const tipoReforma = pgEnum('tipo_reforma', [
|
||||
|
||||
export const calidad = pgEnum('calidad', ['basica', 'media', 'premium']);
|
||||
|
||||
export const urgencia = pgEnum('urgencia', ['alta', 'media', 'baja']);
|
||||
|
||||
export const categoriaMaterial = pgEnum('categoria_material', [
|
||||
'suelo',
|
||||
'pared',
|
||||
@@ -180,6 +182,12 @@ export const leads = pgTable(
|
||||
.notNull()
|
||||
.default({}),
|
||||
desgloseSnapshot: jsonb('desglose_snapshot'),
|
||||
|
||||
// Preferencias del cliente capturadas en la llamada (agente de voz)
|
||||
urgencia: urgencia('urgencia'),
|
||||
presupuestoTarget: integer('presupuesto_target'), // céntimos
|
||||
tasteText: text('taste_text'),
|
||||
preferencesSnapshot: jsonb('preferences_snapshot'),
|
||||
},
|
||||
(table) => [
|
||||
index('leads_tenant_created_idx').on(table.tenantId, table.createdAt),
|
||||
|
||||
Reference in New Issue
Block a user