/* !!! 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` 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 * */ export type ipModel = runtime.Types.Result.DefaultSelection export type AggregateIp = { _count: IpCountAggregateOutputType | null _avg: IpAvgAggregateOutputType | null _sum: IpSumAggregateOutputType | null _min: IpMinAggregateOutputType | null _max: IpMaxAggregateOutputType | null } export type IpAvgAggregateOutputType = { id: number | null service_id: number | null ip_conso: number | null actif: number | null } export type IpSumAggregateOutputType = { id: number | null service_id: bigint | null ip_conso: number | null actif: number | null } export type IpMinAggregateOutputType = { id: number | null service_id: bigint | null ip: string | null prive: string | null ip_relais: string | null technology: string | null name_access_point: string | null mac: string | null web_link: string | null link_relais: string | null ip_conso: number | null actif: number | null comment: string | null cidr: string | null last_updated: Date | null } export type IpMaxAggregateOutputType = { id: number | null service_id: bigint | null ip: string | null prive: string | null ip_relais: string | null technology: string | null name_access_point: string | null mac: string | null web_link: string | null link_relais: string | null ip_conso: number | null actif: number | null comment: string | null cidr: string | null last_updated: Date | null } export type IpCountAggregateOutputType = { id: number service_id: number ip: number prive: number ip_relais: number technology: number name_access_point: number mac: number web_link: number link_relais: number ip_conso: number actif: number comment: number cidr: number last_updated: number _all: number } export type IpAvgAggregateInputType = { id?: true service_id?: true ip_conso?: true actif?: true } export type IpSumAggregateInputType = { id?: true service_id?: true ip_conso?: true actif?: true } export type IpMinAggregateInputType = { id?: true service_id?: true ip?: true prive?: true ip_relais?: true technology?: true name_access_point?: true mac?: true web_link?: true link_relais?: true ip_conso?: true actif?: true comment?: true cidr?: true last_updated?: true } export type IpMaxAggregateInputType = { id?: true service_id?: true ip?: true prive?: true ip_relais?: true technology?: true name_access_point?: true mac?: true web_link?: true link_relais?: true ip_conso?: true actif?: true comment?: true cidr?: true last_updated?: true } export type IpCountAggregateInputType = { id?: true service_id?: true ip?: true prive?: true ip_relais?: true technology?: true name_access_point?: true mac?: true web_link?: true link_relais?: true ip_conso?: true actif?: true comment?: true cidr?: true last_updated?: true _all?: true } export type IpAggregateArgs = { /** * Filter which ip to aggregate. */ where?: Prisma.ipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ips to fetch. */ orderBy?: Prisma.ipOrderByWithRelationInput | Prisma.ipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ips 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` ips. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ips **/ _count?: true | IpCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: IpAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: IpSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: IpMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: IpMaxAggregateInputType } export type GetIpAggregateType = { [P in keyof T & keyof AggregateIp]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ipGroupByArgs = { where?: Prisma.ipWhereInput orderBy?: Prisma.ipOrderByWithAggregationInput | Prisma.ipOrderByWithAggregationInput[] by: Prisma.IpScalarFieldEnum[] | Prisma.IpScalarFieldEnum having?: Prisma.ipScalarWhereWithAggregatesInput take?: number skip?: number _count?: IpCountAggregateInputType | true _avg?: IpAvgAggregateInputType _sum?: IpSumAggregateInputType _min?: IpMinAggregateInputType _max?: IpMaxAggregateInputType } export type IpGroupByOutputType = { id: number service_id: bigint | null ip: string | null prive: string | null ip_relais: string | null technology: string | null name_access_point: string | null mac: string | null web_link: string | null link_relais: string | null ip_conso: number actif: number comment: string | null cidr: string | null last_updated: Date _count: IpCountAggregateOutputType | null _avg: IpAvgAggregateOutputType | null _sum: IpSumAggregateOutputType | null _min: IpMinAggregateOutputType | null _max: IpMaxAggregateOutputType | null } type GetIpGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof IpGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ipWhereInput = { AND?: Prisma.ipWhereInput | Prisma.ipWhereInput[] OR?: Prisma.ipWhereInput[] NOT?: Prisma.ipWhereInput | Prisma.ipWhereInput[] id?: Prisma.IntFilter<"ip"> | number service_id?: Prisma.BigIntNullableFilter<"ip"> | bigint | number | null ip?: Prisma.StringNullableFilter<"ip"> | string | null prive?: Prisma.StringNullableFilter<"ip"> | string | null ip_relais?: Prisma.StringNullableFilter<"ip"> | string | null technology?: Prisma.StringNullableFilter<"ip"> | string | null name_access_point?: Prisma.StringNullableFilter<"ip"> | string | null mac?: Prisma.StringNullableFilter<"ip"> | string | null web_link?: Prisma.StringNullableFilter<"ip"> | string | null link_relais?: Prisma.StringNullableFilter<"ip"> | string | null ip_conso?: Prisma.IntFilter<"ip"> | number actif?: Prisma.IntFilter<"ip"> | number comment?: Prisma.StringNullableFilter<"ip"> | string | null cidr?: Prisma.StringNullableFilter<"ip"> | string | null last_updated?: Prisma.DateTimeFilter<"ip"> | Date | string } export type ipOrderByWithRelationInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrderInput | Prisma.SortOrder ip?: Prisma.SortOrderInput | Prisma.SortOrder prive?: Prisma.SortOrderInput | Prisma.SortOrder ip_relais?: Prisma.SortOrderInput | Prisma.SortOrder technology?: Prisma.SortOrderInput | Prisma.SortOrder name_access_point?: Prisma.SortOrderInput | Prisma.SortOrder mac?: Prisma.SortOrderInput | Prisma.SortOrder web_link?: Prisma.SortOrderInput | Prisma.SortOrder link_relais?: Prisma.SortOrderInput | Prisma.SortOrder ip_conso?: Prisma.SortOrder actif?: Prisma.SortOrder comment?: Prisma.SortOrderInput | Prisma.SortOrder cidr?: Prisma.SortOrderInput | Prisma.SortOrder last_updated?: Prisma.SortOrder _relevance?: Prisma.ipOrderByRelevanceInput } export type ipWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.ipWhereInput | Prisma.ipWhereInput[] OR?: Prisma.ipWhereInput[] NOT?: Prisma.ipWhereInput | Prisma.ipWhereInput[] service_id?: Prisma.BigIntNullableFilter<"ip"> | bigint | number | null ip?: Prisma.StringNullableFilter<"ip"> | string | null prive?: Prisma.StringNullableFilter<"ip"> | string | null ip_relais?: Prisma.StringNullableFilter<"ip"> | string | null technology?: Prisma.StringNullableFilter<"ip"> | string | null name_access_point?: Prisma.StringNullableFilter<"ip"> | string | null mac?: Prisma.StringNullableFilter<"ip"> | string | null web_link?: Prisma.StringNullableFilter<"ip"> | string | null link_relais?: Prisma.StringNullableFilter<"ip"> | string | null ip_conso?: Prisma.IntFilter<"ip"> | number actif?: Prisma.IntFilter<"ip"> | number comment?: Prisma.StringNullableFilter<"ip"> | string | null cidr?: Prisma.StringNullableFilter<"ip"> | string | null last_updated?: Prisma.DateTimeFilter<"ip"> | Date | string }, "id"> export type ipOrderByWithAggregationInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrderInput | Prisma.SortOrder ip?: Prisma.SortOrderInput | Prisma.SortOrder prive?: Prisma.SortOrderInput | Prisma.SortOrder ip_relais?: Prisma.SortOrderInput | Prisma.SortOrder technology?: Prisma.SortOrderInput | Prisma.SortOrder name_access_point?: Prisma.SortOrderInput | Prisma.SortOrder mac?: Prisma.SortOrderInput | Prisma.SortOrder web_link?: Prisma.SortOrderInput | Prisma.SortOrder link_relais?: Prisma.SortOrderInput | Prisma.SortOrder ip_conso?: Prisma.SortOrder actif?: Prisma.SortOrder comment?: Prisma.SortOrderInput | Prisma.SortOrder cidr?: Prisma.SortOrderInput | Prisma.SortOrder last_updated?: Prisma.SortOrder _count?: Prisma.ipCountOrderByAggregateInput _avg?: Prisma.ipAvgOrderByAggregateInput _max?: Prisma.ipMaxOrderByAggregateInput _min?: Prisma.ipMinOrderByAggregateInput _sum?: Prisma.ipSumOrderByAggregateInput } export type ipScalarWhereWithAggregatesInput = { AND?: Prisma.ipScalarWhereWithAggregatesInput | Prisma.ipScalarWhereWithAggregatesInput[] OR?: Prisma.ipScalarWhereWithAggregatesInput[] NOT?: Prisma.ipScalarWhereWithAggregatesInput | Prisma.ipScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"ip"> | number service_id?: Prisma.BigIntNullableWithAggregatesFilter<"ip"> | bigint | number | null ip?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null prive?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null ip_relais?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null technology?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null name_access_point?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null mac?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null web_link?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null link_relais?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null ip_conso?: Prisma.IntWithAggregatesFilter<"ip"> | number actif?: Prisma.IntWithAggregatesFilter<"ip"> | number comment?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null cidr?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null last_updated?: Prisma.DateTimeWithAggregatesFilter<"ip"> | Date | string } export type ipCreateInput = { service_id?: bigint | number | null ip?: string | null prive?: string | null ip_relais?: string | null technology?: string | null name_access_point?: string | null mac?: string | null web_link?: string | null link_relais?: string | null ip_conso?: number actif?: number comment?: string | null cidr?: string | null last_updated?: Date | string } export type ipUncheckedCreateInput = { id?: number service_id?: bigint | number | null ip?: string | null prive?: string | null ip_relais?: string | null technology?: string | null name_access_point?: string | null mac?: string | null web_link?: string | null link_relais?: string | null ip_conso?: number actif?: number comment?: string | null cidr?: string | null last_updated?: Date | string } export type ipUpdateInput = { service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null prive?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null technology?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name_access_point?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null web_link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null link_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip_conso?: Prisma.IntFieldUpdateOperationsInput | number actif?: Prisma.IntFieldUpdateOperationsInput | number comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null cidr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null last_updated?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ipUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null prive?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null technology?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name_access_point?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null web_link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null link_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip_conso?: Prisma.IntFieldUpdateOperationsInput | number actif?: Prisma.IntFieldUpdateOperationsInput | number comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null cidr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null last_updated?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ipCreateManyInput = { id?: number service_id?: bigint | number | null ip?: string | null prive?: string | null ip_relais?: string | null technology?: string | null name_access_point?: string | null mac?: string | null web_link?: string | null link_relais?: string | null ip_conso?: number actif?: number comment?: string | null cidr?: string | null last_updated?: Date | string } export type ipUpdateManyMutationInput = { service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null prive?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null technology?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name_access_point?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null web_link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null link_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip_conso?: Prisma.IntFieldUpdateOperationsInput | number actif?: Prisma.IntFieldUpdateOperationsInput | number comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null cidr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null last_updated?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ipUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null prive?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null technology?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name_access_point?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null web_link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null link_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip_conso?: Prisma.IntFieldUpdateOperationsInput | number actif?: Prisma.IntFieldUpdateOperationsInput | number comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null cidr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null last_updated?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ipOrderByRelevanceInput = { fields: Prisma.ipOrderByRelevanceFieldEnum | Prisma.ipOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type ipCountOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder ip?: Prisma.SortOrder prive?: Prisma.SortOrder ip_relais?: Prisma.SortOrder technology?: Prisma.SortOrder name_access_point?: Prisma.SortOrder mac?: Prisma.SortOrder web_link?: Prisma.SortOrder link_relais?: Prisma.SortOrder ip_conso?: Prisma.SortOrder actif?: Prisma.SortOrder comment?: Prisma.SortOrder cidr?: Prisma.SortOrder last_updated?: Prisma.SortOrder } export type ipAvgOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder ip_conso?: Prisma.SortOrder actif?: Prisma.SortOrder } export type ipMaxOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder ip?: Prisma.SortOrder prive?: Prisma.SortOrder ip_relais?: Prisma.SortOrder technology?: Prisma.SortOrder name_access_point?: Prisma.SortOrder mac?: Prisma.SortOrder web_link?: Prisma.SortOrder link_relais?: Prisma.SortOrder ip_conso?: Prisma.SortOrder actif?: Prisma.SortOrder comment?: Prisma.SortOrder cidr?: Prisma.SortOrder last_updated?: Prisma.SortOrder } export type ipMinOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder ip?: Prisma.SortOrder prive?: Prisma.SortOrder ip_relais?: Prisma.SortOrder technology?: Prisma.SortOrder name_access_point?: Prisma.SortOrder mac?: Prisma.SortOrder web_link?: Prisma.SortOrder link_relais?: Prisma.SortOrder ip_conso?: Prisma.SortOrder actif?: Prisma.SortOrder comment?: Prisma.SortOrder cidr?: Prisma.SortOrder last_updated?: Prisma.SortOrder } export type ipSumOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder ip_conso?: Prisma.SortOrder actif?: Prisma.SortOrder } export type ipSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean service_id?: boolean ip?: boolean prive?: boolean ip_relais?: boolean technology?: boolean name_access_point?: boolean mac?: boolean web_link?: boolean link_relais?: boolean ip_conso?: boolean actif?: boolean comment?: boolean cidr?: boolean last_updated?: boolean }, ExtArgs["result"]["ip"]> export type ipSelectScalar = { id?: boolean service_id?: boolean ip?: boolean prive?: boolean ip_relais?: boolean technology?: boolean name_access_point?: boolean mac?: boolean web_link?: boolean link_relais?: boolean ip_conso?: boolean actif?: boolean comment?: boolean cidr?: boolean last_updated?: boolean } export type ipOmit = runtime.Types.Extensions.GetOmit<"id" | "service_id" | "ip" | "prive" | "ip_relais" | "technology" | "name_access_point" | "mac" | "web_link" | "link_relais" | "ip_conso" | "actif" | "comment" | "cidr" | "last_updated", ExtArgs["result"]["ip"]> export type $ipPayload = { name: "ip" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number service_id: bigint | null ip: string | null prive: string | null ip_relais: string | null technology: string | null name_access_point: string | null mac: string | null web_link: string | null link_relais: string | null ip_conso: number actif: number comment: string | null cidr: string | null last_updated: Date }, ExtArgs["result"]["ip"]> composites: {} } export type ipGetPayload = runtime.Types.Result.GetResult export type ipCountArgs = Omit & { select?: IpCountAggregateInputType | true } export interface ipDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ip'], meta: { name: 'ip' } } /** * Find zero or one Ip that matches the filter. * @param {ipFindUniqueArgs} args - Arguments to find a Ip * @example * // Get one Ip * const ip = await prisma.ip.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Ip that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ipFindUniqueOrThrowArgs} args - Arguments to find a Ip * @example * // Get one Ip * const ip = await prisma.ip.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Ip 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 {ipFindFirstArgs} args - Arguments to find a Ip * @example * // Get one Ip * const ip = await prisma.ip.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Ip 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 {ipFindFirstOrThrowArgs} args - Arguments to find a Ip * @example * // Get one Ip * const ip = await prisma.ip.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Ips 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 {ipFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Ips * const ips = await prisma.ip.findMany() * * // Get first 10 Ips * const ips = await prisma.ip.findMany({ take: 10 }) * * // Only select the `id` * const ipWithIdOnly = await prisma.ip.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Ip. * @param {ipCreateArgs} args - Arguments to create a Ip. * @example * // Create one Ip * const Ip = await prisma.ip.create({ * data: { * // ... data to create a Ip * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Ips. * @param {ipCreateManyArgs} args - Arguments to create many Ips. * @example * // Create many Ips * const ip = await prisma.ip.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Ip. * @param {ipDeleteArgs} args - Arguments to delete one Ip. * @example * // Delete one Ip * const Ip = await prisma.ip.delete({ * where: { * // ... filter to delete one Ip * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Ip. * @param {ipUpdateArgs} args - Arguments to update one Ip. * @example * // Update one Ip * const ip = await prisma.ip.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Ips. * @param {ipDeleteManyArgs} args - Arguments to filter Ips to delete. * @example * // Delete a few Ips * const { count } = await prisma.ip.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Ips. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ipUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Ips * const ip = await prisma.ip.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Ip. * @param {ipUpsertArgs} args - Arguments to update or create a Ip. * @example * // Update or create a Ip * const ip = await prisma.ip.upsert({ * create: { * // ... data to create a Ip * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Ip we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Ips. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ipCountArgs} args - Arguments to filter Ips to count. * @example * // Count the number of Ips * const count = await prisma.ip.count({ * where: { * // ... the filter for the Ips we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Ip. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IpAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Ip. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ipGroupByArgs} 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 ipGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ipGroupByArgs['orderBy'] } : { orderBy?: ipGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetIpGroupByPayload : Prisma.PrismaPromise /** * Fields of the ip model */ readonly fields: ipFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ip. * 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__ipClient extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the ip model */ export interface ipFieldRefs { readonly id: Prisma.FieldRef<"ip", 'Int'> readonly service_id: Prisma.FieldRef<"ip", 'BigInt'> readonly ip: Prisma.FieldRef<"ip", 'String'> readonly prive: Prisma.FieldRef<"ip", 'String'> readonly ip_relais: Prisma.FieldRef<"ip", 'String'> readonly technology: Prisma.FieldRef<"ip", 'String'> readonly name_access_point: Prisma.FieldRef<"ip", 'String'> readonly mac: Prisma.FieldRef<"ip", 'String'> readonly web_link: Prisma.FieldRef<"ip", 'String'> readonly link_relais: Prisma.FieldRef<"ip", 'String'> readonly ip_conso: Prisma.FieldRef<"ip", 'Int'> readonly actif: Prisma.FieldRef<"ip", 'Int'> readonly comment: Prisma.FieldRef<"ip", 'String'> readonly cidr: Prisma.FieldRef<"ip", 'String'> readonly last_updated: Prisma.FieldRef<"ip", 'DateTime'> } // Custom InputTypes /** * ip findUnique */ export type ipFindUniqueArgs = { /** * Select specific fields to fetch from the ip */ select?: Prisma.ipSelect | null /** * Omit specific fields from the ip */ omit?: Prisma.ipOmit | null /** * Filter, which ip to fetch. */ where: Prisma.ipWhereUniqueInput } /** * ip findUniqueOrThrow */ export type ipFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ip */ select?: Prisma.ipSelect | null /** * Omit specific fields from the ip */ omit?: Prisma.ipOmit | null /** * Filter, which ip to fetch. */ where: Prisma.ipWhereUniqueInput } /** * ip findFirst */ export type ipFindFirstArgs = { /** * Select specific fields to fetch from the ip */ select?: Prisma.ipSelect | null /** * Omit specific fields from the ip */ omit?: Prisma.ipOmit | null /** * Filter, which ip to fetch. */ where?: Prisma.ipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ips to fetch. */ orderBy?: Prisma.ipOrderByWithRelationInput | Prisma.ipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ips. */ cursor?: Prisma.ipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ips 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` ips. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ips. */ distinct?: Prisma.IpScalarFieldEnum | Prisma.IpScalarFieldEnum[] } /** * ip findFirstOrThrow */ export type ipFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ip */ select?: Prisma.ipSelect | null /** * Omit specific fields from the ip */ omit?: Prisma.ipOmit | null /** * Filter, which ip to fetch. */ where?: Prisma.ipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ips to fetch. */ orderBy?: Prisma.ipOrderByWithRelationInput | Prisma.ipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ips. */ cursor?: Prisma.ipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ips 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` ips. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ips. */ distinct?: Prisma.IpScalarFieldEnum | Prisma.IpScalarFieldEnum[] } /** * ip findMany */ export type ipFindManyArgs = { /** * Select specific fields to fetch from the ip */ select?: Prisma.ipSelect | null /** * Omit specific fields from the ip */ omit?: Prisma.ipOmit | null /** * Filter, which ips to fetch. */ where?: Prisma.ipWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ips to fetch. */ orderBy?: Prisma.ipOrderByWithRelationInput | Prisma.ipOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ips. */ cursor?: Prisma.ipWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ips 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` ips. */ skip?: number distinct?: Prisma.IpScalarFieldEnum | Prisma.IpScalarFieldEnum[] } /** * ip create */ export type ipCreateArgs = { /** * Select specific fields to fetch from the ip */ select?: Prisma.ipSelect | null /** * Omit specific fields from the ip */ omit?: Prisma.ipOmit | null /** * The data needed to create a ip. */ data?: Prisma.XOR } /** * ip createMany */ export type ipCreateManyArgs = { /** * The data used to create many ips. */ data: Prisma.ipCreateManyInput | Prisma.ipCreateManyInput[] skipDuplicates?: boolean } /** * ip update */ export type ipUpdateArgs = { /** * Select specific fields to fetch from the ip */ select?: Prisma.ipSelect | null /** * Omit specific fields from the ip */ omit?: Prisma.ipOmit | null /** * The data needed to update a ip. */ data: Prisma.XOR /** * Choose, which ip to update. */ where: Prisma.ipWhereUniqueInput } /** * ip updateMany */ export type ipUpdateManyArgs = { /** * The data used to update ips. */ data: Prisma.XOR /** * Filter which ips to update */ where?: Prisma.ipWhereInput /** * Limit how many ips to update. */ limit?: number } /** * ip upsert */ export type ipUpsertArgs = { /** * Select specific fields to fetch from the ip */ select?: Prisma.ipSelect | null /** * Omit specific fields from the ip */ omit?: Prisma.ipOmit | null /** * The filter to search for the ip to update in case it exists. */ where: Prisma.ipWhereUniqueInput /** * In case the ip found by the `where` argument doesn't exist, create a new ip with this data. */ create: Prisma.XOR /** * In case the ip was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ip delete */ export type ipDeleteArgs = { /** * Select specific fields to fetch from the ip */ select?: Prisma.ipSelect | null /** * Omit specific fields from the ip */ omit?: Prisma.ipOmit | null /** * Filter which ip to delete. */ where: Prisma.ipWhereUniqueInput } /** * ip deleteMany */ export type ipDeleteManyArgs = { /** * Filter which ips to delete */ where?: Prisma.ipWhereInput /** * Limit how many ips to delete. */ limit?: number } /** * ip without action */ export type ipDefaultArgs = { /** * Select specific fields to fetch from the ip */ select?: Prisma.ipSelect | null /** * Omit specific fields from the ip */ omit?: Prisma.ipOmit | null }