Files
autoAiWorkSys/_sql/add_pla_account_auto_fields.sql
张成 5d7444cd65 1
2025-11-24 13:23:42 +08:00

27 lines
1.7 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.
-- 为 pla_account 表添加自动投递、自动沟通、自动活跃等配置字段
-- 执行时间2025-01-XX
-- 自动投递相关配置
ALTER TABLE `pla_account`
ADD COLUMN `auto_deliver` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '自动投递开关' AFTER `search_url`,
ADD COLUMN `page_count` INT(11) NOT NULL DEFAULT 3 COMMENT '滚动获取职位列表次数' AFTER `auto_deliver`,
ADD COLUMN `max_deliver` INT(11) NOT NULL DEFAULT 10 COMMENT '每次最多投递数量' AFTER `page_count`,
ADD COLUMN `min_salary` INT(11) NOT NULL DEFAULT 0 COMMENT '最低薪资(单位:元)' AFTER `max_deliver`,
ADD COLUMN `max_salary` INT(11) NOT NULL DEFAULT 0 COMMENT '最高薪资(单位:元)' AFTER `min_salary`,
ADD COLUMN `filter_keywords` TEXT COMMENT '过滤关键词JSON数组' AFTER `max_salary`,
ADD COLUMN `exclude_keywords` TEXT COMMENT '排除关键词JSON数组' AFTER `filter_keywords`;
-- 自动沟通相关配置
ALTER TABLE `pla_account`
ADD COLUMN `auto_chat` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '自动沟通开关' AFTER `exclude_keywords`,
ADD COLUMN `chat_interval` INT(11) NOT NULL DEFAULT 30 COMMENT '沟通间隔(单位:分钟)' AFTER `auto_chat`,
ADD COLUMN `auto_reply` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '自动回复开关' AFTER `chat_interval`,
ADD COLUMN `chat_strategy` TEXT COMMENT '沟通策略JSON对象' AFTER `auto_reply`;
-- 自动活跃相关配置
ALTER TABLE `pla_account`
ADD COLUMN `auto_active` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '自动活跃开关' AFTER `chat_strategy`,
ADD COLUMN `active_interval` INT(11) NOT NULL DEFAULT 60 COMMENT '活跃间隔(单位:分钟)' AFTER `auto_active`,
ADD COLUMN `active_actions` TEXT COMMENT '活跃动作JSON数组' AFTER `active_interval`;