import { IsString, IsUUID, Matches, MaxLength } from 'class-validator'; export class CreateGenerationDto { @IsUUID() userId: string; @IsString() @MaxLength(64) @Matches(/^[A-Za-z0-9_-]+$/) jobId: string; }