import {Field, Int, ObjectType} from '@nestjs/graphql';
import { UUID } from '../../global/scalars/UUID';

@ObjectType()
export class Organizer {
    @Field(() => UUID,{ nullable: false })
    _id: UUID

    @Field(() => String, { nullable: false })
    name: string

    @Field(() => Int, { nullable: true })
    plz?: number

    @Field(() => String, { nullable: true })
    ort?: string

    @Field(() => String, { nullable: true })
    logo?: string

    @Field(() => [UUID], { nullable: true })
    _admins?: UUID[]

    @Field(() => [UUID], { nullable: true })
    _organizers?: UUID[]

    @Field(() => [UUID], { nullable: true })
    _pending?: UUID[]
}