package com.storlead.knowledge.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 com.storlead.framework.mybatis.entity.SysBaseField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "AiMessageEntity对象", description = "AI对话消息记录")
@TableName("ai_messages")
public class AiMessageEntity extends SysBaseField implements Serializable {


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

    @ApiModelProperty(value = "任务id")
    @TableField("task_id")
    private String taskId;

    @ApiModelProperty(value = "信息id")
    @TableField("message_id")
    private String messageId;

    @ApiModelProperty(value = "会话id")
    @TableField("conversation_id")
    private String conversationId;

    @ApiModelProperty(value = "应用id")
    @TableField("app_id")
    private String appId;

    @ApiModelProperty(value = "输入(JSON)")
    @TableField("inputs")
    private String inputs;

    @ApiModelProperty(value = "问题")
    @TableField("query")
    private String query;

    @ApiModelProperty(value = "回复模式")
    @TableField("response_mode")
    private String responseMode;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "AI回复")
    @TableField("answer")
    private String answer;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_at")
    private Integer createdAt;
}
