34 lines
749 B
TypeScript
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;
|
|
}
|