Files
autoAiWorkSys/_sql/add_job_postings_text_match_fields.sql
张成 c6c78d0c43 1
2025-12-25 13:10:54 +08:00

35 lines
1.5 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 为 job_postings 表添加文本匹配分析结果字段
-- 执行时间: 2025-01-XX
-- ============================================
-- 更新 job_postings 表
-- ============================================
-- 添加 textMatchScore 字段(文本匹配综合评分)
ALTER TABLE job_postings
ADD COLUMN textMatchScore INT(11) DEFAULT 0 COMMENT '文本匹配综合评分' AFTER aiAnalysis;
-- 添加 matchSuggestion 字段(投递建议)
ALTER TABLE job_postings
ADD COLUMN matchSuggestion VARCHAR(200) DEFAULT '' COMMENT '投递建议' AFTER textMatchScore;
-- 添加 matchConcerns 字段关注点JSON数组
ALTER TABLE job_postings
ADD COLUMN matchConcerns TEXT COMMENT '关注点(JSON数组)' AFTER matchSuggestion;
-- 添加 textMatchAnalysis 字段文本匹配详细分析结果JSON
ALTER TABLE job_postings
ADD COLUMN textMatchAnalysis TEXT COMMENT '文本匹配详细分析结果(JSON)' AFTER matchConcerns;
-- ============================================
-- 说明
-- ============================================
-- 1. 如果字段已存在,执行 ALTER TABLE 会报错,可以忽略
-- 2. 执行前建议先备份数据库
-- 3. 字段说明:
-- - textMatchScore: 文本匹配综合评分0-100
-- - matchSuggestion: 投递建议(如:必须投递、可以投递、谨慎考虑等)
-- - matchConcerns: 关注点列表JSON数组格式["可能是外包岗位", "工作经验可能不足"]
-- - textMatchAnalysis: 完整分析结果JSON格式包含所有详细分析数据