package com.sonic.pigeon.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * AI聊天反馈表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_im_ai_chat_feedback")
@ApiModel(description = "AI聊天反馈表")
public class AiChatFeedback {

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

    /**
     * 消息ID
     */
    @TableField("message_id")
    @ApiModelProperty(value = "消息ID")
    private String messageId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * AI的ID
     */
    @TableField("ai_id")
    @ApiModelProperty(value = "AI的ID")
    private Long aiId;

    /**
     * 文本内容
     */
    @TableField("content")
    @ApiModelProperty(value = "文本内容")
    private String content;

    /**
     * 操作类型（1 赞、2 踩）
     */
    @TableField("opt_type")
    @ApiModelProperty(value = "操作类型（1 赞、2 踩）")
    private Integer optType;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
