package com.yonge.cooleshow.biz.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yonge.cooleshow.common.enums.ETenantUnBindAuditStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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


/**
 * 机构解绑历史表
 * 2023-08-18 18:00:10
 */
@Data
@ApiModel(" TenantUnbindHistory-机构解绑历史表")
@TableName("tenant_unbind_history")
public class TenantUnbindHistory implements Serializable {

    @ApiModelProperty("主键ID")

    @TableId(value = "id_", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("机构ID")
    @TableField(value = "tenant_id_")
    private Long tenantId;

    @ApiModelProperty("机构名称")
    @TableField(value = "tenant_name_")
    private String tenantName;

    @ApiModelProperty("用户ID")
    @TableField(value = "user_id_")
    private Long userId;

    @ApiModelProperty("用户名称")
    @TableField(value = "user_name_")
    private String userName;

    @ApiModelProperty("手机号")
    @TableField(value = "phone_")
    private String phone;

    @ApiModelProperty("用户类型")
    @TableField(value = "user_type_")
    private String userType;

    @ApiModelProperty("解绑理由")
    @TableField(value = "unbind_reason_")
    private String unbindReason;

    @ApiModelProperty("审核状态 CANCEL、撤销 PASS、通过 UNPASS、不通过")
    @TableField(value = "status_")
    private ETenantUnBindAuditStatus status;

    @ApiModelProperty("审核人")
    @TableField(value = "verify_user_id_")
    private Long verifyUserId;

    @ApiModelProperty("审核理由")
    @TableField(value = "reason_")
    private String reason;

    @ApiModelProperty("后台介入时间")
    @TableField(value = "intervene_time_")
    private Date interveneTime;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time_")
    private Date createTime;

}