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

@InputType()
export class CreateBuildAreaInput {

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

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

    @Field(() => Float)
    areaName: string;

    @Field(() => Float)
    areaCode: string;

    @Field()
    areaType: string;

    @Field()
    areaDirection: string;

    @Field()
    areaGrossSize: number;

    @Field()
    areaNetSize: number;

    @Field()
    width: number;

    @Field()
    size: number;

}
