
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `userModuleAccess` 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 userModuleAccess
 * 
 */
export type userModuleAccessModel = runtime.Types.Result.DefaultSelection<Prisma.$userModuleAccessPayload>

export type AggregateUserModuleAccess = {
  _count: UserModuleAccessCountAggregateOutputType | null
  _avg: UserModuleAccessAvgAggregateOutputType | null
  _sum: UserModuleAccessSumAggregateOutputType | null
  _min: UserModuleAccessMinAggregateOutputType | null
  _max: UserModuleAccessMaxAggregateOutputType | null
}

export type UserModuleAccessAvgAggregateOutputType = {
  id: number | null
}

export type UserModuleAccessSumAggregateOutputType = {
  id: number | null
}

export type UserModuleAccessMinAggregateOutputType = {
  id: number | null
  user_id: string | null
  timesheets: boolean | null
  timesheets_approval: boolean | null
  employee_list: boolean | null
  employee_management: boolean | null
  personal_profile: boolean | null
  dashboard: boolean | null
  chatbot: boolean | null
}

export type UserModuleAccessMaxAggregateOutputType = {
  id: number | null
  user_id: string | null
  timesheets: boolean | null
  timesheets_approval: boolean | null
  employee_list: boolean | null
  employee_management: boolean | null
  personal_profile: boolean | null
  dashboard: boolean | null
  chatbot: boolean | null
}

export type UserModuleAccessCountAggregateOutputType = {
  id: number
  user_id: number
  timesheets: number
  timesheets_approval: number
  employee_list: number
  employee_management: number
  personal_profile: number
  dashboard: number
  chatbot: number
  _all: number
}


export type UserModuleAccessAvgAggregateInputType = {
  id?: true
}

export type UserModuleAccessSumAggregateInputType = {
  id?: true
}

export type UserModuleAccessMinAggregateInputType = {
  id?: true
  user_id?: true
  timesheets?: true
  timesheets_approval?: true
  employee_list?: true
  employee_management?: true
  personal_profile?: true
  dashboard?: true
  chatbot?: true
}

export type UserModuleAccessMaxAggregateInputType = {
  id?: true
  user_id?: true
  timesheets?: true
  timesheets_approval?: true
  employee_list?: true
  employee_management?: true
  personal_profile?: true
  dashboard?: true
  chatbot?: true
}

export type UserModuleAccessCountAggregateInputType = {
  id?: true
  user_id?: true
  timesheets?: true
  timesheets_approval?: true
  employee_list?: true
  employee_management?: true
  personal_profile?: true
  dashboard?: true
  chatbot?: true
  _all?: true
}

export type UserModuleAccessAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which userModuleAccess to aggregate.
   */
  where?: Prisma.userModuleAccessWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of userModuleAccesses to fetch.
   */
  orderBy?: Prisma.userModuleAccessOrderByWithRelationInput | Prisma.userModuleAccessOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.userModuleAccessWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` userModuleAccesses 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` userModuleAccesses.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned userModuleAccesses
  **/
  _count?: true | UserModuleAccessCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: UserModuleAccessAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: UserModuleAccessSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: UserModuleAccessMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: UserModuleAccessMaxAggregateInputType
}

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




export type userModuleAccessGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.userModuleAccessWhereInput
  orderBy?: Prisma.userModuleAccessOrderByWithAggregationInput | Prisma.userModuleAccessOrderByWithAggregationInput[]
  by: Prisma.UserModuleAccessScalarFieldEnum[] | Prisma.UserModuleAccessScalarFieldEnum
  having?: Prisma.userModuleAccessScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: UserModuleAccessCountAggregateInputType | true
  _avg?: UserModuleAccessAvgAggregateInputType
  _sum?: UserModuleAccessSumAggregateInputType
  _min?: UserModuleAccessMinAggregateInputType
  _max?: UserModuleAccessMaxAggregateInputType
}

export type UserModuleAccessGroupByOutputType = {
  id: number
  user_id: string
  timesheets: boolean
  timesheets_approval: boolean
  employee_list: boolean
  employee_management: boolean
  personal_profile: boolean
  dashboard: boolean
  chatbot: boolean
  _count: UserModuleAccessCountAggregateOutputType | null
  _avg: UserModuleAccessAvgAggregateOutputType | null
  _sum: UserModuleAccessSumAggregateOutputType | null
  _min: UserModuleAccessMinAggregateOutputType | null
  _max: UserModuleAccessMaxAggregateOutputType | null
}

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



export type userModuleAccessWhereInput = {
  AND?: Prisma.userModuleAccessWhereInput | Prisma.userModuleAccessWhereInput[]
  OR?: Prisma.userModuleAccessWhereInput[]
  NOT?: Prisma.userModuleAccessWhereInput | Prisma.userModuleAccessWhereInput[]
  id?: Prisma.IntFilter<"userModuleAccess"> | number
  user_id?: Prisma.UuidFilter<"userModuleAccess"> | string
  timesheets?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  timesheets_approval?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  employee_list?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  employee_management?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  personal_profile?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  dashboard?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  chatbot?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  user?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.UsersWhereInput>
}

export type userModuleAccessOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  user_id?: Prisma.SortOrder
  timesheets?: Prisma.SortOrder
  timesheets_approval?: Prisma.SortOrder
  employee_list?: Prisma.SortOrder
  employee_management?: Prisma.SortOrder
  personal_profile?: Prisma.SortOrder
  dashboard?: Prisma.SortOrder
  chatbot?: Prisma.SortOrder
  user?: Prisma.UsersOrderByWithRelationInput
}

export type userModuleAccessWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  user_id?: string
  AND?: Prisma.userModuleAccessWhereInput | Prisma.userModuleAccessWhereInput[]
  OR?: Prisma.userModuleAccessWhereInput[]
  NOT?: Prisma.userModuleAccessWhereInput | Prisma.userModuleAccessWhereInput[]
  timesheets?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  timesheets_approval?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  employee_list?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  employee_management?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  personal_profile?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  dashboard?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  chatbot?: Prisma.BoolFilter<"userModuleAccess"> | boolean
  user?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.UsersWhereInput>
}, "id" | "user_id">

export type userModuleAccessOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  user_id?: Prisma.SortOrder
  timesheets?: Prisma.SortOrder
  timesheets_approval?: Prisma.SortOrder
  employee_list?: Prisma.SortOrder
  employee_management?: Prisma.SortOrder
  personal_profile?: Prisma.SortOrder
  dashboard?: Prisma.SortOrder
  chatbot?: Prisma.SortOrder
  _count?: Prisma.userModuleAccessCountOrderByAggregateInput
  _avg?: Prisma.userModuleAccessAvgOrderByAggregateInput
  _max?: Prisma.userModuleAccessMaxOrderByAggregateInput
  _min?: Prisma.userModuleAccessMinOrderByAggregateInput
  _sum?: Prisma.userModuleAccessSumOrderByAggregateInput
}

export type userModuleAccessScalarWhereWithAggregatesInput = {
  AND?: Prisma.userModuleAccessScalarWhereWithAggregatesInput | Prisma.userModuleAccessScalarWhereWithAggregatesInput[]
  OR?: Prisma.userModuleAccessScalarWhereWithAggregatesInput[]
  NOT?: Prisma.userModuleAccessScalarWhereWithAggregatesInput | Prisma.userModuleAccessScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"userModuleAccess"> | number
  user_id?: Prisma.UuidWithAggregatesFilter<"userModuleAccess"> | string
  timesheets?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean
  timesheets_approval?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean
  employee_list?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean
  employee_management?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean
  personal_profile?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean
  dashboard?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean
  chatbot?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean
}

export type userModuleAccessCreateInput = {
  timesheets?: boolean
  timesheets_approval?: boolean
  employee_list?: boolean
  employee_management?: boolean
  personal_profile?: boolean
  dashboard?: boolean
  chatbot?: boolean
  user: Prisma.UsersCreateNestedOneWithoutUser_module_accessInput
}

export type userModuleAccessUncheckedCreateInput = {
  id?: number
  user_id: string
  timesheets?: boolean
  timesheets_approval?: boolean
  employee_list?: boolean
  employee_management?: boolean
  personal_profile?: boolean
  dashboard?: boolean
  chatbot?: boolean
}

export type userModuleAccessUpdateInput = {
  timesheets?: Prisma.BoolFieldUpdateOperationsInput | boolean
  timesheets_approval?: Prisma.BoolFieldUpdateOperationsInput | boolean
  employee_list?: Prisma.BoolFieldUpdateOperationsInput | boolean
  employee_management?: Prisma.BoolFieldUpdateOperationsInput | boolean
  personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean
  dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean
  chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean
  user?: Prisma.UsersUpdateOneRequiredWithoutUser_module_accessNestedInput
}

export type userModuleAccessUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  user_id?: Prisma.StringFieldUpdateOperationsInput | string
  timesheets?: Prisma.BoolFieldUpdateOperationsInput | boolean
  timesheets_approval?: Prisma.BoolFieldUpdateOperationsInput | boolean
  employee_list?: Prisma.BoolFieldUpdateOperationsInput | boolean
  employee_management?: Prisma.BoolFieldUpdateOperationsInput | boolean
  personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean
  dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean
  chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type userModuleAccessCreateManyInput = {
  id?: number
  user_id: string
  timesheets?: boolean
  timesheets_approval?: boolean
  employee_list?: boolean
  employee_management?: boolean
  personal_profile?: boolean
  dashboard?: boolean
  chatbot?: boolean
}

export type userModuleAccessUpdateManyMutationInput = {
  timesheets?: Prisma.BoolFieldUpdateOperationsInput | boolean
  timesheets_approval?: Prisma.BoolFieldUpdateOperationsInput | boolean
  employee_list?: Prisma.BoolFieldUpdateOperationsInput | boolean
  employee_management?: Prisma.BoolFieldUpdateOperationsInput | boolean
  personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean
  dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean
  chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type userModuleAccessUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  user_id?: Prisma.StringFieldUpdateOperationsInput | string
  timesheets?: Prisma.BoolFieldUpdateOperationsInput | boolean
  timesheets_approval?: Prisma.BoolFieldUpdateOperationsInput | boolean
  employee_list?: Prisma.BoolFieldUpdateOperationsInput | boolean
  employee_management?: Prisma.BoolFieldUpdateOperationsInput | boolean
  personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean
  dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean
  chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type UserModuleAccessNullableScalarRelationFilter = {
  is?: Prisma.userModuleAccessWhereInput | null
  isNot?: Prisma.userModuleAccessWhereInput | null
}

export type userModuleAccessCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  user_id?: Prisma.SortOrder
  timesheets?: Prisma.SortOrder
  timesheets_approval?: Prisma.SortOrder
  employee_list?: Prisma.SortOrder
  employee_management?: Prisma.SortOrder
  personal_profile?: Prisma.SortOrder
  dashboard?: Prisma.SortOrder
  chatbot?: Prisma.SortOrder
}

export type userModuleAccessAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
}

export type userModuleAccessMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  user_id?: Prisma.SortOrder
  timesheets?: Prisma.SortOrder
  timesheets_approval?: Prisma.SortOrder
  employee_list?: Prisma.SortOrder
  employee_management?: Prisma.SortOrder
  personal_profile?: Prisma.SortOrder
  dashboard?: Prisma.SortOrder
  chatbot?: Prisma.SortOrder
}

export type userModuleAccessMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  user_id?: Prisma.SortOrder
  timesheets?: Prisma.SortOrder
  timesheets_approval?: Prisma.SortOrder
  employee_list?: Prisma.SortOrder
  employee_management?: Prisma.SortOrder
  personal_profile?: Prisma.SortOrder
  dashboard?: Prisma.SortOrder
  chatbot?: Prisma.SortOrder
}

export type userModuleAccessSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
}

export type userModuleAccessCreateNestedOneWithoutUserInput = {
  create?: Prisma.XOR<Prisma.userModuleAccessCreateWithoutUserInput, Prisma.userModuleAccessUncheckedCreateWithoutUserInput>
  connectOrCreate?: Prisma.userModuleAccessCreateOrConnectWithoutUserInput
  connect?: Prisma.userModuleAccessWhereUniqueInput
}

export type userModuleAccessUncheckedCreateNestedOneWithoutUserInput = {
  create?: Prisma.XOR<Prisma.userModuleAccessCreateWithoutUserInput, Prisma.userModuleAccessUncheckedCreateWithoutUserInput>
  connectOrCreate?: Prisma.userModuleAccessCreateOrConnectWithoutUserInput
  connect?: Prisma.userModuleAccessWhereUniqueInput
}

export type userModuleAccessUpdateOneWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.userModuleAccessCreateWithoutUserInput, Prisma.userModuleAccessUncheckedCreateWithoutUserInput>
  connectOrCreate?: Prisma.userModuleAccessCreateOrConnectWithoutUserInput
  upsert?: Prisma.userModuleAccessUpsertWithoutUserInput
  disconnect?: Prisma.userModuleAccessWhereInput | boolean
  delete?: Prisma.userModuleAccessWhereInput | boolean
  connect?: Prisma.userModuleAccessWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.userModuleAccessUpdateToOneWithWhereWithoutUserInput, Prisma.userModuleAccessUpdateWithoutUserInput>, Prisma.userModuleAccessUncheckedUpdateWithoutUserInput>
}

export type userModuleAccessUncheckedUpdateOneWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.userModuleAccessCreateWithoutUserInput, Prisma.userModuleAccessUncheckedCreateWithoutUserInput>
  connectOrCreate?: Prisma.userModuleAccessCreateOrConnectWithoutUserInput
  upsert?: Prisma.userModuleAccessUpsertWithoutUserInput
  disconnect?: Prisma.userModuleAccessWhereInput | boolean
  delete?: Prisma.userModuleAccessWhereInput | boolean
  connect?: Prisma.userModuleAccessWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.userModuleAccessUpdateToOneWithWhereWithoutUserInput, Prisma.userModuleAccessUpdateWithoutUserInput>, Prisma.userModuleAccessUncheckedUpdateWithoutUserInput>
}

export type BoolFieldUpdateOperationsInput = {
  set?: boolean
}

export type IntFieldUpdateOperationsInput = {
  set?: number
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type userModuleAccessCreateWithoutUserInput = {
  timesheets?: boolean
  timesheets_approval?: boolean
  employee_list?: boolean
  employee_management?: boolean
  personal_profile?: boolean
  dashboard?: boolean
  chatbot?: boolean
}

export type userModuleAccessUncheckedCreateWithoutUserInput = {
  id?: number
  timesheets?: boolean
  timesheets_approval?: boolean
  employee_list?: boolean
  employee_management?: boolean
  personal_profile?: boolean
  dashboard?: boolean
  chatbot?: boolean
}

export type userModuleAccessCreateOrConnectWithoutUserInput = {
  where: Prisma.userModuleAccessWhereUniqueInput
  create: Prisma.XOR<Prisma.userModuleAccessCreateWithoutUserInput, Prisma.userModuleAccessUncheckedCreateWithoutUserInput>
}

export type userModuleAccessUpsertWithoutUserInput = {
  update: Prisma.XOR<Prisma.userModuleAccessUpdateWithoutUserInput, Prisma.userModuleAccessUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.userModuleAccessCreateWithoutUserInput, Prisma.userModuleAccessUncheckedCreateWithoutUserInput>
  where?: Prisma.userModuleAccessWhereInput
}

export type userModuleAccessUpdateToOneWithWhereWithoutUserInput = {
  where?: Prisma.userModuleAccessWhereInput
  data: Prisma.XOR<Prisma.userModuleAccessUpdateWithoutUserInput, Prisma.userModuleAccessUncheckedUpdateWithoutUserInput>
}

export type userModuleAccessUpdateWithoutUserInput = {
  timesheets?: Prisma.BoolFieldUpdateOperationsInput | boolean
  timesheets_approval?: Prisma.BoolFieldUpdateOperationsInput | boolean
  employee_list?: Prisma.BoolFieldUpdateOperationsInput | boolean
  employee_management?: Prisma.BoolFieldUpdateOperationsInput | boolean
  personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean
  dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean
  chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type userModuleAccessUncheckedUpdateWithoutUserInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  timesheets?: Prisma.BoolFieldUpdateOperationsInput | boolean
  timesheets_approval?: Prisma.BoolFieldUpdateOperationsInput | boolean
  employee_list?: Prisma.BoolFieldUpdateOperationsInput | boolean
  employee_management?: Prisma.BoolFieldUpdateOperationsInput | boolean
  personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean
  dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean
  chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean
}



export type userModuleAccessSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  user_id?: boolean
  timesheets?: boolean
  timesheets_approval?: boolean
  employee_list?: boolean
  employee_management?: boolean
  personal_profile?: boolean
  dashboard?: boolean
  chatbot?: boolean
  user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
}, ExtArgs["result"]["userModuleAccess"]>

export type userModuleAccessSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  user_id?: boolean
  timesheets?: boolean
  timesheets_approval?: boolean
  employee_list?: boolean
  employee_management?: boolean
  personal_profile?: boolean
  dashboard?: boolean
  chatbot?: boolean
  user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
}, ExtArgs["result"]["userModuleAccess"]>

export type userModuleAccessSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  user_id?: boolean
  timesheets?: boolean
  timesheets_approval?: boolean
  employee_list?: boolean
  employee_management?: boolean
  personal_profile?: boolean
  dashboard?: boolean
  chatbot?: boolean
  user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
}, ExtArgs["result"]["userModuleAccess"]>

export type userModuleAccessSelectScalar = {
  id?: boolean
  user_id?: boolean
  timesheets?: boolean
  timesheets_approval?: boolean
  employee_list?: boolean
  employee_management?: boolean
  personal_profile?: boolean
  dashboard?: boolean
  chatbot?: boolean
}

export type userModuleAccessOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "timesheets" | "timesheets_approval" | "employee_list" | "employee_management" | "personal_profile" | "dashboard" | "chatbot", ExtArgs["result"]["userModuleAccess"]>
export type userModuleAccessInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
}
export type userModuleAccessIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
}
export type userModuleAccessIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
}

export type $userModuleAccessPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "userModuleAccess"
  objects: {
    user: Prisma.$UsersPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    user_id: string
    timesheets: boolean
    timesheets_approval: boolean
    employee_list: boolean
    employee_management: boolean
    personal_profile: boolean
    dashboard: boolean
    chatbot: boolean
  }, ExtArgs["result"]["userModuleAccess"]>
  composites: {}
}

export type userModuleAccessGetPayload<S extends boolean | null | undefined | userModuleAccessDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$userModuleAccessPayload, S>

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

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

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

  /**
   * Find the first UserModuleAccess 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 {userModuleAccessFindFirstArgs} args - Arguments to find a UserModuleAccess
   * @example
   * // Get one UserModuleAccess
   * const userModuleAccess = await prisma.userModuleAccess.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends userModuleAccessFindFirstArgs>(args?: Prisma.SelectSubset<T, userModuleAccessFindFirstArgs<ExtArgs>>): Prisma.Prisma__userModuleAccessClient<runtime.Types.Result.GetResult<Prisma.$userModuleAccessPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first UserModuleAccess 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 {userModuleAccessFindFirstOrThrowArgs} args - Arguments to find a UserModuleAccess
   * @example
   * // Get one UserModuleAccess
   * const userModuleAccess = await prisma.userModuleAccess.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends userModuleAccessFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, userModuleAccessFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__userModuleAccessClient<runtime.Types.Result.GetResult<Prisma.$userModuleAccessPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more UserModuleAccesses 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 {userModuleAccessFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all UserModuleAccesses
   * const userModuleAccesses = await prisma.userModuleAccess.findMany()
   * 
   * // Get first 10 UserModuleAccesses
   * const userModuleAccesses = await prisma.userModuleAccess.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const userModuleAccessWithIdOnly = await prisma.userModuleAccess.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends userModuleAccessFindManyArgs>(args?: Prisma.SelectSubset<T, userModuleAccessFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$userModuleAccessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

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

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

  /**
   * Create many UserModuleAccesses and returns the data saved in the database.
   * @param {userModuleAccessCreateManyAndReturnArgs} args - Arguments to create many UserModuleAccesses.
   * @example
   * // Create many UserModuleAccesses
   * const userModuleAccess = await prisma.userModuleAccess.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many UserModuleAccesses and only return the `id`
   * const userModuleAccessWithIdOnly = await prisma.userModuleAccess.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 userModuleAccessCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, userModuleAccessCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$userModuleAccessPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more UserModuleAccesses and returns the data updated in the database.
   * @param {userModuleAccessUpdateManyAndReturnArgs} args - Arguments to update many UserModuleAccesses.
   * @example
   * // Update many UserModuleAccesses
   * const userModuleAccess = await prisma.userModuleAccess.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more UserModuleAccesses and only return the `id`
   * const userModuleAccessWithIdOnly = await prisma.userModuleAccess.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 userModuleAccessUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, userModuleAccessUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$userModuleAccessPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

  /**
   * Allows you to perform aggregations operations on a UserModuleAccess.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {UserModuleAccessAggregateArgs} 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 UserModuleAccessAggregateArgs>(args: Prisma.Subset<T, UserModuleAccessAggregateArgs>): Prisma.PrismaPromise<GetUserModuleAccessAggregateType<T>>

  /**
   * Group by UserModuleAccess.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {userModuleAccessGroupByArgs} 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 userModuleAccessGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: userModuleAccessGroupByArgs['orderBy'] }
      : { orderBy?: userModuleAccessGroupByArgs['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, userModuleAccessGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserModuleAccessGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the userModuleAccess model
 */
readonly fields: userModuleAccessFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for userModuleAccess.
 * 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__userModuleAccessClient<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.UsersDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UsersDefaultArgs<ExtArgs>>): Prisma.Prisma__UsersClient<runtime.Types.Result.GetResult<Prisma.$UsersPayload<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 userModuleAccess model
 */
export interface userModuleAccessFieldRefs {
  readonly id: Prisma.FieldRef<"userModuleAccess", 'Int'>
  readonly user_id: Prisma.FieldRef<"userModuleAccess", 'String'>
  readonly timesheets: Prisma.FieldRef<"userModuleAccess", 'Boolean'>
  readonly timesheets_approval: Prisma.FieldRef<"userModuleAccess", 'Boolean'>
  readonly employee_list: Prisma.FieldRef<"userModuleAccess", 'Boolean'>
  readonly employee_management: Prisma.FieldRef<"userModuleAccess", 'Boolean'>
  readonly personal_profile: Prisma.FieldRef<"userModuleAccess", 'Boolean'>
  readonly dashboard: Prisma.FieldRef<"userModuleAccess", 'Boolean'>
  readonly chatbot: Prisma.FieldRef<"userModuleAccess", 'Boolean'>
}
    

// Custom InputTypes
/**
 * userModuleAccess findUnique
 */
export type userModuleAccessFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the userModuleAccess
   */
  select?: Prisma.userModuleAccessSelect<ExtArgs> | null
  /**
   * Omit specific fields from the userModuleAccess
   */
  omit?: Prisma.userModuleAccessOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.userModuleAccessInclude<ExtArgs> | null
  /**
   * Filter, which userModuleAccess to fetch.
   */
  where: Prisma.userModuleAccessWhereUniqueInput
}

/**
 * userModuleAccess findUniqueOrThrow
 */
export type userModuleAccessFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the userModuleAccess
   */
  select?: Prisma.userModuleAccessSelect<ExtArgs> | null
  /**
   * Omit specific fields from the userModuleAccess
   */
  omit?: Prisma.userModuleAccessOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.userModuleAccessInclude<ExtArgs> | null
  /**
   * Filter, which userModuleAccess to fetch.
   */
  where: Prisma.userModuleAccessWhereUniqueInput
}

/**
 * userModuleAccess findFirst
 */
export type userModuleAccessFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the userModuleAccess
   */
  select?: Prisma.userModuleAccessSelect<ExtArgs> | null
  /**
   * Omit specific fields from the userModuleAccess
   */
  omit?: Prisma.userModuleAccessOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.userModuleAccessInclude<ExtArgs> | null
  /**
   * Filter, which userModuleAccess to fetch.
   */
  where?: Prisma.userModuleAccessWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of userModuleAccesses to fetch.
   */
  orderBy?: Prisma.userModuleAccessOrderByWithRelationInput | Prisma.userModuleAccessOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for userModuleAccesses.
   */
  cursor?: Prisma.userModuleAccessWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` userModuleAccesses 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` userModuleAccesses.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of userModuleAccesses.
   */
  distinct?: Prisma.UserModuleAccessScalarFieldEnum | Prisma.UserModuleAccessScalarFieldEnum[]
}

/**
 * userModuleAccess findFirstOrThrow
 */
export type userModuleAccessFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the userModuleAccess
   */
  select?: Prisma.userModuleAccessSelect<ExtArgs> | null
  /**
   * Omit specific fields from the userModuleAccess
   */
  omit?: Prisma.userModuleAccessOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.userModuleAccessInclude<ExtArgs> | null
  /**
   * Filter, which userModuleAccess to fetch.
   */
  where?: Prisma.userModuleAccessWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of userModuleAccesses to fetch.
   */
  orderBy?: Prisma.userModuleAccessOrderByWithRelationInput | Prisma.userModuleAccessOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for userModuleAccesses.
   */
  cursor?: Prisma.userModuleAccessWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` userModuleAccesses 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` userModuleAccesses.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of userModuleAccesses.
   */
  distinct?: Prisma.UserModuleAccessScalarFieldEnum | Prisma.UserModuleAccessScalarFieldEnum[]
}

/**
 * userModuleAccess findMany
 */
export type userModuleAccessFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the userModuleAccess
   */
  select?: Prisma.userModuleAccessSelect<ExtArgs> | null
  /**
   * Omit specific fields from the userModuleAccess
   */
  omit?: Prisma.userModuleAccessOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.userModuleAccessInclude<ExtArgs> | null
  /**
   * Filter, which userModuleAccesses to fetch.
   */
  where?: Prisma.userModuleAccessWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of userModuleAccesses to fetch.
   */
  orderBy?: Prisma.userModuleAccessOrderByWithRelationInput | Prisma.userModuleAccessOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing userModuleAccesses.
   */
  cursor?: Prisma.userModuleAccessWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` userModuleAccesses 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` userModuleAccesses.
   */
  skip?: number
  distinct?: Prisma.UserModuleAccessScalarFieldEnum | Prisma.UserModuleAccessScalarFieldEnum[]
}

/**
 * userModuleAccess create
 */
export type userModuleAccessCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the userModuleAccess
   */
  select?: Prisma.userModuleAccessSelect<ExtArgs> | null
  /**
   * Omit specific fields from the userModuleAccess
   */
  omit?: Prisma.userModuleAccessOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.userModuleAccessInclude<ExtArgs> | null
  /**
   * The data needed to create a userModuleAccess.
   */
  data: Prisma.XOR<Prisma.userModuleAccessCreateInput, Prisma.userModuleAccessUncheckedCreateInput>
}

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

/**
 * userModuleAccess createManyAndReturn
 */
export type userModuleAccessCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the userModuleAccess
   */
  select?: Prisma.userModuleAccessSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the userModuleAccess
   */
  omit?: Prisma.userModuleAccessOmit<ExtArgs> | null
  /**
   * The data used to create many userModuleAccesses.
   */
  data: Prisma.userModuleAccessCreateManyInput | Prisma.userModuleAccessCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.userModuleAccessIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * userModuleAccess update
 */
export type userModuleAccessUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the userModuleAccess
   */
  select?: Prisma.userModuleAccessSelect<ExtArgs> | null
  /**
   * Omit specific fields from the userModuleAccess
   */
  omit?: Prisma.userModuleAccessOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.userModuleAccessInclude<ExtArgs> | null
  /**
   * The data needed to update a userModuleAccess.
   */
  data: Prisma.XOR<Prisma.userModuleAccessUpdateInput, Prisma.userModuleAccessUncheckedUpdateInput>
  /**
   * Choose, which userModuleAccess to update.
   */
  where: Prisma.userModuleAccessWhereUniqueInput
}

/**
 * userModuleAccess updateMany
 */
export type userModuleAccessUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update userModuleAccesses.
   */
  data: Prisma.XOR<Prisma.userModuleAccessUpdateManyMutationInput, Prisma.userModuleAccessUncheckedUpdateManyInput>
  /**
   * Filter which userModuleAccesses to update
   */
  where?: Prisma.userModuleAccessWhereInput
  /**
   * Limit how many userModuleAccesses to update.
   */
  limit?: number
}

/**
 * userModuleAccess updateManyAndReturn
 */
export type userModuleAccessUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the userModuleAccess
   */
  select?: Prisma.userModuleAccessSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the userModuleAccess
   */
  omit?: Prisma.userModuleAccessOmit<ExtArgs> | null
  /**
   * The data used to update userModuleAccesses.
   */
  data: Prisma.XOR<Prisma.userModuleAccessUpdateManyMutationInput, Prisma.userModuleAccessUncheckedUpdateManyInput>
  /**
   * Filter which userModuleAccesses to update
   */
  where?: Prisma.userModuleAccessWhereInput
  /**
   * Limit how many userModuleAccesses to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.userModuleAccessIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * userModuleAccess upsert
 */
export type userModuleAccessUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the userModuleAccess
   */
  select?: Prisma.userModuleAccessSelect<ExtArgs> | null
  /**
   * Omit specific fields from the userModuleAccess
   */
  omit?: Prisma.userModuleAccessOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.userModuleAccessInclude<ExtArgs> | null
  /**
   * The filter to search for the userModuleAccess to update in case it exists.
   */
  where: Prisma.userModuleAccessWhereUniqueInput
  /**
   * In case the userModuleAccess found by the `where` argument doesn't exist, create a new userModuleAccess with this data.
   */
  create: Prisma.XOR<Prisma.userModuleAccessCreateInput, Prisma.userModuleAccessUncheckedCreateInput>
  /**
   * In case the userModuleAccess was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.userModuleAccessUpdateInput, Prisma.userModuleAccessUncheckedUpdateInput>
}

/**
 * userModuleAccess delete
 */
export type userModuleAccessDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the userModuleAccess
   */
  select?: Prisma.userModuleAccessSelect<ExtArgs> | null
  /**
   * Omit specific fields from the userModuleAccess
   */
  omit?: Prisma.userModuleAccessOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.userModuleAccessInclude<ExtArgs> | null
  /**
   * Filter which userModuleAccess to delete.
   */
  where: Prisma.userModuleAccessWhereUniqueInput
}

/**
 * userModuleAccess deleteMany
 */
export type userModuleAccessDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which userModuleAccesses to delete
   */
  where?: Prisma.userModuleAccessWhereInput
  /**
   * Limit how many userModuleAccesses to delete.
   */
  limit?: number
}

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