package org.dromara.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户绑定业务租户关联表
 */
@Schema(description="用户绑定业务租户关联表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "sys_user_tenant")
public class SysUserTenant {
    /**
     * 用户ID
     */
    @Schema(description="用户ID")
    @NotNull(message = "用户ID不能为null")
    private Long userId;

    /**
     * 租户id
     */
    @Schema(description="租户id")
    @Size(max = 255,message = "租户id最大长度要小于 255")
    @NotBlank(message = "租户id不能为空")
    private String tenantId;
}
