import { IsDefined, IsString, IsNotEmpty, IsEmail, IsOptional } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";

export class LoginStaffDto {
  @ApiProperty({ example: "john.doe@example.com" })
  @IsDefined()
  @IsNotEmpty()
  @IsString()
  username: string;

  @ApiProperty({ example: "6~$*N+{g}gPH?q2D" })
  @IsDefined()
  @IsNotEmpty()
  @IsString()
  password: string;

  @ApiProperty({ example: "20c0b586-126c-5203-9c3a-626a6870269b" })
  @IsDefined()
  @IsOptional()
  @IsString()
  imei: string;
}
