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

export type AggregateFibre_olt = {
  _count: Fibre_oltCountAggregateOutputType | null
  _avg: Fibre_oltAvgAggregateOutputType | null
  _sum: Fibre_oltSumAggregateOutputType | null
  _min: Fibre_oltMinAggregateOutputType | null
  _max: Fibre_oltMaxAggregateOutputType | null
}

export type Fibre_oltAvgAggregateOutputType = {
  id: number | null
  tech: number | null
}

export type Fibre_oltSumAggregateOutputType = {
  id: number | null
  tech: number | null
}

export type Fibre_oltMinAggregateOutputType = {
  id: number | null
  tech: number | null
  ip: string | null
  description: string | null
}

export type Fibre_oltMaxAggregateOutputType = {
  id: number | null
  tech: number | null
  ip: string | null
  description: string | null
}

export type Fibre_oltCountAggregateOutputType = {
  id: number
  tech: number
  ip: number
  description: number
  _all: number
}


export type Fibre_oltAvgAggregateInputType = {
  id?: true
  tech?: true
}

export type Fibre_oltSumAggregateInputType = {
  id?: true
  tech?: true
}

export type Fibre_oltMinAggregateInputType = {
  id?: true
  tech?: true
  ip?: true
  description?: true
}

export type Fibre_oltMaxAggregateInputType = {
  id?: true
  tech?: true
  ip?: true
  description?: true
}

export type Fibre_oltCountAggregateInputType = {
  id?: true
  tech?: true
  ip?: true
  description?: true
  _all?: true
}

export type Fibre_oltAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which fibre_olt to aggregate.
   */
  where?: Prisma.fibre_oltWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of fibre_olts to fetch.
   */
  orderBy?: Prisma.fibre_oltOrderByWithRelationInput | Prisma.fibre_oltOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.fibre_oltWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` fibre_olts 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` fibre_olts.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned fibre_olts
  **/
  _count?: true | Fibre_oltCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Fibre_oltAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Fibre_oltSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Fibre_oltMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Fibre_oltMaxAggregateInputType
}

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




export type fibre_oltGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.fibre_oltWhereInput
  orderBy?: Prisma.fibre_oltOrderByWithAggregationInput | Prisma.fibre_oltOrderByWithAggregationInput[]
  by: Prisma.Fibre_oltScalarFieldEnum[] | Prisma.Fibre_oltScalarFieldEnum
  having?: Prisma.fibre_oltScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Fibre_oltCountAggregateInputType | true
  _avg?: Fibre_oltAvgAggregateInputType
  _sum?: Fibre_oltSumAggregateInputType
  _min?: Fibre_oltMinAggregateInputType
  _max?: Fibre_oltMaxAggregateInputType
}

export type Fibre_oltGroupByOutputType = {
  id: number
  tech: number
  ip: string
  description: string
  _count: Fibre_oltCountAggregateOutputType | null
  _avg: Fibre_oltAvgAggregateOutputType | null
  _sum: Fibre_oltSumAggregateOutputType | null
  _min: Fibre_oltMinAggregateOutputType | null
  _max: Fibre_oltMaxAggregateOutputType | null
}

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



export type fibre_oltWhereInput = {
  AND?: Prisma.fibre_oltWhereInput | Prisma.fibre_oltWhereInput[]
  OR?: Prisma.fibre_oltWhereInput[]
  NOT?: Prisma.fibre_oltWhereInput | Prisma.fibre_oltWhereInput[]
  id?: Prisma.IntFilter<"fibre_olt"> | number
  tech?: Prisma.IntFilter<"fibre_olt"> | number
  ip?: Prisma.StringFilter<"fibre_olt"> | string
  description?: Prisma.StringFilter<"fibre_olt"> | string
}

export type fibre_oltOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  tech?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  description?: Prisma.SortOrder
  _relevance?: Prisma.fibre_oltOrderByRelevanceInput
}

export type fibre_oltWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.fibre_oltWhereInput | Prisma.fibre_oltWhereInput[]
  OR?: Prisma.fibre_oltWhereInput[]
  NOT?: Prisma.fibre_oltWhereInput | Prisma.fibre_oltWhereInput[]
  tech?: Prisma.IntFilter<"fibre_olt"> | number
  ip?: Prisma.StringFilter<"fibre_olt"> | string
  description?: Prisma.StringFilter<"fibre_olt"> | string
}, "id">

export type fibre_oltOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  tech?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  description?: Prisma.SortOrder
  _count?: Prisma.fibre_oltCountOrderByAggregateInput
  _avg?: Prisma.fibre_oltAvgOrderByAggregateInput
  _max?: Prisma.fibre_oltMaxOrderByAggregateInput
  _min?: Prisma.fibre_oltMinOrderByAggregateInput
  _sum?: Prisma.fibre_oltSumOrderByAggregateInput
}

export type fibre_oltScalarWhereWithAggregatesInput = {
  AND?: Prisma.fibre_oltScalarWhereWithAggregatesInput | Prisma.fibre_oltScalarWhereWithAggregatesInput[]
  OR?: Prisma.fibre_oltScalarWhereWithAggregatesInput[]
  NOT?: Prisma.fibre_oltScalarWhereWithAggregatesInput | Prisma.fibre_oltScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"fibre_olt"> | number
  tech?: Prisma.IntWithAggregatesFilter<"fibre_olt"> | number
  ip?: Prisma.StringWithAggregatesFilter<"fibre_olt"> | string
  description?: Prisma.StringWithAggregatesFilter<"fibre_olt"> | string
}

export type fibre_oltCreateInput = {
  tech: number
  ip: string
  description: string
}

export type fibre_oltUncheckedCreateInput = {
  id?: number
  tech: number
  ip: string
  description: string
}

export type fibre_oltUpdateInput = {
  tech?: Prisma.IntFieldUpdateOperationsInput | number
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
}

export type fibre_oltUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  tech?: Prisma.IntFieldUpdateOperationsInput | number
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
}

export type fibre_oltCreateManyInput = {
  id?: number
  tech: number
  ip: string
  description: string
}

export type fibre_oltUpdateManyMutationInput = {
  tech?: Prisma.IntFieldUpdateOperationsInput | number
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
}

export type fibre_oltUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  tech?: Prisma.IntFieldUpdateOperationsInput | number
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
}

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

export type fibre_oltCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tech?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  description?: Prisma.SortOrder
}

export type fibre_oltAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tech?: Prisma.SortOrder
}

export type fibre_oltMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tech?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  description?: Prisma.SortOrder
}

export type fibre_oltMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tech?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  description?: Prisma.SortOrder
}

export type fibre_oltSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tech?: Prisma.SortOrder
}



export type fibre_oltSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  tech?: boolean
  ip?: boolean
  description?: boolean
}, ExtArgs["result"]["fibre_olt"]>



export type fibre_oltSelectScalar = {
  id?: boolean
  tech?: boolean
  ip?: boolean
  description?: boolean
}

export type fibre_oltOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tech" | "ip" | "description", ExtArgs["result"]["fibre_olt"]>

export type $fibre_oltPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "fibre_olt"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    tech: number
    ip: string
    description: string
  }, ExtArgs["result"]["fibre_olt"]>
  composites: {}
}

export type fibre_oltGetPayload<S extends boolean | null | undefined | fibre_oltDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$fibre_oltPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for fibre_olt.
 * 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__fibre_oltClient<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 fibre_olt model
 */
export interface fibre_oltFieldRefs {
  readonly id: Prisma.FieldRef<"fibre_olt", 'Int'>
  readonly tech: Prisma.FieldRef<"fibre_olt", 'Int'>
  readonly ip: Prisma.FieldRef<"fibre_olt", 'String'>
  readonly description: Prisma.FieldRef<"fibre_olt", 'String'>
}
    

// Custom InputTypes
/**
 * fibre_olt findUnique
 */
export type fibre_oltFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the fibre_olt
   */
  select?: Prisma.fibre_oltSelect<ExtArgs> | null
  /**
   * Omit specific fields from the fibre_olt
   */
  omit?: Prisma.fibre_oltOmit<ExtArgs> | null
  /**
   * Filter, which fibre_olt to fetch.
   */
  where: Prisma.fibre_oltWhereUniqueInput
}

/**
 * fibre_olt findUniqueOrThrow
 */
export type fibre_oltFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the fibre_olt
   */
  select?: Prisma.fibre_oltSelect<ExtArgs> | null
  /**
   * Omit specific fields from the fibre_olt
   */
  omit?: Prisma.fibre_oltOmit<ExtArgs> | null
  /**
   * Filter, which fibre_olt to fetch.
   */
  where: Prisma.fibre_oltWhereUniqueInput
}

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

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

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

/**
 * fibre_olt create
 */
export type fibre_oltCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the fibre_olt
   */
  select?: Prisma.fibre_oltSelect<ExtArgs> | null
  /**
   * Omit specific fields from the fibre_olt
   */
  omit?: Prisma.fibre_oltOmit<ExtArgs> | null
  /**
   * The data needed to create a fibre_olt.
   */
  data: Prisma.XOR<Prisma.fibre_oltCreateInput, Prisma.fibre_oltUncheckedCreateInput>
}

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

/**
 * fibre_olt update
 */
export type fibre_oltUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the fibre_olt
   */
  select?: Prisma.fibre_oltSelect<ExtArgs> | null
  /**
   * Omit specific fields from the fibre_olt
   */
  omit?: Prisma.fibre_oltOmit<ExtArgs> | null
  /**
   * The data needed to update a fibre_olt.
   */
  data: Prisma.XOR<Prisma.fibre_oltUpdateInput, Prisma.fibre_oltUncheckedUpdateInput>
  /**
   * Choose, which fibre_olt to update.
   */
  where: Prisma.fibre_oltWhereUniqueInput
}

/**
 * fibre_olt updateMany
 */
export type fibre_oltUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update fibre_olts.
   */
  data: Prisma.XOR<Prisma.fibre_oltUpdateManyMutationInput, Prisma.fibre_oltUncheckedUpdateManyInput>
  /**
   * Filter which fibre_olts to update
   */
  where?: Prisma.fibre_oltWhereInput
  /**
   * Limit how many fibre_olts to update.
   */
  limit?: number
}

/**
 * fibre_olt upsert
 */
export type fibre_oltUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the fibre_olt
   */
  select?: Prisma.fibre_oltSelect<ExtArgs> | null
  /**
   * Omit specific fields from the fibre_olt
   */
  omit?: Prisma.fibre_oltOmit<ExtArgs> | null
  /**
   * The filter to search for the fibre_olt to update in case it exists.
   */
  where: Prisma.fibre_oltWhereUniqueInput
  /**
   * In case the fibre_olt found by the `where` argument doesn't exist, create a new fibre_olt with this data.
   */
  create: Prisma.XOR<Prisma.fibre_oltCreateInput, Prisma.fibre_oltUncheckedCreateInput>
  /**
   * In case the fibre_olt was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.fibre_oltUpdateInput, Prisma.fibre_oltUncheckedUpdateInput>
}

/**
 * fibre_olt delete
 */
export type fibre_oltDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the fibre_olt
   */
  select?: Prisma.fibre_oltSelect<ExtArgs> | null
  /**
   * Omit specific fields from the fibre_olt
   */
  omit?: Prisma.fibre_oltOmit<ExtArgs> | null
  /**
   * Filter which fibre_olt to delete.
   */
  where: Prisma.fibre_oltWhereUniqueInput
}

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

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