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

@InputType()
export class UpdateBuildAreaInput {

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

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

    @Field({ nullable: true })
    areaName?: string;

    @Field({ nullable: true })
    areaCode?: string;

    @Field({ nullable: true })
    areaType?: string;

    @Field({ nullable: true })
    areaDirection?: string;

    @Field(() => Float, { nullable: true })
    areaGrossSize?: number;

    @Field(() => Float, { nullable: true })
    areaNetSize?: number;

    @Field(() => Float, { nullable: true })
    width?: number;

    @Field(() => Float, { nullable: true })
    size?: number;

}