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

export type AggregateTicket_conge = {
  _count: Ticket_congeCountAggregateOutputType | null
  _avg: Ticket_congeAvgAggregateOutputType | null
  _sum: Ticket_congeSumAggregateOutputType | null
  _min: Ticket_congeMinAggregateOutputType | null
  _max: Ticket_congeMaxAggregateOutputType | null
}

export type Ticket_congeAvgAggregateOutputType = {
  id: number | null
  account_id: number | null
  date: number | null
  ticket_id: number | null
}

export type Ticket_congeSumAggregateOutputType = {
  id: number | null
  account_id: number | null
  date: bigint | null
  ticket_id: number | null
}

export type Ticket_congeMinAggregateOutputType = {
  id: number | null
  account_id: number | null
  name: string | null
  date: bigint | null
  desc: string | null
  ticket_id: number | null
}

export type Ticket_congeMaxAggregateOutputType = {
  id: number | null
  account_id: number | null
  name: string | null
  date: bigint | null
  desc: string | null
  ticket_id: number | null
}

export type Ticket_congeCountAggregateOutputType = {
  id: number
  account_id: number
  name: number
  date: number
  desc: number
  ticket_id: number
  _all: number
}


export type Ticket_congeAvgAggregateInputType = {
  id?: true
  account_id?: true
  date?: true
  ticket_id?: true
}

export type Ticket_congeSumAggregateInputType = {
  id?: true
  account_id?: true
  date?: true
  ticket_id?: true
}

export type Ticket_congeMinAggregateInputType = {
  id?: true
  account_id?: true
  name?: true
  date?: true
  desc?: true
  ticket_id?: true
}

export type Ticket_congeMaxAggregateInputType = {
  id?: true
  account_id?: true
  name?: true
  date?: true
  desc?: true
  ticket_id?: true
}

export type Ticket_congeCountAggregateInputType = {
  id?: true
  account_id?: true
  name?: true
  date?: true
  desc?: true
  ticket_id?: true
  _all?: true
}

export type Ticket_congeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ticket_conge to aggregate.
   */
  where?: Prisma.ticket_congeWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ticket_conges to fetch.
   */
  orderBy?: Prisma.ticket_congeOrderByWithRelationInput | Prisma.ticket_congeOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ticket_congeWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ticket_conges 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` ticket_conges.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned ticket_conges
  **/
  _count?: true | Ticket_congeCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Ticket_congeAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Ticket_congeSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Ticket_congeMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Ticket_congeMaxAggregateInputType
}

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




export type ticket_congeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ticket_congeWhereInput
  orderBy?: Prisma.ticket_congeOrderByWithAggregationInput | Prisma.ticket_congeOrderByWithAggregationInput[]
  by: Prisma.Ticket_congeScalarFieldEnum[] | Prisma.Ticket_congeScalarFieldEnum
  having?: Prisma.ticket_congeScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Ticket_congeCountAggregateInputType | true
  _avg?: Ticket_congeAvgAggregateInputType
  _sum?: Ticket_congeSumAggregateInputType
  _min?: Ticket_congeMinAggregateInputType
  _max?: Ticket_congeMaxAggregateInputType
}

export type Ticket_congeGroupByOutputType = {
  id: number
  account_id: number
  name: string
  date: bigint
  desc: string
  ticket_id: number | null
  _count: Ticket_congeCountAggregateOutputType | null
  _avg: Ticket_congeAvgAggregateOutputType | null
  _sum: Ticket_congeSumAggregateOutputType | null
  _min: Ticket_congeMinAggregateOutputType | null
  _max: Ticket_congeMaxAggregateOutputType | null
}

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



export type ticket_congeWhereInput = {
  AND?: Prisma.ticket_congeWhereInput | Prisma.ticket_congeWhereInput[]
  OR?: Prisma.ticket_congeWhereInput[]
  NOT?: Prisma.ticket_congeWhereInput | Prisma.ticket_congeWhereInput[]
  id?: Prisma.IntFilter<"ticket_conge"> | number
  account_id?: Prisma.IntFilter<"ticket_conge"> | number
  name?: Prisma.StringFilter<"ticket_conge"> | string
  date?: Prisma.BigIntFilter<"ticket_conge"> | bigint | number
  desc?: Prisma.StringFilter<"ticket_conge"> | string
  ticket_id?: Prisma.IntNullableFilter<"ticket_conge"> | number | null
}

export type ticket_congeOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  date?: Prisma.SortOrder
  desc?: Prisma.SortOrder
  ticket_id?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.ticket_congeOrderByRelevanceInput
}

export type ticket_congeWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.ticket_congeWhereInput | Prisma.ticket_congeWhereInput[]
  OR?: Prisma.ticket_congeWhereInput[]
  NOT?: Prisma.ticket_congeWhereInput | Prisma.ticket_congeWhereInput[]
  account_id?: Prisma.IntFilter<"ticket_conge"> | number
  name?: Prisma.StringFilter<"ticket_conge"> | string
  date?: Prisma.BigIntFilter<"ticket_conge"> | bigint | number
  desc?: Prisma.StringFilter<"ticket_conge"> | string
  ticket_id?: Prisma.IntNullableFilter<"ticket_conge"> | number | null
}, "id">

export type ticket_congeOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  date?: Prisma.SortOrder
  desc?: Prisma.SortOrder
  ticket_id?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.ticket_congeCountOrderByAggregateInput
  _avg?: Prisma.ticket_congeAvgOrderByAggregateInput
  _max?: Prisma.ticket_congeMaxOrderByAggregateInput
  _min?: Prisma.ticket_congeMinOrderByAggregateInput
  _sum?: Prisma.ticket_congeSumOrderByAggregateInput
}

export type ticket_congeScalarWhereWithAggregatesInput = {
  AND?: Prisma.ticket_congeScalarWhereWithAggregatesInput | Prisma.ticket_congeScalarWhereWithAggregatesInput[]
  OR?: Prisma.ticket_congeScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ticket_congeScalarWhereWithAggregatesInput | Prisma.ticket_congeScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"ticket_conge"> | number
  account_id?: Prisma.IntWithAggregatesFilter<"ticket_conge"> | number
  name?: Prisma.StringWithAggregatesFilter<"ticket_conge"> | string
  date?: Prisma.BigIntWithAggregatesFilter<"ticket_conge"> | bigint | number
  desc?: Prisma.StringWithAggregatesFilter<"ticket_conge"> | string
  ticket_id?: Prisma.IntNullableWithAggregatesFilter<"ticket_conge"> | number | null
}

export type ticket_congeCreateInput = {
  account_id: number
  name: string
  date: bigint | number
  desc: string
  ticket_id?: number | null
}

export type ticket_congeUncheckedCreateInput = {
  id?: number
  account_id: number
  name: string
  date: bigint | number
  desc: string
  ticket_id?: number | null
}

export type ticket_congeUpdateInput = {
  account_id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  desc?: Prisma.StringFieldUpdateOperationsInput | string
  ticket_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type ticket_congeUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  account_id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  desc?: Prisma.StringFieldUpdateOperationsInput | string
  ticket_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type ticket_congeCreateManyInput = {
  id?: number
  account_id: number
  name: string
  date: bigint | number
  desc: string
  ticket_id?: number | null
}

export type ticket_congeUpdateManyMutationInput = {
  account_id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  desc?: Prisma.StringFieldUpdateOperationsInput | string
  ticket_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type ticket_congeUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  account_id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  desc?: Prisma.StringFieldUpdateOperationsInput | string
  ticket_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

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

export type ticket_congeCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  date?: Prisma.SortOrder
  desc?: Prisma.SortOrder
  ticket_id?: Prisma.SortOrder
}

export type ticket_congeAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  ticket_id?: Prisma.SortOrder
}

export type ticket_congeMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  date?: Prisma.SortOrder
  desc?: Prisma.SortOrder
  ticket_id?: Prisma.SortOrder
}

export type ticket_congeMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  date?: Prisma.SortOrder
  desc?: Prisma.SortOrder
  ticket_id?: Prisma.SortOrder
}

export type ticket_congeSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  ticket_id?: Prisma.SortOrder
}



export type ticket_congeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  account_id?: boolean
  name?: boolean
  date?: boolean
  desc?: boolean
  ticket_id?: boolean
}, ExtArgs["result"]["ticket_conge"]>



export type ticket_congeSelectScalar = {
  id?: boolean
  account_id?: boolean
  name?: boolean
  date?: boolean
  desc?: boolean
  ticket_id?: boolean
}

export type ticket_congeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "name" | "date" | "desc" | "ticket_id", ExtArgs["result"]["ticket_conge"]>

export type $ticket_congePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "ticket_conge"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    account_id: number
    name: string
    date: bigint
    desc: string
    ticket_id: number | null
  }, ExtArgs["result"]["ticket_conge"]>
  composites: {}
}

export type ticket_congeGetPayload<S extends boolean | null | undefined | ticket_congeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ticket_congePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for ticket_conge.
 * 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__ticket_congeClient<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 ticket_conge model
 */
export interface ticket_congeFieldRefs {
  readonly id: Prisma.FieldRef<"ticket_conge", 'Int'>
  readonly account_id: Prisma.FieldRef<"ticket_conge", 'Int'>
  readonly name: Prisma.FieldRef<"ticket_conge", 'String'>
  readonly date: Prisma.FieldRef<"ticket_conge", 'BigInt'>
  readonly desc: Prisma.FieldRef<"ticket_conge", 'String'>
  readonly ticket_id: Prisma.FieldRef<"ticket_conge", 'Int'>
}
    

// Custom InputTypes
/**
 * ticket_conge findUnique
 */
export type ticket_congeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ticket_conge
   */
  select?: Prisma.ticket_congeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ticket_conge
   */
  omit?: Prisma.ticket_congeOmit<ExtArgs> | null
  /**
   * Filter, which ticket_conge to fetch.
   */
  where: Prisma.ticket_congeWhereUniqueInput
}

/**
 * ticket_conge findUniqueOrThrow
 */
export type ticket_congeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ticket_conge
   */
  select?: Prisma.ticket_congeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ticket_conge
   */
  omit?: Prisma.ticket_congeOmit<ExtArgs> | null
  /**
   * Filter, which ticket_conge to fetch.
   */
  where: Prisma.ticket_congeWhereUniqueInput
}

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

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

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

/**
 * ticket_conge create
 */
export type ticket_congeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ticket_conge
   */
  select?: Prisma.ticket_congeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ticket_conge
   */
  omit?: Prisma.ticket_congeOmit<ExtArgs> | null
  /**
   * The data needed to create a ticket_conge.
   */
  data: Prisma.XOR<Prisma.ticket_congeCreateInput, Prisma.ticket_congeUncheckedCreateInput>
}

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

/**
 * ticket_conge update
 */
export type ticket_congeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ticket_conge
   */
  select?: Prisma.ticket_congeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ticket_conge
   */
  omit?: Prisma.ticket_congeOmit<ExtArgs> | null
  /**
   * The data needed to update a ticket_conge.
   */
  data: Prisma.XOR<Prisma.ticket_congeUpdateInput, Prisma.ticket_congeUncheckedUpdateInput>
  /**
   * Choose, which ticket_conge to update.
   */
  where: Prisma.ticket_congeWhereUniqueInput
}

/**
 * ticket_conge updateMany
 */
export type ticket_congeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ticket_conges.
   */
  data: Prisma.XOR<Prisma.ticket_congeUpdateManyMutationInput, Prisma.ticket_congeUncheckedUpdateManyInput>
  /**
   * Filter which ticket_conges to update
   */
  where?: Prisma.ticket_congeWhereInput
  /**
   * Limit how many ticket_conges to update.
   */
  limit?: number
}

/**
 * ticket_conge upsert
 */
export type ticket_congeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ticket_conge
   */
  select?: Prisma.ticket_congeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ticket_conge
   */
  omit?: Prisma.ticket_congeOmit<ExtArgs> | null
  /**
   * The filter to search for the ticket_conge to update in case it exists.
   */
  where: Prisma.ticket_congeWhereUniqueInput
  /**
   * In case the ticket_conge found by the `where` argument doesn't exist, create a new ticket_conge with this data.
   */
  create: Prisma.XOR<Prisma.ticket_congeCreateInput, Prisma.ticket_congeUncheckedCreateInput>
  /**
   * In case the ticket_conge was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ticket_congeUpdateInput, Prisma.ticket_congeUncheckedUpdateInput>
}

/**
 * ticket_conge delete
 */
export type ticket_congeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ticket_conge
   */
  select?: Prisma.ticket_congeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ticket_conge
   */
  omit?: Prisma.ticket_congeOmit<ExtArgs> | null
  /**
   * Filter which ticket_conge to delete.
   */
  where: Prisma.ticket_congeWhereUniqueInput
}

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

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