package com.ruoyi.frequency.refereeuser.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.vo.UserInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 用户邀请对象 t_referee_user
 *
 * @author liwenlong
 * @date 2023-07-20
 */
@Data
@Accessors(chain = true)
@TableName("t_referee_user")
public class RefereeUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;



    /** 删除标志;1正常;删除 3 禁用 */
    private Integer delFlag;

    /** 用户类型;1用户 */
    @Excel(name = "用户类型;1用户")
    private Integer userType;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 上级用户类型;1用户 */
    @Excel(name = "上级用户类型;1用户")
    private Integer parentUserType;

    /** 邀请用户上级id */
    @Excel(name = "邀请用户上级id")
    private Long parentUserId;


    @ApiModelProperty(value = "邀请用户信息")
    @TableField(exist = false)
    private UserInfo userInfo;

}
