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;