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_community_post")
public class CommunityPost extends BaseEntity {

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

    /**
     * 地点ID
     */
    @TableField("location_id")
    private String locationId;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

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

    /**
     * 帖子类型
     */
    @TableField("type")
    private String type;

    /**
     * 图片列表
     */
    @TableField("images")
    private String images;

    /**
     * 标签
     */
    @TableField("tags")
    private String tags;

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

    /**
     * 浏览数
     */
    @TableField("view_count")
    private Integer viewCount;

    /**
     * 评论数
     */
    @TableField("comment_count")
    private Integer commentCount;

    /**
     * 是否私密
     */
    @TableField("is_private")
    private Integer isPrivate;
}
