import { IsString, IsInt, IsOptional, IsObject, IsArray } from 'class-validator';

export class SubmitWorkDto {
  @IsInt()
  registrationId: number;

  @IsString()
  title: string;

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

  @IsArray()
  @IsString({ each: true })
  @IsOptional()
  files?: string[];

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

  @IsArray()
  @IsString({ each: true })
  @IsOptional()
  previewUrls?: string[];

  @IsObject()
  @IsOptional()
  aiModelMeta?: any;
}

