1710 lines
61 KiB
TypeScript
1710 lines
61 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 `IpAddress` 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.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model IpAddress
|
|
* Privacy (AD-22): `ip` speichert einen HMAC-SHA256-Pseudonym-Hash der Client-IP, KEINE Klartext-IP.
|
|
* Persistiert wird nur das Land (countryCode/countryName); regionCode/city/zipCode/latitude/longitude
|
|
* bleiben bewusst leer. Auflösung lokal (DB-IP Lite), kein externer Transfer.
|
|
*/
|
|
export type IpAddressModel = runtime.Types.Result.DefaultSelection<Prisma.$IpAddressPayload>
|
|
|
|
export type AggregateIpAddress = {
|
|
_count: IpAddressCountAggregateOutputType | null
|
|
_avg: IpAddressAvgAggregateOutputType | null
|
|
_sum: IpAddressSumAggregateOutputType | null
|
|
_min: IpAddressMinAggregateOutputType | null
|
|
_max: IpAddressMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type IpAddressAvgAggregateOutputType = {
|
|
latitude: runtime.Decimal | null
|
|
longitude: runtime.Decimal | null
|
|
}
|
|
|
|
export type IpAddressSumAggregateOutputType = {
|
|
latitude: runtime.Decimal | null
|
|
longitude: runtime.Decimal | null
|
|
}
|
|
|
|
export type IpAddressMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
ip: string | null
|
|
provider: string | null
|
|
type: string | null
|
|
countryCode: string | null
|
|
countryName: string | null
|
|
regionCode: string | null
|
|
regionName: string | null
|
|
city: string | null
|
|
zipCode: string | null
|
|
latitude: runtime.Decimal | null
|
|
longitude: runtime.Decimal | null
|
|
metadata: string | null
|
|
}
|
|
|
|
export type IpAddressMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
ip: string | null
|
|
provider: string | null
|
|
type: string | null
|
|
countryCode: string | null
|
|
countryName: string | null
|
|
regionCode: string | null
|
|
regionName: string | null
|
|
city: string | null
|
|
zipCode: string | null
|
|
latitude: runtime.Decimal | null
|
|
longitude: runtime.Decimal | null
|
|
metadata: string | null
|
|
}
|
|
|
|
export type IpAddressCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
ip: number
|
|
provider: number
|
|
type: number
|
|
countryCode: number
|
|
countryName: number
|
|
regionCode: number
|
|
regionName: number
|
|
city: number
|
|
zipCode: number
|
|
latitude: number
|
|
longitude: number
|
|
metadata: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type IpAddressAvgAggregateInputType = {
|
|
latitude?: true
|
|
longitude?: true
|
|
}
|
|
|
|
export type IpAddressSumAggregateInputType = {
|
|
latitude?: true
|
|
longitude?: true
|
|
}
|
|
|
|
export type IpAddressMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
ip?: true
|
|
provider?: true
|
|
type?: true
|
|
countryCode?: true
|
|
countryName?: true
|
|
regionCode?: true
|
|
regionName?: true
|
|
city?: true
|
|
zipCode?: true
|
|
latitude?: true
|
|
longitude?: true
|
|
metadata?: true
|
|
}
|
|
|
|
export type IpAddressMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
ip?: true
|
|
provider?: true
|
|
type?: true
|
|
countryCode?: true
|
|
countryName?: true
|
|
regionCode?: true
|
|
regionName?: true
|
|
city?: true
|
|
zipCode?: true
|
|
latitude?: true
|
|
longitude?: true
|
|
metadata?: true
|
|
}
|
|
|
|
export type IpAddressCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
ip?: true
|
|
provider?: true
|
|
type?: true
|
|
countryCode?: true
|
|
countryName?: true
|
|
regionCode?: true
|
|
regionName?: true
|
|
city?: true
|
|
zipCode?: true
|
|
latitude?: true
|
|
longitude?: true
|
|
metadata?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type IpAddressAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which IpAddress to aggregate.
|
|
*/
|
|
where?: Prisma.IpAddressWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of IpAddresses to fetch.
|
|
*/
|
|
orderBy?: Prisma.IpAddressOrderByWithRelationInput | Prisma.IpAddressOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.IpAddressWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` IpAddresses 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` IpAddresses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned IpAddresses
|
|
**/
|
|
_count?: true | IpAddressCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: IpAddressAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: IpAddressSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: IpAddressMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: IpAddressMaxAggregateInputType
|
|
}
|
|
|
|
export type GetIpAddressAggregateType<T extends IpAddressAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateIpAddress]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateIpAddress[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateIpAddress[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IpAddressGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.IpAddressWhereInput
|
|
orderBy?: Prisma.IpAddressOrderByWithAggregationInput | Prisma.IpAddressOrderByWithAggregationInput[]
|
|
by: Prisma.IpAddressScalarFieldEnum[] | Prisma.IpAddressScalarFieldEnum
|
|
having?: Prisma.IpAddressScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: IpAddressCountAggregateInputType | true
|
|
_avg?: IpAddressAvgAggregateInputType
|
|
_sum?: IpAddressSumAggregateInputType
|
|
_min?: IpAddressMinAggregateInputType
|
|
_max?: IpAddressMaxAggregateInputType
|
|
}
|
|
|
|
export type IpAddressGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
ip: string
|
|
provider: string
|
|
type: string
|
|
countryCode: string
|
|
countryName: string
|
|
regionCode: string
|
|
regionName: string
|
|
city: string
|
|
zipCode: string
|
|
latitude: runtime.Decimal | null
|
|
longitude: runtime.Decimal | null
|
|
metadata: string
|
|
_count: IpAddressCountAggregateOutputType | null
|
|
_avg: IpAddressAvgAggregateOutputType | null
|
|
_sum: IpAddressSumAggregateOutputType | null
|
|
_min: IpAddressMinAggregateOutputType | null
|
|
_max: IpAddressMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetIpAddressGroupByPayload<T extends IpAddressGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<IpAddressGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof IpAddressGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], IpAddressGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], IpAddressGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type IpAddressWhereInput = {
|
|
AND?: Prisma.IpAddressWhereInput | Prisma.IpAddressWhereInput[]
|
|
OR?: Prisma.IpAddressWhereInput[]
|
|
NOT?: Prisma.IpAddressWhereInput | Prisma.IpAddressWhereInput[]
|
|
id?: Prisma.StringFilter<"IpAddress"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"IpAddress"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"IpAddress"> | Date | string
|
|
ip?: Prisma.StringFilter<"IpAddress"> | string
|
|
provider?: Prisma.StringFilter<"IpAddress"> | string
|
|
type?: Prisma.StringFilter<"IpAddress"> | string
|
|
countryCode?: Prisma.StringFilter<"IpAddress"> | string
|
|
countryName?: Prisma.StringFilter<"IpAddress"> | string
|
|
regionCode?: Prisma.StringFilter<"IpAddress"> | string
|
|
regionName?: Prisma.StringFilter<"IpAddress"> | string
|
|
city?: Prisma.StringFilter<"IpAddress"> | string
|
|
zipCode?: Prisma.StringFilter<"IpAddress"> | string
|
|
latitude?: Prisma.DecimalNullableFilter<"IpAddress"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: Prisma.DecimalNullableFilter<"IpAddress"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata?: Prisma.StringFilter<"IpAddress"> | string
|
|
logs?: Prisma.IpAddressLogListRelationFilter
|
|
}
|
|
|
|
export type IpAddressOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
ip?: Prisma.SortOrder
|
|
provider?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
countryCode?: Prisma.SortOrder
|
|
countryName?: Prisma.SortOrder
|
|
regionCode?: Prisma.SortOrder
|
|
regionName?: Prisma.SortOrder
|
|
city?: Prisma.SortOrder
|
|
zipCode?: Prisma.SortOrder
|
|
latitude?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
longitude?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
metadata?: Prisma.SortOrder
|
|
logs?: Prisma.IpAddressLogOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type IpAddressWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
ip?: string
|
|
AND?: Prisma.IpAddressWhereInput | Prisma.IpAddressWhereInput[]
|
|
OR?: Prisma.IpAddressWhereInput[]
|
|
NOT?: Prisma.IpAddressWhereInput | Prisma.IpAddressWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"IpAddress"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"IpAddress"> | Date | string
|
|
provider?: Prisma.StringFilter<"IpAddress"> | string
|
|
type?: Prisma.StringFilter<"IpAddress"> | string
|
|
countryCode?: Prisma.StringFilter<"IpAddress"> | string
|
|
countryName?: Prisma.StringFilter<"IpAddress"> | string
|
|
regionCode?: Prisma.StringFilter<"IpAddress"> | string
|
|
regionName?: Prisma.StringFilter<"IpAddress"> | string
|
|
city?: Prisma.StringFilter<"IpAddress"> | string
|
|
zipCode?: Prisma.StringFilter<"IpAddress"> | string
|
|
latitude?: Prisma.DecimalNullableFilter<"IpAddress"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: Prisma.DecimalNullableFilter<"IpAddress"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata?: Prisma.StringFilter<"IpAddress"> | string
|
|
logs?: Prisma.IpAddressLogListRelationFilter
|
|
}, "id" | "ip">
|
|
|
|
export type IpAddressOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
ip?: Prisma.SortOrder
|
|
provider?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
countryCode?: Prisma.SortOrder
|
|
countryName?: Prisma.SortOrder
|
|
regionCode?: Prisma.SortOrder
|
|
regionName?: Prisma.SortOrder
|
|
city?: Prisma.SortOrder
|
|
zipCode?: Prisma.SortOrder
|
|
latitude?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
longitude?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
metadata?: Prisma.SortOrder
|
|
_count?: Prisma.IpAddressCountOrderByAggregateInput
|
|
_avg?: Prisma.IpAddressAvgOrderByAggregateInput
|
|
_max?: Prisma.IpAddressMaxOrderByAggregateInput
|
|
_min?: Prisma.IpAddressMinOrderByAggregateInput
|
|
_sum?: Prisma.IpAddressSumOrderByAggregateInput
|
|
}
|
|
|
|
export type IpAddressScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.IpAddressScalarWhereWithAggregatesInput | Prisma.IpAddressScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.IpAddressScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.IpAddressScalarWhereWithAggregatesInput | Prisma.IpAddressScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"IpAddress"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"IpAddress"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"IpAddress"> | Date | string
|
|
ip?: Prisma.StringWithAggregatesFilter<"IpAddress"> | string
|
|
provider?: Prisma.StringWithAggregatesFilter<"IpAddress"> | string
|
|
type?: Prisma.StringWithAggregatesFilter<"IpAddress"> | string
|
|
countryCode?: Prisma.StringWithAggregatesFilter<"IpAddress"> | string
|
|
countryName?: Prisma.StringWithAggregatesFilter<"IpAddress"> | string
|
|
regionCode?: Prisma.StringWithAggregatesFilter<"IpAddress"> | string
|
|
regionName?: Prisma.StringWithAggregatesFilter<"IpAddress"> | string
|
|
city?: Prisma.StringWithAggregatesFilter<"IpAddress"> | string
|
|
zipCode?: Prisma.StringWithAggregatesFilter<"IpAddress"> | string
|
|
latitude?: Prisma.DecimalNullableWithAggregatesFilter<"IpAddress"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: Prisma.DecimalNullableWithAggregatesFilter<"IpAddress"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata?: Prisma.StringWithAggregatesFilter<"IpAddress"> | string
|
|
}
|
|
|
|
export type IpAddressCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
ip: string
|
|
provider: string
|
|
type: string
|
|
countryCode: string
|
|
countryName: string
|
|
regionCode: string
|
|
regionName: string
|
|
city: string
|
|
zipCode: string
|
|
latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata: string
|
|
logs?: Prisma.IpAddressLogCreateNestedManyWithoutIpAddressInput
|
|
}
|
|
|
|
export type IpAddressUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
ip: string
|
|
provider: string
|
|
type: string
|
|
countryCode: string
|
|
countryName: string
|
|
regionCode: string
|
|
regionName: string
|
|
city: string
|
|
zipCode: string
|
|
latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata: string
|
|
logs?: Prisma.IpAddressLogUncheckedCreateNestedManyWithoutIpAddressInput
|
|
}
|
|
|
|
export type IpAddressUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
countryCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
countryName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
regionCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
regionName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
city?: Prisma.StringFieldUpdateOperationsInput | string
|
|
zipCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata?: Prisma.StringFieldUpdateOperationsInput | string
|
|
logs?: Prisma.IpAddressLogUpdateManyWithoutIpAddressNestedInput
|
|
}
|
|
|
|
export type IpAddressUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
countryCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
countryName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
regionCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
regionName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
city?: Prisma.StringFieldUpdateOperationsInput | string
|
|
zipCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata?: Prisma.StringFieldUpdateOperationsInput | string
|
|
logs?: Prisma.IpAddressLogUncheckedUpdateManyWithoutIpAddressNestedInput
|
|
}
|
|
|
|
export type IpAddressCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
ip: string
|
|
provider: string
|
|
type: string
|
|
countryCode: string
|
|
countryName: string
|
|
regionCode: string
|
|
regionName: string
|
|
city: string
|
|
zipCode: string
|
|
latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata: string
|
|
}
|
|
|
|
export type IpAddressUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
countryCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
countryName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
regionCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
regionName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
city?: Prisma.StringFieldUpdateOperationsInput | string
|
|
zipCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type IpAddressUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
countryCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
countryName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
regionCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
regionName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
city?: Prisma.StringFieldUpdateOperationsInput | string
|
|
zipCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type IpAddressCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
ip?: Prisma.SortOrder
|
|
provider?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
countryCode?: Prisma.SortOrder
|
|
countryName?: Prisma.SortOrder
|
|
regionCode?: Prisma.SortOrder
|
|
regionName?: Prisma.SortOrder
|
|
city?: Prisma.SortOrder
|
|
zipCode?: Prisma.SortOrder
|
|
latitude?: Prisma.SortOrder
|
|
longitude?: Prisma.SortOrder
|
|
metadata?: Prisma.SortOrder
|
|
}
|
|
|
|
export type IpAddressAvgOrderByAggregateInput = {
|
|
latitude?: Prisma.SortOrder
|
|
longitude?: Prisma.SortOrder
|
|
}
|
|
|
|
export type IpAddressMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
ip?: Prisma.SortOrder
|
|
provider?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
countryCode?: Prisma.SortOrder
|
|
countryName?: Prisma.SortOrder
|
|
regionCode?: Prisma.SortOrder
|
|
regionName?: Prisma.SortOrder
|
|
city?: Prisma.SortOrder
|
|
zipCode?: Prisma.SortOrder
|
|
latitude?: Prisma.SortOrder
|
|
longitude?: Prisma.SortOrder
|
|
metadata?: Prisma.SortOrder
|
|
}
|
|
|
|
export type IpAddressMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
ip?: Prisma.SortOrder
|
|
provider?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
countryCode?: Prisma.SortOrder
|
|
countryName?: Prisma.SortOrder
|
|
regionCode?: Prisma.SortOrder
|
|
regionName?: Prisma.SortOrder
|
|
city?: Prisma.SortOrder
|
|
zipCode?: Prisma.SortOrder
|
|
latitude?: Prisma.SortOrder
|
|
longitude?: Prisma.SortOrder
|
|
metadata?: Prisma.SortOrder
|
|
}
|
|
|
|
export type IpAddressSumOrderByAggregateInput = {
|
|
latitude?: Prisma.SortOrder
|
|
longitude?: Prisma.SortOrder
|
|
}
|
|
|
|
export type IpAddressNullableScalarRelationFilter = {
|
|
is?: Prisma.IpAddressWhereInput | null
|
|
isNot?: Prisma.IpAddressWhereInput | null
|
|
}
|
|
|
|
export type NullableDecimalFieldUpdateOperationsInput = {
|
|
set?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
increment?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
divide?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
}
|
|
|
|
export type IpAddressCreateNestedOneWithoutLogsInput = {
|
|
create?: Prisma.XOR<Prisma.IpAddressCreateWithoutLogsInput, Prisma.IpAddressUncheckedCreateWithoutLogsInput>
|
|
connectOrCreate?: Prisma.IpAddressCreateOrConnectWithoutLogsInput
|
|
connect?: Prisma.IpAddressWhereUniqueInput
|
|
}
|
|
|
|
export type IpAddressUpdateOneWithoutLogsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.IpAddressCreateWithoutLogsInput, Prisma.IpAddressUncheckedCreateWithoutLogsInput>
|
|
connectOrCreate?: Prisma.IpAddressCreateOrConnectWithoutLogsInput
|
|
upsert?: Prisma.IpAddressUpsertWithoutLogsInput
|
|
disconnect?: Prisma.IpAddressWhereInput | boolean
|
|
delete?: Prisma.IpAddressWhereInput | boolean
|
|
connect?: Prisma.IpAddressWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.IpAddressUpdateToOneWithWhereWithoutLogsInput, Prisma.IpAddressUpdateWithoutLogsInput>, Prisma.IpAddressUncheckedUpdateWithoutLogsInput>
|
|
}
|
|
|
|
export type IpAddressCreateWithoutLogsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
ip: string
|
|
provider: string
|
|
type: string
|
|
countryCode: string
|
|
countryName: string
|
|
regionCode: string
|
|
regionName: string
|
|
city: string
|
|
zipCode: string
|
|
latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata: string
|
|
}
|
|
|
|
export type IpAddressUncheckedCreateWithoutLogsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
ip: string
|
|
provider: string
|
|
type: string
|
|
countryCode: string
|
|
countryName: string
|
|
regionCode: string
|
|
regionName: string
|
|
city: string
|
|
zipCode: string
|
|
latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata: string
|
|
}
|
|
|
|
export type IpAddressCreateOrConnectWithoutLogsInput = {
|
|
where: Prisma.IpAddressWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.IpAddressCreateWithoutLogsInput, Prisma.IpAddressUncheckedCreateWithoutLogsInput>
|
|
}
|
|
|
|
export type IpAddressUpsertWithoutLogsInput = {
|
|
update: Prisma.XOR<Prisma.IpAddressUpdateWithoutLogsInput, Prisma.IpAddressUncheckedUpdateWithoutLogsInput>
|
|
create: Prisma.XOR<Prisma.IpAddressCreateWithoutLogsInput, Prisma.IpAddressUncheckedCreateWithoutLogsInput>
|
|
where?: Prisma.IpAddressWhereInput
|
|
}
|
|
|
|
export type IpAddressUpdateToOneWithWhereWithoutLogsInput = {
|
|
where?: Prisma.IpAddressWhereInput
|
|
data: Prisma.XOR<Prisma.IpAddressUpdateWithoutLogsInput, Prisma.IpAddressUncheckedUpdateWithoutLogsInput>
|
|
}
|
|
|
|
export type IpAddressUpdateWithoutLogsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
countryCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
countryName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
regionCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
regionName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
city?: Prisma.StringFieldUpdateOperationsInput | string
|
|
zipCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type IpAddressUncheckedUpdateWithoutLogsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
countryCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
countryName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
regionCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
regionName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
city?: Prisma.StringFieldUpdateOperationsInput | string
|
|
zipCode?: Prisma.StringFieldUpdateOperationsInput | string
|
|
latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
metadata?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type IpAddressCountOutputType
|
|
*/
|
|
|
|
export type IpAddressCountOutputType = {
|
|
logs: number
|
|
}
|
|
|
|
export type IpAddressCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
logs?: boolean | IpAddressCountOutputTypeCountLogsArgs
|
|
}
|
|
|
|
/**
|
|
* IpAddressCountOutputType without action
|
|
*/
|
|
export type IpAddressCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddressCountOutputType
|
|
*/
|
|
select?: Prisma.IpAddressCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* IpAddressCountOutputType without action
|
|
*/
|
|
export type IpAddressCountOutputTypeCountLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.IpAddressLogWhereInput
|
|
}
|
|
|
|
|
|
export type IpAddressSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
ip?: boolean
|
|
provider?: boolean
|
|
type?: boolean
|
|
countryCode?: boolean
|
|
countryName?: boolean
|
|
regionCode?: boolean
|
|
regionName?: boolean
|
|
city?: boolean
|
|
zipCode?: boolean
|
|
latitude?: boolean
|
|
longitude?: boolean
|
|
metadata?: boolean
|
|
logs?: boolean | Prisma.IpAddress$logsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.IpAddressCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["ipAddress"]>
|
|
|
|
export type IpAddressSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
ip?: boolean
|
|
provider?: boolean
|
|
type?: boolean
|
|
countryCode?: boolean
|
|
countryName?: boolean
|
|
regionCode?: boolean
|
|
regionName?: boolean
|
|
city?: boolean
|
|
zipCode?: boolean
|
|
latitude?: boolean
|
|
longitude?: boolean
|
|
metadata?: boolean
|
|
}, ExtArgs["result"]["ipAddress"]>
|
|
|
|
export type IpAddressSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
ip?: boolean
|
|
provider?: boolean
|
|
type?: boolean
|
|
countryCode?: boolean
|
|
countryName?: boolean
|
|
regionCode?: boolean
|
|
regionName?: boolean
|
|
city?: boolean
|
|
zipCode?: boolean
|
|
latitude?: boolean
|
|
longitude?: boolean
|
|
metadata?: boolean
|
|
}, ExtArgs["result"]["ipAddress"]>
|
|
|
|
export type IpAddressSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
ip?: boolean
|
|
provider?: boolean
|
|
type?: boolean
|
|
countryCode?: boolean
|
|
countryName?: boolean
|
|
regionCode?: boolean
|
|
regionName?: boolean
|
|
city?: boolean
|
|
zipCode?: boolean
|
|
latitude?: boolean
|
|
longitude?: boolean
|
|
metadata?: boolean
|
|
}
|
|
|
|
export type IpAddressOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "ip" | "provider" | "type" | "countryCode" | "countryName" | "regionCode" | "regionName" | "city" | "zipCode" | "latitude" | "longitude" | "metadata", ExtArgs["result"]["ipAddress"]>
|
|
export type IpAddressInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
logs?: boolean | Prisma.IpAddress$logsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.IpAddressCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type IpAddressIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type IpAddressIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $IpAddressPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "IpAddress"
|
|
objects: {
|
|
logs: Prisma.$IpAddressLogPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
ip: string
|
|
provider: string
|
|
type: string
|
|
countryCode: string
|
|
countryName: string
|
|
regionCode: string
|
|
regionName: string
|
|
city: string
|
|
zipCode: string
|
|
latitude: runtime.Decimal | null
|
|
longitude: runtime.Decimal | null
|
|
metadata: string
|
|
}, ExtArgs["result"]["ipAddress"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type IpAddressGetPayload<S extends boolean | null | undefined | IpAddressDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$IpAddressPayload, S>
|
|
|
|
export type IpAddressCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<IpAddressFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: IpAddressCountAggregateInputType | true
|
|
}
|
|
|
|
export interface IpAddressDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['IpAddress'], meta: { name: 'IpAddress' } }
|
|
/**
|
|
* Find zero or one IpAddress that matches the filter.
|
|
* @param {IpAddressFindUniqueArgs} args - Arguments to find a IpAddress
|
|
* @example
|
|
* // Get one IpAddress
|
|
* const ipAddress = await prisma.ipAddress.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends IpAddressFindUniqueArgs>(args: Prisma.SelectSubset<T, IpAddressFindUniqueArgs<ExtArgs>>): Prisma.Prisma__IpAddressClient<runtime.Types.Result.GetResult<Prisma.$IpAddressPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one IpAddress that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {IpAddressFindUniqueOrThrowArgs} args - Arguments to find a IpAddress
|
|
* @example
|
|
* // Get one IpAddress
|
|
* const ipAddress = await prisma.ipAddress.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends IpAddressFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, IpAddressFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__IpAddressClient<runtime.Types.Result.GetResult<Prisma.$IpAddressPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first IpAddress 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 {IpAddressFindFirstArgs} args - Arguments to find a IpAddress
|
|
* @example
|
|
* // Get one IpAddress
|
|
* const ipAddress = await prisma.ipAddress.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends IpAddressFindFirstArgs>(args?: Prisma.SelectSubset<T, IpAddressFindFirstArgs<ExtArgs>>): Prisma.Prisma__IpAddressClient<runtime.Types.Result.GetResult<Prisma.$IpAddressPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first IpAddress 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 {IpAddressFindFirstOrThrowArgs} args - Arguments to find a IpAddress
|
|
* @example
|
|
* // Get one IpAddress
|
|
* const ipAddress = await prisma.ipAddress.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends IpAddressFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, IpAddressFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__IpAddressClient<runtime.Types.Result.GetResult<Prisma.$IpAddressPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more IpAddresses 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 {IpAddressFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all IpAddresses
|
|
* const ipAddresses = await prisma.ipAddress.findMany()
|
|
*
|
|
* // Get first 10 IpAddresses
|
|
* const ipAddresses = await prisma.ipAddress.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const ipAddressWithIdOnly = await prisma.ipAddress.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends IpAddressFindManyArgs>(args?: Prisma.SelectSubset<T, IpAddressFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IpAddressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a IpAddress.
|
|
* @param {IpAddressCreateArgs} args - Arguments to create a IpAddress.
|
|
* @example
|
|
* // Create one IpAddress
|
|
* const IpAddress = await prisma.ipAddress.create({
|
|
* data: {
|
|
* // ... data to create a IpAddress
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends IpAddressCreateArgs>(args: Prisma.SelectSubset<T, IpAddressCreateArgs<ExtArgs>>): Prisma.Prisma__IpAddressClient<runtime.Types.Result.GetResult<Prisma.$IpAddressPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many IpAddresses.
|
|
* @param {IpAddressCreateManyArgs} args - Arguments to create many IpAddresses.
|
|
* @example
|
|
* // Create many IpAddresses
|
|
* const ipAddress = await prisma.ipAddress.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends IpAddressCreateManyArgs>(args?: Prisma.SelectSubset<T, IpAddressCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many IpAddresses and returns the data saved in the database.
|
|
* @param {IpAddressCreateManyAndReturnArgs} args - Arguments to create many IpAddresses.
|
|
* @example
|
|
* // Create many IpAddresses
|
|
* const ipAddress = await prisma.ipAddress.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many IpAddresses and only return the `id`
|
|
* const ipAddressWithIdOnly = await prisma.ipAddress.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends IpAddressCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, IpAddressCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IpAddressPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a IpAddress.
|
|
* @param {IpAddressDeleteArgs} args - Arguments to delete one IpAddress.
|
|
* @example
|
|
* // Delete one IpAddress
|
|
* const IpAddress = await prisma.ipAddress.delete({
|
|
* where: {
|
|
* // ... filter to delete one IpAddress
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends IpAddressDeleteArgs>(args: Prisma.SelectSubset<T, IpAddressDeleteArgs<ExtArgs>>): Prisma.Prisma__IpAddressClient<runtime.Types.Result.GetResult<Prisma.$IpAddressPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one IpAddress.
|
|
* @param {IpAddressUpdateArgs} args - Arguments to update one IpAddress.
|
|
* @example
|
|
* // Update one IpAddress
|
|
* const ipAddress = await prisma.ipAddress.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends IpAddressUpdateArgs>(args: Prisma.SelectSubset<T, IpAddressUpdateArgs<ExtArgs>>): Prisma.Prisma__IpAddressClient<runtime.Types.Result.GetResult<Prisma.$IpAddressPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more IpAddresses.
|
|
* @param {IpAddressDeleteManyArgs} args - Arguments to filter IpAddresses to delete.
|
|
* @example
|
|
* // Delete a few IpAddresses
|
|
* const { count } = await prisma.ipAddress.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends IpAddressDeleteManyArgs>(args?: Prisma.SelectSubset<T, IpAddressDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more IpAddresses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {IpAddressUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many IpAddresses
|
|
* const ipAddress = await prisma.ipAddress.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends IpAddressUpdateManyArgs>(args: Prisma.SelectSubset<T, IpAddressUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more IpAddresses and returns the data updated in the database.
|
|
* @param {IpAddressUpdateManyAndReturnArgs} args - Arguments to update many IpAddresses.
|
|
* @example
|
|
* // Update many IpAddresses
|
|
* const ipAddress = await prisma.ipAddress.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more IpAddresses and only return the `id`
|
|
* const ipAddressWithIdOnly = await prisma.ipAddress.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends IpAddressUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, IpAddressUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IpAddressPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one IpAddress.
|
|
* @param {IpAddressUpsertArgs} args - Arguments to update or create a IpAddress.
|
|
* @example
|
|
* // Update or create a IpAddress
|
|
* const ipAddress = await prisma.ipAddress.upsert({
|
|
* create: {
|
|
* // ... data to create a IpAddress
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the IpAddress we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends IpAddressUpsertArgs>(args: Prisma.SelectSubset<T, IpAddressUpsertArgs<ExtArgs>>): Prisma.Prisma__IpAddressClient<runtime.Types.Result.GetResult<Prisma.$IpAddressPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of IpAddresses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {IpAddressCountArgs} args - Arguments to filter IpAddresses to count.
|
|
* @example
|
|
* // Count the number of IpAddresses
|
|
* const count = await prisma.ipAddress.count({
|
|
* where: {
|
|
* // ... the filter for the IpAddresses we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends IpAddressCountArgs>(
|
|
args?: Prisma.Subset<T, IpAddressCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], IpAddressCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a IpAddress.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {IpAddressAggregateArgs} 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 IpAddressAggregateArgs>(args: Prisma.Subset<T, IpAddressAggregateArgs>): Prisma.PrismaPromise<GetIpAddressAggregateType<T>>
|
|
|
|
/**
|
|
* Group by IpAddress.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {IpAddressGroupByArgs} 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 IpAddressGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: IpAddressGroupByArgs['orderBy'] }
|
|
: { orderBy?: IpAddressGroupByArgs['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, IpAddressGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIpAddressGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the IpAddress model
|
|
*/
|
|
readonly fields: IpAddressFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for IpAddress.
|
|
* 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__IpAddressClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
logs<T extends Prisma.IpAddress$logsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.IpAddress$logsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IpAddressLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* 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 IpAddress model
|
|
*/
|
|
export interface IpAddressFieldRefs {
|
|
readonly id: Prisma.FieldRef<"IpAddress", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"IpAddress", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"IpAddress", 'DateTime'>
|
|
readonly ip: Prisma.FieldRef<"IpAddress", 'String'>
|
|
readonly provider: Prisma.FieldRef<"IpAddress", 'String'>
|
|
readonly type: Prisma.FieldRef<"IpAddress", 'String'>
|
|
readonly countryCode: Prisma.FieldRef<"IpAddress", 'String'>
|
|
readonly countryName: Prisma.FieldRef<"IpAddress", 'String'>
|
|
readonly regionCode: Prisma.FieldRef<"IpAddress", 'String'>
|
|
readonly regionName: Prisma.FieldRef<"IpAddress", 'String'>
|
|
readonly city: Prisma.FieldRef<"IpAddress", 'String'>
|
|
readonly zipCode: Prisma.FieldRef<"IpAddress", 'String'>
|
|
readonly latitude: Prisma.FieldRef<"IpAddress", 'Decimal'>
|
|
readonly longitude: Prisma.FieldRef<"IpAddress", 'Decimal'>
|
|
readonly metadata: Prisma.FieldRef<"IpAddress", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* IpAddress findUnique
|
|
*/
|
|
export type IpAddressFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddress
|
|
*/
|
|
select?: Prisma.IpAddressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddress
|
|
*/
|
|
omit?: Prisma.IpAddressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IpAddressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which IpAddress to fetch.
|
|
*/
|
|
where: Prisma.IpAddressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* IpAddress findUniqueOrThrow
|
|
*/
|
|
export type IpAddressFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddress
|
|
*/
|
|
select?: Prisma.IpAddressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddress
|
|
*/
|
|
omit?: Prisma.IpAddressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IpAddressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which IpAddress to fetch.
|
|
*/
|
|
where: Prisma.IpAddressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* IpAddress findFirst
|
|
*/
|
|
export type IpAddressFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddress
|
|
*/
|
|
select?: Prisma.IpAddressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddress
|
|
*/
|
|
omit?: Prisma.IpAddressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IpAddressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which IpAddress to fetch.
|
|
*/
|
|
where?: Prisma.IpAddressWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of IpAddresses to fetch.
|
|
*/
|
|
orderBy?: Prisma.IpAddressOrderByWithRelationInput | Prisma.IpAddressOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for IpAddresses.
|
|
*/
|
|
cursor?: Prisma.IpAddressWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` IpAddresses 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` IpAddresses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of IpAddresses.
|
|
*/
|
|
distinct?: Prisma.IpAddressScalarFieldEnum | Prisma.IpAddressScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* IpAddress findFirstOrThrow
|
|
*/
|
|
export type IpAddressFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddress
|
|
*/
|
|
select?: Prisma.IpAddressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddress
|
|
*/
|
|
omit?: Prisma.IpAddressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IpAddressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which IpAddress to fetch.
|
|
*/
|
|
where?: Prisma.IpAddressWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of IpAddresses to fetch.
|
|
*/
|
|
orderBy?: Prisma.IpAddressOrderByWithRelationInput | Prisma.IpAddressOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for IpAddresses.
|
|
*/
|
|
cursor?: Prisma.IpAddressWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` IpAddresses 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` IpAddresses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of IpAddresses.
|
|
*/
|
|
distinct?: Prisma.IpAddressScalarFieldEnum | Prisma.IpAddressScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* IpAddress findMany
|
|
*/
|
|
export type IpAddressFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddress
|
|
*/
|
|
select?: Prisma.IpAddressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddress
|
|
*/
|
|
omit?: Prisma.IpAddressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IpAddressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which IpAddresses to fetch.
|
|
*/
|
|
where?: Prisma.IpAddressWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of IpAddresses to fetch.
|
|
*/
|
|
orderBy?: Prisma.IpAddressOrderByWithRelationInput | Prisma.IpAddressOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing IpAddresses.
|
|
*/
|
|
cursor?: Prisma.IpAddressWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` IpAddresses 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` IpAddresses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of IpAddresses.
|
|
*/
|
|
distinct?: Prisma.IpAddressScalarFieldEnum | Prisma.IpAddressScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* IpAddress create
|
|
*/
|
|
export type IpAddressCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddress
|
|
*/
|
|
select?: Prisma.IpAddressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddress
|
|
*/
|
|
omit?: Prisma.IpAddressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IpAddressInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a IpAddress.
|
|
*/
|
|
data: Prisma.XOR<Prisma.IpAddressCreateInput, Prisma.IpAddressUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* IpAddress createMany
|
|
*/
|
|
export type IpAddressCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many IpAddresses.
|
|
*/
|
|
data: Prisma.IpAddressCreateManyInput | Prisma.IpAddressCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* IpAddress createManyAndReturn
|
|
*/
|
|
export type IpAddressCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddress
|
|
*/
|
|
select?: Prisma.IpAddressSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddress
|
|
*/
|
|
omit?: Prisma.IpAddressOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many IpAddresses.
|
|
*/
|
|
data: Prisma.IpAddressCreateManyInput | Prisma.IpAddressCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* IpAddress update
|
|
*/
|
|
export type IpAddressUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddress
|
|
*/
|
|
select?: Prisma.IpAddressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddress
|
|
*/
|
|
omit?: Prisma.IpAddressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IpAddressInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a IpAddress.
|
|
*/
|
|
data: Prisma.XOR<Prisma.IpAddressUpdateInput, Prisma.IpAddressUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which IpAddress to update.
|
|
*/
|
|
where: Prisma.IpAddressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* IpAddress updateMany
|
|
*/
|
|
export type IpAddressUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update IpAddresses.
|
|
*/
|
|
data: Prisma.XOR<Prisma.IpAddressUpdateManyMutationInput, Prisma.IpAddressUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which IpAddresses to update
|
|
*/
|
|
where?: Prisma.IpAddressWhereInput
|
|
/**
|
|
* Limit how many IpAddresses to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* IpAddress updateManyAndReturn
|
|
*/
|
|
export type IpAddressUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddress
|
|
*/
|
|
select?: Prisma.IpAddressSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddress
|
|
*/
|
|
omit?: Prisma.IpAddressOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update IpAddresses.
|
|
*/
|
|
data: Prisma.XOR<Prisma.IpAddressUpdateManyMutationInput, Prisma.IpAddressUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which IpAddresses to update
|
|
*/
|
|
where?: Prisma.IpAddressWhereInput
|
|
/**
|
|
* Limit how many IpAddresses to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* IpAddress upsert
|
|
*/
|
|
export type IpAddressUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddress
|
|
*/
|
|
select?: Prisma.IpAddressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddress
|
|
*/
|
|
omit?: Prisma.IpAddressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IpAddressInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the IpAddress to update in case it exists.
|
|
*/
|
|
where: Prisma.IpAddressWhereUniqueInput
|
|
/**
|
|
* In case the IpAddress found by the `where` argument doesn't exist, create a new IpAddress with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.IpAddressCreateInput, Prisma.IpAddressUncheckedCreateInput>
|
|
/**
|
|
* In case the IpAddress was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.IpAddressUpdateInput, Prisma.IpAddressUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* IpAddress delete
|
|
*/
|
|
export type IpAddressDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddress
|
|
*/
|
|
select?: Prisma.IpAddressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddress
|
|
*/
|
|
omit?: Prisma.IpAddressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IpAddressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which IpAddress to delete.
|
|
*/
|
|
where: Prisma.IpAddressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* IpAddress deleteMany
|
|
*/
|
|
export type IpAddressDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which IpAddresses to delete
|
|
*/
|
|
where?: Prisma.IpAddressWhereInput
|
|
/**
|
|
* Limit how many IpAddresses to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* IpAddress.logs
|
|
*/
|
|
export type IpAddress$logsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddressLog
|
|
*/
|
|
select?: Prisma.IpAddressLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddressLog
|
|
*/
|
|
omit?: Prisma.IpAddressLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IpAddressLogInclude<ExtArgs> | null
|
|
where?: Prisma.IpAddressLogWhereInput
|
|
orderBy?: Prisma.IpAddressLogOrderByWithRelationInput | Prisma.IpAddressLogOrderByWithRelationInput[]
|
|
cursor?: Prisma.IpAddressLogWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.IpAddressLogScalarFieldEnum | Prisma.IpAddressLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* IpAddress without action
|
|
*/
|
|
export type IpAddressDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IpAddress
|
|
*/
|
|
select?: Prisma.IpAddressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IpAddress
|
|
*/
|
|
omit?: Prisma.IpAddressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IpAddressInclude<ExtArgs> | null
|
|
}
|