94 lines
1.8 KiB
Java
94 lines
1.8 KiB
Java
package com.example.caseData.model;
|
||
|
||
import com.baomidou.mybatisplus.annotation.*;
|
||
import lombok.Data;
|
||
|
||
import java.time.LocalDateTime;
|
||
|
||
@Data // Lombok注解,用于自动生成getter/setter方法等
|
||
@TableName("`user_comment_clinical_video`") // 指定数据库表名
|
||
public class UserCommentClinicalVideoModel {
|
||
/**
|
||
* 主键id
|
||
*/
|
||
@TableId(type = IdType.ASSIGN_ID) // 使用MyBatis-Plus的ID生成策略
|
||
private Long commentId;
|
||
|
||
/**
|
||
* 用户id
|
||
*/
|
||
@TableField("user_id")
|
||
private Long userId;
|
||
|
||
/**
|
||
* 临床视频id
|
||
*/
|
||
@TableField("video_id")
|
||
private Long videoId;
|
||
|
||
/**
|
||
* 父级id,一级评论为null
|
||
*/
|
||
@TableField("parent_id")
|
||
private Long parentId;
|
||
|
||
/**
|
||
* 根评论id,一级评论时为null。其余为一级评论id
|
||
*/
|
||
@TableField("root_id")
|
||
private Long rootId;
|
||
|
||
/**
|
||
* 评论状态(0:禁用 1:正常)
|
||
*/
|
||
@TableField("status")
|
||
private Integer status;
|
||
|
||
/**
|
||
* 是否存在敏感词(0:否 1:是)
|
||
*/
|
||
@TableField("is_sensitive")
|
||
private Integer isSensitive;
|
||
|
||
/**
|
||
* 是否置顶(0:否 1:是)
|
||
*/
|
||
@TableField("is_top")
|
||
private Integer isTop;
|
||
|
||
/**
|
||
* 点赞数量
|
||
*/
|
||
@TableField("like_num")
|
||
private Integer likeNum;
|
||
|
||
/**
|
||
* 评论内容
|
||
*/
|
||
@TableField("content")
|
||
private String content;
|
||
|
||
/**
|
||
* 评论内容(原版)
|
||
*/
|
||
@TableField("content_word")
|
||
private String contentWord;
|
||
|
||
/**
|
||
* 评论图片
|
||
*/
|
||
@TableField("comment_image")
|
||
private String commentImage;
|
||
|
||
/**
|
||
* 创建时间
|
||
*/
|
||
@TableField(fill = FieldFill.INSERT)
|
||
private LocalDateTime createdAt;
|
||
|
||
/**
|
||
* 修改时间
|
||
*/
|
||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||
private LocalDateTime updatedAt;
|
||
} |