
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `thread_worktrees` 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.js"
import type * as Prisma from "../internal/prismaNamespace.js"

/**
 * Model thread_worktrees
 * 
 */
export type thread_worktreesModel = runtime.Types.Result.DefaultSelection<Prisma.$thread_worktreesPayload>

export type AggregateThread_worktrees = {
  _count: Thread_worktreesCountAggregateOutputType | null
  _min: Thread_worktreesMinAggregateOutputType | null
  _max: Thread_worktreesMaxAggregateOutputType | null
}

export type Thread_worktreesMinAggregateOutputType = {
  thread_id: string | null
  worktree_name: string | null
  worktree_directory: string | null
  project_directory: string | null
  status: $Enums.WorktreeStatus | null
  error_message: string | null
  created_at: Date | null
}

export type Thread_worktreesMaxAggregateOutputType = {
  thread_id: string | null
  worktree_name: string | null
  worktree_directory: string | null
  project_directory: string | null
  status: $Enums.WorktreeStatus | null
  error_message: string | null
  created_at: Date | null
}

export type Thread_worktreesCountAggregateOutputType = {
  thread_id: number
  worktree_name: number
  worktree_directory: number
  project_directory: number
  status: number
  error_message: number
  created_at: number
  _all: number
}


export type Thread_worktreesMinAggregateInputType = {
  thread_id?: true
  worktree_name?: true
  worktree_directory?: true
  project_directory?: true
  status?: true
  error_message?: true
  created_at?: true
}

export type Thread_worktreesMaxAggregateInputType = {
  thread_id?: true
  worktree_name?: true
  worktree_directory?: true
  project_directory?: true
  status?: true
  error_message?: true
  created_at?: true
}

export type Thread_worktreesCountAggregateInputType = {
  thread_id?: true
  worktree_name?: true
  worktree_directory?: true
  project_directory?: true
  status?: true
  error_message?: true
  created_at?: true
  _all?: true
}

export type Thread_worktreesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which thread_worktrees to aggregate.
   */
  where?: Prisma.thread_worktreesWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of thread_worktrees to fetch.
   */
  orderBy?: Prisma.thread_worktreesOrderByWithRelationInput | Prisma.thread_worktreesOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.thread_worktreesWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` thread_worktrees 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` thread_worktrees.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned thread_worktrees
  **/
  _count?: true | Thread_worktreesCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Thread_worktreesMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Thread_worktreesMaxAggregateInputType
}

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




export type thread_worktreesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.thread_worktreesWhereInput
  orderBy?: Prisma.thread_worktreesOrderByWithAggregationInput | Prisma.thread_worktreesOrderByWithAggregationInput[]
  by: Prisma.Thread_worktreesScalarFieldEnum[] | Prisma.Thread_worktreesScalarFieldEnum
  having?: Prisma.thread_worktreesScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Thread_worktreesCountAggregateInputType | true
  _min?: Thread_worktreesMinAggregateInputType
  _max?: Thread_worktreesMaxAggregateInputType
}

export type Thread_worktreesGroupByOutputType = {
  thread_id: string
  worktree_name: string
  worktree_directory: string | null
  project_directory: string
  status: $Enums.WorktreeStatus
  error_message: string | null
  created_at: Date | null
  _count: Thread_worktreesCountAggregateOutputType | null
  _min: Thread_worktreesMinAggregateOutputType | null
  _max: Thread_worktreesMaxAggregateOutputType | null
}

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



export type thread_worktreesWhereInput = {
  AND?: Prisma.thread_worktreesWhereInput | Prisma.thread_worktreesWhereInput[]
  OR?: Prisma.thread_worktreesWhereInput[]
  NOT?: Prisma.thread_worktreesWhereInput | Prisma.thread_worktreesWhereInput[]
  thread_id?: Prisma.StringFilter<"thread_worktrees"> | string
  worktree_name?: Prisma.StringFilter<"thread_worktrees"> | string
  worktree_directory?: Prisma.StringNullableFilter<"thread_worktrees"> | string | null
  project_directory?: Prisma.StringFilter<"thread_worktrees"> | string
  status?: Prisma.EnumWorktreeStatusFilter<"thread_worktrees"> | $Enums.WorktreeStatus
  error_message?: Prisma.StringNullableFilter<"thread_worktrees"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"thread_worktrees"> | Date | string | null
  thread?: Prisma.XOR<Prisma.Thread_sessionsScalarRelationFilter, Prisma.thread_sessionsWhereInput>
}

export type thread_worktreesOrderByWithRelationInput = {
  thread_id?: Prisma.SortOrder
  worktree_name?: Prisma.SortOrder
  worktree_directory?: Prisma.SortOrderInput | Prisma.SortOrder
  project_directory?: Prisma.SortOrder
  status?: Prisma.SortOrder
  error_message?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  thread?: Prisma.thread_sessionsOrderByWithRelationInput
}

export type thread_worktreesWhereUniqueInput = Prisma.AtLeast<{
  thread_id?: string
  AND?: Prisma.thread_worktreesWhereInput | Prisma.thread_worktreesWhereInput[]
  OR?: Prisma.thread_worktreesWhereInput[]
  NOT?: Prisma.thread_worktreesWhereInput | Prisma.thread_worktreesWhereInput[]
  worktree_name?: Prisma.StringFilter<"thread_worktrees"> | string
  worktree_directory?: Prisma.StringNullableFilter<"thread_worktrees"> | string | null
  project_directory?: Prisma.StringFilter<"thread_worktrees"> | string
  status?: Prisma.EnumWorktreeStatusFilter<"thread_worktrees"> | $Enums.WorktreeStatus
  error_message?: Prisma.StringNullableFilter<"thread_worktrees"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"thread_worktrees"> | Date | string | null
  thread?: Prisma.XOR<Prisma.Thread_sessionsScalarRelationFilter, Prisma.thread_sessionsWhereInput>
}, "thread_id">

export type thread_worktreesOrderByWithAggregationInput = {
  thread_id?: Prisma.SortOrder
  worktree_name?: Prisma.SortOrder
  worktree_directory?: Prisma.SortOrderInput | Prisma.SortOrder
  project_directory?: Prisma.SortOrder
  status?: Prisma.SortOrder
  error_message?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.thread_worktreesCountOrderByAggregateInput
  _max?: Prisma.thread_worktreesMaxOrderByAggregateInput
  _min?: Prisma.thread_worktreesMinOrderByAggregateInput
}

export type thread_worktreesScalarWhereWithAggregatesInput = {
  AND?: Prisma.thread_worktreesScalarWhereWithAggregatesInput | Prisma.thread_worktreesScalarWhereWithAggregatesInput[]
  OR?: Prisma.thread_worktreesScalarWhereWithAggregatesInput[]
  NOT?: Prisma.thread_worktreesScalarWhereWithAggregatesInput | Prisma.thread_worktreesScalarWhereWithAggregatesInput[]
  thread_id?: Prisma.StringWithAggregatesFilter<"thread_worktrees"> | string
  worktree_name?: Prisma.StringWithAggregatesFilter<"thread_worktrees"> | string
  worktree_directory?: Prisma.StringNullableWithAggregatesFilter<"thread_worktrees"> | string | null
  project_directory?: Prisma.StringWithAggregatesFilter<"thread_worktrees"> | string
  status?: Prisma.EnumWorktreeStatusWithAggregatesFilter<"thread_worktrees"> | $Enums.WorktreeStatus
  error_message?: Prisma.StringNullableWithAggregatesFilter<"thread_worktrees"> | string | null
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"thread_worktrees"> | Date | string | null
}

export type thread_worktreesCreateInput = {
  worktree_name: string
  worktree_directory?: string | null
  project_directory: string
  status?: $Enums.WorktreeStatus
  error_message?: string | null
  created_at?: Date | string | null
  thread: Prisma.thread_sessionsCreateNestedOneWithoutThread_worktreeInput
}

export type thread_worktreesUncheckedCreateInput = {
  thread_id: string
  worktree_name: string
  worktree_directory?: string | null
  project_directory: string
  status?: $Enums.WorktreeStatus
  error_message?: string | null
  created_at?: Date | string | null
}

export type thread_worktreesUpdateInput = {
  worktree_name?: Prisma.StringFieldUpdateOperationsInput | string
  worktree_directory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  project_directory?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumWorktreeStatusFieldUpdateOperationsInput | $Enums.WorktreeStatus
  error_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  thread?: Prisma.thread_sessionsUpdateOneRequiredWithoutThread_worktreeNestedInput
}

export type thread_worktreesUncheckedUpdateInput = {
  thread_id?: Prisma.StringFieldUpdateOperationsInput | string
  worktree_name?: Prisma.StringFieldUpdateOperationsInput | string
  worktree_directory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  project_directory?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumWorktreeStatusFieldUpdateOperationsInput | $Enums.WorktreeStatus
  error_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type thread_worktreesCreateManyInput = {
  thread_id: string
  worktree_name: string
  worktree_directory?: string | null
  project_directory: string
  status?: $Enums.WorktreeStatus
  error_message?: string | null
  created_at?: Date | string | null
}

export type thread_worktreesUpdateManyMutationInput = {
  worktree_name?: Prisma.StringFieldUpdateOperationsInput | string
  worktree_directory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  project_directory?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumWorktreeStatusFieldUpdateOperationsInput | $Enums.WorktreeStatus
  error_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type thread_worktreesUncheckedUpdateManyInput = {
  thread_id?: Prisma.StringFieldUpdateOperationsInput | string
  worktree_name?: Prisma.StringFieldUpdateOperationsInput | string
  worktree_directory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  project_directory?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumWorktreeStatusFieldUpdateOperationsInput | $Enums.WorktreeStatus
  error_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type Thread_worktreesNullableScalarRelationFilter = {
  is?: Prisma.thread_worktreesWhereInput | null
  isNot?: Prisma.thread_worktreesWhereInput | null
}

export type thread_worktreesCountOrderByAggregateInput = {
  thread_id?: Prisma.SortOrder
  worktree_name?: Prisma.SortOrder
  worktree_directory?: Prisma.SortOrder
  project_directory?: Prisma.SortOrder
  status?: Prisma.SortOrder
  error_message?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type thread_worktreesMaxOrderByAggregateInput = {
  thread_id?: Prisma.SortOrder
  worktree_name?: Prisma.SortOrder
  worktree_directory?: Prisma.SortOrder
  project_directory?: Prisma.SortOrder
  status?: Prisma.SortOrder
  error_message?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type thread_worktreesMinOrderByAggregateInput = {
  thread_id?: Prisma.SortOrder
  worktree_name?: Prisma.SortOrder
  worktree_directory?: Prisma.SortOrder
  project_directory?: Prisma.SortOrder
  status?: Prisma.SortOrder
  error_message?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type thread_worktreesCreateNestedOneWithoutThreadInput = {
  create?: Prisma.XOR<Prisma.thread_worktreesCreateWithoutThreadInput, Prisma.thread_worktreesUncheckedCreateWithoutThreadInput>
  connectOrCreate?: Prisma.thread_worktreesCreateOrConnectWithoutThreadInput
  connect?: Prisma.thread_worktreesWhereUniqueInput
}

export type thread_worktreesUncheckedCreateNestedOneWithoutThreadInput = {
  create?: Prisma.XOR<Prisma.thread_worktreesCreateWithoutThreadInput, Prisma.thread_worktreesUncheckedCreateWithoutThreadInput>
  connectOrCreate?: Prisma.thread_worktreesCreateOrConnectWithoutThreadInput
  connect?: Prisma.thread_worktreesWhereUniqueInput
}

export type thread_worktreesUpdateOneWithoutThreadNestedInput = {
  create?: Prisma.XOR<Prisma.thread_worktreesCreateWithoutThreadInput, Prisma.thread_worktreesUncheckedCreateWithoutThreadInput>
  connectOrCreate?: Prisma.thread_worktreesCreateOrConnectWithoutThreadInput
  upsert?: Prisma.thread_worktreesUpsertWithoutThreadInput
  disconnect?: Prisma.thread_worktreesWhereInput | boolean
  delete?: Prisma.thread_worktreesWhereInput | boolean
  connect?: Prisma.thread_worktreesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.thread_worktreesUpdateToOneWithWhereWithoutThreadInput, Prisma.thread_worktreesUpdateWithoutThreadInput>, Prisma.thread_worktreesUncheckedUpdateWithoutThreadInput>
}

export type thread_worktreesUncheckedUpdateOneWithoutThreadNestedInput = {
  create?: Prisma.XOR<Prisma.thread_worktreesCreateWithoutThreadInput, Prisma.thread_worktreesUncheckedCreateWithoutThreadInput>
  connectOrCreate?: Prisma.thread_worktreesCreateOrConnectWithoutThreadInput
  upsert?: Prisma.thread_worktreesUpsertWithoutThreadInput
  disconnect?: Prisma.thread_worktreesWhereInput | boolean
  delete?: Prisma.thread_worktreesWhereInput | boolean
  connect?: Prisma.thread_worktreesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.thread_worktreesUpdateToOneWithWhereWithoutThreadInput, Prisma.thread_worktreesUpdateWithoutThreadInput>, Prisma.thread_worktreesUncheckedUpdateWithoutThreadInput>
}

export type EnumWorktreeStatusFieldUpdateOperationsInput = {
  set?: $Enums.WorktreeStatus
}

export type thread_worktreesCreateWithoutThreadInput = {
  worktree_name: string
  worktree_directory?: string | null
  project_directory: string
  status?: $Enums.WorktreeStatus
  error_message?: string | null
  created_at?: Date | string | null
}

export type thread_worktreesUncheckedCreateWithoutThreadInput = {
  worktree_name: string
  worktree_directory?: string | null
  project_directory: string
  status?: $Enums.WorktreeStatus
  error_message?: string | null
  created_at?: Date | string | null
}

export type thread_worktreesCreateOrConnectWithoutThreadInput = {
  where: Prisma.thread_worktreesWhereUniqueInput
  create: Prisma.XOR<Prisma.thread_worktreesCreateWithoutThreadInput, Prisma.thread_worktreesUncheckedCreateWithoutThreadInput>
}

export type thread_worktreesUpsertWithoutThreadInput = {
  update: Prisma.XOR<Prisma.thread_worktreesUpdateWithoutThreadInput, Prisma.thread_worktreesUncheckedUpdateWithoutThreadInput>
  create: Prisma.XOR<Prisma.thread_worktreesCreateWithoutThreadInput, Prisma.thread_worktreesUncheckedCreateWithoutThreadInput>
  where?: Prisma.thread_worktreesWhereInput
}

export type thread_worktreesUpdateToOneWithWhereWithoutThreadInput = {
  where?: Prisma.thread_worktreesWhereInput
  data: Prisma.XOR<Prisma.thread_worktreesUpdateWithoutThreadInput, Prisma.thread_worktreesUncheckedUpdateWithoutThreadInput>
}

export type thread_worktreesUpdateWithoutThreadInput = {
  worktree_name?: Prisma.StringFieldUpdateOperationsInput | string
  worktree_directory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  project_directory?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumWorktreeStatusFieldUpdateOperationsInput | $Enums.WorktreeStatus
  error_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type thread_worktreesUncheckedUpdateWithoutThreadInput = {
  worktree_name?: Prisma.StringFieldUpdateOperationsInput | string
  worktree_directory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  project_directory?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumWorktreeStatusFieldUpdateOperationsInput | $Enums.WorktreeStatus
  error_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type thread_worktreesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  thread_id?: boolean
  worktree_name?: boolean
  worktree_directory?: boolean
  project_directory?: boolean
  status?: boolean
  error_message?: boolean
  created_at?: boolean
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["thread_worktrees"]>

export type thread_worktreesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  thread_id?: boolean
  worktree_name?: boolean
  worktree_directory?: boolean
  project_directory?: boolean
  status?: boolean
  error_message?: boolean
  created_at?: boolean
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["thread_worktrees"]>

export type thread_worktreesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  thread_id?: boolean
  worktree_name?: boolean
  worktree_directory?: boolean
  project_directory?: boolean
  status?: boolean
  error_message?: boolean
  created_at?: boolean
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["thread_worktrees"]>

export type thread_worktreesSelectScalar = {
  thread_id?: boolean
  worktree_name?: boolean
  worktree_directory?: boolean
  project_directory?: boolean
  status?: boolean
  error_message?: boolean
  created_at?: boolean
}

export type thread_worktreesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"thread_id" | "worktree_name" | "worktree_directory" | "project_directory" | "status" | "error_message" | "created_at", ExtArgs["result"]["thread_worktrees"]>
export type thread_worktreesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}
export type thread_worktreesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}
export type thread_worktreesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}

export type $thread_worktreesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "thread_worktrees"
  objects: {
    thread: Prisma.$thread_sessionsPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    thread_id: string
    worktree_name: string
    worktree_directory: string | null
    project_directory: string
    status: $Enums.WorktreeStatus
    error_message: string | null
    created_at: Date | null
  }, ExtArgs["result"]["thread_worktrees"]>
  composites: {}
}

export type thread_worktreesGetPayload<S extends boolean | null | undefined | thread_worktreesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for thread_worktrees.
 * 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__thread_worktreesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  thread<T extends Prisma.thread_sessionsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.thread_sessionsDefaultArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<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 thread_worktrees model
 */
export interface thread_worktreesFieldRefs {
  readonly thread_id: Prisma.FieldRef<"thread_worktrees", 'String'>
  readonly worktree_name: Prisma.FieldRef<"thread_worktrees", 'String'>
  readonly worktree_directory: Prisma.FieldRef<"thread_worktrees", 'String'>
  readonly project_directory: Prisma.FieldRef<"thread_worktrees", 'String'>
  readonly status: Prisma.FieldRef<"thread_worktrees", 'WorktreeStatus'>
  readonly error_message: Prisma.FieldRef<"thread_worktrees", 'String'>
  readonly created_at: Prisma.FieldRef<"thread_worktrees", 'DateTime'>
}
    

// Custom InputTypes
/**
 * thread_worktrees findUnique
 */
export type thread_worktreesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the thread_worktrees
   */
  select?: Prisma.thread_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the thread_worktrees
   */
  omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.thread_worktreesInclude<ExtArgs> | null
  /**
   * Filter, which thread_worktrees to fetch.
   */
  where: Prisma.thread_worktreesWhereUniqueInput
}

/**
 * thread_worktrees findUniqueOrThrow
 */
export type thread_worktreesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the thread_worktrees
   */
  select?: Prisma.thread_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the thread_worktrees
   */
  omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.thread_worktreesInclude<ExtArgs> | null
  /**
   * Filter, which thread_worktrees to fetch.
   */
  where: Prisma.thread_worktreesWhereUniqueInput
}

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

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

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

/**
 * thread_worktrees create
 */
export type thread_worktreesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the thread_worktrees
   */
  select?: Prisma.thread_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the thread_worktrees
   */
  omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.thread_worktreesInclude<ExtArgs> | null
  /**
   * The data needed to create a thread_worktrees.
   */
  data: Prisma.XOR<Prisma.thread_worktreesCreateInput, Prisma.thread_worktreesUncheckedCreateInput>
}

/**
 * thread_worktrees createMany
 */
export type thread_worktreesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many thread_worktrees.
   */
  data: Prisma.thread_worktreesCreateManyInput | Prisma.thread_worktreesCreateManyInput[]
}

/**
 * thread_worktrees createManyAndReturn
 */
export type thread_worktreesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the thread_worktrees
   */
  select?: Prisma.thread_worktreesSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the thread_worktrees
   */
  omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
  /**
   * The data used to create many thread_worktrees.
   */
  data: Prisma.thread_worktreesCreateManyInput | Prisma.thread_worktreesCreateManyInput[]
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.thread_worktreesIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * thread_worktrees update
 */
export type thread_worktreesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the thread_worktrees
   */
  select?: Prisma.thread_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the thread_worktrees
   */
  omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.thread_worktreesInclude<ExtArgs> | null
  /**
   * The data needed to update a thread_worktrees.
   */
  data: Prisma.XOR<Prisma.thread_worktreesUpdateInput, Prisma.thread_worktreesUncheckedUpdateInput>
  /**
   * Choose, which thread_worktrees to update.
   */
  where: Prisma.thread_worktreesWhereUniqueInput
}

/**
 * thread_worktrees updateMany
 */
export type thread_worktreesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update thread_worktrees.
   */
  data: Prisma.XOR<Prisma.thread_worktreesUpdateManyMutationInput, Prisma.thread_worktreesUncheckedUpdateManyInput>
  /**
   * Filter which thread_worktrees to update
   */
  where?: Prisma.thread_worktreesWhereInput
  /**
   * Limit how many thread_worktrees to update.
   */
  limit?: number
}

/**
 * thread_worktrees updateManyAndReturn
 */
export type thread_worktreesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the thread_worktrees
   */
  select?: Prisma.thread_worktreesSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the thread_worktrees
   */
  omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
  /**
   * The data used to update thread_worktrees.
   */
  data: Prisma.XOR<Prisma.thread_worktreesUpdateManyMutationInput, Prisma.thread_worktreesUncheckedUpdateManyInput>
  /**
   * Filter which thread_worktrees to update
   */
  where?: Prisma.thread_worktreesWhereInput
  /**
   * Limit how many thread_worktrees to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.thread_worktreesIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * thread_worktrees upsert
 */
export type thread_worktreesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the thread_worktrees
   */
  select?: Prisma.thread_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the thread_worktrees
   */
  omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.thread_worktreesInclude<ExtArgs> | null
  /**
   * The filter to search for the thread_worktrees to update in case it exists.
   */
  where: Prisma.thread_worktreesWhereUniqueInput
  /**
   * In case the thread_worktrees found by the `where` argument doesn't exist, create a new thread_worktrees with this data.
   */
  create: Prisma.XOR<Prisma.thread_worktreesCreateInput, Prisma.thread_worktreesUncheckedCreateInput>
  /**
   * In case the thread_worktrees was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.thread_worktreesUpdateInput, Prisma.thread_worktreesUncheckedUpdateInput>
}

/**
 * thread_worktrees delete
 */
export type thread_worktreesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the thread_worktrees
   */
  select?: Prisma.thread_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the thread_worktrees
   */
  omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.thread_worktreesInclude<ExtArgs> | null
  /**
   * Filter which thread_worktrees to delete.
   */
  where: Prisma.thread_worktreesWhereUniqueInput
}

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

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