PhiloMind / src /courses /dto /create-document-ref.dto.ts
github-actions[bot]
Deploy Backend from GitHub Actions Commit: ca37b2a1c9dd5c702619ea7ae7b3260d2fb5663d
b185a6d
Raw
History Blame Contribute Delete
412 Bytes
import { IsString, IsNotEmpty, IsOptional } from "class-validator";
export class CreateDocumentRefDto {
@IsString()
@IsNotEmpty()
courseId: string;
@IsString()
@IsNotEmpty()
fileName: string;
@IsString()
@IsNotEmpty()
fileUrl: string;
@IsString()
@IsOptional()
status?: string;
@IsString()
@IsOptional()
title?: string;
@IsString()
@IsOptional()
description?: string;
}