package com.zy.ai.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import java.io.Serializable; import java.util.Date; @Data @TableName("sys_ai_chat_session") public class AiChatSession implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; @TableField("chat_id") private String chatId; private String title; @TableField("prompt_template_id") private Long promptTemplateId; @TableField("prompt_scene_code") private String promptSceneCode; @TableField("prompt_version") private Integer promptVersion; @TableField("prompt_name") private String promptName; @TableField("message_count") private Integer messageCount; @TableField("last_prompt_tokens") private Long lastPromptTokens; @TableField("last_completion_tokens") private Long lastCompletionTokens; @TableField("last_total_tokens") private Long lastTotalTokens; @TableField("last_llm_call_count") private Integer lastLlmCallCount; @TableField("last_token_updated_at") private Date lastTokenUpdatedAt; @TableField("sum_prompt_tokens") private Long sumPromptTokens; @TableField("sum_completion_tokens") private Long sumCompletionTokens; @TableField("sum_total_tokens") private Long sumTotalTokens; @TableField("ask_count") private Long askCount; @TableField("create_time") private Date createTime; @TableField("update_time") private Date updateTime; }