package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 员工评论回复表
 * 其他用户对员工评价的评论
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@JsonInclude
@TableName("store_staff_comment")
@ApiModel(value = "StoreStaffComment对象", description = "员工评论回复")
public class StoreStaffComment {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "评价ID")
    @TableField("review_id")
    private Integer reviewId;

    @ApiModelProperty(value = "发送用户类型：1-普通用户，2-员工")
    @TableField("send_user_type")
    private Integer sendUserType;

    @ApiModelProperty(value = "评论用户ID")
    @TableField("send_user_id")
    private Integer sendUserId;

    @ApiModelProperty(value = "接收用户类型：1-普通用户，2-员工")
    @TableField("receive_user_type")
    private Integer receiveUserType;

    @ApiModelProperty(value = "接收用户ID")
    @TableField("receive_user_id")
    private Integer receiveUserId;

    @ApiModelProperty(value = "评论内容")
    @TableField("comment_content")
    private String commentContent;

    @ApiModelProperty(value = "点赞数")
    @TableField("like_count")
    private Integer likeCount;

    @ApiModelProperty(value = "回复数")
    @TableField("reply_count")
    private Integer replyCount;

    @ApiModelProperty(value = "首评标记, 0:是, 1:否")
    @TableField("head_type")
    private Integer headType;

    @ApiModelProperty(value = "首评ID（仅子评论存在该属性）")
    @TableField("head_id")
    private Integer headId;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField("created_user_id")
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("updated_user_id")
    private Integer updatedUserId;

    @ApiModelProperty(value = "登陆人")
    @TableField(exist = false)
    private Integer userId;
}

