1931 lines
73 KiB
TypeScript
1931 lines
73 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 `ApiKeyLog` 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 ApiKeyLog
|
|
*
|
|
*/
|
|
export type ApiKeyLogModel = runtime.Types.Result.DefaultSelection<Prisma.$ApiKeyLogPayload>
|
|
|
|
export type AggregateApiKeyLog = {
|
|
_count: ApiKeyLogCountAggregateOutputType | null
|
|
_avg: ApiKeyLogAvgAggregateOutputType | null
|
|
_sum: ApiKeyLogSumAggregateOutputType | null
|
|
_min: ApiKeyLogMinAggregateOutputType | null
|
|
_max: ApiKeyLogMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ApiKeyLogAvgAggregateOutputType = {
|
|
status: number | null
|
|
duration: number | null
|
|
}
|
|
|
|
export type ApiKeyLogSumAggregateOutputType = {
|
|
status: number | null
|
|
duration: number | null
|
|
}
|
|
|
|
export type ApiKeyLogMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
apiKeyId: string | null
|
|
tenantId: string | null
|
|
ip: string | null
|
|
endpoint: string | null
|
|
method: string | null
|
|
params: string | null
|
|
status: number | null
|
|
duration: number | null
|
|
error: string | null
|
|
type: string | null
|
|
alias: string | null
|
|
tenantName: string | null
|
|
}
|
|
|
|
export type ApiKeyLogMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
apiKeyId: string | null
|
|
tenantId: string | null
|
|
ip: string | null
|
|
endpoint: string | null
|
|
method: string | null
|
|
params: string | null
|
|
status: number | null
|
|
duration: number | null
|
|
error: string | null
|
|
type: string | null
|
|
alias: string | null
|
|
tenantName: string | null
|
|
}
|
|
|
|
export type ApiKeyLogCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
apiKeyId: number
|
|
tenantId: number
|
|
ip: number
|
|
endpoint: number
|
|
method: number
|
|
params: number
|
|
status: number
|
|
duration: number
|
|
error: number
|
|
type: number
|
|
alias: number
|
|
tenantName: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ApiKeyLogAvgAggregateInputType = {
|
|
status?: true
|
|
duration?: true
|
|
}
|
|
|
|
export type ApiKeyLogSumAggregateInputType = {
|
|
status?: true
|
|
duration?: true
|
|
}
|
|
|
|
export type ApiKeyLogMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
apiKeyId?: true
|
|
tenantId?: true
|
|
ip?: true
|
|
endpoint?: true
|
|
method?: true
|
|
params?: true
|
|
status?: true
|
|
duration?: true
|
|
error?: true
|
|
type?: true
|
|
alias?: true
|
|
tenantName?: true
|
|
}
|
|
|
|
export type ApiKeyLogMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
apiKeyId?: true
|
|
tenantId?: true
|
|
ip?: true
|
|
endpoint?: true
|
|
method?: true
|
|
params?: true
|
|
status?: true
|
|
duration?: true
|
|
error?: true
|
|
type?: true
|
|
alias?: true
|
|
tenantName?: true
|
|
}
|
|
|
|
export type ApiKeyLogCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
apiKeyId?: true
|
|
tenantId?: true
|
|
ip?: true
|
|
endpoint?: true
|
|
method?: true
|
|
params?: true
|
|
status?: true
|
|
duration?: true
|
|
error?: true
|
|
type?: true
|
|
alias?: true
|
|
tenantName?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ApiKeyLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ApiKeyLog to aggregate.
|
|
*/
|
|
where?: Prisma.ApiKeyLogWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ApiKeyLogs to fetch.
|
|
*/
|
|
orderBy?: Prisma.ApiKeyLogOrderByWithRelationInput | Prisma.ApiKeyLogOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.ApiKeyLogWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ApiKeyLogs 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` ApiKeyLogs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned ApiKeyLogs
|
|
**/
|
|
_count?: true | ApiKeyLogCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: ApiKeyLogAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: ApiKeyLogSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ApiKeyLogMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ApiKeyLogMaxAggregateInputType
|
|
}
|
|
|
|
export type GetApiKeyLogAggregateType<T extends ApiKeyLogAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateApiKeyLog]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateApiKeyLog[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateApiKeyLog[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ApiKeyLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.ApiKeyLogWhereInput
|
|
orderBy?: Prisma.ApiKeyLogOrderByWithAggregationInput | Prisma.ApiKeyLogOrderByWithAggregationInput[]
|
|
by: Prisma.ApiKeyLogScalarFieldEnum[] | Prisma.ApiKeyLogScalarFieldEnum
|
|
having?: Prisma.ApiKeyLogScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ApiKeyLogCountAggregateInputType | true
|
|
_avg?: ApiKeyLogAvgAggregateInputType
|
|
_sum?: ApiKeyLogSumAggregateInputType
|
|
_min?: ApiKeyLogMinAggregateInputType
|
|
_max?: ApiKeyLogMaxAggregateInputType
|
|
}
|
|
|
|
export type ApiKeyLogGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
apiKeyId: string | null
|
|
tenantId: string | null
|
|
ip: string
|
|
endpoint: string
|
|
method: string
|
|
params: string
|
|
status: number | null
|
|
duration: number | null
|
|
error: string | null
|
|
type: string | null
|
|
alias: string | null
|
|
tenantName: string | null
|
|
_count: ApiKeyLogCountAggregateOutputType | null
|
|
_avg: ApiKeyLogAvgAggregateOutputType | null
|
|
_sum: ApiKeyLogSumAggregateOutputType | null
|
|
_min: ApiKeyLogMinAggregateOutputType | null
|
|
_max: ApiKeyLogMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetApiKeyLogGroupByPayload<T extends ApiKeyLogGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<ApiKeyLogGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ApiKeyLogGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], ApiKeyLogGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], ApiKeyLogGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type ApiKeyLogWhereInput = {
|
|
AND?: Prisma.ApiKeyLogWhereInput | Prisma.ApiKeyLogWhereInput[]
|
|
OR?: Prisma.ApiKeyLogWhereInput[]
|
|
NOT?: Prisma.ApiKeyLogWhereInput | Prisma.ApiKeyLogWhereInput[]
|
|
id?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"ApiKeyLog"> | Date | string
|
|
apiKeyId?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
tenantId?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
ip?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
endpoint?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
method?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
params?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
status?: Prisma.IntNullableFilter<"ApiKeyLog"> | number | null
|
|
duration?: Prisma.IntNullableFilter<"ApiKeyLog"> | number | null
|
|
error?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
type?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
alias?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
tenantName?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
apiKey?: Prisma.XOR<Prisma.ApiKeyNullableScalarRelationFilter, Prisma.ApiKeyWhereInput> | null
|
|
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
|
|
}
|
|
|
|
export type ApiKeyLogOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
apiKeyId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
ip?: Prisma.SortOrder
|
|
endpoint?: Prisma.SortOrder
|
|
method?: Prisma.SortOrder
|
|
params?: Prisma.SortOrder
|
|
status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
duration?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
error?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
type?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
alias?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
tenantName?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
apiKey?: Prisma.ApiKeyOrderByWithRelationInput
|
|
tenant?: Prisma.TenantOrderByWithRelationInput
|
|
}
|
|
|
|
export type ApiKeyLogWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.ApiKeyLogWhereInput | Prisma.ApiKeyLogWhereInput[]
|
|
OR?: Prisma.ApiKeyLogWhereInput[]
|
|
NOT?: Prisma.ApiKeyLogWhereInput | Prisma.ApiKeyLogWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"ApiKeyLog"> | Date | string
|
|
apiKeyId?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
tenantId?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
ip?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
endpoint?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
method?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
params?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
status?: Prisma.IntNullableFilter<"ApiKeyLog"> | number | null
|
|
duration?: Prisma.IntNullableFilter<"ApiKeyLog"> | number | null
|
|
error?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
type?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
alias?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
tenantName?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
apiKey?: Prisma.XOR<Prisma.ApiKeyNullableScalarRelationFilter, Prisma.ApiKeyWhereInput> | null
|
|
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
|
|
}, "id">
|
|
|
|
export type ApiKeyLogOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
apiKeyId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
ip?: Prisma.SortOrder
|
|
endpoint?: Prisma.SortOrder
|
|
method?: Prisma.SortOrder
|
|
params?: Prisma.SortOrder
|
|
status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
duration?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
error?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
type?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
alias?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
tenantName?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.ApiKeyLogCountOrderByAggregateInput
|
|
_avg?: Prisma.ApiKeyLogAvgOrderByAggregateInput
|
|
_max?: Prisma.ApiKeyLogMaxOrderByAggregateInput
|
|
_min?: Prisma.ApiKeyLogMinOrderByAggregateInput
|
|
_sum?: Prisma.ApiKeyLogSumOrderByAggregateInput
|
|
}
|
|
|
|
export type ApiKeyLogScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.ApiKeyLogScalarWhereWithAggregatesInput | Prisma.ApiKeyLogScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.ApiKeyLogScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.ApiKeyLogScalarWhereWithAggregatesInput | Prisma.ApiKeyLogScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"ApiKeyLog"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ApiKeyLog"> | Date | string
|
|
apiKeyId?: Prisma.StringNullableWithAggregatesFilter<"ApiKeyLog"> | string | null
|
|
tenantId?: Prisma.StringNullableWithAggregatesFilter<"ApiKeyLog"> | string | null
|
|
ip?: Prisma.StringWithAggregatesFilter<"ApiKeyLog"> | string
|
|
endpoint?: Prisma.StringWithAggregatesFilter<"ApiKeyLog"> | string
|
|
method?: Prisma.StringWithAggregatesFilter<"ApiKeyLog"> | string
|
|
params?: Prisma.StringWithAggregatesFilter<"ApiKeyLog"> | string
|
|
status?: Prisma.IntNullableWithAggregatesFilter<"ApiKeyLog"> | number | null
|
|
duration?: Prisma.IntNullableWithAggregatesFilter<"ApiKeyLog"> | number | null
|
|
error?: Prisma.StringNullableWithAggregatesFilter<"ApiKeyLog"> | string | null
|
|
type?: Prisma.StringNullableWithAggregatesFilter<"ApiKeyLog"> | string | null
|
|
alias?: Prisma.StringNullableWithAggregatesFilter<"ApiKeyLog"> | string | null
|
|
tenantName?: Prisma.StringNullableWithAggregatesFilter<"ApiKeyLog"> | string | null
|
|
}
|
|
|
|
export type ApiKeyLogCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
ip: string
|
|
endpoint: string
|
|
method: string
|
|
params: string
|
|
status?: number | null
|
|
duration?: number | null
|
|
error?: string | null
|
|
type?: string | null
|
|
alias?: string | null
|
|
tenantName?: string | null
|
|
apiKey?: Prisma.ApiKeyCreateNestedOneWithoutApiKeyLogsInput
|
|
tenant?: Prisma.TenantCreateNestedOneWithoutApiKeyLogsInput
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
apiKeyId?: string | null
|
|
tenantId?: string | null
|
|
ip: string
|
|
endpoint: string
|
|
method: string
|
|
params: string
|
|
status?: number | null
|
|
duration?: number | null
|
|
error?: string | null
|
|
type?: string | null
|
|
alias?: string | null
|
|
tenantName?: string | null
|
|
}
|
|
|
|
export type ApiKeyLogUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
method?: Prisma.StringFieldUpdateOperationsInput | string
|
|
params?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
apiKey?: Prisma.ApiKeyUpdateOneWithoutApiKeyLogsNestedInput
|
|
tenant?: Prisma.TenantUpdateOneWithoutApiKeyLogsNestedInput
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
apiKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
method?: Prisma.StringFieldUpdateOperationsInput | string
|
|
params?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ApiKeyLogCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
apiKeyId?: string | null
|
|
tenantId?: string | null
|
|
ip: string
|
|
endpoint: string
|
|
method: string
|
|
params: string
|
|
status?: number | null
|
|
duration?: number | null
|
|
error?: string | null
|
|
type?: string | null
|
|
alias?: string | null
|
|
tenantName?: string | null
|
|
}
|
|
|
|
export type ApiKeyLogUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
method?: Prisma.StringFieldUpdateOperationsInput | string
|
|
params?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
apiKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
method?: Prisma.StringFieldUpdateOperationsInput | string
|
|
params?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ApiKeyLogListRelationFilter = {
|
|
every?: Prisma.ApiKeyLogWhereInput
|
|
some?: Prisma.ApiKeyLogWhereInput
|
|
none?: Prisma.ApiKeyLogWhereInput
|
|
}
|
|
|
|
export type ApiKeyLogOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ApiKeyLogCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
apiKeyId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
ip?: Prisma.SortOrder
|
|
endpoint?: Prisma.SortOrder
|
|
method?: Prisma.SortOrder
|
|
params?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
duration?: Prisma.SortOrder
|
|
error?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
alias?: Prisma.SortOrder
|
|
tenantName?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ApiKeyLogAvgOrderByAggregateInput = {
|
|
status?: Prisma.SortOrder
|
|
duration?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ApiKeyLogMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
apiKeyId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
ip?: Prisma.SortOrder
|
|
endpoint?: Prisma.SortOrder
|
|
method?: Prisma.SortOrder
|
|
params?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
duration?: Prisma.SortOrder
|
|
error?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
alias?: Prisma.SortOrder
|
|
tenantName?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ApiKeyLogMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
apiKeyId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
ip?: Prisma.SortOrder
|
|
endpoint?: Prisma.SortOrder
|
|
method?: Prisma.SortOrder
|
|
params?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
duration?: Prisma.SortOrder
|
|
error?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
alias?: Prisma.SortOrder
|
|
tenantName?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ApiKeyLogSumOrderByAggregateInput = {
|
|
status?: Prisma.SortOrder
|
|
duration?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ApiKeyLogCreateNestedManyWithoutTenantInput = {
|
|
create?: Prisma.XOR<Prisma.ApiKeyLogCreateWithoutTenantInput, Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput> | Prisma.ApiKeyLogCreateWithoutTenantInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput | Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput[]
|
|
createMany?: Prisma.ApiKeyLogCreateManyTenantInputEnvelope
|
|
connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedCreateNestedManyWithoutTenantInput = {
|
|
create?: Prisma.XOR<Prisma.ApiKeyLogCreateWithoutTenantInput, Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput> | Prisma.ApiKeyLogCreateWithoutTenantInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput | Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput[]
|
|
createMany?: Prisma.ApiKeyLogCreateManyTenantInputEnvelope
|
|
connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
}
|
|
|
|
export type ApiKeyLogUpdateManyWithoutTenantNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ApiKeyLogCreateWithoutTenantInput, Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput> | Prisma.ApiKeyLogCreateWithoutTenantInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput | Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput[]
|
|
upsert?: Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutTenantInput | Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutTenantInput[]
|
|
createMany?: Prisma.ApiKeyLogCreateManyTenantInputEnvelope
|
|
set?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
disconnect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
delete?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
update?: Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutTenantInput | Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutTenantInput[]
|
|
updateMany?: Prisma.ApiKeyLogUpdateManyWithWhereWithoutTenantInput | Prisma.ApiKeyLogUpdateManyWithWhereWithoutTenantInput[]
|
|
deleteMany?: Prisma.ApiKeyLogScalarWhereInput | Prisma.ApiKeyLogScalarWhereInput[]
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedUpdateManyWithoutTenantNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ApiKeyLogCreateWithoutTenantInput, Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput> | Prisma.ApiKeyLogCreateWithoutTenantInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput | Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput[]
|
|
upsert?: Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutTenantInput | Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutTenantInput[]
|
|
createMany?: Prisma.ApiKeyLogCreateManyTenantInputEnvelope
|
|
set?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
disconnect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
delete?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
update?: Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutTenantInput | Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutTenantInput[]
|
|
updateMany?: Prisma.ApiKeyLogUpdateManyWithWhereWithoutTenantInput | Prisma.ApiKeyLogUpdateManyWithWhereWithoutTenantInput[]
|
|
deleteMany?: Prisma.ApiKeyLogScalarWhereInput | Prisma.ApiKeyLogScalarWhereInput[]
|
|
}
|
|
|
|
export type ApiKeyLogCreateNestedManyWithoutApiKeyInput = {
|
|
create?: Prisma.XOR<Prisma.ApiKeyLogCreateWithoutApiKeyInput, Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput> | Prisma.ApiKeyLogCreateWithoutApiKeyInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput[]
|
|
connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput | Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput[]
|
|
createMany?: Prisma.ApiKeyLogCreateManyApiKeyInputEnvelope
|
|
connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedCreateNestedManyWithoutApiKeyInput = {
|
|
create?: Prisma.XOR<Prisma.ApiKeyLogCreateWithoutApiKeyInput, Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput> | Prisma.ApiKeyLogCreateWithoutApiKeyInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput[]
|
|
connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput | Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput[]
|
|
createMany?: Prisma.ApiKeyLogCreateManyApiKeyInputEnvelope
|
|
connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
}
|
|
|
|
export type ApiKeyLogUpdateManyWithoutApiKeyNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ApiKeyLogCreateWithoutApiKeyInput, Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput> | Prisma.ApiKeyLogCreateWithoutApiKeyInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput[]
|
|
connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput | Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput[]
|
|
upsert?: Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutApiKeyInput | Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutApiKeyInput[]
|
|
createMany?: Prisma.ApiKeyLogCreateManyApiKeyInputEnvelope
|
|
set?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
disconnect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
delete?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
update?: Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutApiKeyInput | Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutApiKeyInput[]
|
|
updateMany?: Prisma.ApiKeyLogUpdateManyWithWhereWithoutApiKeyInput | Prisma.ApiKeyLogUpdateManyWithWhereWithoutApiKeyInput[]
|
|
deleteMany?: Prisma.ApiKeyLogScalarWhereInput | Prisma.ApiKeyLogScalarWhereInput[]
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedUpdateManyWithoutApiKeyNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ApiKeyLogCreateWithoutApiKeyInput, Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput> | Prisma.ApiKeyLogCreateWithoutApiKeyInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput[]
|
|
connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput | Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput[]
|
|
upsert?: Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutApiKeyInput | Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutApiKeyInput[]
|
|
createMany?: Prisma.ApiKeyLogCreateManyApiKeyInputEnvelope
|
|
set?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
disconnect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
delete?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[]
|
|
update?: Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutApiKeyInput | Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutApiKeyInput[]
|
|
updateMany?: Prisma.ApiKeyLogUpdateManyWithWhereWithoutApiKeyInput | Prisma.ApiKeyLogUpdateManyWithWhereWithoutApiKeyInput[]
|
|
deleteMany?: Prisma.ApiKeyLogScalarWhereInput | Prisma.ApiKeyLogScalarWhereInput[]
|
|
}
|
|
|
|
export type NullableIntFieldUpdateOperationsInput = {
|
|
set?: number | null
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type ApiKeyLogCreateWithoutTenantInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
ip: string
|
|
endpoint: string
|
|
method: string
|
|
params: string
|
|
status?: number | null
|
|
duration?: number | null
|
|
error?: string | null
|
|
type?: string | null
|
|
alias?: string | null
|
|
tenantName?: string | null
|
|
apiKey?: Prisma.ApiKeyCreateNestedOneWithoutApiKeyLogsInput
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedCreateWithoutTenantInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
apiKeyId?: string | null
|
|
ip: string
|
|
endpoint: string
|
|
method: string
|
|
params: string
|
|
status?: number | null
|
|
duration?: number | null
|
|
error?: string | null
|
|
type?: string | null
|
|
alias?: string | null
|
|
tenantName?: string | null
|
|
}
|
|
|
|
export type ApiKeyLogCreateOrConnectWithoutTenantInput = {
|
|
where: Prisma.ApiKeyLogWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.ApiKeyLogCreateWithoutTenantInput, Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput>
|
|
}
|
|
|
|
export type ApiKeyLogCreateManyTenantInputEnvelope = {
|
|
data: Prisma.ApiKeyLogCreateManyTenantInput | Prisma.ApiKeyLogCreateManyTenantInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ApiKeyLogUpsertWithWhereUniqueWithoutTenantInput = {
|
|
where: Prisma.ApiKeyLogWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.ApiKeyLogUpdateWithoutTenantInput, Prisma.ApiKeyLogUncheckedUpdateWithoutTenantInput>
|
|
create: Prisma.XOR<Prisma.ApiKeyLogCreateWithoutTenantInput, Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput>
|
|
}
|
|
|
|
export type ApiKeyLogUpdateWithWhereUniqueWithoutTenantInput = {
|
|
where: Prisma.ApiKeyLogWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.ApiKeyLogUpdateWithoutTenantInput, Prisma.ApiKeyLogUncheckedUpdateWithoutTenantInput>
|
|
}
|
|
|
|
export type ApiKeyLogUpdateManyWithWhereWithoutTenantInput = {
|
|
where: Prisma.ApiKeyLogScalarWhereInput
|
|
data: Prisma.XOR<Prisma.ApiKeyLogUpdateManyMutationInput, Prisma.ApiKeyLogUncheckedUpdateManyWithoutTenantInput>
|
|
}
|
|
|
|
export type ApiKeyLogScalarWhereInput = {
|
|
AND?: Prisma.ApiKeyLogScalarWhereInput | Prisma.ApiKeyLogScalarWhereInput[]
|
|
OR?: Prisma.ApiKeyLogScalarWhereInput[]
|
|
NOT?: Prisma.ApiKeyLogScalarWhereInput | Prisma.ApiKeyLogScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"ApiKeyLog"> | Date | string
|
|
apiKeyId?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
tenantId?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
ip?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
endpoint?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
method?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
params?: Prisma.StringFilter<"ApiKeyLog"> | string
|
|
status?: Prisma.IntNullableFilter<"ApiKeyLog"> | number | null
|
|
duration?: Prisma.IntNullableFilter<"ApiKeyLog"> | number | null
|
|
error?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
type?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
alias?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
tenantName?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null
|
|
}
|
|
|
|
export type ApiKeyLogCreateWithoutApiKeyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
ip: string
|
|
endpoint: string
|
|
method: string
|
|
params: string
|
|
status?: number | null
|
|
duration?: number | null
|
|
error?: string | null
|
|
type?: string | null
|
|
alias?: string | null
|
|
tenantName?: string | null
|
|
tenant?: Prisma.TenantCreateNestedOneWithoutApiKeyLogsInput
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedCreateWithoutApiKeyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId?: string | null
|
|
ip: string
|
|
endpoint: string
|
|
method: string
|
|
params: string
|
|
status?: number | null
|
|
duration?: number | null
|
|
error?: string | null
|
|
type?: string | null
|
|
alias?: string | null
|
|
tenantName?: string | null
|
|
}
|
|
|
|
export type ApiKeyLogCreateOrConnectWithoutApiKeyInput = {
|
|
where: Prisma.ApiKeyLogWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.ApiKeyLogCreateWithoutApiKeyInput, Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput>
|
|
}
|
|
|
|
export type ApiKeyLogCreateManyApiKeyInputEnvelope = {
|
|
data: Prisma.ApiKeyLogCreateManyApiKeyInput | Prisma.ApiKeyLogCreateManyApiKeyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ApiKeyLogUpsertWithWhereUniqueWithoutApiKeyInput = {
|
|
where: Prisma.ApiKeyLogWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.ApiKeyLogUpdateWithoutApiKeyInput, Prisma.ApiKeyLogUncheckedUpdateWithoutApiKeyInput>
|
|
create: Prisma.XOR<Prisma.ApiKeyLogCreateWithoutApiKeyInput, Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput>
|
|
}
|
|
|
|
export type ApiKeyLogUpdateWithWhereUniqueWithoutApiKeyInput = {
|
|
where: Prisma.ApiKeyLogWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.ApiKeyLogUpdateWithoutApiKeyInput, Prisma.ApiKeyLogUncheckedUpdateWithoutApiKeyInput>
|
|
}
|
|
|
|
export type ApiKeyLogUpdateManyWithWhereWithoutApiKeyInput = {
|
|
where: Prisma.ApiKeyLogScalarWhereInput
|
|
data: Prisma.XOR<Prisma.ApiKeyLogUpdateManyMutationInput, Prisma.ApiKeyLogUncheckedUpdateManyWithoutApiKeyInput>
|
|
}
|
|
|
|
export type ApiKeyLogCreateManyTenantInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
apiKeyId?: string | null
|
|
ip: string
|
|
endpoint: string
|
|
method: string
|
|
params: string
|
|
status?: number | null
|
|
duration?: number | null
|
|
error?: string | null
|
|
type?: string | null
|
|
alias?: string | null
|
|
tenantName?: string | null
|
|
}
|
|
|
|
export type ApiKeyLogUpdateWithoutTenantInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
method?: Prisma.StringFieldUpdateOperationsInput | string
|
|
params?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
apiKey?: Prisma.ApiKeyUpdateOneWithoutApiKeyLogsNestedInput
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedUpdateWithoutTenantInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
apiKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
method?: Prisma.StringFieldUpdateOperationsInput | string
|
|
params?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedUpdateManyWithoutTenantInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
apiKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
method?: Prisma.StringFieldUpdateOperationsInput | string
|
|
params?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ApiKeyLogCreateManyApiKeyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId?: string | null
|
|
ip: string
|
|
endpoint: string
|
|
method: string
|
|
params: string
|
|
status?: number | null
|
|
duration?: number | null
|
|
error?: string | null
|
|
type?: string | null
|
|
alias?: string | null
|
|
tenantName?: string | null
|
|
}
|
|
|
|
export type ApiKeyLogUpdateWithoutApiKeyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
method?: Prisma.StringFieldUpdateOperationsInput | string
|
|
params?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenant?: Prisma.TenantUpdateOneWithoutApiKeyLogsNestedInput
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedUpdateWithoutApiKeyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
method?: Prisma.StringFieldUpdateOperationsInput | string
|
|
params?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ApiKeyLogUncheckedUpdateManyWithoutApiKeyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
|
|
method?: Prisma.StringFieldUpdateOperationsInput | string
|
|
params?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
|
|
|
|
export type ApiKeyLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
apiKeyId?: boolean
|
|
tenantId?: boolean
|
|
ip?: boolean
|
|
endpoint?: boolean
|
|
method?: boolean
|
|
params?: boolean
|
|
status?: boolean
|
|
duration?: boolean
|
|
error?: boolean
|
|
type?: boolean
|
|
alias?: boolean
|
|
tenantName?: boolean
|
|
apiKey?: boolean | Prisma.ApiKeyLog$apiKeyArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.ApiKeyLog$tenantArgs<ExtArgs>
|
|
}, ExtArgs["result"]["apiKeyLog"]>
|
|
|
|
export type ApiKeyLogSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
apiKeyId?: boolean
|
|
tenantId?: boolean
|
|
ip?: boolean
|
|
endpoint?: boolean
|
|
method?: boolean
|
|
params?: boolean
|
|
status?: boolean
|
|
duration?: boolean
|
|
error?: boolean
|
|
type?: boolean
|
|
alias?: boolean
|
|
tenantName?: boolean
|
|
apiKey?: boolean | Prisma.ApiKeyLog$apiKeyArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.ApiKeyLog$tenantArgs<ExtArgs>
|
|
}, ExtArgs["result"]["apiKeyLog"]>
|
|
|
|
export type ApiKeyLogSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
apiKeyId?: boolean
|
|
tenantId?: boolean
|
|
ip?: boolean
|
|
endpoint?: boolean
|
|
method?: boolean
|
|
params?: boolean
|
|
status?: boolean
|
|
duration?: boolean
|
|
error?: boolean
|
|
type?: boolean
|
|
alias?: boolean
|
|
tenantName?: boolean
|
|
apiKey?: boolean | Prisma.ApiKeyLog$apiKeyArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.ApiKeyLog$tenantArgs<ExtArgs>
|
|
}, ExtArgs["result"]["apiKeyLog"]>
|
|
|
|
export type ApiKeyLogSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
apiKeyId?: boolean
|
|
tenantId?: boolean
|
|
ip?: boolean
|
|
endpoint?: boolean
|
|
method?: boolean
|
|
params?: boolean
|
|
status?: boolean
|
|
duration?: boolean
|
|
error?: boolean
|
|
type?: boolean
|
|
alias?: boolean
|
|
tenantName?: boolean
|
|
}
|
|
|
|
export type ApiKeyLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "apiKeyId" | "tenantId" | "ip" | "endpoint" | "method" | "params" | "status" | "duration" | "error" | "type" | "alias" | "tenantName", ExtArgs["result"]["apiKeyLog"]>
|
|
export type ApiKeyLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
apiKey?: boolean | Prisma.ApiKeyLog$apiKeyArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.ApiKeyLog$tenantArgs<ExtArgs>
|
|
}
|
|
export type ApiKeyLogIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
apiKey?: boolean | Prisma.ApiKeyLog$apiKeyArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.ApiKeyLog$tenantArgs<ExtArgs>
|
|
}
|
|
export type ApiKeyLogIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
apiKey?: boolean | Prisma.ApiKeyLog$apiKeyArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.ApiKeyLog$tenantArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ApiKeyLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "ApiKeyLog"
|
|
objects: {
|
|
apiKey: Prisma.$ApiKeyPayload<ExtArgs> | null
|
|
tenant: Prisma.$TenantPayload<ExtArgs> | null
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
apiKeyId: string | null
|
|
tenantId: string | null
|
|
ip: string
|
|
endpoint: string
|
|
method: string
|
|
params: string
|
|
status: number | null
|
|
duration: number | null
|
|
error: string | null
|
|
type: string | null
|
|
alias: string | null
|
|
tenantName: string | null
|
|
}, ExtArgs["result"]["apiKeyLog"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type ApiKeyLogGetPayload<S extends boolean | null | undefined | ApiKeyLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload, S>
|
|
|
|
export type ApiKeyLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<ApiKeyLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: ApiKeyLogCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ApiKeyLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ApiKeyLog'], meta: { name: 'ApiKeyLog' } }
|
|
/**
|
|
* Find zero or one ApiKeyLog that matches the filter.
|
|
* @param {ApiKeyLogFindUniqueArgs} args - Arguments to find a ApiKeyLog
|
|
* @example
|
|
* // Get one ApiKeyLog
|
|
* const apiKeyLog = await prisma.apiKeyLog.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ApiKeyLogFindUniqueArgs>(args: Prisma.SelectSubset<T, ApiKeyLogFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ApiKeyLogClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one ApiKeyLog that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ApiKeyLogFindUniqueOrThrowArgs} args - Arguments to find a ApiKeyLog
|
|
* @example
|
|
* // Get one ApiKeyLog
|
|
* const apiKeyLog = await prisma.apiKeyLog.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ApiKeyLogFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ApiKeyLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ApiKeyLogClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first ApiKeyLog 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 {ApiKeyLogFindFirstArgs} args - Arguments to find a ApiKeyLog
|
|
* @example
|
|
* // Get one ApiKeyLog
|
|
* const apiKeyLog = await prisma.apiKeyLog.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ApiKeyLogFindFirstArgs>(args?: Prisma.SelectSubset<T, ApiKeyLogFindFirstArgs<ExtArgs>>): Prisma.Prisma__ApiKeyLogClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first ApiKeyLog 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 {ApiKeyLogFindFirstOrThrowArgs} args - Arguments to find a ApiKeyLog
|
|
* @example
|
|
* // Get one ApiKeyLog
|
|
* const apiKeyLog = await prisma.apiKeyLog.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ApiKeyLogFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ApiKeyLogFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ApiKeyLogClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more ApiKeyLogs 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 {ApiKeyLogFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all ApiKeyLogs
|
|
* const apiKeyLogs = await prisma.apiKeyLog.findMany()
|
|
*
|
|
* // Get first 10 ApiKeyLogs
|
|
* const apiKeyLogs = await prisma.apiKeyLog.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const apiKeyLogWithIdOnly = await prisma.apiKeyLog.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ApiKeyLogFindManyArgs>(args?: Prisma.SelectSubset<T, ApiKeyLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a ApiKeyLog.
|
|
* @param {ApiKeyLogCreateArgs} args - Arguments to create a ApiKeyLog.
|
|
* @example
|
|
* // Create one ApiKeyLog
|
|
* const ApiKeyLog = await prisma.apiKeyLog.create({
|
|
* data: {
|
|
* // ... data to create a ApiKeyLog
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ApiKeyLogCreateArgs>(args: Prisma.SelectSubset<T, ApiKeyLogCreateArgs<ExtArgs>>): Prisma.Prisma__ApiKeyLogClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many ApiKeyLogs.
|
|
* @param {ApiKeyLogCreateManyArgs} args - Arguments to create many ApiKeyLogs.
|
|
* @example
|
|
* // Create many ApiKeyLogs
|
|
* const apiKeyLog = await prisma.apiKeyLog.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ApiKeyLogCreateManyArgs>(args?: Prisma.SelectSubset<T, ApiKeyLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many ApiKeyLogs and returns the data saved in the database.
|
|
* @param {ApiKeyLogCreateManyAndReturnArgs} args - Arguments to create many ApiKeyLogs.
|
|
* @example
|
|
* // Create many ApiKeyLogs
|
|
* const apiKeyLog = await prisma.apiKeyLog.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many ApiKeyLogs and only return the `id`
|
|
* const apiKeyLogWithIdOnly = await prisma.apiKeyLog.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 ApiKeyLogCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ApiKeyLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a ApiKeyLog.
|
|
* @param {ApiKeyLogDeleteArgs} args - Arguments to delete one ApiKeyLog.
|
|
* @example
|
|
* // Delete one ApiKeyLog
|
|
* const ApiKeyLog = await prisma.apiKeyLog.delete({
|
|
* where: {
|
|
* // ... filter to delete one ApiKeyLog
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ApiKeyLogDeleteArgs>(args: Prisma.SelectSubset<T, ApiKeyLogDeleteArgs<ExtArgs>>): Prisma.Prisma__ApiKeyLogClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one ApiKeyLog.
|
|
* @param {ApiKeyLogUpdateArgs} args - Arguments to update one ApiKeyLog.
|
|
* @example
|
|
* // Update one ApiKeyLog
|
|
* const apiKeyLog = await prisma.apiKeyLog.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ApiKeyLogUpdateArgs>(args: Prisma.SelectSubset<T, ApiKeyLogUpdateArgs<ExtArgs>>): Prisma.Prisma__ApiKeyLogClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more ApiKeyLogs.
|
|
* @param {ApiKeyLogDeleteManyArgs} args - Arguments to filter ApiKeyLogs to delete.
|
|
* @example
|
|
* // Delete a few ApiKeyLogs
|
|
* const { count } = await prisma.apiKeyLog.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ApiKeyLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, ApiKeyLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ApiKeyLogs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ApiKeyLogUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many ApiKeyLogs
|
|
* const apiKeyLog = await prisma.apiKeyLog.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ApiKeyLogUpdateManyArgs>(args: Prisma.SelectSubset<T, ApiKeyLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ApiKeyLogs and returns the data updated in the database.
|
|
* @param {ApiKeyLogUpdateManyAndReturnArgs} args - Arguments to update many ApiKeyLogs.
|
|
* @example
|
|
* // Update many ApiKeyLogs
|
|
* const apiKeyLog = await prisma.apiKeyLog.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more ApiKeyLogs and only return the `id`
|
|
* const apiKeyLogWithIdOnly = await prisma.apiKeyLog.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 ApiKeyLogUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ApiKeyLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one ApiKeyLog.
|
|
* @param {ApiKeyLogUpsertArgs} args - Arguments to update or create a ApiKeyLog.
|
|
* @example
|
|
* // Update or create a ApiKeyLog
|
|
* const apiKeyLog = await prisma.apiKeyLog.upsert({
|
|
* create: {
|
|
* // ... data to create a ApiKeyLog
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the ApiKeyLog we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ApiKeyLogUpsertArgs>(args: Prisma.SelectSubset<T, ApiKeyLogUpsertArgs<ExtArgs>>): Prisma.Prisma__ApiKeyLogClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of ApiKeyLogs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ApiKeyLogCountArgs} args - Arguments to filter ApiKeyLogs to count.
|
|
* @example
|
|
* // Count the number of ApiKeyLogs
|
|
* const count = await prisma.apiKeyLog.count({
|
|
* where: {
|
|
* // ... the filter for the ApiKeyLogs we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ApiKeyLogCountArgs>(
|
|
args?: Prisma.Subset<T, ApiKeyLogCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], ApiKeyLogCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a ApiKeyLog.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ApiKeyLogAggregateArgs} 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 ApiKeyLogAggregateArgs>(args: Prisma.Subset<T, ApiKeyLogAggregateArgs>): Prisma.PrismaPromise<GetApiKeyLogAggregateType<T>>
|
|
|
|
/**
|
|
* Group by ApiKeyLog.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ApiKeyLogGroupByArgs} 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 ApiKeyLogGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: ApiKeyLogGroupByArgs['orderBy'] }
|
|
: { orderBy?: ApiKeyLogGroupByArgs['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, ApiKeyLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetApiKeyLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the ApiKeyLog model
|
|
*/
|
|
readonly fields: ApiKeyLogFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for ApiKeyLog.
|
|
* 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__ApiKeyLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
apiKey<T extends Prisma.ApiKeyLog$apiKeyArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApiKeyLog$apiKeyArgs<ExtArgs>>): Prisma.Prisma__ApiKeyClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
tenant<T extends Prisma.ApiKeyLog$tenantArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApiKeyLog$tenantArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* 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 ApiKeyLog model
|
|
*/
|
|
export interface ApiKeyLogFieldRefs {
|
|
readonly id: Prisma.FieldRef<"ApiKeyLog", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"ApiKeyLog", 'DateTime'>
|
|
readonly apiKeyId: Prisma.FieldRef<"ApiKeyLog", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"ApiKeyLog", 'String'>
|
|
readonly ip: Prisma.FieldRef<"ApiKeyLog", 'String'>
|
|
readonly endpoint: Prisma.FieldRef<"ApiKeyLog", 'String'>
|
|
readonly method: Prisma.FieldRef<"ApiKeyLog", 'String'>
|
|
readonly params: Prisma.FieldRef<"ApiKeyLog", 'String'>
|
|
readonly status: Prisma.FieldRef<"ApiKeyLog", 'Int'>
|
|
readonly duration: Prisma.FieldRef<"ApiKeyLog", 'Int'>
|
|
readonly error: Prisma.FieldRef<"ApiKeyLog", 'String'>
|
|
readonly type: Prisma.FieldRef<"ApiKeyLog", 'String'>
|
|
readonly alias: Prisma.FieldRef<"ApiKeyLog", 'String'>
|
|
readonly tenantName: Prisma.FieldRef<"ApiKeyLog", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ApiKeyLog findUnique
|
|
*/
|
|
export type ApiKeyLogFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKeyLog
|
|
*/
|
|
select?: Prisma.ApiKeyLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKeyLog
|
|
*/
|
|
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyLogInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ApiKeyLog to fetch.
|
|
*/
|
|
where: Prisma.ApiKeyLogWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog findUniqueOrThrow
|
|
*/
|
|
export type ApiKeyLogFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKeyLog
|
|
*/
|
|
select?: Prisma.ApiKeyLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKeyLog
|
|
*/
|
|
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyLogInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ApiKeyLog to fetch.
|
|
*/
|
|
where: Prisma.ApiKeyLogWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog findFirst
|
|
*/
|
|
export type ApiKeyLogFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKeyLog
|
|
*/
|
|
select?: Prisma.ApiKeyLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKeyLog
|
|
*/
|
|
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyLogInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ApiKeyLog to fetch.
|
|
*/
|
|
where?: Prisma.ApiKeyLogWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ApiKeyLogs to fetch.
|
|
*/
|
|
orderBy?: Prisma.ApiKeyLogOrderByWithRelationInput | Prisma.ApiKeyLogOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ApiKeyLogs.
|
|
*/
|
|
cursor?: Prisma.ApiKeyLogWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ApiKeyLogs 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` ApiKeyLogs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ApiKeyLogs.
|
|
*/
|
|
distinct?: Prisma.ApiKeyLogScalarFieldEnum | Prisma.ApiKeyLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog findFirstOrThrow
|
|
*/
|
|
export type ApiKeyLogFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKeyLog
|
|
*/
|
|
select?: Prisma.ApiKeyLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKeyLog
|
|
*/
|
|
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyLogInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ApiKeyLog to fetch.
|
|
*/
|
|
where?: Prisma.ApiKeyLogWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ApiKeyLogs to fetch.
|
|
*/
|
|
orderBy?: Prisma.ApiKeyLogOrderByWithRelationInput | Prisma.ApiKeyLogOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ApiKeyLogs.
|
|
*/
|
|
cursor?: Prisma.ApiKeyLogWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ApiKeyLogs 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` ApiKeyLogs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ApiKeyLogs.
|
|
*/
|
|
distinct?: Prisma.ApiKeyLogScalarFieldEnum | Prisma.ApiKeyLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog findMany
|
|
*/
|
|
export type ApiKeyLogFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKeyLog
|
|
*/
|
|
select?: Prisma.ApiKeyLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKeyLog
|
|
*/
|
|
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyLogInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ApiKeyLogs to fetch.
|
|
*/
|
|
where?: Prisma.ApiKeyLogWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ApiKeyLogs to fetch.
|
|
*/
|
|
orderBy?: Prisma.ApiKeyLogOrderByWithRelationInput | Prisma.ApiKeyLogOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing ApiKeyLogs.
|
|
*/
|
|
cursor?: Prisma.ApiKeyLogWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ApiKeyLogs 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` ApiKeyLogs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ApiKeyLogs.
|
|
*/
|
|
distinct?: Prisma.ApiKeyLogScalarFieldEnum | Prisma.ApiKeyLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog create
|
|
*/
|
|
export type ApiKeyLogCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKeyLog
|
|
*/
|
|
select?: Prisma.ApiKeyLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKeyLog
|
|
*/
|
|
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyLogInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ApiKeyLog.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ApiKeyLogCreateInput, Prisma.ApiKeyLogUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog createMany
|
|
*/
|
|
export type ApiKeyLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ApiKeyLogs.
|
|
*/
|
|
data: Prisma.ApiKeyLogCreateManyInput | Prisma.ApiKeyLogCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog createManyAndReturn
|
|
*/
|
|
export type ApiKeyLogCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKeyLog
|
|
*/
|
|
select?: Prisma.ApiKeyLogSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKeyLog
|
|
*/
|
|
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many ApiKeyLogs.
|
|
*/
|
|
data: Prisma.ApiKeyLogCreateManyInput | Prisma.ApiKeyLogCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyLogIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog update
|
|
*/
|
|
export type ApiKeyLogUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKeyLog
|
|
*/
|
|
select?: Prisma.ApiKeyLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKeyLog
|
|
*/
|
|
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyLogInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ApiKeyLog.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ApiKeyLogUpdateInput, Prisma.ApiKeyLogUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ApiKeyLog to update.
|
|
*/
|
|
where: Prisma.ApiKeyLogWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog updateMany
|
|
*/
|
|
export type ApiKeyLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ApiKeyLogs.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ApiKeyLogUpdateManyMutationInput, Prisma.ApiKeyLogUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ApiKeyLogs to update
|
|
*/
|
|
where?: Prisma.ApiKeyLogWhereInput
|
|
/**
|
|
* Limit how many ApiKeyLogs to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog updateManyAndReturn
|
|
*/
|
|
export type ApiKeyLogUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKeyLog
|
|
*/
|
|
select?: Prisma.ApiKeyLogSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKeyLog
|
|
*/
|
|
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update ApiKeyLogs.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ApiKeyLogUpdateManyMutationInput, Prisma.ApiKeyLogUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ApiKeyLogs to update
|
|
*/
|
|
where?: Prisma.ApiKeyLogWhereInput
|
|
/**
|
|
* Limit how many ApiKeyLogs to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyLogIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog upsert
|
|
*/
|
|
export type ApiKeyLogUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKeyLog
|
|
*/
|
|
select?: Prisma.ApiKeyLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKeyLog
|
|
*/
|
|
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyLogInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the ApiKeyLog to update in case it exists.
|
|
*/
|
|
where: Prisma.ApiKeyLogWhereUniqueInput
|
|
/**
|
|
* In case the ApiKeyLog found by the `where` argument doesn't exist, create a new ApiKeyLog with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.ApiKeyLogCreateInput, Prisma.ApiKeyLogUncheckedCreateInput>
|
|
/**
|
|
* In case the ApiKeyLog was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.ApiKeyLogUpdateInput, Prisma.ApiKeyLogUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog delete
|
|
*/
|
|
export type ApiKeyLogDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKeyLog
|
|
*/
|
|
select?: Prisma.ApiKeyLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKeyLog
|
|
*/
|
|
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyLogInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which ApiKeyLog to delete.
|
|
*/
|
|
where: Prisma.ApiKeyLogWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog deleteMany
|
|
*/
|
|
export type ApiKeyLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ApiKeyLogs to delete
|
|
*/
|
|
where?: Prisma.ApiKeyLogWhereInput
|
|
/**
|
|
* Limit how many ApiKeyLogs to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog.apiKey
|
|
*/
|
|
export type ApiKeyLog$apiKeyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKey
|
|
*/
|
|
select?: Prisma.ApiKeySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKey
|
|
*/
|
|
omit?: Prisma.ApiKeyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyInclude<ExtArgs> | null
|
|
where?: Prisma.ApiKeyWhereInput
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog.tenant
|
|
*/
|
|
export type ApiKeyLog$tenantArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tenant
|
|
*/
|
|
select?: Prisma.TenantSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Tenant
|
|
*/
|
|
omit?: Prisma.TenantOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TenantInclude<ExtArgs> | null
|
|
where?: Prisma.TenantWhereInput
|
|
}
|
|
|
|
/**
|
|
* ApiKeyLog without action
|
|
*/
|
|
export type ApiKeyLogDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ApiKeyLog
|
|
*/
|
|
select?: Prisma.ApiKeyLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ApiKeyLog
|
|
*/
|
|
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ApiKeyLogInclude<ExtArgs> | null
|
|
}
|