package shop.alien.entity.second;


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

import java.io.Serializable;
import java.util.Date;

/**
 * 二手屏蔽
 */
@Data
@JsonInclude
@TableName("second_shield")
public class SecondShield implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @TableField("user_id")
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @TableField("shield_id")
    @ApiModelProperty(value = "屏蔽ID")
    private Integer shieldId;

    @TableField("shield_type")
    @ApiModelProperty(value = "屏蔽类型 1:商品 2:卖家")
    private Integer shieldType;

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

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

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

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

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