Files
ritzenbergen-dto/event.dto.ts
2026-01-30 11:44:30 +01:00

33 lines
493 B
TypeScript

import { Field, ObjectType } from "@nestjs/graphql";
@ObjectType()
export class MyEvent {
@Field()
id: number;
@Field()
eventname: string;
@Field()
datum: Date;
@Field()
type: EventType;
@Field()
content: string;
@Field()
minitext: string;
@Field({nullable: true})
link: string;
@Field()
foto: string;
@Field({nullable: true})
formular: number;
}
export enum EventType {
html,
markdown,
fotos,
link
}