import { IsEnum, IsOptional, IsString } from "class-validator";
import { OpsJobKind } from "@jorgecuadros/database";

export class StartJobDto {
  @IsEnum(OpsJobKind)
  kind!: OpsJobKind;

  /** Target backup filename — required for RESTORE, ignored otherwise. */
  @IsOptional()
  @IsString()
  file?: string;
}
