import { InputType, Field, ID } from "@nestjs/graphql";

@InputType()
export class CreateBuildInfoInput {

    @Field()
    govAddressCode: string;

    @Field()
    buildName: string;

    @Field()
    buildNo: string;

    @Field()
    maxFloor: number;

    @Field()
    undergroundFloor: number;

    @Field()
    buildDate: Date;

    @Field()
    decisionPeriodDate: Date;

    @Field()
    taxNo: string;

    @Field()
    liftCount: number;

    @Field()
    heatingSystem: boolean;

    @Field()
    coolingSystem: boolean;

    @Field()
    hotWaterSystem: boolean;

    @Field()
    blockServiceManCount: number;

    @Field()
    securityServiceManCount: number;

    @Field()
    garageCount: number;

    @Field()
    managementRoomId: number;

}

@InputType()
export class CreateBuildInput {

    @Field(() => ID)
    buildType: string;

    @Field()
    collectionToken: string;

    @Field(() => CreateBuildInfoInput)
    info: CreateBuildInfoInput;

}
