Files
gangyan/chat_web_backend/doc/sql/fix_gpt_chat_message.sql

36 lines
1.4 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.

# gpt_chat_message
#
#
# content_type update.sql已执行过
ALTER TABLE `gpt_chat_message`
ADD COLUMN `content_type` varchar(250) NOT NULL DEFAULT 'text' COMMENT '内容类型text文字 image : 图片' AFTER `content`;
# size
ALTER TABLE `gpt_chat_message`
ADD COLUMN `size` varchar(40) DEFAULT NULL COMMENT '文件大小' AFTER `response`;
# summary
ALTER TABLE `gpt_chat_message`
ADD COLUMN `summary` text COMMENT '消息总结' AFTER `size`;
# question
ALTER TABLE `gpt_chat_message`
ADD COLUMN `question` text COMMENT '推荐问题' AFTER `summary`;
# think
ALTER TABLE `gpt_chat_message`
ADD COLUMN `think` longtext COMMENT '思考过程' AFTER `question`;
# feedback
ALTER TABLE `gpt_chat_message`
ADD COLUMN `feedback` tinyint NOT NULL DEFAULT '0' COMMENT '反馈' AFTER `question`;
# feedback_reason
ALTER TABLE `gpt_chat_message`
ADD COLUMN `feedback_reason` tinyint NOT NULL DEFAULT '0' COMMENT '反馈原因' AFTER `feedback`;
# last_content
ALTER TABLE `gpt_chat_message`
ADD COLUMN `last_content` longtext COMMENT '中断对话记录' AFTER `feedback_reason`;