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

export class LoginDto {
  @ApiProperty({ example: 'admin@glma.com', description: 'User email address' })
  @IsEmail()
  email: string;

  @ApiProperty({ example: 'admin123', description: 'User account password' })
  @IsNotEmpty()
  password: string;
}