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

/**
 * Model gantt_template
 * 
 */
export type gantt_templateModel = runtime.Types.Result.DefaultSelection<Prisma.$gantt_templatePayload>

export type AggregateGantt_template = {
  _count: Gantt_templateCountAggregateOutputType | null
  _avg: Gantt_templateAvgAggregateOutputType | null
  _sum: Gantt_templateSumAggregateOutputType | null
  _min: Gantt_templateMinAggregateOutputType | null
  _max: Gantt_templateMaxAggregateOutputType | null
}

export type Gantt_templateAvgAggregateOutputType = {
  id: number | null
}

export type Gantt_templateSumAggregateOutputType = {
  id: number | null
}

export type Gantt_templateMinAggregateOutputType = {
  id: number | null
  name: string | null
  gantt: string | null
}

export type Gantt_templateMaxAggregateOutputType = {
  id: number | null
  name: string | null
  gantt: string | null
}

export type Gantt_templateCountAggregateOutputType = {
  id: number
  name: number
  gantt: number
  _all: number
}


export type Gantt_templateAvgAggregateInputType = {
  id?: true
}

export type Gantt_templateSumAggregateInputType = {
  id?: true
}

export type Gantt_templateMinAggregateInputType = {
  id?: true
  name?: true
  gantt?: true
}

export type Gantt_templateMaxAggregateInputType = {
  id?: true
  name?: true
  gantt?: true
}

export type Gantt_templateCountAggregateInputType = {
  id?: true
  name?: true
  gantt?: true
  _all?: true
}

export type Gantt_templateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which gantt_template to aggregate.
   */
  where?: Prisma.gantt_templateWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of gantt_templates to fetch.
   */
  orderBy?: Prisma.gantt_templateOrderByWithRelationInput | Prisma.gantt_templateOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.gantt_templateWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` gantt_templates 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` gantt_templates.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned gantt_templates
  **/
  _count?: true | Gantt_templateCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Gantt_templateAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Gantt_templateSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Gantt_templateMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Gantt_templateMaxAggregateInputType
}

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




export type gantt_templateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.gantt_templateWhereInput
  orderBy?: Prisma.gantt_templateOrderByWithAggregationInput | Prisma.gantt_templateOrderByWithAggregationInput[]
  by: Prisma.Gantt_templateScalarFieldEnum[] | Prisma.Gantt_templateScalarFieldEnum
  having?: Prisma.gantt_templateScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Gantt_templateCountAggregateInputType | true
  _avg?: Gantt_templateAvgAggregateInputType
  _sum?: Gantt_templateSumAggregateInputType
  _min?: Gantt_templateMinAggregateInputType
  _max?: Gantt_templateMaxAggregateInputType
}

export type Gantt_templateGroupByOutputType = {
  id: number
  name: string | null
  gantt: string
  _count: Gantt_templateCountAggregateOutputType | null
  _avg: Gantt_templateAvgAggregateOutputType | null
  _sum: Gantt_templateSumAggregateOutputType | null
  _min: Gantt_templateMinAggregateOutputType | null
  _max: Gantt_templateMaxAggregateOutputType | null
}

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



export type gantt_templateWhereInput = {
  AND?: Prisma.gantt_templateWhereInput | Prisma.gantt_templateWhereInput[]
  OR?: Prisma.gantt_templateWhereInput[]
  NOT?: Prisma.gantt_templateWhereInput | Prisma.gantt_templateWhereInput[]
  id?: Prisma.IntFilter<"gantt_template"> | number
  name?: Prisma.StringNullableFilter<"gantt_template"> | string | null
  gantt?: Prisma.StringFilter<"gantt_template"> | string
}

export type gantt_templateOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrderInput | Prisma.SortOrder
  gantt?: Prisma.SortOrder
  _relevance?: Prisma.gantt_templateOrderByRelevanceInput
}

export type gantt_templateWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.gantt_templateWhereInput | Prisma.gantt_templateWhereInput[]
  OR?: Prisma.gantt_templateWhereInput[]
  NOT?: Prisma.gantt_templateWhereInput | Prisma.gantt_templateWhereInput[]
  name?: Prisma.StringNullableFilter<"gantt_template"> | string | null
  gantt?: Prisma.StringFilter<"gantt_template"> | string
}, "id">

export type gantt_templateOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrderInput | Prisma.SortOrder
  gantt?: Prisma.SortOrder
  _count?: Prisma.gantt_templateCountOrderByAggregateInput
  _avg?: Prisma.gantt_templateAvgOrderByAggregateInput
  _max?: Prisma.gantt_templateMaxOrderByAggregateInput
  _min?: Prisma.gantt_templateMinOrderByAggregateInput
  _sum?: Prisma.gantt_templateSumOrderByAggregateInput
}

export type gantt_templateScalarWhereWithAggregatesInput = {
  AND?: Prisma.gantt_templateScalarWhereWithAggregatesInput | Prisma.gantt_templateScalarWhereWithAggregatesInput[]
  OR?: Prisma.gantt_templateScalarWhereWithAggregatesInput[]
  NOT?: Prisma.gantt_templateScalarWhereWithAggregatesInput | Prisma.gantt_templateScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"gantt_template"> | number
  name?: Prisma.StringNullableWithAggregatesFilter<"gantt_template"> | string | null
  gantt?: Prisma.StringWithAggregatesFilter<"gantt_template"> | string
}

export type gantt_templateCreateInput = {
  name?: string | null
  gantt: string
}

export type gantt_templateUncheckedCreateInput = {
  id?: number
  name?: string | null
  gantt: string
}

export type gantt_templateUpdateInput = {
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  gantt?: Prisma.StringFieldUpdateOperationsInput | string
}

export type gantt_templateUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  gantt?: Prisma.StringFieldUpdateOperationsInput | string
}

export type gantt_templateCreateManyInput = {
  id?: number
  name?: string | null
  gantt: string
}

export type gantt_templateUpdateManyMutationInput = {
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  gantt?: Prisma.StringFieldUpdateOperationsInput | string
}

export type gantt_templateUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  gantt?: Prisma.StringFieldUpdateOperationsInput | string
}

export type gantt_templateOrderByRelevanceInput = {
  fields: Prisma.gantt_templateOrderByRelevanceFieldEnum | Prisma.gantt_templateOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type gantt_templateCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  gantt?: Prisma.SortOrder
}

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

export type gantt_templateMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  gantt?: Prisma.SortOrder
}

export type gantt_templateMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  gantt?: Prisma.SortOrder
}

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



export type gantt_templateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  gantt?: boolean
}, ExtArgs["result"]["gantt_template"]>



export type gantt_templateSelectScalar = {
  id?: boolean
  name?: boolean
  gantt?: boolean
}

export type gantt_templateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "gantt", ExtArgs["result"]["gantt_template"]>

export type $gantt_templatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "gantt_template"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    name: string | null
    gantt: string
  }, ExtArgs["result"]["gantt_template"]>
  composites: {}
}

export type gantt_templateGetPayload<S extends boolean | null | undefined | gantt_templateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$gantt_templatePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for gantt_template.
 * 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__gantt_templateClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  /**
   * 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 gantt_template model
 */
export interface gantt_templateFieldRefs {
  readonly id: Prisma.FieldRef<"gantt_template", 'Int'>
  readonly name: Prisma.FieldRef<"gantt_template", 'String'>
  readonly gantt: Prisma.FieldRef<"gantt_template", 'String'>
}
    

// Custom InputTypes
/**
 * gantt_template findUnique
 */
export type gantt_templateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the gantt_template
   */
  select?: Prisma.gantt_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the gantt_template
   */
  omit?: Prisma.gantt_templateOmit<ExtArgs> | null
  /**
   * Filter, which gantt_template to fetch.
   */
  where: Prisma.gantt_templateWhereUniqueInput
}

/**
 * gantt_template findUniqueOrThrow
 */
export type gantt_templateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the gantt_template
   */
  select?: Prisma.gantt_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the gantt_template
   */
  omit?: Prisma.gantt_templateOmit<ExtArgs> | null
  /**
   * Filter, which gantt_template to fetch.
   */
  where: Prisma.gantt_templateWhereUniqueInput
}

/**
 * gantt_template findFirst
 */
export type gantt_templateFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the gantt_template
   */
  select?: Prisma.gantt_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the gantt_template
   */
  omit?: Prisma.gantt_templateOmit<ExtArgs> | null
  /**
   * Filter, which gantt_template to fetch.
   */
  where?: Prisma.gantt_templateWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of gantt_templates to fetch.
   */
  orderBy?: Prisma.gantt_templateOrderByWithRelationInput | Prisma.gantt_templateOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for gantt_templates.
   */
  cursor?: Prisma.gantt_templateWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` gantt_templates 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` gantt_templates.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of gantt_templates.
   */
  distinct?: Prisma.Gantt_templateScalarFieldEnum | Prisma.Gantt_templateScalarFieldEnum[]
}

/**
 * gantt_template findFirstOrThrow
 */
export type gantt_templateFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the gantt_template
   */
  select?: Prisma.gantt_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the gantt_template
   */
  omit?: Prisma.gantt_templateOmit<ExtArgs> | null
  /**
   * Filter, which gantt_template to fetch.
   */
  where?: Prisma.gantt_templateWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of gantt_templates to fetch.
   */
  orderBy?: Prisma.gantt_templateOrderByWithRelationInput | Prisma.gantt_templateOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for gantt_templates.
   */
  cursor?: Prisma.gantt_templateWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` gantt_templates 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` gantt_templates.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of gantt_templates.
   */
  distinct?: Prisma.Gantt_templateScalarFieldEnum | Prisma.Gantt_templateScalarFieldEnum[]
}

/**
 * gantt_template findMany
 */
export type gantt_templateFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the gantt_template
   */
  select?: Prisma.gantt_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the gantt_template
   */
  omit?: Prisma.gantt_templateOmit<ExtArgs> | null
  /**
   * Filter, which gantt_templates to fetch.
   */
  where?: Prisma.gantt_templateWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of gantt_templates to fetch.
   */
  orderBy?: Prisma.gantt_templateOrderByWithRelationInput | Prisma.gantt_templateOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing gantt_templates.
   */
  cursor?: Prisma.gantt_templateWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` gantt_templates 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` gantt_templates.
   */
  skip?: number
  distinct?: Prisma.Gantt_templateScalarFieldEnum | Prisma.Gantt_templateScalarFieldEnum[]
}

/**
 * gantt_template create
 */
export type gantt_templateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the gantt_template
   */
  select?: Prisma.gantt_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the gantt_template
   */
  omit?: Prisma.gantt_templateOmit<ExtArgs> | null
  /**
   * The data needed to create a gantt_template.
   */
  data: Prisma.XOR<Prisma.gantt_templateCreateInput, Prisma.gantt_templateUncheckedCreateInput>
}

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

/**
 * gantt_template update
 */
export type gantt_templateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the gantt_template
   */
  select?: Prisma.gantt_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the gantt_template
   */
  omit?: Prisma.gantt_templateOmit<ExtArgs> | null
  /**
   * The data needed to update a gantt_template.
   */
  data: Prisma.XOR<Prisma.gantt_templateUpdateInput, Prisma.gantt_templateUncheckedUpdateInput>
  /**
   * Choose, which gantt_template to update.
   */
  where: Prisma.gantt_templateWhereUniqueInput
}

/**
 * gantt_template updateMany
 */
export type gantt_templateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update gantt_templates.
   */
  data: Prisma.XOR<Prisma.gantt_templateUpdateManyMutationInput, Prisma.gantt_templateUncheckedUpdateManyInput>
  /**
   * Filter which gantt_templates to update
   */
  where?: Prisma.gantt_templateWhereInput
  /**
   * Limit how many gantt_templates to update.
   */
  limit?: number
}

/**
 * gantt_template upsert
 */
export type gantt_templateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the gantt_template
   */
  select?: Prisma.gantt_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the gantt_template
   */
  omit?: Prisma.gantt_templateOmit<ExtArgs> | null
  /**
   * The filter to search for the gantt_template to update in case it exists.
   */
  where: Prisma.gantt_templateWhereUniqueInput
  /**
   * In case the gantt_template found by the `where` argument doesn't exist, create a new gantt_template with this data.
   */
  create: Prisma.XOR<Prisma.gantt_templateCreateInput, Prisma.gantt_templateUncheckedCreateInput>
  /**
   * In case the gantt_template was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.gantt_templateUpdateInput, Prisma.gantt_templateUncheckedUpdateInput>
}

/**
 * gantt_template delete
 */
export type gantt_templateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the gantt_template
   */
  select?: Prisma.gantt_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the gantt_template
   */
  omit?: Prisma.gantt_templateOmit<ExtArgs> | null
  /**
   * Filter which gantt_template to delete.
   */
  where: Prisma.gantt_templateWhereUniqueInput
}

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

/**
 * gantt_template without action
 */
export type gantt_templateDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the gantt_template
   */
  select?: Prisma.gantt_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the gantt_template
   */
  omit?: Prisma.gantt_templateOmit<ExtArgs> | null
}
