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

export type AggregateChannel_worktrees = {
  _count: Channel_worktreesCountAggregateOutputType | null
  _avg: Channel_worktreesAvgAggregateOutputType | null
  _sum: Channel_worktreesSumAggregateOutputType | null
  _min: Channel_worktreesMinAggregateOutputType | null
  _max: Channel_worktreesMaxAggregateOutputType | null
}

export type Channel_worktreesAvgAggregateOutputType = {
  enabled: number | null
}

export type Channel_worktreesSumAggregateOutputType = {
  enabled: number | null
}

export type Channel_worktreesMinAggregateOutputType = {
  channel_id: string | null
  enabled: number | null
  created_at: Date | null
  updated_at: Date | null
}

export type Channel_worktreesMaxAggregateOutputType = {
  channel_id: string | null
  enabled: number | null
  created_at: Date | null
  updated_at: Date | null
}

export type Channel_worktreesCountAggregateOutputType = {
  channel_id: number
  enabled: number
  created_at: number
  updated_at: number
  _all: number
}


export type Channel_worktreesAvgAggregateInputType = {
  enabled?: true
}

export type Channel_worktreesSumAggregateInputType = {
  enabled?: true
}

export type Channel_worktreesMinAggregateInputType = {
  channel_id?: true
  enabled?: true
  created_at?: true
  updated_at?: true
}

export type Channel_worktreesMaxAggregateInputType = {
  channel_id?: true
  enabled?: true
  created_at?: true
  updated_at?: true
}

export type Channel_worktreesCountAggregateInputType = {
  channel_id?: true
  enabled?: true
  created_at?: true
  updated_at?: true
  _all?: true
}

export type Channel_worktreesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which channel_worktrees to aggregate.
   */
  where?: Prisma.channel_worktreesWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of channel_worktrees to fetch.
   */
  orderBy?: Prisma.channel_worktreesOrderByWithRelationInput | Prisma.channel_worktreesOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.channel_worktreesWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` channel_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` channel_worktrees.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned channel_worktrees
  **/
  _count?: true | Channel_worktreesCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Channel_worktreesAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Channel_worktreesSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Channel_worktreesMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Channel_worktreesMaxAggregateInputType
}

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




export type channel_worktreesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.channel_worktreesWhereInput
  orderBy?: Prisma.channel_worktreesOrderByWithAggregationInput | Prisma.channel_worktreesOrderByWithAggregationInput[]
  by: Prisma.Channel_worktreesScalarFieldEnum[] | Prisma.Channel_worktreesScalarFieldEnum
  having?: Prisma.channel_worktreesScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Channel_worktreesCountAggregateInputType | true
  _avg?: Channel_worktreesAvgAggregateInputType
  _sum?: Channel_worktreesSumAggregateInputType
  _min?: Channel_worktreesMinAggregateInputType
  _max?: Channel_worktreesMaxAggregateInputType
}

export type Channel_worktreesGroupByOutputType = {
  channel_id: string
  enabled: number
  created_at: Date | null
  updated_at: Date | null
  _count: Channel_worktreesCountAggregateOutputType | null
  _avg: Channel_worktreesAvgAggregateOutputType | null
  _sum: Channel_worktreesSumAggregateOutputType | null
  _min: Channel_worktreesMinAggregateOutputType | null
  _max: Channel_worktreesMaxAggregateOutputType | null
}

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



export type channel_worktreesWhereInput = {
  AND?: Prisma.channel_worktreesWhereInput | Prisma.channel_worktreesWhereInput[]
  OR?: Prisma.channel_worktreesWhereInput[]
  NOT?: Prisma.channel_worktreesWhereInput | Prisma.channel_worktreesWhereInput[]
  channel_id?: Prisma.StringFilter<"channel_worktrees"> | string
  enabled?: Prisma.IntFilter<"channel_worktrees"> | number
  created_at?: Prisma.DateTimeNullableFilter<"channel_worktrees"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"channel_worktrees"> | Date | string | null
  channel?: Prisma.XOR<Prisma.Channel_directoriesScalarRelationFilter, Prisma.channel_directoriesWhereInput>
}

export type channel_worktreesOrderByWithRelationInput = {
  channel_id?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  channel?: Prisma.channel_directoriesOrderByWithRelationInput
}

export type channel_worktreesWhereUniqueInput = Prisma.AtLeast<{
  channel_id?: string
  AND?: Prisma.channel_worktreesWhereInput | Prisma.channel_worktreesWhereInput[]
  OR?: Prisma.channel_worktreesWhereInput[]
  NOT?: Prisma.channel_worktreesWhereInput | Prisma.channel_worktreesWhereInput[]
  enabled?: Prisma.IntFilter<"channel_worktrees"> | number
  created_at?: Prisma.DateTimeNullableFilter<"channel_worktrees"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"channel_worktrees"> | Date | string | null
  channel?: Prisma.XOR<Prisma.Channel_directoriesScalarRelationFilter, Prisma.channel_directoriesWhereInput>
}, "channel_id">

export type channel_worktreesOrderByWithAggregationInput = {
  channel_id?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.channel_worktreesCountOrderByAggregateInput
  _avg?: Prisma.channel_worktreesAvgOrderByAggregateInput
  _max?: Prisma.channel_worktreesMaxOrderByAggregateInput
  _min?: Prisma.channel_worktreesMinOrderByAggregateInput
  _sum?: Prisma.channel_worktreesSumOrderByAggregateInput
}

export type channel_worktreesScalarWhereWithAggregatesInput = {
  AND?: Prisma.channel_worktreesScalarWhereWithAggregatesInput | Prisma.channel_worktreesScalarWhereWithAggregatesInput[]
  OR?: Prisma.channel_worktreesScalarWhereWithAggregatesInput[]
  NOT?: Prisma.channel_worktreesScalarWhereWithAggregatesInput | Prisma.channel_worktreesScalarWhereWithAggregatesInput[]
  channel_id?: Prisma.StringWithAggregatesFilter<"channel_worktrees"> | string
  enabled?: Prisma.IntWithAggregatesFilter<"channel_worktrees"> | number
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"channel_worktrees"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableWithAggregatesFilter<"channel_worktrees"> | Date | string | null
}

export type channel_worktreesCreateInput = {
  enabled?: number
  created_at?: Date | string | null
  updated_at?: Date | string | null
  channel: Prisma.channel_directoriesCreateNestedOneWithoutChannel_worktreeInput
}

export type channel_worktreesUncheckedCreateInput = {
  channel_id: string
  enabled?: number
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type channel_worktreesUpdateInput = {
  enabled?: Prisma.IntFieldUpdateOperationsInput | number
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel?: Prisma.channel_directoriesUpdateOneRequiredWithoutChannel_worktreeNestedInput
}

export type channel_worktreesUncheckedUpdateInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.IntFieldUpdateOperationsInput | number
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type channel_worktreesCreateManyInput = {
  channel_id: string
  enabled?: number
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type channel_worktreesUpdateManyMutationInput = {
  enabled?: Prisma.IntFieldUpdateOperationsInput | number
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type channel_worktreesUncheckedUpdateManyInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.IntFieldUpdateOperationsInput | number
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type Channel_worktreesNullableScalarRelationFilter = {
  is?: Prisma.channel_worktreesWhereInput | null
  isNot?: Prisma.channel_worktreesWhereInput | null
}

export type channel_worktreesCountOrderByAggregateInput = {
  channel_id?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type channel_worktreesAvgOrderByAggregateInput = {
  enabled?: Prisma.SortOrder
}

export type channel_worktreesMaxOrderByAggregateInput = {
  channel_id?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type channel_worktreesMinOrderByAggregateInput = {
  channel_id?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type channel_worktreesSumOrderByAggregateInput = {
  enabled?: Prisma.SortOrder
}

export type channel_worktreesCreateNestedOneWithoutChannelInput = {
  create?: Prisma.XOR<Prisma.channel_worktreesCreateWithoutChannelInput, Prisma.channel_worktreesUncheckedCreateWithoutChannelInput>
  connectOrCreate?: Prisma.channel_worktreesCreateOrConnectWithoutChannelInput
  connect?: Prisma.channel_worktreesWhereUniqueInput
}

export type channel_worktreesUncheckedCreateNestedOneWithoutChannelInput = {
  create?: Prisma.XOR<Prisma.channel_worktreesCreateWithoutChannelInput, Prisma.channel_worktreesUncheckedCreateWithoutChannelInput>
  connectOrCreate?: Prisma.channel_worktreesCreateOrConnectWithoutChannelInput
  connect?: Prisma.channel_worktreesWhereUniqueInput
}

export type channel_worktreesUpdateOneWithoutChannelNestedInput = {
  create?: Prisma.XOR<Prisma.channel_worktreesCreateWithoutChannelInput, Prisma.channel_worktreesUncheckedCreateWithoutChannelInput>
  connectOrCreate?: Prisma.channel_worktreesCreateOrConnectWithoutChannelInput
  upsert?: Prisma.channel_worktreesUpsertWithoutChannelInput
  disconnect?: Prisma.channel_worktreesWhereInput | boolean
  delete?: Prisma.channel_worktreesWhereInput | boolean
  connect?: Prisma.channel_worktreesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.channel_worktreesUpdateToOneWithWhereWithoutChannelInput, Prisma.channel_worktreesUpdateWithoutChannelInput>, Prisma.channel_worktreesUncheckedUpdateWithoutChannelInput>
}

export type channel_worktreesUncheckedUpdateOneWithoutChannelNestedInput = {
  create?: Prisma.XOR<Prisma.channel_worktreesCreateWithoutChannelInput, Prisma.channel_worktreesUncheckedCreateWithoutChannelInput>
  connectOrCreate?: Prisma.channel_worktreesCreateOrConnectWithoutChannelInput
  upsert?: Prisma.channel_worktreesUpsertWithoutChannelInput
  disconnect?: Prisma.channel_worktreesWhereInput | boolean
  delete?: Prisma.channel_worktreesWhereInput | boolean
  connect?: Prisma.channel_worktreesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.channel_worktreesUpdateToOneWithWhereWithoutChannelInput, Prisma.channel_worktreesUpdateWithoutChannelInput>, Prisma.channel_worktreesUncheckedUpdateWithoutChannelInput>
}

export type channel_worktreesCreateWithoutChannelInput = {
  enabled?: number
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type channel_worktreesUncheckedCreateWithoutChannelInput = {
  enabled?: number
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type channel_worktreesCreateOrConnectWithoutChannelInput = {
  where: Prisma.channel_worktreesWhereUniqueInput
  create: Prisma.XOR<Prisma.channel_worktreesCreateWithoutChannelInput, Prisma.channel_worktreesUncheckedCreateWithoutChannelInput>
}

export type channel_worktreesUpsertWithoutChannelInput = {
  update: Prisma.XOR<Prisma.channel_worktreesUpdateWithoutChannelInput, Prisma.channel_worktreesUncheckedUpdateWithoutChannelInput>
  create: Prisma.XOR<Prisma.channel_worktreesCreateWithoutChannelInput, Prisma.channel_worktreesUncheckedCreateWithoutChannelInput>
  where?: Prisma.channel_worktreesWhereInput
}

export type channel_worktreesUpdateToOneWithWhereWithoutChannelInput = {
  where?: Prisma.channel_worktreesWhereInput
  data: Prisma.XOR<Prisma.channel_worktreesUpdateWithoutChannelInput, Prisma.channel_worktreesUncheckedUpdateWithoutChannelInput>
}

export type channel_worktreesUpdateWithoutChannelInput = {
  enabled?: Prisma.IntFieldUpdateOperationsInput | number
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type channel_worktreesUncheckedUpdateWithoutChannelInput = {
  enabled?: Prisma.IntFieldUpdateOperationsInput | number
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type channel_worktreesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  channel_id?: boolean
  enabled?: boolean
  created_at?: boolean
  updated_at?: boolean
  channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["channel_worktrees"]>

export type channel_worktreesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  channel_id?: boolean
  enabled?: boolean
  created_at?: boolean
  updated_at?: boolean
  channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["channel_worktrees"]>

export type channel_worktreesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  channel_id?: boolean
  enabled?: boolean
  created_at?: boolean
  updated_at?: boolean
  channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["channel_worktrees"]>

export type channel_worktreesSelectScalar = {
  channel_id?: boolean
  enabled?: boolean
  created_at?: boolean
  updated_at?: boolean
}

export type channel_worktreesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"channel_id" | "enabled" | "created_at" | "updated_at", ExtArgs["result"]["channel_worktrees"]>
export type channel_worktreesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
}
export type channel_worktreesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
}
export type channel_worktreesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
}

export type $channel_worktreesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "channel_worktrees"
  objects: {
    channel: Prisma.$channel_directoriesPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    channel_id: string
    enabled: number
    created_at: Date | null
    updated_at: Date | null
  }, ExtArgs["result"]["channel_worktrees"]>
  composites: {}
}

export type channel_worktreesGetPayload<S extends boolean | null | undefined | channel_worktreesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$channel_worktreesPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for channel_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__channel_worktreesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  channel<T extends Prisma.channel_directoriesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.channel_directoriesDefaultArgs<ExtArgs>>): Prisma.Prisma__channel_directoriesClient<runtime.Types.Result.GetResult<Prisma.$channel_directoriesPayload<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 channel_worktrees model
 */
export interface channel_worktreesFieldRefs {
  readonly channel_id: Prisma.FieldRef<"channel_worktrees", 'String'>
  readonly enabled: Prisma.FieldRef<"channel_worktrees", 'Int'>
  readonly created_at: Prisma.FieldRef<"channel_worktrees", 'DateTime'>
  readonly updated_at: Prisma.FieldRef<"channel_worktrees", 'DateTime'>
}
    

// Custom InputTypes
/**
 * channel_worktrees findUnique
 */
export type channel_worktreesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_worktrees
   */
  select?: Prisma.channel_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_worktrees
   */
  omit?: Prisma.channel_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_worktreesInclude<ExtArgs> | null
  /**
   * Filter, which channel_worktrees to fetch.
   */
  where: Prisma.channel_worktreesWhereUniqueInput
}

/**
 * channel_worktrees findUniqueOrThrow
 */
export type channel_worktreesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_worktrees
   */
  select?: Prisma.channel_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_worktrees
   */
  omit?: Prisma.channel_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_worktreesInclude<ExtArgs> | null
  /**
   * Filter, which channel_worktrees to fetch.
   */
  where: Prisma.channel_worktreesWhereUniqueInput
}

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

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

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

/**
 * channel_worktrees create
 */
export type channel_worktreesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_worktrees
   */
  select?: Prisma.channel_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_worktrees
   */
  omit?: Prisma.channel_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_worktreesInclude<ExtArgs> | null
  /**
   * The data needed to create a channel_worktrees.
   */
  data: Prisma.XOR<Prisma.channel_worktreesCreateInput, Prisma.channel_worktreesUncheckedCreateInput>
}

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

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

/**
 * channel_worktrees update
 */
export type channel_worktreesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_worktrees
   */
  select?: Prisma.channel_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_worktrees
   */
  omit?: Prisma.channel_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_worktreesInclude<ExtArgs> | null
  /**
   * The data needed to update a channel_worktrees.
   */
  data: Prisma.XOR<Prisma.channel_worktreesUpdateInput, Prisma.channel_worktreesUncheckedUpdateInput>
  /**
   * Choose, which channel_worktrees to update.
   */
  where: Prisma.channel_worktreesWhereUniqueInput
}

/**
 * channel_worktrees updateMany
 */
export type channel_worktreesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update channel_worktrees.
   */
  data: Prisma.XOR<Prisma.channel_worktreesUpdateManyMutationInput, Prisma.channel_worktreesUncheckedUpdateManyInput>
  /**
   * Filter which channel_worktrees to update
   */
  where?: Prisma.channel_worktreesWhereInput
  /**
   * Limit how many channel_worktrees to update.
   */
  limit?: number
}

/**
 * channel_worktrees updateManyAndReturn
 */
export type channel_worktreesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_worktrees
   */
  select?: Prisma.channel_worktreesSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the channel_worktrees
   */
  omit?: Prisma.channel_worktreesOmit<ExtArgs> | null
  /**
   * The data used to update channel_worktrees.
   */
  data: Prisma.XOR<Prisma.channel_worktreesUpdateManyMutationInput, Prisma.channel_worktreesUncheckedUpdateManyInput>
  /**
   * Filter which channel_worktrees to update
   */
  where?: Prisma.channel_worktreesWhereInput
  /**
   * Limit how many channel_worktrees to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_worktreesIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * channel_worktrees upsert
 */
export type channel_worktreesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_worktrees
   */
  select?: Prisma.channel_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_worktrees
   */
  omit?: Prisma.channel_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_worktreesInclude<ExtArgs> | null
  /**
   * The filter to search for the channel_worktrees to update in case it exists.
   */
  where: Prisma.channel_worktreesWhereUniqueInput
  /**
   * In case the channel_worktrees found by the `where` argument doesn't exist, create a new channel_worktrees with this data.
   */
  create: Prisma.XOR<Prisma.channel_worktreesCreateInput, Prisma.channel_worktreesUncheckedCreateInput>
  /**
   * In case the channel_worktrees was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.channel_worktreesUpdateInput, Prisma.channel_worktreesUncheckedUpdateInput>
}

/**
 * channel_worktrees delete
 */
export type channel_worktreesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_worktrees
   */
  select?: Prisma.channel_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_worktrees
   */
  omit?: Prisma.channel_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_worktreesInclude<ExtArgs> | null
  /**
   * Filter which channel_worktrees to delete.
   */
  where: Prisma.channel_worktreesWhereUniqueInput
}

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

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