package com.ruoyi.cms.domain.ai;

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;

@Data
@ApiModel("ai聊天详情")
@TableName("AI_CHAT_DETAIL")
public class AiChatDetail {

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

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("会话id")
    private String chatId;
    @ApiModelProperty("数据id")
    private String dataId;
    @ApiModelProperty("会话类型，Human：用户，AI：大模型")
    private String obj;
    @ApiModelProperty("会话内容")
    private String content;
    @ApiModelProperty("会话时间")
    private Date time;
    @ApiModelProperty("耗时")
    private Double durationSeconds;
}
