Added event.dto.ts
This commit is contained in:
33
event.dto.ts
Normal file
33
event.dto.ts
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user