import { ExpiryBaseInput } from "@/models/base.model";
import { InputType, Field, ID, Float } from "@nestjs/graphql";
import { Types } from "mongoose";

@InputType()
export class UpdateBuildPartsInput extends ExpiryBaseInput {

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

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

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

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

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

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

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

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

    @Field({ nullable: true })
    humanLivability?: boolean;

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

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

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

    @Field(() => Boolean, { nullable: true })
    active?: boolean;

    @Field(() => Boolean, { nullable: true })
    isConfirmed?: boolean;

}
