import { IsString, MinLength } from 'class-validator';

export class LoginDto {
  @IsString()
  tenantCode!: string;

  @IsString()
  username!: string;

  @IsString()
  @MinLength(6)
  password!: string;
}

export class RefreshTokenDto {
  @IsString()
  refreshToken!: string;
}

export class ChangePasswordDto {
  @IsString()
  oldPassword!: string;

  @IsString()
  @MinLength(6)
  newPassword!: string;
}
