ai_scheduler/sql/07_customer_session.sql

8 lines
435 B
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.

-- 客户表新增会话字段(托管自动注册 AI 会话)
ALTER TABLE ai_advice_customer
ADD COLUMN session_id VARCHAR(64) NOT NULL DEFAULT '' COMMENT '当前活跃会话ID' AFTER label_list;
-- 会话表新增销售ID(用于动态取最新版本)
ALTER TABLE ai_advice_session
ADD COLUMN advicer_id INT NOT NULL DEFAULT 0 COMMENT '销售人员ID(托管自动注册时用于动态取最新版本)' AFTER client_id;