package com.red.circle.other.infra.database.rds.entity.ai.qianfan;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 千帆AI数据统计.
 * </p>
 *
 * @author zongpubin on 2023-09-13 11:43
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ai_qian_fan_chat")
public class AiQianFanChat implements Serializable {


    @Serial
    private static final long serialVersionUID = 1L;

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

    @TableField("user_id")
    private Long userId;

    @TableField("user_message")
    private String userMessage;

    @TableField("reply_message")
    private String replyMessage;

    @TableField("oss_url")
    private String ossUrl;

    /**
     * 赞或踩 1-赞 2-踩
     */
    @TableField("status")
    private Integer status;

    /**
     * 对方提供的音色ID
     */
    @TableField("voice_id")
    private String voiceId;

    /**
     * 千帆API 返回的id
     */
    @TableField("qian_fan_id")
    private String qianFanId;

    /**
     *  AI回复的信息 落库时间
     */
    @TableField("ai_reply_time")
    private Timestamp aiReplyTime;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Timestamp createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;
}
