Skip to content
Snippets Groups Projects
agent.model.ts 395 B
Newer Older
Pascal Kosak's avatar
Pascal Kosak committed
import {Field, ObjectType} from "@nestjs/graphql";
import {UnlockableEntry} from "./unlockable-entry.model";
import {Entry} from "./entry.model";

@ObjectType()
export class Agent {

    @Field()
    id: string;

    @Field()
    slug: string

    @Field()
    name: string

    @Field(() => [UnlockableEntry])
    unlocks: UnlockableEntry[];

    @Field(() => [Entry])
    entries: Entry[];

}