package org.dromara.work.domain;

import jakarta.validation.constraints.NotNull;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 评论对象 tp_comments
 *
 * @author Maosw
 * @date 2025-04-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tp_comments")
public class TpComments extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 作品动态ID
     */
    private Long pictureId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 被回复用户
     */
    private Long toUserId;

    /**
     * 父评论 ID
     */
    private Long parentId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 点赞数
     */
    private Integer num;

    /**
     * 子评论数量
     */
    private Integer subset;

    /**
     * 类型  1-作品  2-动态
     */
    private Integer type;

    /**
     * 备注
     */
    private String remark;


}
