package com.lesingle.edu.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 任务评价实体
 * 教师对学生完成阅读任务后的评价反馈
 */
@Schema(description = "任务评价实体")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("task_feedback")
public class TaskFeedback extends BaseEntity {

    @Schema(description = "完成记录ID")
    private Long completionId;

    @Schema(description = "任务ID（冗余字段，方便查询）")
    private Long taskId;

    @Schema(description = "学生ID（冗余字段）")
    private Long studentId;

    @Schema(description = "教师ID")
    private Long teacherId;

    @Schema(description = "评价结果：EXCELLENT-优秀/PASSED-通过/NEEDS_WORK-需改进")
    private String result;

    @Schema(description = "评分 1-5（可选）")
    private Integer rating;

    @Schema(description = "评语")
    private String comment;

}
