package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 黑名单
 *
 * </p>
 *
 * @author ssk
 * @since 2025-04-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "LifeBlacklist对象", description = "黑名单")
public class LifeBlacklist extends Model<LifeBlacklist> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("id")
    private Integer id;

    @ApiModelProperty(value = "拉黑方类型(1：商户，2：用户)")
    @TableField("blocker_type")
    private String blockerType;

    @ApiModelProperty(value = "拉黑方ID")
    @TableField("blocker_id")
    private String blockerId;

    @ApiModelProperty(value = "拉黑方phoneId")
    @TableField("blocker_phone_id")
    private String blockerPhoneId;

    @ApiModelProperty(value = "被拉黑方类型(1：商户，2：用户)")
    @TableField("blocked_type")
    private String blockedType;

    @ApiModelProperty(value = "被拉黑方ID")
    @TableField("blocked_id")
    private String blockedId;

    @ApiModelProperty(value = "被拉黑方phoneId")
    @TableField("blocked_phone_id")
    private String blockedPhoneId;

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

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField(value = "created_user_id", fill = FieldFill.INSERT)
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField(value = "updated_user_id", fill = FieldFill.INSERT_UPDATE)
    private Integer updatedUserId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
