package com.seer.teach.teacher.module.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.seer.teach.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author Wang
 * @since 2025-12-02 21:29:37
 */
@Getter
@Setter
@TableName("teacher_lessons")
@Schema(name = "LessonsEntity对象", description = "")
public class LessonsEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户Id")
    @TableField("user_id")
    private Integer userId;

    @Schema(description = "知识点ID")
    @TableField("know_id")
    private Integer knowId;

    @Schema(description = "科目ID")
    @TableField("subject_id")
    private Integer subjectId;

    @Schema(description = "年级ID")
    @TableField("grade_id")
    private Integer gradeId;

    @Schema(description = "题目数量")
    @TableField("question_count")
    private Integer questionCount;

    @Schema(description = "正确率")
    @TableField("correct_rate")
    private BigDecimal correctRate;

    @Schema(description = "平均难度")
    @TableField("average_difficulty")
    private BigDecimal averageDifficulty;

    @Schema(description = "做题用时（秒）")
    @TableField("question_use_time")
    private Integer questionUseTime;

    @Schema(description = "做题开始时间")
    @TableField("question_start_time")
    private LocalDateTime questionStartTime;

    @Schema(description = "做题结束时间")
    @TableField("question_end_time")
    private LocalDateTime questionEndTime;

    @Schema(description = "学习时间(秒)")
    @TableField("study_seconds")
    private Integer studySeconds;

    @Schema(description = "开始学习时间")
    @TableField("study_start_time")
    private LocalDateTime studyStartTime;

    @Schema(description = "学习结束时间")
    @TableField("study_end_time")
    private LocalDateTime studyEndTime;

    @Schema(description = "学习中 1学习中 2已学习")
    @TableField("status")
    private Integer status;

}
