package com.emotion.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.emotion.common.BaseEntity;
import lombok.experimental.SuperBuilder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 课题互动实体类
 * 
 * @author huazhongmin
 * @date 2025-07-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_topic_interaction")
public class TopicInteraction extends BaseEntity {

    /**
     * 课题ID
     */
    @TableField("topic_id")
    private String topicId;

    /**
     * 互动类型
     */
    @TableField("type")
    private String type;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 用户输入
     */
    @TableField("user_input")
    private String userInput;

    /**
     * AI回应
     */
    @TableField("ai_response")
    private String aiResponse;

    /**
     * 评分
     */
    @TableField("rating")
    private Integer rating;

    /**
     * 反馈
     */
    @TableField("feedback")
    private String feedback;

    /**
     * 完成时间
     */
    @TableField("completed_time")
    private LocalDateTime completedTime;
}
