package com.ruoyi.cms.domain.ai;

import com.alibaba.fastjson2.annotation.JSONField;
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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel("ai聊天历史记录")
@TableName("AI_CHAT_HISTORY")
public class AiChatHistory{

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("用户id")
    private Long userId;
    @JSONField(name = "chatId")
    @ApiModelProperty("会话id")
    private String chatId;
    @ApiModelProperty("应用id")
    private String appId;
    @JSONField(name = "title")
    @ApiModelProperty("第一次的问题")
    private String title;
    @JSONField(name = "updateTime")
    @ApiModelProperty("会话时间")
    private Date updateTime;
    @ApiModelProperty("是否删除")
    private String delFlag;

    @TableField(exist = false)
    private List<String> answerStringList;
    @TableField(exist = false)
    private double durationSeconds;
    @TableField(exist = false)
    private String customTitle;
    @TableField(exist = false)
    private String dataId;
    @TableField(exist = false)
    private boolean top=false;

}
