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

@InputType()
export class CreateBuildAddressInput {
    @Field()
    buildNumber: string;

    @Field()
    doorNumber: string;

    @Field()
    floorNumber: string;

    @Field()
    commentAddress: string;

    @Field()
    letterAddress: string;

    @Field()
    shortLetterAddress: string;

    @Field(() => Float)
    latitude: number;

    @Field(() => Float)
    longitude: number;

    @Field(() => ID, { nullable: true })
    street?: Types.ObjectId;
}
