
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `UserBranch` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * Model UserBranch
 * 
 */
export type UserBranchModel = runtime.Types.Result.DefaultSelection<Prisma.$UserBranchPayload>

export type AggregateUserBranch = {
  _count: UserBranchCountAggregateOutputType | null
  _min: UserBranchMinAggregateOutputType | null
  _max: UserBranchMaxAggregateOutputType | null
}

export type UserBranchMinAggregateOutputType = {
  id: string | null
  userId: string | null
  branchId: string | null
}

export type UserBranchMaxAggregateOutputType = {
  id: string | null
  userId: string | null
  branchId: string | null
}

export type UserBranchCountAggregateOutputType = {
  id: number
  userId: number
  branchId: number
  _all: number
}


export type UserBranchMinAggregateInputType = {
  id?: true
  userId?: true
  branchId?: true
}

export type UserBranchMaxAggregateInputType = {
  id?: true
  userId?: true
  branchId?: true
}

export type UserBranchCountAggregateInputType = {
  id?: true
  userId?: true
  branchId?: true
  _all?: true
}

export type UserBranchAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which UserBranch to aggregate.
   */
  where?: Prisma.UserBranchWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of UserBranches to fetch.
   */
  orderBy?: Prisma.UserBranchOrderByWithRelationInput | Prisma.UserBranchOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.UserBranchWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` UserBranches from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` UserBranches.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned UserBranches
  **/
  _count?: true | UserBranchCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: UserBranchMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: UserBranchMaxAggregateInputType
}

export type GetUserBranchAggregateType<T extends UserBranchAggregateArgs> = {
      [P in keyof T & keyof AggregateUserBranch]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateUserBranch[P]>
    : Prisma.GetScalarType<T[P], AggregateUserBranch[P]>
}




export type UserBranchGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.UserBranchWhereInput
  orderBy?: Prisma.UserBranchOrderByWithAggregationInput | Prisma.UserBranchOrderByWithAggregationInput[]
  by: Prisma.UserBranchScalarFieldEnum[] | Prisma.UserBranchScalarFieldEnum
  having?: Prisma.UserBranchScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: UserBranchCountAggregateInputType | true
  _min?: UserBranchMinAggregateInputType
  _max?: UserBranchMaxAggregateInputType
}

export type UserBranchGroupByOutputType = {
  id: string
  userId: string
  branchId: string
  _count: UserBranchCountAggregateOutputType | null
  _min: UserBranchMinAggregateOutputType | null
  _max: UserBranchMaxAggregateOutputType | null
}

type GetUserBranchGroupByPayload<T extends UserBranchGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<UserBranchGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof UserBranchGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], UserBranchGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], UserBranchGroupByOutputType[P]>
      }
    >
  >



export type UserBranchWhereInput = {
  AND?: Prisma.UserBranchWhereInput | Prisma.UserBranchWhereInput[]
  OR?: Prisma.UserBranchWhereInput[]
  NOT?: Prisma.UserBranchWhereInput | Prisma.UserBranchWhereInput[]
  id?: Prisma.StringFilter<"UserBranch"> | string
  userId?: Prisma.StringFilter<"UserBranch"> | string
  branchId?: Prisma.StringFilter<"UserBranch"> | string
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
  branch?: Prisma.XOR<Prisma.BranchScalarRelationFilter, Prisma.BranchWhereInput>
}

export type UserBranchOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  branchId?: Prisma.SortOrder
  user?: Prisma.UserOrderByWithRelationInput
  branch?: Prisma.BranchOrderByWithRelationInput
}

export type UserBranchWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  userId_branchId?: Prisma.UserBranchUserIdBranchIdCompoundUniqueInput
  AND?: Prisma.UserBranchWhereInput | Prisma.UserBranchWhereInput[]
  OR?: Prisma.UserBranchWhereInput[]
  NOT?: Prisma.UserBranchWhereInput | Prisma.UserBranchWhereInput[]
  userId?: Prisma.StringFilter<"UserBranch"> | string
  branchId?: Prisma.StringFilter<"UserBranch"> | string
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
  branch?: Prisma.XOR<Prisma.BranchScalarRelationFilter, Prisma.BranchWhereInput>
}, "id" | "userId_branchId">

export type UserBranchOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  branchId?: Prisma.SortOrder
  _count?: Prisma.UserBranchCountOrderByAggregateInput
  _max?: Prisma.UserBranchMaxOrderByAggregateInput
  _min?: Prisma.UserBranchMinOrderByAggregateInput
}

export type UserBranchScalarWhereWithAggregatesInput = {
  AND?: Prisma.UserBranchScalarWhereWithAggregatesInput | Prisma.UserBranchScalarWhereWithAggregatesInput[]
  OR?: Prisma.UserBranchScalarWhereWithAggregatesInput[]
  NOT?: Prisma.UserBranchScalarWhereWithAggregatesInput | Prisma.UserBranchScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"UserBranch"> | string
  userId?: Prisma.StringWithAggregatesFilter<"UserBranch"> | string
  branchId?: Prisma.StringWithAggregatesFilter<"UserBranch"> | string
}

export type UserBranchCreateInput = {
  id?: string
  user: Prisma.UserCreateNestedOneWithoutBranchesInput
  branch: Prisma.BranchCreateNestedOneWithoutUsersInput
}

export type UserBranchUncheckedCreateInput = {
  id?: string
  userId: string
  branchId: string
}

export type UserBranchUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  user?: Prisma.UserUpdateOneRequiredWithoutBranchesNestedInput
  branch?: Prisma.BranchUpdateOneRequiredWithoutUsersNestedInput
}

export type UserBranchUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  branchId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type UserBranchCreateManyInput = {
  id?: string
  userId: string
  branchId: string
}

export type UserBranchUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
}

export type UserBranchUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  branchId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type UserBranchListRelationFilter = {
  every?: Prisma.UserBranchWhereInput
  some?: Prisma.UserBranchWhereInput
  none?: Prisma.UserBranchWhereInput
}

export type UserBranchOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type UserBranchUserIdBranchIdCompoundUniqueInput = {
  userId: string
  branchId: string
}

export type UserBranchCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  branchId?: Prisma.SortOrder
}

export type UserBranchMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  branchId?: Prisma.SortOrder
}

export type UserBranchMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  branchId?: Prisma.SortOrder
}

export type UserBranchCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.UserBranchCreateWithoutUserInput, Prisma.UserBranchUncheckedCreateWithoutUserInput> | Prisma.UserBranchCreateWithoutUserInput[] | Prisma.UserBranchUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.UserBranchCreateOrConnectWithoutUserInput | Prisma.UserBranchCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.UserBranchCreateManyUserInputEnvelope
  connect?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
}

export type UserBranchUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.UserBranchCreateWithoutUserInput, Prisma.UserBranchUncheckedCreateWithoutUserInput> | Prisma.UserBranchCreateWithoutUserInput[] | Prisma.UserBranchUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.UserBranchCreateOrConnectWithoutUserInput | Prisma.UserBranchCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.UserBranchCreateManyUserInputEnvelope
  connect?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
}

export type UserBranchUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.UserBranchCreateWithoutUserInput, Prisma.UserBranchUncheckedCreateWithoutUserInput> | Prisma.UserBranchCreateWithoutUserInput[] | Prisma.UserBranchUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.UserBranchCreateOrConnectWithoutUserInput | Prisma.UserBranchCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.UserBranchUpsertWithWhereUniqueWithoutUserInput | Prisma.UserBranchUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.UserBranchCreateManyUserInputEnvelope
  set?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  disconnect?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  delete?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  connect?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  update?: Prisma.UserBranchUpdateWithWhereUniqueWithoutUserInput | Prisma.UserBranchUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.UserBranchUpdateManyWithWhereWithoutUserInput | Prisma.UserBranchUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.UserBranchScalarWhereInput | Prisma.UserBranchScalarWhereInput[]
}

export type UserBranchUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.UserBranchCreateWithoutUserInput, Prisma.UserBranchUncheckedCreateWithoutUserInput> | Prisma.UserBranchCreateWithoutUserInput[] | Prisma.UserBranchUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.UserBranchCreateOrConnectWithoutUserInput | Prisma.UserBranchCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.UserBranchUpsertWithWhereUniqueWithoutUserInput | Prisma.UserBranchUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.UserBranchCreateManyUserInputEnvelope
  set?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  disconnect?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  delete?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  connect?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  update?: Prisma.UserBranchUpdateWithWhereUniqueWithoutUserInput | Prisma.UserBranchUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.UserBranchUpdateManyWithWhereWithoutUserInput | Prisma.UserBranchUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.UserBranchScalarWhereInput | Prisma.UserBranchScalarWhereInput[]
}

export type UserBranchCreateNestedManyWithoutBranchInput = {
  create?: Prisma.XOR<Prisma.UserBranchCreateWithoutBranchInput, Prisma.UserBranchUncheckedCreateWithoutBranchInput> | Prisma.UserBranchCreateWithoutBranchInput[] | Prisma.UserBranchUncheckedCreateWithoutBranchInput[]
  connectOrCreate?: Prisma.UserBranchCreateOrConnectWithoutBranchInput | Prisma.UserBranchCreateOrConnectWithoutBranchInput[]
  createMany?: Prisma.UserBranchCreateManyBranchInputEnvelope
  connect?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
}

export type UserBranchUncheckedCreateNestedManyWithoutBranchInput = {
  create?: Prisma.XOR<Prisma.UserBranchCreateWithoutBranchInput, Prisma.UserBranchUncheckedCreateWithoutBranchInput> | Prisma.UserBranchCreateWithoutBranchInput[] | Prisma.UserBranchUncheckedCreateWithoutBranchInput[]
  connectOrCreate?: Prisma.UserBranchCreateOrConnectWithoutBranchInput | Prisma.UserBranchCreateOrConnectWithoutBranchInput[]
  createMany?: Prisma.UserBranchCreateManyBranchInputEnvelope
  connect?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
}

export type UserBranchUpdateManyWithoutBranchNestedInput = {
  create?: Prisma.XOR<Prisma.UserBranchCreateWithoutBranchInput, Prisma.UserBranchUncheckedCreateWithoutBranchInput> | Prisma.UserBranchCreateWithoutBranchInput[] | Prisma.UserBranchUncheckedCreateWithoutBranchInput[]
  connectOrCreate?: Prisma.UserBranchCreateOrConnectWithoutBranchInput | Prisma.UserBranchCreateOrConnectWithoutBranchInput[]
  upsert?: Prisma.UserBranchUpsertWithWhereUniqueWithoutBranchInput | Prisma.UserBranchUpsertWithWhereUniqueWithoutBranchInput[]
  createMany?: Prisma.UserBranchCreateManyBranchInputEnvelope
  set?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  disconnect?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  delete?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  connect?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  update?: Prisma.UserBranchUpdateWithWhereUniqueWithoutBranchInput | Prisma.UserBranchUpdateWithWhereUniqueWithoutBranchInput[]
  updateMany?: Prisma.UserBranchUpdateManyWithWhereWithoutBranchInput | Prisma.UserBranchUpdateManyWithWhereWithoutBranchInput[]
  deleteMany?: Prisma.UserBranchScalarWhereInput | Prisma.UserBranchScalarWhereInput[]
}

export type UserBranchUncheckedUpdateManyWithoutBranchNestedInput = {
  create?: Prisma.XOR<Prisma.UserBranchCreateWithoutBranchInput, Prisma.UserBranchUncheckedCreateWithoutBranchInput> | Prisma.UserBranchCreateWithoutBranchInput[] | Prisma.UserBranchUncheckedCreateWithoutBranchInput[]
  connectOrCreate?: Prisma.UserBranchCreateOrConnectWithoutBranchInput | Prisma.UserBranchCreateOrConnectWithoutBranchInput[]
  upsert?: Prisma.UserBranchUpsertWithWhereUniqueWithoutBranchInput | Prisma.UserBranchUpsertWithWhereUniqueWithoutBranchInput[]
  createMany?: Prisma.UserBranchCreateManyBranchInputEnvelope
  set?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  disconnect?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  delete?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  connect?: Prisma.UserBranchWhereUniqueInput | Prisma.UserBranchWhereUniqueInput[]
  update?: Prisma.UserBranchUpdateWithWhereUniqueWithoutBranchInput | Prisma.UserBranchUpdateWithWhereUniqueWithoutBranchInput[]
  updateMany?: Prisma.UserBranchUpdateManyWithWhereWithoutBranchInput | Prisma.UserBranchUpdateManyWithWhereWithoutBranchInput[]
  deleteMany?: Prisma.UserBranchScalarWhereInput | Prisma.UserBranchScalarWhereInput[]
}

export type UserBranchCreateWithoutUserInput = {
  id?: string
  branch: Prisma.BranchCreateNestedOneWithoutUsersInput
}

export type UserBranchUncheckedCreateWithoutUserInput = {
  id?: string
  branchId: string
}

export type UserBranchCreateOrConnectWithoutUserInput = {
  where: Prisma.UserBranchWhereUniqueInput
  create: Prisma.XOR<Prisma.UserBranchCreateWithoutUserInput, Prisma.UserBranchUncheckedCreateWithoutUserInput>
}

export type UserBranchCreateManyUserInputEnvelope = {
  data: Prisma.UserBranchCreateManyUserInput | Prisma.UserBranchCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type UserBranchUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.UserBranchWhereUniqueInput
  update: Prisma.XOR<Prisma.UserBranchUpdateWithoutUserInput, Prisma.UserBranchUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.UserBranchCreateWithoutUserInput, Prisma.UserBranchUncheckedCreateWithoutUserInput>
}

export type UserBranchUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.UserBranchWhereUniqueInput
  data: Prisma.XOR<Prisma.UserBranchUpdateWithoutUserInput, Prisma.UserBranchUncheckedUpdateWithoutUserInput>
}

export type UserBranchUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.UserBranchScalarWhereInput
  data: Prisma.XOR<Prisma.UserBranchUpdateManyMutationInput, Prisma.UserBranchUncheckedUpdateManyWithoutUserInput>
}

export type UserBranchScalarWhereInput = {
  AND?: Prisma.UserBranchScalarWhereInput | Prisma.UserBranchScalarWhereInput[]
  OR?: Prisma.UserBranchScalarWhereInput[]
  NOT?: Prisma.UserBranchScalarWhereInput | Prisma.UserBranchScalarWhereInput[]
  id?: Prisma.StringFilter<"UserBranch"> | string
  userId?: Prisma.StringFilter<"UserBranch"> | string
  branchId?: Prisma.StringFilter<"UserBranch"> | string
}

export type UserBranchCreateWithoutBranchInput = {
  id?: string
  user: Prisma.UserCreateNestedOneWithoutBranchesInput
}

export type UserBranchUncheckedCreateWithoutBranchInput = {
  id?: string
  userId: string
}

export type UserBranchCreateOrConnectWithoutBranchInput = {
  where: Prisma.UserBranchWhereUniqueInput
  create: Prisma.XOR<Prisma.UserBranchCreateWithoutBranchInput, Prisma.UserBranchUncheckedCreateWithoutBranchInput>
}

export type UserBranchCreateManyBranchInputEnvelope = {
  data: Prisma.UserBranchCreateManyBranchInput | Prisma.UserBranchCreateManyBranchInput[]
  skipDuplicates?: boolean
}

export type UserBranchUpsertWithWhereUniqueWithoutBranchInput = {
  where: Prisma.UserBranchWhereUniqueInput
  update: Prisma.XOR<Prisma.UserBranchUpdateWithoutBranchInput, Prisma.UserBranchUncheckedUpdateWithoutBranchInput>
  create: Prisma.XOR<Prisma.UserBranchCreateWithoutBranchInput, Prisma.UserBranchUncheckedCreateWithoutBranchInput>
}

export type UserBranchUpdateWithWhereUniqueWithoutBranchInput = {
  where: Prisma.UserBranchWhereUniqueInput
  data: Prisma.XOR<Prisma.UserBranchUpdateWithoutBranchInput, Prisma.UserBranchUncheckedUpdateWithoutBranchInput>
}

export type UserBranchUpdateManyWithWhereWithoutBranchInput = {
  where: Prisma.UserBranchScalarWhereInput
  data: Prisma.XOR<Prisma.UserBranchUpdateManyMutationInput, Prisma.UserBranchUncheckedUpdateManyWithoutBranchInput>
}

export type UserBranchCreateManyUserInput = {
  id?: string
  branchId: string
}

export type UserBranchUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  branch?: Prisma.BranchUpdateOneRequiredWithoutUsersNestedInput
}

export type UserBranchUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  branchId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type UserBranchUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  branchId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type UserBranchCreateManyBranchInput = {
  id?: string
  userId: string
}

export type UserBranchUpdateWithoutBranchInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  user?: Prisma.UserUpdateOneRequiredWithoutBranchesNestedInput
}

export type UserBranchUncheckedUpdateWithoutBranchInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type UserBranchUncheckedUpdateManyWithoutBranchInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
}



export type UserBranchSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  branchId?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  branch?: boolean | Prisma.BranchDefaultArgs<ExtArgs>
}, ExtArgs["result"]["userBranch"]>

export type UserBranchSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  branchId?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  branch?: boolean | Prisma.BranchDefaultArgs<ExtArgs>
}, ExtArgs["result"]["userBranch"]>

export type UserBranchSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  branchId?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  branch?: boolean | Prisma.BranchDefaultArgs<ExtArgs>
}, ExtArgs["result"]["userBranch"]>

export type UserBranchSelectScalar = {
  id?: boolean
  userId?: boolean
  branchId?: boolean
}

export type UserBranchOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "branchId", ExtArgs["result"]["userBranch"]>
export type UserBranchInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  branch?: boolean | Prisma.BranchDefaultArgs<ExtArgs>
}
export type UserBranchIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  branch?: boolean | Prisma.BranchDefaultArgs<ExtArgs>
}
export type UserBranchIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  branch?: boolean | Prisma.BranchDefaultArgs<ExtArgs>
}

export type $UserBranchPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "UserBranch"
  objects: {
    user: Prisma.$UserPayload<ExtArgs>
    branch: Prisma.$BranchPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    userId: string
    branchId: string
  }, ExtArgs["result"]["userBranch"]>
  composites: {}
}

export type UserBranchGetPayload<S extends boolean | null | undefined | UserBranchDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserBranchPayload, S>

export type UserBranchCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<UserBranchFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: UserBranchCountAggregateInputType | true
  }

export interface UserBranchDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserBranch'], meta: { name: 'UserBranch' } }
  /**
   * Find zero or one UserBranch that matches the filter.
   * @param {UserBranchFindUniqueArgs} args - Arguments to find a UserBranch
   * @example
   * // Get one UserBranch
   * const userBranch = await prisma.userBranch.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends UserBranchFindUniqueArgs>(args: Prisma.SelectSubset<T, UserBranchFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserBranchClient<runtime.Types.Result.GetResult<Prisma.$UserBranchPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one UserBranch that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {UserBranchFindUniqueOrThrowArgs} args - Arguments to find a UserBranch
   * @example
   * // Get one UserBranch
   * const userBranch = await prisma.userBranch.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends UserBranchFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserBranchFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserBranchClient<runtime.Types.Result.GetResult<Prisma.$UserBranchPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first UserBranch that matches the filter.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserBranchFindFirstArgs} args - Arguments to find a UserBranch
   * @example
   * // Get one UserBranch
   * const userBranch = await prisma.userBranch.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends UserBranchFindFirstArgs>(args?: Prisma.SelectSubset<T, UserBranchFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserBranchClient<runtime.Types.Result.GetResult<Prisma.$UserBranchPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first UserBranch that matches the filter or
   * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserBranchFindFirstOrThrowArgs} args - Arguments to find a UserBranch
   * @example
   * // Get one UserBranch
   * const userBranch = await prisma.userBranch.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends UserBranchFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserBranchFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserBranchClient<runtime.Types.Result.GetResult<Prisma.$UserBranchPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more UserBranches that matches the filter.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserBranchFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all UserBranches
   * const userBranches = await prisma.userBranch.findMany()
   * 
   * // Get first 10 UserBranches
   * const userBranches = await prisma.userBranch.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const userBranchWithIdOnly = await prisma.userBranch.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends UserBranchFindManyArgs>(args?: Prisma.SelectSubset<T, UserBranchFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserBranchPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a UserBranch.
   * @param {UserBranchCreateArgs} args - Arguments to create a UserBranch.
   * @example
   * // Create one UserBranch
   * const UserBranch = await prisma.userBranch.create({
   *   data: {
   *     // ... data to create a UserBranch
   *   }
   * })
   * 
   */
  create<T extends UserBranchCreateArgs>(args: Prisma.SelectSubset<T, UserBranchCreateArgs<ExtArgs>>): Prisma.Prisma__UserBranchClient<runtime.Types.Result.GetResult<Prisma.$UserBranchPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many UserBranches.
   * @param {UserBranchCreateManyArgs} args - Arguments to create many UserBranches.
   * @example
   * // Create many UserBranches
   * const userBranch = await prisma.userBranch.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends UserBranchCreateManyArgs>(args?: Prisma.SelectSubset<T, UserBranchCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many UserBranches and returns the data saved in the database.
   * @param {UserBranchCreateManyAndReturnArgs} args - Arguments to create many UserBranches.
   * @example
   * // Create many UserBranches
   * const userBranch = await prisma.userBranch.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many UserBranches and only return the `id`
   * const userBranchWithIdOnly = await prisma.userBranch.createManyAndReturn({
   *   select: { id: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends UserBranchCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserBranchCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserBranchPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a UserBranch.
   * @param {UserBranchDeleteArgs} args - Arguments to delete one UserBranch.
   * @example
   * // Delete one UserBranch
   * const UserBranch = await prisma.userBranch.delete({
   *   where: {
   *     // ... filter to delete one UserBranch
   *   }
   * })
   * 
   */
  delete<T extends UserBranchDeleteArgs>(args: Prisma.SelectSubset<T, UserBranchDeleteArgs<ExtArgs>>): Prisma.Prisma__UserBranchClient<runtime.Types.Result.GetResult<Prisma.$UserBranchPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one UserBranch.
   * @param {UserBranchUpdateArgs} args - Arguments to update one UserBranch.
   * @example
   * // Update one UserBranch
   * const userBranch = await prisma.userBranch.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends UserBranchUpdateArgs>(args: Prisma.SelectSubset<T, UserBranchUpdateArgs<ExtArgs>>): Prisma.Prisma__UserBranchClient<runtime.Types.Result.GetResult<Prisma.$UserBranchPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more UserBranches.
   * @param {UserBranchDeleteManyArgs} args - Arguments to filter UserBranches to delete.
   * @example
   * // Delete a few UserBranches
   * const { count } = await prisma.userBranch.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends UserBranchDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserBranchDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more UserBranches.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserBranchUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many UserBranches
   * const userBranch = await prisma.userBranch.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends UserBranchUpdateManyArgs>(args: Prisma.SelectSubset<T, UserBranchUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more UserBranches and returns the data updated in the database.
   * @param {UserBranchUpdateManyAndReturnArgs} args - Arguments to update many UserBranches.
   * @example
   * // Update many UserBranches
   * const userBranch = await prisma.userBranch.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more UserBranches and only return the `id`
   * const userBranchWithIdOnly = await prisma.userBranch.updateManyAndReturn({
   *   select: { id: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends UserBranchUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserBranchUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserBranchPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one UserBranch.
   * @param {UserBranchUpsertArgs} args - Arguments to update or create a UserBranch.
   * @example
   * // Update or create a UserBranch
   * const userBranch = await prisma.userBranch.upsert({
   *   create: {
   *     // ... data to create a UserBranch
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the UserBranch we want to update
   *   }
   * })
   */
  upsert<T extends UserBranchUpsertArgs>(args: Prisma.SelectSubset<T, UserBranchUpsertArgs<ExtArgs>>): Prisma.Prisma__UserBranchClient<runtime.Types.Result.GetResult<Prisma.$UserBranchPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of UserBranches.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserBranchCountArgs} args - Arguments to filter UserBranches to count.
   * @example
   * // Count the number of UserBranches
   * const count = await prisma.userBranch.count({
   *   where: {
   *     // ... the filter for the UserBranches we want to count
   *   }
   * })
  **/
  count<T extends UserBranchCountArgs>(
    args?: Prisma.Subset<T, UserBranchCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], UserBranchCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a UserBranch.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserBranchAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
   * @example
   * // Ordered by age ascending
   * // Where email contains prisma.io
   * // Limited to the 10 users
   * const aggregations = await prisma.user.aggregate({
   *   _avg: {
   *     age: true,
   *   },
   *   where: {
   *     email: {
   *       contains: "prisma.io",
   *     },
   *   },
   *   orderBy: {
   *     age: "asc",
   *   },
   *   take: 10,
   * })
  **/
  aggregate<T extends UserBranchAggregateArgs>(args: Prisma.Subset<T, UserBranchAggregateArgs>): Prisma.PrismaPromise<GetUserBranchAggregateType<T>>

  /**
   * Group by UserBranch.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserBranchGroupByArgs} args - Group by arguments.
   * @example
   * // Group by city, order by createdAt, get count
   * const result = await prisma.user.groupBy({
   *   by: ['city', 'createdAt'],
   *   orderBy: {
   *     createdAt: true
   *   },
   *   _count: {
   *     _all: true
   *   },
   * })
   * 
  **/
  groupBy<
    T extends UserBranchGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: UserBranchGroupByArgs['orderBy'] }
      : { orderBy?: UserBranchGroupByArgs['orderBy'] },
    OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
    ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
    ByValid extends Prisma.Has<ByFields, OrderFields>,
    HavingFields extends Prisma.GetHavingFields<T['having']>,
    HavingValid extends Prisma.Has<ByFields, HavingFields>,
    ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
    InputErrors extends ByEmpty extends Prisma.True
    ? `Error: "by" must not be empty.`
    : HavingValid extends Prisma.False
    ? {
        [P in HavingFields]: P extends ByFields
          ? never
          : P extends string
          ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
          : [
              Error,
              'Field ',
              P,
              ` in "having" needs to be provided in "by"`,
            ]
      }[HavingFields]
    : 'take' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "take", you also need to provide "orderBy"'
    : 'skip' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "skip", you also need to provide "orderBy"'
    : ByValid extends Prisma.True
    ? {}
    : {
        [P in OrderFields]: P extends ByFields
          ? never
          : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
      }[OrderFields]
  >(args: Prisma.SubsetIntersection<T, UserBranchGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserBranchGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the UserBranch model
 */
readonly fields: UserBranchFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for UserBranch.
 * Why is this prefixed with `Prisma__`?
 * Because we want to prevent naming conflicts as mentioned in
 * https://github.com/prisma/prisma-client-js/issues/707
 */
export interface Prisma__UserBranchClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  branch<T extends Prisma.BranchDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BranchDefaultArgs<ExtArgs>>): Prisma.Prisma__BranchClient<runtime.Types.Result.GetResult<Prisma.$BranchPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  /**
   * Attaches callbacks for the resolution and/or rejection of the Promise.
   * @param onfulfilled The callback to execute when the Promise is resolved.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of which ever callback is executed.
   */
  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * Attaches a callback for only the rejection of the Promise.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of the callback.
   */
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
   * resolved value cannot be modified from the callback.
   * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
   * @returns A Promise for the completion of the callback.
   */
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}




/**
 * Fields of the UserBranch model
 */
export interface UserBranchFieldRefs {
  readonly id: Prisma.FieldRef<"UserBranch", 'String'>
  readonly userId: Prisma.FieldRef<"UserBranch", 'String'>
  readonly branchId: Prisma.FieldRef<"UserBranch", 'String'>
}
    

// Custom InputTypes
/**
 * UserBranch findUnique
 */
export type UserBranchFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserBranch
   */
  select?: Prisma.UserBranchSelect<ExtArgs> | null
  /**
   * Omit specific fields from the UserBranch
   */
  omit?: Prisma.UserBranchOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserBranchInclude<ExtArgs> | null
  /**
   * Filter, which UserBranch to fetch.
   */
  where: Prisma.UserBranchWhereUniqueInput
}

/**
 * UserBranch findUniqueOrThrow
 */
export type UserBranchFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserBranch
   */
  select?: Prisma.UserBranchSelect<ExtArgs> | null
  /**
   * Omit specific fields from the UserBranch
   */
  omit?: Prisma.UserBranchOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserBranchInclude<ExtArgs> | null
  /**
   * Filter, which UserBranch to fetch.
   */
  where: Prisma.UserBranchWhereUniqueInput
}

/**
 * UserBranch findFirst
 */
export type UserBranchFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserBranch
   */
  select?: Prisma.UserBranchSelect<ExtArgs> | null
  /**
   * Omit specific fields from the UserBranch
   */
  omit?: Prisma.UserBranchOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserBranchInclude<ExtArgs> | null
  /**
   * Filter, which UserBranch to fetch.
   */
  where?: Prisma.UserBranchWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of UserBranches to fetch.
   */
  orderBy?: Prisma.UserBranchOrderByWithRelationInput | Prisma.UserBranchOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for UserBranches.
   */
  cursor?: Prisma.UserBranchWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` UserBranches from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` UserBranches.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of UserBranches.
   */
  distinct?: Prisma.UserBranchScalarFieldEnum | Prisma.UserBranchScalarFieldEnum[]
}

/**
 * UserBranch findFirstOrThrow
 */
export type UserBranchFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserBranch
   */
  select?: Prisma.UserBranchSelect<ExtArgs> | null
  /**
   * Omit specific fields from the UserBranch
   */
  omit?: Prisma.UserBranchOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserBranchInclude<ExtArgs> | null
  /**
   * Filter, which UserBranch to fetch.
   */
  where?: Prisma.UserBranchWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of UserBranches to fetch.
   */
  orderBy?: Prisma.UserBranchOrderByWithRelationInput | Prisma.UserBranchOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for UserBranches.
   */
  cursor?: Prisma.UserBranchWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` UserBranches from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` UserBranches.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of UserBranches.
   */
  distinct?: Prisma.UserBranchScalarFieldEnum | Prisma.UserBranchScalarFieldEnum[]
}

/**
 * UserBranch findMany
 */
export type UserBranchFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserBranch
   */
  select?: Prisma.UserBranchSelect<ExtArgs> | null
  /**
   * Omit specific fields from the UserBranch
   */
  omit?: Prisma.UserBranchOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserBranchInclude<ExtArgs> | null
  /**
   * Filter, which UserBranches to fetch.
   */
  where?: Prisma.UserBranchWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of UserBranches to fetch.
   */
  orderBy?: Prisma.UserBranchOrderByWithRelationInput | Prisma.UserBranchOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing UserBranches.
   */
  cursor?: Prisma.UserBranchWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` UserBranches from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` UserBranches.
   */
  skip?: number
  distinct?: Prisma.UserBranchScalarFieldEnum | Prisma.UserBranchScalarFieldEnum[]
}

/**
 * UserBranch create
 */
export type UserBranchCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserBranch
   */
  select?: Prisma.UserBranchSelect<ExtArgs> | null
  /**
   * Omit specific fields from the UserBranch
   */
  omit?: Prisma.UserBranchOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserBranchInclude<ExtArgs> | null
  /**
   * The data needed to create a UserBranch.
   */
  data: Prisma.XOR<Prisma.UserBranchCreateInput, Prisma.UserBranchUncheckedCreateInput>
}

/**
 * UserBranch createMany
 */
export type UserBranchCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many UserBranches.
   */
  data: Prisma.UserBranchCreateManyInput | Prisma.UserBranchCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * UserBranch createManyAndReturn
 */
export type UserBranchCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserBranch
   */
  select?: Prisma.UserBranchSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the UserBranch
   */
  omit?: Prisma.UserBranchOmit<ExtArgs> | null
  /**
   * The data used to create many UserBranches.
   */
  data: Prisma.UserBranchCreateManyInput | Prisma.UserBranchCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserBranchIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * UserBranch update
 */
export type UserBranchUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserBranch
   */
  select?: Prisma.UserBranchSelect<ExtArgs> | null
  /**
   * Omit specific fields from the UserBranch
   */
  omit?: Prisma.UserBranchOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserBranchInclude<ExtArgs> | null
  /**
   * The data needed to update a UserBranch.
   */
  data: Prisma.XOR<Prisma.UserBranchUpdateInput, Prisma.UserBranchUncheckedUpdateInput>
  /**
   * Choose, which UserBranch to update.
   */
  where: Prisma.UserBranchWhereUniqueInput
}

/**
 * UserBranch updateMany
 */
export type UserBranchUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update UserBranches.
   */
  data: Prisma.XOR<Prisma.UserBranchUpdateManyMutationInput, Prisma.UserBranchUncheckedUpdateManyInput>
  /**
   * Filter which UserBranches to update
   */
  where?: Prisma.UserBranchWhereInput
  /**
   * Limit how many UserBranches to update.
   */
  limit?: number
}

/**
 * UserBranch updateManyAndReturn
 */
export type UserBranchUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserBranch
   */
  select?: Prisma.UserBranchSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the UserBranch
   */
  omit?: Prisma.UserBranchOmit<ExtArgs> | null
  /**
   * The data used to update UserBranches.
   */
  data: Prisma.XOR<Prisma.UserBranchUpdateManyMutationInput, Prisma.UserBranchUncheckedUpdateManyInput>
  /**
   * Filter which UserBranches to update
   */
  where?: Prisma.UserBranchWhereInput
  /**
   * Limit how many UserBranches to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserBranchIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * UserBranch upsert
 */
export type UserBranchUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserBranch
   */
  select?: Prisma.UserBranchSelect<ExtArgs> | null
  /**
   * Omit specific fields from the UserBranch
   */
  omit?: Prisma.UserBranchOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserBranchInclude<ExtArgs> | null
  /**
   * The filter to search for the UserBranch to update in case it exists.
   */
  where: Prisma.UserBranchWhereUniqueInput
  /**
   * In case the UserBranch found by the `where` argument doesn't exist, create a new UserBranch with this data.
   */
  create: Prisma.XOR<Prisma.UserBranchCreateInput, Prisma.UserBranchUncheckedCreateInput>
  /**
   * In case the UserBranch was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.UserBranchUpdateInput, Prisma.UserBranchUncheckedUpdateInput>
}

/**
 * UserBranch delete
 */
export type UserBranchDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserBranch
   */
  select?: Prisma.UserBranchSelect<ExtArgs> | null
  /**
   * Omit specific fields from the UserBranch
   */
  omit?: Prisma.UserBranchOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserBranchInclude<ExtArgs> | null
  /**
   * Filter which UserBranch to delete.
   */
  where: Prisma.UserBranchWhereUniqueInput
}

/**
 * UserBranch deleteMany
 */
export type UserBranchDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which UserBranches to delete
   */
  where?: Prisma.UserBranchWhereInput
  /**
   * Limit how many UserBranches to delete.
   */
  limit?: number
}

/**
 * UserBranch without action
 */
export type UserBranchDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserBranch
   */
  select?: Prisma.UserBranchSelect<ExtArgs> | null
  /**
   * Omit specific fields from the UserBranch
   */
  omit?: Prisma.UserBranchOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserBranchInclude<ExtArgs> | null
}
