import * as TypeGraphQL from "type-graphql" ; import * as GraphQLScalars from "graphql-scalars" ; import { Prisma } from "../../../client" ; import { DecimalJSScalar } from "../../scalars" ; import { MainUserCreatealiasesInput } from "../inputs/MainUserCreatealiasesInput" ; import { MainUserCreategradesInput } from "../inputs/MainUserCreategradesInput" ; import { PostCreateNestedManyWithoutAuthorInput } from "../inputs/PostCreateNestedManyWithoutAuthorInput" ; import { PostCreateNestedManyWithoutEditorInput } from "../inputs/PostCreateNestedManyWithoutEditorInput" ; import { Role } from "../../enums/Role" ; @ TypeGraphQL . InputType ( "MainUserCreateInput" , { isAbstract : true } ) export class MainUserCreateInput { @ TypeGraphQL . Field ( _type => String , { nullable : false } ) email ! : string ; name ? : string | undefined ; @ TypeGraphQL . Field ( _type => TypeGraphQL . Int , { nullable : false } ) age ! : number ; balance ! : number ; @ TypeGraphQL . Field ( _type => TypeGraphQL . Float , { nullable : false } ) amount ! : number ; @ TypeGraphQL . Field ( _type => Role , { nullable : false } ) role ! : "USER" | "ADMIN" ; @ TypeGraphQL . Field ( _type => MainUserCreategradesInput , { nullable : true } ) grades ? : MainUserCreategradesInput | undefined ; @ TypeGraphQL . Field ( _type => MainUserCreatealiasesInput , { nullable : true } ) aliases ? : MainUserCreatealiasesInput | undefined ; posts ? : PostCreateNestedManyWithoutAuthorInput | undefined ; @ TypeGraphQL . Field ( _type => PostCreateNestedManyWithoutEditorInput , { nullable : true } ) editorPosts ? : PostCreateNestedManyWithoutEditorInput | undefined ; @ TypeGraphQL . Field ( _type => String , { nullable : true } ) get firstName ( ) { return this . name ; } set firstName ( name ) { this . name = name ; } @ TypeGraphQL . Field ( _type => TypeGraphQL . Float , { nullable : false } ) get accountBalance ( ) { return this . balance ; } set accountBalance ( balance ) { this . balance = balance ; } @ TypeGraphQL . Field ( _type => PostCreateNestedManyWithoutAuthorInput , { nullable : true } ) get clientPosts ( ) { return this . posts ; } set clientPosts ( posts ) { this . posts = posts ; } }