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.time.LocalDateTime;

/**
 * <p>
 * 用户收藏书籍表
 * </p>
 *
 * @author Captain
 * @since 2025-06-13
 */
@Getter
@Setter
@TableName("teacher_my_books")
@Schema(name = "MyBooksEntity对象", description = "用户收藏书籍表")
public class MyBooksEntity 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 = "收藏时间")
    @TableField("buy_time")
    private LocalDateTime buyTime;

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

    @Schema(description = "书评内容")
    @TableField("review")
    private String review;


}
