package com.rj.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 陪练子表
 * </p>
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("training_item")
@Schema(description = "陪练子表")
public class TrainingItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键，UUID")
    @TableId("id")
    private String id;

    @Schema(description = "父ID，关联陪练主表ID")
    @TableField("parent_id")
    private String parentId;

    @Schema(description = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

    @Schema(description = "题目")
    @TableField("question")
    private String question;

    @Schema(description = "状态")
    @TableField("status")
    private String status;

    @Schema(description = "题目答案")
    @TableField("answer")
    private String answer;

    @Schema(description = "AI答案")
    @TableField("ai_answer")
    private String AiAnswer;

    @Schema(description = "创建时间")
    @TableField("answer_time")
    private LocalDateTime answerTime;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    public void setAnswerTime() {
    }
}

