27 lines
843 B
Java
27 lines
843 B
Java
package com.guwan.backend.pojo.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
import lombok.Data;
|
|
import java.time.LocalDateTime;
|
|
|
|
@Data
|
|
@TableName("reading_note")
|
|
public class ReadingNote {
|
|
@TableId(type = IdType.AUTO)
|
|
private Long id;
|
|
|
|
private Long userId; // 用户ID
|
|
private Long bookId; // 书籍ID
|
|
private String type; // 笔记类型:NOTE,HIGHLIGHT,THOUGHT
|
|
private String content; // 笔记内容
|
|
private String chapter; // 章节
|
|
private Integer pageNumber; // 页码
|
|
private String audioUrl; // 语音笔记URL
|
|
private Boolean isPublic; // 是否公开
|
|
|
|
@TableField(fill = FieldFill.INSERT)
|
|
private LocalDateTime createdTime;
|
|
|
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
private LocalDateTime updatedTime;
|
|
} |