Updated event.dto.ts
This commit is contained in:
11
event.dto.ts
11
event.dto.ts
@@ -1,26 +1,15 @@
|
|||||||
import { Field, ObjectType } from "@nestjs/graphql";
|
|
||||||
|
|
||||||
|
|
||||||
@ObjectType()
|
|
||||||
export class MyEvent {
|
export class MyEvent {
|
||||||
|
|
||||||
@Field()
|
|
||||||
id: number;
|
id: number;
|
||||||
@Field()
|
|
||||||
eventname: string;
|
eventname: string;
|
||||||
@Field()
|
|
||||||
datum: Date;
|
datum: Date;
|
||||||
@Field()
|
|
||||||
type: EventType;
|
type: EventType;
|
||||||
@Field()
|
|
||||||
content: string;
|
content: string;
|
||||||
@Field()
|
|
||||||
minitext: string;
|
minitext: string;
|
||||||
@Field({nullable: true})
|
|
||||||
link: string;
|
link: string;
|
||||||
@Field()
|
|
||||||
foto: string;
|
foto: string;
|
||||||
@Field({nullable: true})
|
|
||||||
formular: number;
|
formular: number;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user