From d818367a32b54f85a0282e448aa94d64c3ce552e Mon Sep 17 00:00:00 2001 From: Peanut Date: Mon, 25 May 2026 22:29:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E7=94=A8=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=AE=9E=E4=BD=93=E6=96=B0=E5=A2=9E=20userName=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=8F=8A=E6=95=B0=E6=8D=AE=E5=BA=93=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend-single/src/main/java/com/emotion/entity/AiCallLog.java | 3 +++ .../db/migration/V20260525__add_user_name_to_ai_call_log.sql | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 backend-single/src/main/resources/db/migration/V20260525__add_user_name_to_ai_call_log.sql diff --git a/backend-single/src/main/java/com/emotion/entity/AiCallLog.java b/backend-single/src/main/java/com/emotion/entity/AiCallLog.java index dc54043..3d55de9 100644 --- a/backend-single/src/main/java/com/emotion/entity/AiCallLog.java +++ b/backend-single/src/main/java/com/emotion/entity/AiCallLog.java @@ -29,6 +29,9 @@ public class AiCallLog extends BaseEntity { @TableField("user_id") private String userId; + @TableField("user_name") + private String userName; + @TableField("request_id") private String requestId; diff --git a/backend-single/src/main/resources/db/migration/V20260525__add_user_name_to_ai_call_log.sql b/backend-single/src/main/resources/db/migration/V20260525__add_user_name_to_ai_call_log.sql new file mode 100644 index 0000000..2de6617 --- /dev/null +++ b/backend-single/src/main/resources/db/migration/V20260525__add_user_name_to_ai_call_log.sql @@ -0,0 +1,2 @@ +-- 调用日志表新增 user_name 字段 +ALTER TABLE t_ai_call_log ADD COLUMN user_name VARCHAR(100) DEFAULT NULL COMMENT '用户昵称' AFTER user_id;