package com.emotion.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.emotion.common.BaseEntity;
import lombok.experimental.SuperBuilder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 评论实体类
 * 
 * @author huazhongmin
 * @date 2025-07-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_comment")
public class Comment extends BaseEntity {

    /**
     * 帖子ID
     */
    @TableField("post_id")
    private String postId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 评论内容
     */
    @TableField("content")
    private String content;

    /**
     * 回复的评论ID
     */
    @TableField("reply_to_id")
    private String replyToId;

    /**
     * 点赞数
     */
    @TableField("likes")
    private Integer likes;
}
