package com.reading.platform.entity;

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

import java.time.LocalDateTime;

/**
 * 课时反馈实体
 */
@Data
@TableName("t_lesson_feedback")
@Schema(description = "课时反馈")
public class LessonFeedback {

    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "ID", accessMode = Schema.AccessMode.READ_ONLY)
    private String id;

    @Schema(description = "课时 ID")
    private String lessonId;

    @Schema(description = "课程 ID")
    private String courseId;

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

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

    /**
     * 整体评分 (1-5)
     */
    @Schema(description = "整体评分 (1-5)", minimum = "1", maximum = "5")
    private Integer overallRating;

    /**
     * 设计质量评分 (1-5)
     */
    @Schema(description = "设计质量评分 (1-5)", minimum = "1", maximum = "5")
    private Integer designQuality;

    /**
     * 参与度评分 (1-5)
     */
    @Schema(description = "参与度评分 (1-5)", minimum = "1", maximum = "5")
    private Integer participation;

    /**
     * 目标达成度评分 (1-5)
     */
    @Schema(description = "目标达成度评分 (1-5)", minimum = "1", maximum = "5")
    private Integer goalAchievement;

    /**
     * 环节反馈 JSON
     */
    @Schema(description = "环节反馈 JSON")
    private String stepFeedbacks;

    /**
     * 优点
     */
    @Schema(description = "优点")
    private String pros;

    /**
     * 建议
     */
    @Schema(description = "建议")
    private String suggestions;

    /**
     * 完成的活动 JSON
     */
    @Schema(description = "完成的活动 JSON")
    private String activitiesDone;

    @Schema(description = "创建人用户名", accessMode = Schema.AccessMode.READ_ONLY)
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    @Schema(description = "创建时间", accessMode = Schema.AccessMode.READ_ONLY)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @Schema(description = "更新时间", accessMode = Schema.AccessMode.READ_ONLY)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @Schema(description = "更新人用户名", accessMode = Schema.AccessMode.READ_ONLY)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    @Schema(description = "是否删除", accessMode = Schema.AccessMode.READ_ONLY)
    @TableLogic
    private Integer deleted;

}
