import { IsNotEmpty, IsDate, IsOptional } from "class-validator"; import { Document } from "./Document"; export namespace File { export class IFile { @IsNotEmpty() public uuid!: string; @IsNotEmpty({ groups: ["create"] }) public document!: Document.IDocument; @IsOptional() public file_path: string | null = null; @IsDate() public created_at: Date | null = null; @IsDate() public updated_at: Date | null = null; } }