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

export type AggregateIp_targo = {
  _count: Ip_targoCountAggregateOutputType | null
  _avg: Ip_targoAvgAggregateOutputType | null
  _sum: Ip_targoSumAggregateOutputType | null
  _min: Ip_targoMinAggregateOutputType | null
  _max: Ip_targoMaxAggregateOutputType | null
}

export type Ip_targoAvgAggregateOutputType = {
  id: number | null
  cidr: number | null
}

export type Ip_targoSumAggregateOutputType = {
  id: number | null
  cidr: number | null
}

export type Ip_targoMinAggregateOutputType = {
  id: number | null
  ip: string | null
  cidr: number | null
  comment: string | null
}

export type Ip_targoMaxAggregateOutputType = {
  id: number | null
  ip: string | null
  cidr: number | null
  comment: string | null
}

export type Ip_targoCountAggregateOutputType = {
  id: number
  ip: number
  cidr: number
  comment: number
  _all: number
}


export type Ip_targoAvgAggregateInputType = {
  id?: true
  cidr?: true
}

export type Ip_targoSumAggregateInputType = {
  id?: true
  cidr?: true
}

export type Ip_targoMinAggregateInputType = {
  id?: true
  ip?: true
  cidr?: true
  comment?: true
}

export type Ip_targoMaxAggregateInputType = {
  id?: true
  ip?: true
  cidr?: true
  comment?: true
}

export type Ip_targoCountAggregateInputType = {
  id?: true
  ip?: true
  cidr?: true
  comment?: true
  _all?: true
}

export type Ip_targoAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ip_targo to aggregate.
   */
  where?: Prisma.ip_targoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ip_targos to fetch.
   */
  orderBy?: Prisma.ip_targoOrderByWithRelationInput | Prisma.ip_targoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ip_targoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ip_targos 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` ip_targos.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned ip_targos
  **/
  _count?: true | Ip_targoCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Ip_targoAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Ip_targoSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Ip_targoMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Ip_targoMaxAggregateInputType
}

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




export type ip_targoGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ip_targoWhereInput
  orderBy?: Prisma.ip_targoOrderByWithAggregationInput | Prisma.ip_targoOrderByWithAggregationInput[]
  by: Prisma.Ip_targoScalarFieldEnum[] | Prisma.Ip_targoScalarFieldEnum
  having?: Prisma.ip_targoScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Ip_targoCountAggregateInputType | true
  _avg?: Ip_targoAvgAggregateInputType
  _sum?: Ip_targoSumAggregateInputType
  _min?: Ip_targoMinAggregateInputType
  _max?: Ip_targoMaxAggregateInputType
}

export type Ip_targoGroupByOutputType = {
  id: number
  ip: string
  cidr: number
  comment: string | null
  _count: Ip_targoCountAggregateOutputType | null
  _avg: Ip_targoAvgAggregateOutputType | null
  _sum: Ip_targoSumAggregateOutputType | null
  _min: Ip_targoMinAggregateOutputType | null
  _max: Ip_targoMaxAggregateOutputType | null
}

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



export type ip_targoWhereInput = {
  AND?: Prisma.ip_targoWhereInput | Prisma.ip_targoWhereInput[]
  OR?: Prisma.ip_targoWhereInput[]
  NOT?: Prisma.ip_targoWhereInput | Prisma.ip_targoWhereInput[]
  id?: Prisma.IntFilter<"ip_targo"> | number
  ip?: Prisma.StringFilter<"ip_targo"> | string
  cidr?: Prisma.IntFilter<"ip_targo"> | number
  comment?: Prisma.StringNullableFilter<"ip_targo"> | string | null
}

export type ip_targoOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  cidr?: Prisma.SortOrder
  comment?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.ip_targoOrderByRelevanceInput
}

export type ip_targoWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.ip_targoWhereInput | Prisma.ip_targoWhereInput[]
  OR?: Prisma.ip_targoWhereInput[]
  NOT?: Prisma.ip_targoWhereInput | Prisma.ip_targoWhereInput[]
  ip?: Prisma.StringFilter<"ip_targo"> | string
  cidr?: Prisma.IntFilter<"ip_targo"> | number
  comment?: Prisma.StringNullableFilter<"ip_targo"> | string | null
}, "id">

export type ip_targoOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  cidr?: Prisma.SortOrder
  comment?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.ip_targoCountOrderByAggregateInput
  _avg?: Prisma.ip_targoAvgOrderByAggregateInput
  _max?: Prisma.ip_targoMaxOrderByAggregateInput
  _min?: Prisma.ip_targoMinOrderByAggregateInput
  _sum?: Prisma.ip_targoSumOrderByAggregateInput
}

export type ip_targoScalarWhereWithAggregatesInput = {
  AND?: Prisma.ip_targoScalarWhereWithAggregatesInput | Prisma.ip_targoScalarWhereWithAggregatesInput[]
  OR?: Prisma.ip_targoScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ip_targoScalarWhereWithAggregatesInput | Prisma.ip_targoScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"ip_targo"> | number
  ip?: Prisma.StringWithAggregatesFilter<"ip_targo"> | string
  cidr?: Prisma.IntWithAggregatesFilter<"ip_targo"> | number
  comment?: Prisma.StringNullableWithAggregatesFilter<"ip_targo"> | string | null
}

export type ip_targoCreateInput = {
  ip: string
  cidr: number
  comment?: string | null
}

export type ip_targoUncheckedCreateInput = {
  id?: number
  ip: string
  cidr: number
  comment?: string | null
}

export type ip_targoUpdateInput = {
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  cidr?: Prisma.IntFieldUpdateOperationsInput | number
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type ip_targoUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  cidr?: Prisma.IntFieldUpdateOperationsInput | number
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type ip_targoCreateManyInput = {
  id?: number
  ip: string
  cidr: number
  comment?: string | null
}

export type ip_targoUpdateManyMutationInput = {
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  cidr?: Prisma.IntFieldUpdateOperationsInput | number
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type ip_targoUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  cidr?: Prisma.IntFieldUpdateOperationsInput | number
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

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

export type ip_targoCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  cidr?: Prisma.SortOrder
  comment?: Prisma.SortOrder
}

export type ip_targoAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  cidr?: Prisma.SortOrder
}

export type ip_targoMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  cidr?: Prisma.SortOrder
  comment?: Prisma.SortOrder
}

export type ip_targoMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  cidr?: Prisma.SortOrder
  comment?: Prisma.SortOrder
}

export type ip_targoSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  cidr?: Prisma.SortOrder
}



export type ip_targoSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  ip?: boolean
  cidr?: boolean
  comment?: boolean
}, ExtArgs["result"]["ip_targo"]>



export type ip_targoSelectScalar = {
  id?: boolean
  ip?: boolean
  cidr?: boolean
  comment?: boolean
}

export type ip_targoOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "ip" | "cidr" | "comment", ExtArgs["result"]["ip_targo"]>

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

export type ip_targoGetPayload<S extends boolean | null | undefined | ip_targoDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ip_targoPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for ip_targo.
 * 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__ip_targoClient<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 ip_targo model
 */
export interface ip_targoFieldRefs {
  readonly id: Prisma.FieldRef<"ip_targo", 'Int'>
  readonly ip: Prisma.FieldRef<"ip_targo", 'String'>
  readonly cidr: Prisma.FieldRef<"ip_targo", 'Int'>
  readonly comment: Prisma.FieldRef<"ip_targo", 'String'>
}
    

// Custom InputTypes
/**
 * ip_targo findUnique
 */
export type ip_targoFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ip_targo
   */
  select?: Prisma.ip_targoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ip_targo
   */
  omit?: Prisma.ip_targoOmit<ExtArgs> | null
  /**
   * Filter, which ip_targo to fetch.
   */
  where: Prisma.ip_targoWhereUniqueInput
}

/**
 * ip_targo findUniqueOrThrow
 */
export type ip_targoFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ip_targo
   */
  select?: Prisma.ip_targoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ip_targo
   */
  omit?: Prisma.ip_targoOmit<ExtArgs> | null
  /**
   * Filter, which ip_targo to fetch.
   */
  where: Prisma.ip_targoWhereUniqueInput
}

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

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

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

/**
 * ip_targo create
 */
export type ip_targoCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ip_targo
   */
  select?: Prisma.ip_targoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ip_targo
   */
  omit?: Prisma.ip_targoOmit<ExtArgs> | null
  /**
   * The data needed to create a ip_targo.
   */
  data: Prisma.XOR<Prisma.ip_targoCreateInput, Prisma.ip_targoUncheckedCreateInput>
}

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

/**
 * ip_targo update
 */
export type ip_targoUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ip_targo
   */
  select?: Prisma.ip_targoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ip_targo
   */
  omit?: Prisma.ip_targoOmit<ExtArgs> | null
  /**
   * The data needed to update a ip_targo.
   */
  data: Prisma.XOR<Prisma.ip_targoUpdateInput, Prisma.ip_targoUncheckedUpdateInput>
  /**
   * Choose, which ip_targo to update.
   */
  where: Prisma.ip_targoWhereUniqueInput
}

/**
 * ip_targo updateMany
 */
export type ip_targoUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ip_targos.
   */
  data: Prisma.XOR<Prisma.ip_targoUpdateManyMutationInput, Prisma.ip_targoUncheckedUpdateManyInput>
  /**
   * Filter which ip_targos to update
   */
  where?: Prisma.ip_targoWhereInput
  /**
   * Limit how many ip_targos to update.
   */
  limit?: number
}

/**
 * ip_targo upsert
 */
export type ip_targoUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ip_targo
   */
  select?: Prisma.ip_targoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ip_targo
   */
  omit?: Prisma.ip_targoOmit<ExtArgs> | null
  /**
   * The filter to search for the ip_targo to update in case it exists.
   */
  where: Prisma.ip_targoWhereUniqueInput
  /**
   * In case the ip_targo found by the `where` argument doesn't exist, create a new ip_targo with this data.
   */
  create: Prisma.XOR<Prisma.ip_targoCreateInput, Prisma.ip_targoUncheckedCreateInput>
  /**
   * In case the ip_targo was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ip_targoUpdateInput, Prisma.ip_targoUncheckedUpdateInput>
}

/**
 * ip_targo delete
 */
export type ip_targoDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ip_targo
   */
  select?: Prisma.ip_targoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ip_targo
   */
  omit?: Prisma.ip_targoOmit<ExtArgs> | null
  /**
   * Filter which ip_targo to delete.
   */
  where: Prisma.ip_targoWhereUniqueInput
}

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

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