package cn.ey.biz.module.system.dal.dataobject.delegation;

import cn.ey.biz.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * user delegation DO
 */
@TableName(value ="system_user_delegation",autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserDelegationDO extends BaseDO {

    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 应用ID
     */
    private String appId;

    /**
     * 代理人用户ID
     */
    private Long agentUserId;

    /**
     * 代理人用户姓名
     */
    private String agentUserName;

    /**
     * 代理人GPN
     */
    private String agentGpn;

    /**
     * 代理人EMAIL
     */
    private String agentEmail;

    /**
     * 被代理人用户ID
     */
    private Long userId;

    /**
     * 被代理人姓名
     */
    private String userName;

    /**
     * 被代理人GPN
     */
    private String gpn;

    /**
     * 被代理人EMAIL
     */
    private String email;

}