targo-backend/prisma/generated/mariadb/models/ip_pp.ts

1086 lines
34 KiB
TypeScript

/* !!! 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_pp` 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_pp
*
*/
export type ip_ppModel = runtime.Types.Result.DefaultSelection<Prisma.$ip_ppPayload>
export type AggregateIp_pp = {
_count: Ip_ppCountAggregateOutputType | null
_avg: Ip_ppAvgAggregateOutputType | null
_sum: Ip_ppSumAggregateOutputType | null
_min: Ip_ppMinAggregateOutputType | null
_max: Ip_ppMaxAggregateOutputType | null
}
export type Ip_ppAvgAggregateOutputType = {
id: number | null
date: number | null
}
export type Ip_ppSumAggregateOutputType = {
id: number | null
date: bigint | null
}
export type Ip_ppMinAggregateOutputType = {
id: number | null
ip_prive: string | null
ip_public: string | null
date: bigint | null
ip_id: string | null
}
export type Ip_ppMaxAggregateOutputType = {
id: number | null
ip_prive: string | null
ip_public: string | null
date: bigint | null
ip_id: string | null
}
export type Ip_ppCountAggregateOutputType = {
id: number
ip_prive: number
ip_public: number
date: number
ip_id: number
_all: number
}
export type Ip_ppAvgAggregateInputType = {
id?: true
date?: true
}
export type Ip_ppSumAggregateInputType = {
id?: true
date?: true
}
export type Ip_ppMinAggregateInputType = {
id?: true
ip_prive?: true
ip_public?: true
date?: true
ip_id?: true
}
export type Ip_ppMaxAggregateInputType = {
id?: true
ip_prive?: true
ip_public?: true
date?: true
ip_id?: true
}
export type Ip_ppCountAggregateInputType = {
id?: true
ip_prive?: true
ip_public?: true
date?: true
ip_id?: true
_all?: true
}
export type Ip_ppAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which ip_pp to aggregate.
*/
where?: Prisma.ip_ppWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ip_pps to fetch.
*/
orderBy?: Prisma.ip_ppOrderByWithRelationInput | Prisma.ip_ppOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.ip_ppWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ip_pps 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_pps.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned ip_pps
**/
_count?: true | Ip_ppCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Ip_ppAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Ip_ppSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Ip_ppMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Ip_ppMaxAggregateInputType
}
export type GetIp_ppAggregateType<T extends Ip_ppAggregateArgs> = {
[P in keyof T & keyof AggregateIp_pp]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateIp_pp[P]>
: Prisma.GetScalarType<T[P], AggregateIp_pp[P]>
}
export type ip_ppGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ip_ppWhereInput
orderBy?: Prisma.ip_ppOrderByWithAggregationInput | Prisma.ip_ppOrderByWithAggregationInput[]
by: Prisma.Ip_ppScalarFieldEnum[] | Prisma.Ip_ppScalarFieldEnum
having?: Prisma.ip_ppScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Ip_ppCountAggregateInputType | true
_avg?: Ip_ppAvgAggregateInputType
_sum?: Ip_ppSumAggregateInputType
_min?: Ip_ppMinAggregateInputType
_max?: Ip_ppMaxAggregateInputType
}
export type Ip_ppGroupByOutputType = {
id: number
ip_prive: string
ip_public: string
date: bigint
ip_id: string
_count: Ip_ppCountAggregateOutputType | null
_avg: Ip_ppAvgAggregateOutputType | null
_sum: Ip_ppSumAggregateOutputType | null
_min: Ip_ppMinAggregateOutputType | null
_max: Ip_ppMaxAggregateOutputType | null
}
type GetIp_ppGroupByPayload<T extends ip_ppGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Ip_ppGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Ip_ppGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Ip_ppGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Ip_ppGroupByOutputType[P]>
}
>
>
export type ip_ppWhereInput = {
AND?: Prisma.ip_ppWhereInput | Prisma.ip_ppWhereInput[]
OR?: Prisma.ip_ppWhereInput[]
NOT?: Prisma.ip_ppWhereInput | Prisma.ip_ppWhereInput[]
id?: Prisma.IntFilter<"ip_pp"> | number
ip_prive?: Prisma.StringFilter<"ip_pp"> | string
ip_public?: Prisma.StringFilter<"ip_pp"> | string
date?: Prisma.BigIntFilter<"ip_pp"> | bigint | number
ip_id?: Prisma.StringFilter<"ip_pp"> | string
}
export type ip_ppOrderByWithRelationInput = {
id?: Prisma.SortOrder
ip_prive?: Prisma.SortOrder
ip_public?: Prisma.SortOrder
date?: Prisma.SortOrder
ip_id?: Prisma.SortOrder
_relevance?: Prisma.ip_ppOrderByRelevanceInput
}
export type ip_ppWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.ip_ppWhereInput | Prisma.ip_ppWhereInput[]
OR?: Prisma.ip_ppWhereInput[]
NOT?: Prisma.ip_ppWhereInput | Prisma.ip_ppWhereInput[]
ip_prive?: Prisma.StringFilter<"ip_pp"> | string
ip_public?: Prisma.StringFilter<"ip_pp"> | string
date?: Prisma.BigIntFilter<"ip_pp"> | bigint | number
ip_id?: Prisma.StringFilter<"ip_pp"> | string
}, "id">
export type ip_ppOrderByWithAggregationInput = {
id?: Prisma.SortOrder
ip_prive?: Prisma.SortOrder
ip_public?: Prisma.SortOrder
date?: Prisma.SortOrder
ip_id?: Prisma.SortOrder
_count?: Prisma.ip_ppCountOrderByAggregateInput
_avg?: Prisma.ip_ppAvgOrderByAggregateInput
_max?: Prisma.ip_ppMaxOrderByAggregateInput
_min?: Prisma.ip_ppMinOrderByAggregateInput
_sum?: Prisma.ip_ppSumOrderByAggregateInput
}
export type ip_ppScalarWhereWithAggregatesInput = {
AND?: Prisma.ip_ppScalarWhereWithAggregatesInput | Prisma.ip_ppScalarWhereWithAggregatesInput[]
OR?: Prisma.ip_ppScalarWhereWithAggregatesInput[]
NOT?: Prisma.ip_ppScalarWhereWithAggregatesInput | Prisma.ip_ppScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"ip_pp"> | number
ip_prive?: Prisma.StringWithAggregatesFilter<"ip_pp"> | string
ip_public?: Prisma.StringWithAggregatesFilter<"ip_pp"> | string
date?: Prisma.BigIntWithAggregatesFilter<"ip_pp"> | bigint | number
ip_id?: Prisma.StringWithAggregatesFilter<"ip_pp"> | string
}
export type ip_ppCreateInput = {
ip_prive: string
ip_public: string
date: bigint | number
ip_id?: string
}
export type ip_ppUncheckedCreateInput = {
id?: number
ip_prive: string
ip_public: string
date: bigint | number
ip_id?: string
}
export type ip_ppUpdateInput = {
ip_prive?: Prisma.StringFieldUpdateOperationsInput | string
ip_public?: Prisma.StringFieldUpdateOperationsInput | string
date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
ip_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type ip_ppUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
ip_prive?: Prisma.StringFieldUpdateOperationsInput | string
ip_public?: Prisma.StringFieldUpdateOperationsInput | string
date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
ip_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type ip_ppCreateManyInput = {
id?: number
ip_prive: string
ip_public: string
date: bigint | number
ip_id?: string
}
export type ip_ppUpdateManyMutationInput = {
ip_prive?: Prisma.StringFieldUpdateOperationsInput | string
ip_public?: Prisma.StringFieldUpdateOperationsInput | string
date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
ip_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type ip_ppUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
ip_prive?: Prisma.StringFieldUpdateOperationsInput | string
ip_public?: Prisma.StringFieldUpdateOperationsInput | string
date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
ip_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type ip_ppOrderByRelevanceInput = {
fields: Prisma.ip_ppOrderByRelevanceFieldEnum | Prisma.ip_ppOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type ip_ppCountOrderByAggregateInput = {
id?: Prisma.SortOrder
ip_prive?: Prisma.SortOrder
ip_public?: Prisma.SortOrder
date?: Prisma.SortOrder
ip_id?: Prisma.SortOrder
}
export type ip_ppAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrder
}
export type ip_ppMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
ip_prive?: Prisma.SortOrder
ip_public?: Prisma.SortOrder
date?: Prisma.SortOrder
ip_id?: Prisma.SortOrder
}
export type ip_ppMinOrderByAggregateInput = {
id?: Prisma.SortOrder
ip_prive?: Prisma.SortOrder
ip_public?: Prisma.SortOrder
date?: Prisma.SortOrder
ip_id?: Prisma.SortOrder
}
export type ip_ppSumOrderByAggregateInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrder
}
export type ip_ppSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
ip_prive?: boolean
ip_public?: boolean
date?: boolean
ip_id?: boolean
}, ExtArgs["result"]["ip_pp"]>
export type ip_ppSelectScalar = {
id?: boolean
ip_prive?: boolean
ip_public?: boolean
date?: boolean
ip_id?: boolean
}
export type ip_ppOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "ip_prive" | "ip_public" | "date" | "ip_id", ExtArgs["result"]["ip_pp"]>
export type $ip_ppPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "ip_pp"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
ip_prive: string
ip_public: string
date: bigint
ip_id: string
}, ExtArgs["result"]["ip_pp"]>
composites: {}
}
export type ip_ppGetPayload<S extends boolean | null | undefined | ip_ppDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ip_ppPayload, S>
export type ip_ppCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<ip_ppFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Ip_ppCountAggregateInputType | true
}
export interface ip_ppDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ip_pp'], meta: { name: 'ip_pp' } }
/**
* Find zero or one Ip_pp that matches the filter.
* @param {ip_ppFindUniqueArgs} args - Arguments to find a Ip_pp
* @example
* // Get one Ip_pp
* const ip_pp = await prisma.ip_pp.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends ip_ppFindUniqueArgs>(args: Prisma.SelectSubset<T, ip_ppFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ip_ppClient<runtime.Types.Result.GetResult<Prisma.$ip_ppPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Ip_pp that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {ip_ppFindUniqueOrThrowArgs} args - Arguments to find a Ip_pp
* @example
* // Get one Ip_pp
* const ip_pp = await prisma.ip_pp.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends ip_ppFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ip_ppFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ip_ppClient<runtime.Types.Result.GetResult<Prisma.$ip_ppPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Ip_pp 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_ppFindFirstArgs} args - Arguments to find a Ip_pp
* @example
* // Get one Ip_pp
* const ip_pp = await prisma.ip_pp.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends ip_ppFindFirstArgs>(args?: Prisma.SelectSubset<T, ip_ppFindFirstArgs<ExtArgs>>): Prisma.Prisma__ip_ppClient<runtime.Types.Result.GetResult<Prisma.$ip_ppPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Ip_pp 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_ppFindFirstOrThrowArgs} args - Arguments to find a Ip_pp
* @example
* // Get one Ip_pp
* const ip_pp = await prisma.ip_pp.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends ip_ppFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ip_ppFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ip_ppClient<runtime.Types.Result.GetResult<Prisma.$ip_ppPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Ip_pps 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_ppFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Ip_pps
* const ip_pps = await prisma.ip_pp.findMany()
*
* // Get first 10 Ip_pps
* const ip_pps = await prisma.ip_pp.findMany({ take: 10 })
*
* // Only select the `id`
* const ip_ppWithIdOnly = await prisma.ip_pp.findMany({ select: { id: true } })
*
*/
findMany<T extends ip_ppFindManyArgs>(args?: Prisma.SelectSubset<T, ip_ppFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ip_ppPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Ip_pp.
* @param {ip_ppCreateArgs} args - Arguments to create a Ip_pp.
* @example
* // Create one Ip_pp
* const Ip_pp = await prisma.ip_pp.create({
* data: {
* // ... data to create a Ip_pp
* }
* })
*
*/
create<T extends ip_ppCreateArgs>(args: Prisma.SelectSubset<T, ip_ppCreateArgs<ExtArgs>>): Prisma.Prisma__ip_ppClient<runtime.Types.Result.GetResult<Prisma.$ip_ppPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Ip_pps.
* @param {ip_ppCreateManyArgs} args - Arguments to create many Ip_pps.
* @example
* // Create many Ip_pps
* const ip_pp = await prisma.ip_pp.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends ip_ppCreateManyArgs>(args?: Prisma.SelectSubset<T, ip_ppCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Ip_pp.
* @param {ip_ppDeleteArgs} args - Arguments to delete one Ip_pp.
* @example
* // Delete one Ip_pp
* const Ip_pp = await prisma.ip_pp.delete({
* where: {
* // ... filter to delete one Ip_pp
* }
* })
*
*/
delete<T extends ip_ppDeleteArgs>(args: Prisma.SelectSubset<T, ip_ppDeleteArgs<ExtArgs>>): Prisma.Prisma__ip_ppClient<runtime.Types.Result.GetResult<Prisma.$ip_ppPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Ip_pp.
* @param {ip_ppUpdateArgs} args - Arguments to update one Ip_pp.
* @example
* // Update one Ip_pp
* const ip_pp = await prisma.ip_pp.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends ip_ppUpdateArgs>(args: Prisma.SelectSubset<T, ip_ppUpdateArgs<ExtArgs>>): Prisma.Prisma__ip_ppClient<runtime.Types.Result.GetResult<Prisma.$ip_ppPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Ip_pps.
* @param {ip_ppDeleteManyArgs} args - Arguments to filter Ip_pps to delete.
* @example
* // Delete a few Ip_pps
* const { count } = await prisma.ip_pp.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends ip_ppDeleteManyArgs>(args?: Prisma.SelectSubset<T, ip_ppDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Ip_pps.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ip_ppUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Ip_pps
* const ip_pp = await prisma.ip_pp.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends ip_ppUpdateManyArgs>(args: Prisma.SelectSubset<T, ip_ppUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Ip_pp.
* @param {ip_ppUpsertArgs} args - Arguments to update or create a Ip_pp.
* @example
* // Update or create a Ip_pp
* const ip_pp = await prisma.ip_pp.upsert({
* create: {
* // ... data to create a Ip_pp
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Ip_pp we want to update
* }
* })
*/
upsert<T extends ip_ppUpsertArgs>(args: Prisma.SelectSubset<T, ip_ppUpsertArgs<ExtArgs>>): Prisma.Prisma__ip_ppClient<runtime.Types.Result.GetResult<Prisma.$ip_ppPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Ip_pps.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ip_ppCountArgs} args - Arguments to filter Ip_pps to count.
* @example
* // Count the number of Ip_pps
* const count = await prisma.ip_pp.count({
* where: {
* // ... the filter for the Ip_pps we want to count
* }
* })
**/
count<T extends ip_ppCountArgs>(
args?: Prisma.Subset<T, ip_ppCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Ip_ppCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Ip_pp.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Ip_ppAggregateArgs} 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_ppAggregateArgs>(args: Prisma.Subset<T, Ip_ppAggregateArgs>): Prisma.PrismaPromise<GetIp_ppAggregateType<T>>
/**
* Group by Ip_pp.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ip_ppGroupByArgs} 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_ppGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: ip_ppGroupByArgs['orderBy'] }
: { orderBy?: ip_ppGroupByArgs['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_ppGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIp_ppGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the ip_pp model
*/
readonly fields: ip_ppFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for ip_pp.
* 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_ppClient<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_pp model
*/
export interface ip_ppFieldRefs {
readonly id: Prisma.FieldRef<"ip_pp", 'Int'>
readonly ip_prive: Prisma.FieldRef<"ip_pp", 'String'>
readonly ip_public: Prisma.FieldRef<"ip_pp", 'String'>
readonly date: Prisma.FieldRef<"ip_pp", 'BigInt'>
readonly ip_id: Prisma.FieldRef<"ip_pp", 'String'>
}
// Custom InputTypes
/**
* ip_pp findUnique
*/
export type ip_ppFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ip_pp
*/
select?: Prisma.ip_ppSelect<ExtArgs> | null
/**
* Omit specific fields from the ip_pp
*/
omit?: Prisma.ip_ppOmit<ExtArgs> | null
/**
* Filter, which ip_pp to fetch.
*/
where: Prisma.ip_ppWhereUniqueInput
}
/**
* ip_pp findUniqueOrThrow
*/
export type ip_ppFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ip_pp
*/
select?: Prisma.ip_ppSelect<ExtArgs> | null
/**
* Omit specific fields from the ip_pp
*/
omit?: Prisma.ip_ppOmit<ExtArgs> | null
/**
* Filter, which ip_pp to fetch.
*/
where: Prisma.ip_ppWhereUniqueInput
}
/**
* ip_pp findFirst
*/
export type ip_ppFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ip_pp
*/
select?: Prisma.ip_ppSelect<ExtArgs> | null
/**
* Omit specific fields from the ip_pp
*/
omit?: Prisma.ip_ppOmit<ExtArgs> | null
/**
* Filter, which ip_pp to fetch.
*/
where?: Prisma.ip_ppWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ip_pps to fetch.
*/
orderBy?: Prisma.ip_ppOrderByWithRelationInput | Prisma.ip_ppOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ip_pps.
*/
cursor?: Prisma.ip_ppWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ip_pps 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_pps.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ip_pps.
*/
distinct?: Prisma.Ip_ppScalarFieldEnum | Prisma.Ip_ppScalarFieldEnum[]
}
/**
* ip_pp findFirstOrThrow
*/
export type ip_ppFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ip_pp
*/
select?: Prisma.ip_ppSelect<ExtArgs> | null
/**
* Omit specific fields from the ip_pp
*/
omit?: Prisma.ip_ppOmit<ExtArgs> | null
/**
* Filter, which ip_pp to fetch.
*/
where?: Prisma.ip_ppWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ip_pps to fetch.
*/
orderBy?: Prisma.ip_ppOrderByWithRelationInput | Prisma.ip_ppOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ip_pps.
*/
cursor?: Prisma.ip_ppWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ip_pps 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_pps.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ip_pps.
*/
distinct?: Prisma.Ip_ppScalarFieldEnum | Prisma.Ip_ppScalarFieldEnum[]
}
/**
* ip_pp findMany
*/
export type ip_ppFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ip_pp
*/
select?: Prisma.ip_ppSelect<ExtArgs> | null
/**
* Omit specific fields from the ip_pp
*/
omit?: Prisma.ip_ppOmit<ExtArgs> | null
/**
* Filter, which ip_pps to fetch.
*/
where?: Prisma.ip_ppWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ip_pps to fetch.
*/
orderBy?: Prisma.ip_ppOrderByWithRelationInput | Prisma.ip_ppOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing ip_pps.
*/
cursor?: Prisma.ip_ppWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ip_pps 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_pps.
*/
skip?: number
distinct?: Prisma.Ip_ppScalarFieldEnum | Prisma.Ip_ppScalarFieldEnum[]
}
/**
* ip_pp create
*/
export type ip_ppCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ip_pp
*/
select?: Prisma.ip_ppSelect<ExtArgs> | null
/**
* Omit specific fields from the ip_pp
*/
omit?: Prisma.ip_ppOmit<ExtArgs> | null
/**
* The data needed to create a ip_pp.
*/
data: Prisma.XOR<Prisma.ip_ppCreateInput, Prisma.ip_ppUncheckedCreateInput>
}
/**
* ip_pp createMany
*/
export type ip_ppCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many ip_pps.
*/
data: Prisma.ip_ppCreateManyInput | Prisma.ip_ppCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ip_pp update
*/
export type ip_ppUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ip_pp
*/
select?: Prisma.ip_ppSelect<ExtArgs> | null
/**
* Omit specific fields from the ip_pp
*/
omit?: Prisma.ip_ppOmit<ExtArgs> | null
/**
* The data needed to update a ip_pp.
*/
data: Prisma.XOR<Prisma.ip_ppUpdateInput, Prisma.ip_ppUncheckedUpdateInput>
/**
* Choose, which ip_pp to update.
*/
where: Prisma.ip_ppWhereUniqueInput
}
/**
* ip_pp updateMany
*/
export type ip_ppUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update ip_pps.
*/
data: Prisma.XOR<Prisma.ip_ppUpdateManyMutationInput, Prisma.ip_ppUncheckedUpdateManyInput>
/**
* Filter which ip_pps to update
*/
where?: Prisma.ip_ppWhereInput
/**
* Limit how many ip_pps to update.
*/
limit?: number
}
/**
* ip_pp upsert
*/
export type ip_ppUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ip_pp
*/
select?: Prisma.ip_ppSelect<ExtArgs> | null
/**
* Omit specific fields from the ip_pp
*/
omit?: Prisma.ip_ppOmit<ExtArgs> | null
/**
* The filter to search for the ip_pp to update in case it exists.
*/
where: Prisma.ip_ppWhereUniqueInput
/**
* In case the ip_pp found by the `where` argument doesn't exist, create a new ip_pp with this data.
*/
create: Prisma.XOR<Prisma.ip_ppCreateInput, Prisma.ip_ppUncheckedCreateInput>
/**
* In case the ip_pp was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.ip_ppUpdateInput, Prisma.ip_ppUncheckedUpdateInput>
}
/**
* ip_pp delete
*/
export type ip_ppDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ip_pp
*/
select?: Prisma.ip_ppSelect<ExtArgs> | null
/**
* Omit specific fields from the ip_pp
*/
omit?: Prisma.ip_ppOmit<ExtArgs> | null
/**
* Filter which ip_pp to delete.
*/
where: Prisma.ip_ppWhereUniqueInput
}
/**
* ip_pp deleteMany
*/
export type ip_ppDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which ip_pps to delete
*/
where?: Prisma.ip_ppWhereInput
/**
* Limit how many ip_pps to delete.
*/
limit?: number
}
/**
* ip_pp without action
*/
export type ip_ppDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ip_pp
*/
select?: Prisma.ip_ppSelect<ExtArgs> | null
/**
* Omit specific fields from the ip_pp
*/
omit?: Prisma.ip_ppOmit<ExtArgs> | null
}