import { IsString, IsOptional, IsInt, Min, IsEnum } from 'class-validator';

export class CreateLockerDto {
  @IsString()
  lockerNumber: string;

  @IsOptional()
  @IsString()
  status?: string;

  @IsOptional()
  @IsString()
  notes?: string;
}

export class UpdateLockerDto {
  @IsOptional()
  @IsString()
  lockerNumber?: string;

  @IsOptional()
  @IsEnum(['available', 'occupied', 'maintenance'])
  status?: string;

  @IsOptional()
  @IsString()
  notes?: string;
}

export class BatchCreateLockerDto {
  @IsInt()
  @Min(1)
  count: number;
}
