From 4b5ea3a9bca617c7515678793f796a175107d550 Mon Sep 17 00:00:00 2001 From: Hankin Date: Wed, 11 Feb 2026 14:56:29 +0800 Subject: [PATCH] add conversation --- 1770628731_create_s2_conversation.up.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 1770628731_create_s2_conversation.up.sql diff --git a/1770628731_create_s2_conversation.up.sql b/1770628731_create_s2_conversation.up.sql new file mode 100644 index 0000000..537603b --- /dev/null +++ b/1770628731_create_s2_conversation.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE `health`.`ufutx_s2_conversation` ( + `id` BIGINT NOT NULL AUTO_INCREMENT, + `customer_id` BIGINT NOT NULL COMMENT '客户id', + `session_id` VARCHAR(20) NOT NULL COMMENT 'session_id', + `role` ENUM("user", "assistant") NOT NULL COMMENT "角色", + `message` TEXT NOT NULL COMMENT "内容", + `created_at` TIMESTAMP NULL DEFAULT NULL, + `updated_at` TIMESTAMP NULL DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE = InnoDB COMMENT = 'crm聊天记录'; \ No newline at end of file