import { ApiProperty } from '@nestjs/swagger';
import { IsEmail, IsString, MinLength, MaxLength } from 'class-validator';

export class LoginDto {
  @ApiProperty({ description: 'Email del usuario', example: 'user@example.com' })
  @IsEmail()
  email: string;

  @ApiProperty({ description: 'Password del usuario' })
  @IsString()
  @MinLength(1)
  @MaxLength(100)
  password: string;
}
