Files
Taekwondo-Admin/packages/api/src/dtos/foundEvents.ts
T
2026-03-15 15:39:45 +01:00

34 lines
749 B
TypeScript

import type {
FoundEventAttachments,
FoundEvents,
} from "../generated/prisma/client.js";
export class FoundEventAttachmentDto implements FoundEventAttachments {
id!: string;
title!: string;
url!: string;
eventId!: string;
}
export class FoundEventDto implements FoundEvents {
id!: string;
source!: string;
url!: string;
foundDate!: Date;
eventDate!: string | null;
title!: string | null;
description!: string | null;
attachedFiles!: FoundEventAttachmentDto[];
}
export class FoundEventCreateArgs implements Omit<
FoundEvents,
"id" | "foundDate"
> {
source!: string;
url!: string;
eventDate!: string | null;
title!: string | null;
description!: string | null;
}