package cn.lihongjie.coal.noteBook.entity;

import cn.lihongjie.coal.base.entity.CommonEntity;
import cn.lihongjie.coal.noteBookChapter.entity.NoteBookChapterEntity;

import jakarta.persistence.Entity;
import jakarta.persistence.OneToMany;

import lombok.Data;

import java.util.List;

@Data
@Entity
public class NoteBookEntity extends CommonEntity {


    @OneToMany(mappedBy = "noteBook")
    private List<NoteBookChapterEntity> chapters;
}
