CREATE TABLE audio_text_analysis_sop (
    id                        CHAR(36)   NOT NULL COMMENT '记录唯一标识，存放UUID字符',
    parent_id                 CHAR(36)   NOT  NULL COMMENT '父ID，UUID，用于树状结构关联',
    industry_type             VARCHAR(50) NULL COMMENT '行业类型',
    comprehensive_score       INT        NULL DEFAULT 0 COMMENT '综合得分',
    score_summary_reason      TEXT       NULL COMMENT '总结综合得分的原因',
    owner_name                VARCHAR(100) NULL COMMENT '所属人姓名',
    owner_phone               VARCHAR(50) NULL COMMENT '所属人电话',
    customer_name                VARCHAR(100) NULL COMMENT '客户姓名',
    customer_phone               VARCHAR(50) NULL COMMENT '客户电话',
    greeting_ice_breaking     INT        NULL DEFAULT 0 COMMENT '迎宾破冰得分',
    brand_introduction        INT        NULL DEFAULT 0 COMMENT '品牌介绍得分',
    golden_three_questions    INT        NULL DEFAULT 0 COMMENT '黄金三问得分',
    needs_guidance            INT        NULL DEFAULT 0 COMMENT '需求引导得分',
    service_progression       INT        NULL DEFAULT 0 COMMENT '服务递进得分',
    reassurance_handbook      INT        NULL DEFAULT 0 COMMENT '放心手册得分',
    three_level_pricing       INT        NULL DEFAULT 0 COMMENT '三级报价得分',
    objection_handling         INT        NULL DEFAULT 0 COMMENT '解答异议得分',
    activity_implantation     INT        NULL DEFAULT 0 COMMENT '活动植入得分',
    closing_cooperation       INT        NULL DEFAULT 0 COMMENT '压单配合得分',
    proactive_wechat_add     INT        NULL DEFAULT 0 COMMENT '主动添加微信得分',
    polite_farewell           INT        NULL DEFAULT 0 COMMENT '礼貌道别得分',
    updated_at                TIMESTAMP  NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
    created_at                TIMESTAMP  NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    PRIMARY KEY (id),
    KEY idx_audio_text_analysis_sop_parent_id (parent_id),
    KEY idx_audio_text_analysis_sop_industry_type (industry_type),
    KEY idx_audio_text_analysis_sop_comprehensive_score (comprehensive_score),
    KEY idx_audio_text_analysis_sop_owner_phone (owner_phone),
    KEY idx_audio_text_analysis_sop_updated_at (updated_at)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COMMENT = '音频文本分析SOP评分表';

