
/* !!! 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_admin` 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_admin
 * 
 */
export type ip_adminModel = runtime.Types.Result.DefaultSelection<Prisma.$ip_adminPayload>

export type AggregateIp_admin = {
  _count: Ip_adminCountAggregateOutputType | null
  _avg: Ip_adminAvgAggregateOutputType | null
  _sum: Ip_adminSumAggregateOutputType | null
  _min: Ip_adminMinAggregateOutputType | null
  _max: Ip_adminMaxAggregateOutputType | null
}

export type Ip_adminAvgAggregateOutputType = {
  id: number | null
}

export type Ip_adminSumAggregateOutputType = {
  id: number | null
}

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

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

export type Ip_adminCountAggregateOutputType = {
  id: number
  ip: number
  comment: number
  _all: number
}


export type Ip_adminAvgAggregateInputType = {
  id?: true
}

export type Ip_adminSumAggregateInputType = {
  id?: true
}

export type Ip_adminMinAggregateInputType = {
  id?: true
  ip?: true
  comment?: true
}

export type Ip_adminMaxAggregateInputType = {
  id?: true
  ip?: true
  comment?: true
}

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

export type Ip_adminAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ip_admin to aggregate.
   */
  where?: Prisma.ip_adminWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ip_admins to fetch.
   */
  orderBy?: Prisma.ip_adminOrderByWithRelationInput | Prisma.ip_adminOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ip_adminWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ip_admins 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_admins.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned ip_admins
  **/
  _count?: true | Ip_adminCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Ip_adminAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Ip_adminSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Ip_adminMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Ip_adminMaxAggregateInputType
}

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




export type ip_adminGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ip_adminWhereInput
  orderBy?: Prisma.ip_adminOrderByWithAggregationInput | Prisma.ip_adminOrderByWithAggregationInput[]
  by: Prisma.Ip_adminScalarFieldEnum[] | Prisma.Ip_adminScalarFieldEnum
  having?: Prisma.ip_adminScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Ip_adminCountAggregateInputType | true
  _avg?: Ip_adminAvgAggregateInputType
  _sum?: Ip_adminSumAggregateInputType
  _min?: Ip_adminMinAggregateInputType
  _max?: Ip_adminMaxAggregateInputType
}

export type Ip_adminGroupByOutputType = {
  id: number
  ip: string
  comment: string | null
  _count: Ip_adminCountAggregateOutputType | null
  _avg: Ip_adminAvgAggregateOutputType | null
  _sum: Ip_adminSumAggregateOutputType | null
  _min: Ip_adminMinAggregateOutputType | null
  _max: Ip_adminMaxAggregateOutputType | null
}

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



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

export type ip_adminOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  comment?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.ip_adminOrderByRelevanceInput
}

export type ip_adminWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.ip_adminWhereInput | Prisma.ip_adminWhereInput[]
  OR?: Prisma.ip_adminWhereInput[]
  NOT?: Prisma.ip_adminWhereInput | Prisma.ip_adminWhereInput[]
  ip?: Prisma.StringFilter<"ip_admin"> | string
  comment?: Prisma.StringNullableFilter<"ip_admin"> | string | null
}, "id">

export type ip_adminOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  comment?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.ip_adminCountOrderByAggregateInput
  _avg?: Prisma.ip_adminAvgOrderByAggregateInput
  _max?: Prisma.ip_adminMaxOrderByAggregateInput
  _min?: Prisma.ip_adminMinOrderByAggregateInput
  _sum?: Prisma.ip_adminSumOrderByAggregateInput
}

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

export type ip_adminCreateInput = {
  ip: string
  comment?: string | null
}

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

export type ip_adminUpdateInput = {
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

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

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

export type ip_adminUpdateManyMutationInput = {
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

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

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

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

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

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

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

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



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



export type ip_adminSelectScalar = {
  id?: boolean
  ip?: boolean
  comment?: boolean
}

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

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

export type ip_adminGetPayload<S extends boolean | null | undefined | ip_adminDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ip_adminPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

// Custom InputTypes
/**
 * ip_admin findUnique
 */
export type ip_adminFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ip_admin
   */
  select?: Prisma.ip_adminSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ip_admin
   */
  omit?: Prisma.ip_adminOmit<ExtArgs> | null
  /**
   * Filter, which ip_admin to fetch.
   */
  where: Prisma.ip_adminWhereUniqueInput
}

/**
 * ip_admin findUniqueOrThrow
 */
export type ip_adminFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ip_admin
   */
  select?: Prisma.ip_adminSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ip_admin
   */
  omit?: Prisma.ip_adminOmit<ExtArgs> | null
  /**
   * Filter, which ip_admin to fetch.
   */
  where: Prisma.ip_adminWhereUniqueInput
}

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

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

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

/**
 * ip_admin create
 */
export type ip_adminCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ip_admin
   */
  select?: Prisma.ip_adminSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ip_admin
   */
  omit?: Prisma.ip_adminOmit<ExtArgs> | null
  /**
   * The data needed to create a ip_admin.
   */
  data: Prisma.XOR<Prisma.ip_adminCreateInput, Prisma.ip_adminUncheckedCreateInput>
}

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

/**
 * ip_admin update
 */
export type ip_adminUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ip_admin
   */
  select?: Prisma.ip_adminSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ip_admin
   */
  omit?: Prisma.ip_adminOmit<ExtArgs> | null
  /**
   * The data needed to update a ip_admin.
   */
  data: Prisma.XOR<Prisma.ip_adminUpdateInput, Prisma.ip_adminUncheckedUpdateInput>
  /**
   * Choose, which ip_admin to update.
   */
  where: Prisma.ip_adminWhereUniqueInput
}

/**
 * ip_admin updateMany
 */
export type ip_adminUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ip_admins.
   */
  data: Prisma.XOR<Prisma.ip_adminUpdateManyMutationInput, Prisma.ip_adminUncheckedUpdateManyInput>
  /**
   * Filter which ip_admins to update
   */
  where?: Prisma.ip_adminWhereInput
  /**
   * Limit how many ip_admins to update.
   */
  limit?: number
}

/**
 * ip_admin upsert
 */
export type ip_adminUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ip_admin
   */
  select?: Prisma.ip_adminSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ip_admin
   */
  omit?: Prisma.ip_adminOmit<ExtArgs> | null
  /**
   * The filter to search for the ip_admin to update in case it exists.
   */
  where: Prisma.ip_adminWhereUniqueInput
  /**
   * In case the ip_admin found by the `where` argument doesn't exist, create a new ip_admin with this data.
   */
  create: Prisma.XOR<Prisma.ip_adminCreateInput, Prisma.ip_adminUncheckedCreateInput>
  /**
   * In case the ip_admin was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ip_adminUpdateInput, Prisma.ip_adminUncheckedUpdateInput>
}

/**
 * ip_admin delete
 */
export type ip_adminDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ip_admin
   */
  select?: Prisma.ip_adminSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ip_admin
   */
  omit?: Prisma.ip_adminOmit<ExtArgs> | null
  /**
   * Filter which ip_admin to delete.
   */
  where: Prisma.ip_adminWhereUniqueInput
}

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

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