数据库搭建记录 — 当前已有基础设施
管理
数据库搭建记录 — 当前已有基础设施
最后更新: 2026-06-07
一、MySQL 数据库
ruimeiyun 库 — 核心业务数据
连接信息:
- 主机:localhost
- 端口:3306
- 数据库:ruimeiyun
- 用户:root(本地访问)
表结构(共8张基表):
| 表名 | 行数 | 大小 | 说明 |
|---|---|---|---|
回访记录 | 271,968 | 72MB | 客户回访计划与执行记录 |
712执行业绩 | 123,663 | 58MB | 治疗/服务执行业绩 |
出纳结算单 | 108,290 | 49MB | 所有收银/结算记录 |
到院明细 | 78,402 | 55MB | 客户到院记录 |
预约记录 | 42,520 | 13MB | 客户预约记录 |
客户盘点 | 42,364 | 31MB | 客户主数据 |
入库记录 | 8,630 | 4MB | 库存入库记录 |
白鲸门店日报 | 95 | — | 白鲸门店日报数据 |
现有视图(24个标准视图):
| 视图 | 类型 | 用途 |
v_customer_overview | 客户 | 客户总览 |
v_customer_pro[[f]]ile | 客户 | 客户画像(含本月消费、未回访数) |
v_customer_r[[f]]m | 客户 | RFM评分+客户分层 |
v_customer_spending | 客户 | 消费明细 |
v_customer_repurchase | 客户 | 复购分析 |
v_customer_wakeup | 客户 | 沉睡客户激活 |
v_customer_cross_[[f]]low | 客户 | 跨店流动 |
v_churn_warning | 客户 | 流失预警 |
v_consultant_e[[f]]ficiency | 咨询师 | 效率指标 |
v_consultant_per[[f]]ormance | 咨询师 | 月度绩效 |
v_consultant_ranking | 咨询师 | 排名 |
v_consultation_conversion | 咨询师 | 咨询转化 |
v_[[f]]ollowup_efficiency | 回访 | 回访效率 |
v_[[f]]ollowup_monthly | 回访 | 月度回访 |
v_daily_brie[[f]] | 报表 | 日报 |
v_monthly_brie[[f]] | 报表 | 月报 |
v_monthly_per[[f]]ormance | 报表 | 月度业绩 |
v_treatment_analysis | 治疗 | 治疗分析 |
v_visit_analysis | 到院 | 到院分析 |
v_product_analysis | 产品 | 产品销售 |
v_source_[[f]]unnel | 来源 | 来源漏斗 |
v_source_trend | 来源 | 来源趋势 |
v_complaint_trend | 客诉 | 客诉分析 |
v_baobei_conversion | 报备 | 报备转化 |