case-data-api/src/main/java/com/example/caseData/model/UserCommentClinicalVideoModel.java

94 lines
1.8 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}