package com.ruoyi.ibs.grid.domain.entity;

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

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

/**
 * @Author 吴凯程
 * @Date 2024/9/18
 **/
@Data
@ApiModel(value = "网格关联表", description = "")
@TableName("grid_virtual_user")
public class VirtualUser implements Serializable {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", name = "id")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 网格id
     */
    @ApiModelProperty(value = "网格id", notes = "")
    private Long gridId;

    /**
     * 关联类型;2：机构））
     */
    @ApiModelProperty(value = "关联类型", notes = "1: 客户经理 2：机构")
    private String relateType;

    /**
     * 客户经理柜员号
     */
    @ApiModelProperty(value = "客户经理柜员号", notes = "")
    private String nickName;

    /**
     * 客户经理姓名
     */
    @ApiModelProperty(value = "客户经理姓名", notes = "")
    private String userName;

    /**
     * 机构号
     */
    @ApiModelProperty(value = "机构号", notes = "")
    private Long relateDeptId;

    /**
     * 机构名
     */
    @ApiModelProperty(value = "机构名", notes = "")
    private String relateDeptName;

    /**
     * 机构层级;（head：总行，branch支行，outlet网点））
     */
    @ApiModelProperty(value = "机构层级", notes = "（head：总行，branch支行，outlet网点））")
    private String relateDeptType;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新者
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 删除标识
     */
    @TableLogic
    private Boolean deleteFlag;
}
