import { ExpiryBaseInput } from "@/models/base.model";
import { InputType, Field } 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({ nullable: true })
    managementRoomId?: string;

}

@InputType()
export class CreateBuildInput extends ExpiryBaseInput {

    @Field()
    buildType: string;

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

}
