import { IsArray, IsBoolean, IsEnum, IsOptional, IsString, MaxLength, MinLength } from 'class-validator'

export class UpdateUserDto {
  @IsOptional() @IsString() @MinLength(1) @MaxLength(200)
  name?: string

  @IsOptional() @IsArray() @IsString({ each: true })
  tenantSlugs?: string[]

  @IsOptional() @IsEnum(['owner', 'admin', 'member'])
  role?: 'owner' | 'admin' | 'member'

  @IsOptional() @IsBoolean()
  active?: boolean
}
