package com.peanut.modules.common.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import java.util.Date; import java.util.List; @Data @TableName("book_teach_comment") public class BookTeachCommentEntity { private static final long serialVersionUID = 1L; @TableId @TableField("id") private Integer id; @TableField("parent_id") private Integer parentId; @TableField(exist = false) private List comments; @TableField("user_id") private Integer userId; @TableField(exist = false) private MyUserEntity user; @TableField("teach_id") private Integer teachId; private String content; @TableField("create_time") private Date createTime; @TableField("del_flag") private Integer delFlag; }