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

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
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;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户阅读记录表
 * </p>
 *
 * @author Captain
 * @since 2025-06-13
 */
@Getter
@Setter
@TableName("teacher_reading_records")
@Schema(name = "ReadingRecordsEntity对象", description = "用户阅读记录表")
public class ReadingRecordsEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    @Schema(description = "书籍ID")
    @TableField("book_id")
    private Integer bookId;

    @Schema(description = "章节ID")
    @TableField("chapter_id")
    private Integer chapterId;

    @Schema(description = "当前阅读页码")
    @TableField("current_page")
    private Integer currentPage;

    @Schema(description = "阅读进度百分比")
    @TableField("progress")
    private BigDecimal progress;

    @Schema(description = "最后阅读时间")
    @TableField("last_read_time")
    private LocalDateTime lastReadTime;

    @Schema(description = "阅读模式 0精致品读 1高效品读")
    @TableField("model")
    private Integer model;

    @Schema(description = "数字人模型")
    @TableField("ai_human_id")
    private Integer aiHumanId;


}
