package com.yuchen.saas.manage.system.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

import java.util.Date;

/**
 * <p>
 * 邀请加入组织码
 * </p>
 *
 * @author cxj
 * @since 2023-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("nest_org_user_apply_code")
@ApiModel(value="NestOrgUserApplyCode对象", description="邀请加入组织码")
public class NestOrgUserApplyCode extends TenantEntity {

    /**
     * 组织id
     */
    @ApiModelProperty(name = "deptId", value = "组织id")
    private Long deptId;
    /**
     * 组织操作人orgUserId
     */
    @ApiModelProperty(name = "orgUserId", value = "组织操作人orgUserId")
    private Long orgUserId;
    /**
     * 组织操作人userId
     */
    @ApiModelProperty(name = "userId", value = "组织操作人userId")
    private Long userId;
    /**
     * 部门id
     */
    @ApiModelProperty(name = "childDeptId", value = "部门id")
    private Long childDeptId;
    /**
     * 邀请码
     */
    @ApiModelProperty(name = "inviteCode", value = "邀请码")
    private String inviteCode;

    @ApiModelProperty(name = "isExpire", value = "是否会过期,0不会过期,1会过期")
    private Integer isExpire;


    @ApiModelProperty(value = "过期时间")
    private Date expireTime;

    @ApiModelProperty(value = "类型:0内部成员,1外部成员,2上下游组织")
    private Integer type;
}
