# consult — FRIDAY 咨询主体(customer_consult → consultation_record)
# 比 jvs-dw 富:除意向(potential_treatment)外还有 未成交原因(unsettled_reason)——
# 强召回信号(咨询未成交=有意愿没转化),passthrough 进 fact.content 供 scenario/LLM 消费。
# 测试库仅 45 行(结构真实);生产量待接入后观测。
canonical: consultation

emits:
  action: consultation_created
  subjectType: consultation
  occurredAtField: occurredAt

primary:
  table: customer_consult
  key: id
  dedup_by: id

field_mapping:
  externalId:        id
  updatedAt:         updated_gmt_at
  createdAt:         created_gmt_at
  patientExternalId: customer_id
  clinicId:          organization_id
  occurredAt:        created_gmt_at
  intentRaw:         potential_treatment      # 意向(自由文本;jvs-dw 同名语义 parser 解析)
  taskDirector:      task_director            # 跟进人
  # FRIDAY 独有信号(passthrough 进 content):
  treatmentPlanText:      treatment_plan             # 咨询时聊到的治疗方案
  unsettledReason:        unsettled_reason           # 未成交原因(分类值)
  unsettledReasonDetail:  unsettled_reason_description
  preferentialWay:        preferential_way           # 优惠方式
