import { IsEmail, IsString, MinLength } from "class-validator";

export class LocalLoginDto {
  @IsEmail({}, { message: "email must be a valid email address" })
  email!: string;

  @IsString({ message: "password must be a string" })
  @MinLength(1, { message: "password must not be empty" })
  password!: string;
}
