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

@InputType()
export class CreateBuildPartsInput {

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

    @Field({ nullable: false })
    addressGovCode: string;

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

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

    @Field({ nullable: false })
    code: string;

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

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

    @Field({ nullable: false })
    defaultAccessory: string;

    @Field({ nullable: false })
    humanLivability: boolean;

    @Field({ nullable: false })
    key: string;

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

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

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

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

    @Field(() => String, { nullable: true })
    expiryStarts: string;

    @Field(() => String, { nullable: true })
    expiryEnds: string;

}
