1753 lines
64 KiB
TypeScript
1753 lines
64 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 `MetricLog` 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 MetricLog
|
|
*
|
|
*/
|
|
export type MetricLogModel = runtime.Types.Result.DefaultSelection<Prisma.$MetricLogPayload>
|
|
|
|
export type AggregateMetricLog = {
|
|
_count: MetricLogCountAggregateOutputType | null
|
|
_avg: MetricLogAvgAggregateOutputType | null
|
|
_sum: MetricLogSumAggregateOutputType | null
|
|
_min: MetricLogMinAggregateOutputType | null
|
|
_max: MetricLogMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type MetricLogAvgAggregateOutputType = {
|
|
duration: number | null
|
|
}
|
|
|
|
export type MetricLogSumAggregateOutputType = {
|
|
duration: number | null
|
|
}
|
|
|
|
export type MetricLogMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
env: string | null
|
|
type: string | null
|
|
route: string | null
|
|
url: string | null
|
|
function: string | null
|
|
duration: number | null
|
|
userId: string | null
|
|
tenantId: string | null
|
|
}
|
|
|
|
export type MetricLogMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
env: string | null
|
|
type: string | null
|
|
route: string | null
|
|
url: string | null
|
|
function: string | null
|
|
duration: number | null
|
|
userId: string | null
|
|
tenantId: string | null
|
|
}
|
|
|
|
export type MetricLogCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
env: number
|
|
type: number
|
|
route: number
|
|
url: number
|
|
function: number
|
|
duration: number
|
|
userId: number
|
|
tenantId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type MetricLogAvgAggregateInputType = {
|
|
duration?: true
|
|
}
|
|
|
|
export type MetricLogSumAggregateInputType = {
|
|
duration?: true
|
|
}
|
|
|
|
export type MetricLogMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
env?: true
|
|
type?: true
|
|
route?: true
|
|
url?: true
|
|
function?: true
|
|
duration?: true
|
|
userId?: true
|
|
tenantId?: true
|
|
}
|
|
|
|
export type MetricLogMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
env?: true
|
|
type?: true
|
|
route?: true
|
|
url?: true
|
|
function?: true
|
|
duration?: true
|
|
userId?: true
|
|
tenantId?: true
|
|
}
|
|
|
|
export type MetricLogCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
env?: true
|
|
type?: true
|
|
route?: true
|
|
url?: true
|
|
function?: true
|
|
duration?: true
|
|
userId?: true
|
|
tenantId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type MetricLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MetricLog to aggregate.
|
|
*/
|
|
where?: Prisma.MetricLogWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MetricLogs to fetch.
|
|
*/
|
|
orderBy?: Prisma.MetricLogOrderByWithRelationInput | Prisma.MetricLogOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.MetricLogWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MetricLogs 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` MetricLogs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned MetricLogs
|
|
**/
|
|
_count?: true | MetricLogCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: MetricLogAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: MetricLogSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: MetricLogMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: MetricLogMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMetricLogAggregateType<T extends MetricLogAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMetricLog]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateMetricLog[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateMetricLog[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MetricLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.MetricLogWhereInput
|
|
orderBy?: Prisma.MetricLogOrderByWithAggregationInput | Prisma.MetricLogOrderByWithAggregationInput[]
|
|
by: Prisma.MetricLogScalarFieldEnum[] | Prisma.MetricLogScalarFieldEnum
|
|
having?: Prisma.MetricLogScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: MetricLogCountAggregateInputType | true
|
|
_avg?: MetricLogAvgAggregateInputType
|
|
_sum?: MetricLogSumAggregateInputType
|
|
_min?: MetricLogMinAggregateInputType
|
|
_max?: MetricLogMaxAggregateInputType
|
|
}
|
|
|
|
export type MetricLogGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
env: string
|
|
type: string
|
|
route: string
|
|
url: string
|
|
function: string
|
|
duration: number
|
|
userId: string | null
|
|
tenantId: string | null
|
|
_count: MetricLogCountAggregateOutputType | null
|
|
_avg: MetricLogAvgAggregateOutputType | null
|
|
_sum: MetricLogSumAggregateOutputType | null
|
|
_min: MetricLogMinAggregateOutputType | null
|
|
_max: MetricLogMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetMetricLogGroupByPayload<T extends MetricLogGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<MetricLogGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof MetricLogGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], MetricLogGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], MetricLogGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type MetricLogWhereInput = {
|
|
AND?: Prisma.MetricLogWhereInput | Prisma.MetricLogWhereInput[]
|
|
OR?: Prisma.MetricLogWhereInput[]
|
|
NOT?: Prisma.MetricLogWhereInput | Prisma.MetricLogWhereInput[]
|
|
id?: Prisma.StringFilter<"MetricLog"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"MetricLog"> | Date | string
|
|
env?: Prisma.StringFilter<"MetricLog"> | string
|
|
type?: Prisma.StringFilter<"MetricLog"> | string
|
|
route?: Prisma.StringFilter<"MetricLog"> | string
|
|
url?: Prisma.StringFilter<"MetricLog"> | string
|
|
function?: Prisma.StringFilter<"MetricLog"> | string
|
|
duration?: Prisma.IntFilter<"MetricLog"> | number
|
|
userId?: Prisma.StringNullableFilter<"MetricLog"> | string | null
|
|
tenantId?: Prisma.StringNullableFilter<"MetricLog"> | string | null
|
|
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
|
|
}
|
|
|
|
export type MetricLogOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
env?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
route?: Prisma.SortOrder
|
|
url?: Prisma.SortOrder
|
|
function?: Prisma.SortOrder
|
|
duration?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
user?: Prisma.UserOrderByWithRelationInput
|
|
tenant?: Prisma.TenantOrderByWithRelationInput
|
|
}
|
|
|
|
export type MetricLogWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.MetricLogWhereInput | Prisma.MetricLogWhereInput[]
|
|
OR?: Prisma.MetricLogWhereInput[]
|
|
NOT?: Prisma.MetricLogWhereInput | Prisma.MetricLogWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"MetricLog"> | Date | string
|
|
env?: Prisma.StringFilter<"MetricLog"> | string
|
|
type?: Prisma.StringFilter<"MetricLog"> | string
|
|
route?: Prisma.StringFilter<"MetricLog"> | string
|
|
url?: Prisma.StringFilter<"MetricLog"> | string
|
|
function?: Prisma.StringFilter<"MetricLog"> | string
|
|
duration?: Prisma.IntFilter<"MetricLog"> | number
|
|
userId?: Prisma.StringNullableFilter<"MetricLog"> | string | null
|
|
tenantId?: Prisma.StringNullableFilter<"MetricLog"> | string | null
|
|
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null
|
|
}, "id">
|
|
|
|
export type MetricLogOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
env?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
route?: Prisma.SortOrder
|
|
url?: Prisma.SortOrder
|
|
function?: Prisma.SortOrder
|
|
duration?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.MetricLogCountOrderByAggregateInput
|
|
_avg?: Prisma.MetricLogAvgOrderByAggregateInput
|
|
_max?: Prisma.MetricLogMaxOrderByAggregateInput
|
|
_min?: Prisma.MetricLogMinOrderByAggregateInput
|
|
_sum?: Prisma.MetricLogSumOrderByAggregateInput
|
|
}
|
|
|
|
export type MetricLogScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.MetricLogScalarWhereWithAggregatesInput | Prisma.MetricLogScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.MetricLogScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.MetricLogScalarWhereWithAggregatesInput | Prisma.MetricLogScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"MetricLog"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"MetricLog"> | Date | string
|
|
env?: Prisma.StringWithAggregatesFilter<"MetricLog"> | string
|
|
type?: Prisma.StringWithAggregatesFilter<"MetricLog"> | string
|
|
route?: Prisma.StringWithAggregatesFilter<"MetricLog"> | string
|
|
url?: Prisma.StringWithAggregatesFilter<"MetricLog"> | string
|
|
function?: Prisma.StringWithAggregatesFilter<"MetricLog"> | string
|
|
duration?: Prisma.IntWithAggregatesFilter<"MetricLog"> | number
|
|
userId?: Prisma.StringNullableWithAggregatesFilter<"MetricLog"> | string | null
|
|
tenantId?: Prisma.StringNullableWithAggregatesFilter<"MetricLog"> | string | null
|
|
}
|
|
|
|
export type MetricLogCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
env: string
|
|
type: string
|
|
route: string
|
|
url: string
|
|
function: string
|
|
duration: number
|
|
user?: Prisma.UserCreateNestedOneWithoutMetricLogsInput
|
|
tenant?: Prisma.TenantCreateNestedOneWithoutMetricLogsInput
|
|
}
|
|
|
|
export type MetricLogUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
env: string
|
|
type: string
|
|
route: string
|
|
url: string
|
|
function: string
|
|
duration: number
|
|
userId?: string | null
|
|
tenantId?: string | null
|
|
}
|
|
|
|
export type MetricLogUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
env?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
route?: Prisma.StringFieldUpdateOperationsInput | string
|
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
function?: Prisma.StringFieldUpdateOperationsInput | string
|
|
duration?: Prisma.IntFieldUpdateOperationsInput | number
|
|
user?: Prisma.UserUpdateOneWithoutMetricLogsNestedInput
|
|
tenant?: Prisma.TenantUpdateOneWithoutMetricLogsNestedInput
|
|
}
|
|
|
|
export type MetricLogUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
env?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
route?: Prisma.StringFieldUpdateOperationsInput | string
|
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
function?: Prisma.StringFieldUpdateOperationsInput | string
|
|
duration?: Prisma.IntFieldUpdateOperationsInput | number
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type MetricLogCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
env: string
|
|
type: string
|
|
route: string
|
|
url: string
|
|
function: string
|
|
duration: number
|
|
userId?: string | null
|
|
tenantId?: string | null
|
|
}
|
|
|
|
export type MetricLogUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
env?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
route?: Prisma.StringFieldUpdateOperationsInput | string
|
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
function?: Prisma.StringFieldUpdateOperationsInput | string
|
|
duration?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type MetricLogUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
env?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
route?: Prisma.StringFieldUpdateOperationsInput | string
|
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
function?: Prisma.StringFieldUpdateOperationsInput | string
|
|
duration?: Prisma.IntFieldUpdateOperationsInput | number
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type MetricLogListRelationFilter = {
|
|
every?: Prisma.MetricLogWhereInput
|
|
some?: Prisma.MetricLogWhereInput
|
|
none?: Prisma.MetricLogWhereInput
|
|
}
|
|
|
|
export type MetricLogOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MetricLogCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
env?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
route?: Prisma.SortOrder
|
|
url?: Prisma.SortOrder
|
|
function?: Prisma.SortOrder
|
|
duration?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MetricLogAvgOrderByAggregateInput = {
|
|
duration?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MetricLogMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
env?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
route?: Prisma.SortOrder
|
|
url?: Prisma.SortOrder
|
|
function?: Prisma.SortOrder
|
|
duration?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MetricLogMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
env?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
route?: Prisma.SortOrder
|
|
url?: Prisma.SortOrder
|
|
function?: Prisma.SortOrder
|
|
duration?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MetricLogSumOrderByAggregateInput = {
|
|
duration?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MetricLogCreateNestedManyWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.MetricLogCreateWithoutUserInput, Prisma.MetricLogUncheckedCreateWithoutUserInput> | Prisma.MetricLogCreateWithoutUserInput[] | Prisma.MetricLogUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.MetricLogCreateOrConnectWithoutUserInput | Prisma.MetricLogCreateOrConnectWithoutUserInput[]
|
|
createMany?: Prisma.MetricLogCreateManyUserInputEnvelope
|
|
connect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
}
|
|
|
|
export type MetricLogUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.MetricLogCreateWithoutUserInput, Prisma.MetricLogUncheckedCreateWithoutUserInput> | Prisma.MetricLogCreateWithoutUserInput[] | Prisma.MetricLogUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.MetricLogCreateOrConnectWithoutUserInput | Prisma.MetricLogCreateOrConnectWithoutUserInput[]
|
|
createMany?: Prisma.MetricLogCreateManyUserInputEnvelope
|
|
connect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
}
|
|
|
|
export type MetricLogUpdateManyWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MetricLogCreateWithoutUserInput, Prisma.MetricLogUncheckedCreateWithoutUserInput> | Prisma.MetricLogCreateWithoutUserInput[] | Prisma.MetricLogUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.MetricLogCreateOrConnectWithoutUserInput | Prisma.MetricLogCreateOrConnectWithoutUserInput[]
|
|
upsert?: Prisma.MetricLogUpsertWithWhereUniqueWithoutUserInput | Prisma.MetricLogUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: Prisma.MetricLogCreateManyUserInputEnvelope
|
|
set?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
disconnect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
delete?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
connect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
update?: Prisma.MetricLogUpdateWithWhereUniqueWithoutUserInput | Prisma.MetricLogUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: Prisma.MetricLogUpdateManyWithWhereWithoutUserInput | Prisma.MetricLogUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: Prisma.MetricLogScalarWhereInput | Prisma.MetricLogScalarWhereInput[]
|
|
}
|
|
|
|
export type MetricLogUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MetricLogCreateWithoutUserInput, Prisma.MetricLogUncheckedCreateWithoutUserInput> | Prisma.MetricLogCreateWithoutUserInput[] | Prisma.MetricLogUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.MetricLogCreateOrConnectWithoutUserInput | Prisma.MetricLogCreateOrConnectWithoutUserInput[]
|
|
upsert?: Prisma.MetricLogUpsertWithWhereUniqueWithoutUserInput | Prisma.MetricLogUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: Prisma.MetricLogCreateManyUserInputEnvelope
|
|
set?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
disconnect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
delete?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
connect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
update?: Prisma.MetricLogUpdateWithWhereUniqueWithoutUserInput | Prisma.MetricLogUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: Prisma.MetricLogUpdateManyWithWhereWithoutUserInput | Prisma.MetricLogUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: Prisma.MetricLogScalarWhereInput | Prisma.MetricLogScalarWhereInput[]
|
|
}
|
|
|
|
export type MetricLogCreateNestedManyWithoutTenantInput = {
|
|
create?: Prisma.XOR<Prisma.MetricLogCreateWithoutTenantInput, Prisma.MetricLogUncheckedCreateWithoutTenantInput> | Prisma.MetricLogCreateWithoutTenantInput[] | Prisma.MetricLogUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.MetricLogCreateOrConnectWithoutTenantInput | Prisma.MetricLogCreateOrConnectWithoutTenantInput[]
|
|
createMany?: Prisma.MetricLogCreateManyTenantInputEnvelope
|
|
connect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
}
|
|
|
|
export type MetricLogUncheckedCreateNestedManyWithoutTenantInput = {
|
|
create?: Prisma.XOR<Prisma.MetricLogCreateWithoutTenantInput, Prisma.MetricLogUncheckedCreateWithoutTenantInput> | Prisma.MetricLogCreateWithoutTenantInput[] | Prisma.MetricLogUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.MetricLogCreateOrConnectWithoutTenantInput | Prisma.MetricLogCreateOrConnectWithoutTenantInput[]
|
|
createMany?: Prisma.MetricLogCreateManyTenantInputEnvelope
|
|
connect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
}
|
|
|
|
export type MetricLogUpdateManyWithoutTenantNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MetricLogCreateWithoutTenantInput, Prisma.MetricLogUncheckedCreateWithoutTenantInput> | Prisma.MetricLogCreateWithoutTenantInput[] | Prisma.MetricLogUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.MetricLogCreateOrConnectWithoutTenantInput | Prisma.MetricLogCreateOrConnectWithoutTenantInput[]
|
|
upsert?: Prisma.MetricLogUpsertWithWhereUniqueWithoutTenantInput | Prisma.MetricLogUpsertWithWhereUniqueWithoutTenantInput[]
|
|
createMany?: Prisma.MetricLogCreateManyTenantInputEnvelope
|
|
set?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
disconnect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
delete?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
connect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
update?: Prisma.MetricLogUpdateWithWhereUniqueWithoutTenantInput | Prisma.MetricLogUpdateWithWhereUniqueWithoutTenantInput[]
|
|
updateMany?: Prisma.MetricLogUpdateManyWithWhereWithoutTenantInput | Prisma.MetricLogUpdateManyWithWhereWithoutTenantInput[]
|
|
deleteMany?: Prisma.MetricLogScalarWhereInput | Prisma.MetricLogScalarWhereInput[]
|
|
}
|
|
|
|
export type MetricLogUncheckedUpdateManyWithoutTenantNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MetricLogCreateWithoutTenantInput, Prisma.MetricLogUncheckedCreateWithoutTenantInput> | Prisma.MetricLogCreateWithoutTenantInput[] | Prisma.MetricLogUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.MetricLogCreateOrConnectWithoutTenantInput | Prisma.MetricLogCreateOrConnectWithoutTenantInput[]
|
|
upsert?: Prisma.MetricLogUpsertWithWhereUniqueWithoutTenantInput | Prisma.MetricLogUpsertWithWhereUniqueWithoutTenantInput[]
|
|
createMany?: Prisma.MetricLogCreateManyTenantInputEnvelope
|
|
set?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
disconnect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
delete?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
connect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[]
|
|
update?: Prisma.MetricLogUpdateWithWhereUniqueWithoutTenantInput | Prisma.MetricLogUpdateWithWhereUniqueWithoutTenantInput[]
|
|
updateMany?: Prisma.MetricLogUpdateManyWithWhereWithoutTenantInput | Prisma.MetricLogUpdateManyWithWhereWithoutTenantInput[]
|
|
deleteMany?: Prisma.MetricLogScalarWhereInput | Prisma.MetricLogScalarWhereInput[]
|
|
}
|
|
|
|
export type MetricLogCreateWithoutUserInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
env: string
|
|
type: string
|
|
route: string
|
|
url: string
|
|
function: string
|
|
duration: number
|
|
tenant?: Prisma.TenantCreateNestedOneWithoutMetricLogsInput
|
|
}
|
|
|
|
export type MetricLogUncheckedCreateWithoutUserInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
env: string
|
|
type: string
|
|
route: string
|
|
url: string
|
|
function: string
|
|
duration: number
|
|
tenantId?: string | null
|
|
}
|
|
|
|
export type MetricLogCreateOrConnectWithoutUserInput = {
|
|
where: Prisma.MetricLogWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MetricLogCreateWithoutUserInput, Prisma.MetricLogUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type MetricLogCreateManyUserInputEnvelope = {
|
|
data: Prisma.MetricLogCreateManyUserInput | Prisma.MetricLogCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type MetricLogUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.MetricLogWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.MetricLogUpdateWithoutUserInput, Prisma.MetricLogUncheckedUpdateWithoutUserInput>
|
|
create: Prisma.XOR<Prisma.MetricLogCreateWithoutUserInput, Prisma.MetricLogUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type MetricLogUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.MetricLogWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.MetricLogUpdateWithoutUserInput, Prisma.MetricLogUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type MetricLogUpdateManyWithWhereWithoutUserInput = {
|
|
where: Prisma.MetricLogScalarWhereInput
|
|
data: Prisma.XOR<Prisma.MetricLogUpdateManyMutationInput, Prisma.MetricLogUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type MetricLogScalarWhereInput = {
|
|
AND?: Prisma.MetricLogScalarWhereInput | Prisma.MetricLogScalarWhereInput[]
|
|
OR?: Prisma.MetricLogScalarWhereInput[]
|
|
NOT?: Prisma.MetricLogScalarWhereInput | Prisma.MetricLogScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"MetricLog"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"MetricLog"> | Date | string
|
|
env?: Prisma.StringFilter<"MetricLog"> | string
|
|
type?: Prisma.StringFilter<"MetricLog"> | string
|
|
route?: Prisma.StringFilter<"MetricLog"> | string
|
|
url?: Prisma.StringFilter<"MetricLog"> | string
|
|
function?: Prisma.StringFilter<"MetricLog"> | string
|
|
duration?: Prisma.IntFilter<"MetricLog"> | number
|
|
userId?: Prisma.StringNullableFilter<"MetricLog"> | string | null
|
|
tenantId?: Prisma.StringNullableFilter<"MetricLog"> | string | null
|
|
}
|
|
|
|
export type MetricLogCreateWithoutTenantInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
env: string
|
|
type: string
|
|
route: string
|
|
url: string
|
|
function: string
|
|
duration: number
|
|
user?: Prisma.UserCreateNestedOneWithoutMetricLogsInput
|
|
}
|
|
|
|
export type MetricLogUncheckedCreateWithoutTenantInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
env: string
|
|
type: string
|
|
route: string
|
|
url: string
|
|
function: string
|
|
duration: number
|
|
userId?: string | null
|
|
}
|
|
|
|
export type MetricLogCreateOrConnectWithoutTenantInput = {
|
|
where: Prisma.MetricLogWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MetricLogCreateWithoutTenantInput, Prisma.MetricLogUncheckedCreateWithoutTenantInput>
|
|
}
|
|
|
|
export type MetricLogCreateManyTenantInputEnvelope = {
|
|
data: Prisma.MetricLogCreateManyTenantInput | Prisma.MetricLogCreateManyTenantInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type MetricLogUpsertWithWhereUniqueWithoutTenantInput = {
|
|
where: Prisma.MetricLogWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.MetricLogUpdateWithoutTenantInput, Prisma.MetricLogUncheckedUpdateWithoutTenantInput>
|
|
create: Prisma.XOR<Prisma.MetricLogCreateWithoutTenantInput, Prisma.MetricLogUncheckedCreateWithoutTenantInput>
|
|
}
|
|
|
|
export type MetricLogUpdateWithWhereUniqueWithoutTenantInput = {
|
|
where: Prisma.MetricLogWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.MetricLogUpdateWithoutTenantInput, Prisma.MetricLogUncheckedUpdateWithoutTenantInput>
|
|
}
|
|
|
|
export type MetricLogUpdateManyWithWhereWithoutTenantInput = {
|
|
where: Prisma.MetricLogScalarWhereInput
|
|
data: Prisma.XOR<Prisma.MetricLogUpdateManyMutationInput, Prisma.MetricLogUncheckedUpdateManyWithoutTenantInput>
|
|
}
|
|
|
|
export type MetricLogCreateManyUserInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
env: string
|
|
type: string
|
|
route: string
|
|
url: string
|
|
function: string
|
|
duration: number
|
|
tenantId?: string | null
|
|
}
|
|
|
|
export type MetricLogUpdateWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
env?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
route?: Prisma.StringFieldUpdateOperationsInput | string
|
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
function?: Prisma.StringFieldUpdateOperationsInput | string
|
|
duration?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tenant?: Prisma.TenantUpdateOneWithoutMetricLogsNestedInput
|
|
}
|
|
|
|
export type MetricLogUncheckedUpdateWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
env?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
route?: Prisma.StringFieldUpdateOperationsInput | string
|
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
function?: Prisma.StringFieldUpdateOperationsInput | string
|
|
duration?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type MetricLogUncheckedUpdateManyWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
env?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
route?: Prisma.StringFieldUpdateOperationsInput | string
|
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
function?: Prisma.StringFieldUpdateOperationsInput | string
|
|
duration?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type MetricLogCreateManyTenantInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
env: string
|
|
type: string
|
|
route: string
|
|
url: string
|
|
function: string
|
|
duration: number
|
|
userId?: string | null
|
|
}
|
|
|
|
export type MetricLogUpdateWithoutTenantInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
env?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
route?: Prisma.StringFieldUpdateOperationsInput | string
|
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
function?: Prisma.StringFieldUpdateOperationsInput | string
|
|
duration?: Prisma.IntFieldUpdateOperationsInput | number
|
|
user?: Prisma.UserUpdateOneWithoutMetricLogsNestedInput
|
|
}
|
|
|
|
export type MetricLogUncheckedUpdateWithoutTenantInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
env?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
route?: Prisma.StringFieldUpdateOperationsInput | string
|
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
function?: Prisma.StringFieldUpdateOperationsInput | string
|
|
duration?: Prisma.IntFieldUpdateOperationsInput | number
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type MetricLogUncheckedUpdateManyWithoutTenantInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
env?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
route?: Prisma.StringFieldUpdateOperationsInput | string
|
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
function?: Prisma.StringFieldUpdateOperationsInput | string
|
|
duration?: Prisma.IntFieldUpdateOperationsInput | number
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
|
|
|
|
export type MetricLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
env?: boolean
|
|
type?: boolean
|
|
route?: boolean
|
|
url?: boolean
|
|
function?: boolean
|
|
duration?: boolean
|
|
userId?: boolean
|
|
tenantId?: boolean
|
|
user?: boolean | Prisma.MetricLog$userArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.MetricLog$tenantArgs<ExtArgs>
|
|
}, ExtArgs["result"]["metricLog"]>
|
|
|
|
export type MetricLogSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
env?: boolean
|
|
type?: boolean
|
|
route?: boolean
|
|
url?: boolean
|
|
function?: boolean
|
|
duration?: boolean
|
|
userId?: boolean
|
|
tenantId?: boolean
|
|
user?: boolean | Prisma.MetricLog$userArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.MetricLog$tenantArgs<ExtArgs>
|
|
}, ExtArgs["result"]["metricLog"]>
|
|
|
|
export type MetricLogSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
env?: boolean
|
|
type?: boolean
|
|
route?: boolean
|
|
url?: boolean
|
|
function?: boolean
|
|
duration?: boolean
|
|
userId?: boolean
|
|
tenantId?: boolean
|
|
user?: boolean | Prisma.MetricLog$userArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.MetricLog$tenantArgs<ExtArgs>
|
|
}, ExtArgs["result"]["metricLog"]>
|
|
|
|
export type MetricLogSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
env?: boolean
|
|
type?: boolean
|
|
route?: boolean
|
|
url?: boolean
|
|
function?: boolean
|
|
duration?: boolean
|
|
userId?: boolean
|
|
tenantId?: boolean
|
|
}
|
|
|
|
export type MetricLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "env" | "type" | "route" | "url" | "function" | "duration" | "userId" | "tenantId", ExtArgs["result"]["metricLog"]>
|
|
export type MetricLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.MetricLog$userArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.MetricLog$tenantArgs<ExtArgs>
|
|
}
|
|
export type MetricLogIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.MetricLog$userArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.MetricLog$tenantArgs<ExtArgs>
|
|
}
|
|
export type MetricLogIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.MetricLog$userArgs<ExtArgs>
|
|
tenant?: boolean | Prisma.MetricLog$tenantArgs<ExtArgs>
|
|
}
|
|
|
|
export type $MetricLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "MetricLog"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs> | null
|
|
tenant: Prisma.$TenantPayload<ExtArgs> | null
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
env: string
|
|
type: string
|
|
route: string
|
|
url: string
|
|
function: string
|
|
duration: number
|
|
userId: string | null
|
|
tenantId: string | null
|
|
}, ExtArgs["result"]["metricLog"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type MetricLogGetPayload<S extends boolean | null | undefined | MetricLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MetricLogPayload, S>
|
|
|
|
export type MetricLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<MetricLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: MetricLogCountAggregateInputType | true
|
|
}
|
|
|
|
export interface MetricLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MetricLog'], meta: { name: 'MetricLog' } }
|
|
/**
|
|
* Find zero or one MetricLog that matches the filter.
|
|
* @param {MetricLogFindUniqueArgs} args - Arguments to find a MetricLog
|
|
* @example
|
|
* // Get one MetricLog
|
|
* const metricLog = await prisma.metricLog.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends MetricLogFindUniqueArgs>(args: Prisma.SelectSubset<T, MetricLogFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MetricLogClient<runtime.Types.Result.GetResult<Prisma.$MetricLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one MetricLog that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {MetricLogFindUniqueOrThrowArgs} args - Arguments to find a MetricLog
|
|
* @example
|
|
* // Get one MetricLog
|
|
* const metricLog = await prisma.metricLog.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends MetricLogFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MetricLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MetricLogClient<runtime.Types.Result.GetResult<Prisma.$MetricLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MetricLog 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 {MetricLogFindFirstArgs} args - Arguments to find a MetricLog
|
|
* @example
|
|
* // Get one MetricLog
|
|
* const metricLog = await prisma.metricLog.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends MetricLogFindFirstArgs>(args?: Prisma.SelectSubset<T, MetricLogFindFirstArgs<ExtArgs>>): Prisma.Prisma__MetricLogClient<runtime.Types.Result.GetResult<Prisma.$MetricLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MetricLog 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 {MetricLogFindFirstOrThrowArgs} args - Arguments to find a MetricLog
|
|
* @example
|
|
* // Get one MetricLog
|
|
* const metricLog = await prisma.metricLog.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends MetricLogFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MetricLogFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MetricLogClient<runtime.Types.Result.GetResult<Prisma.$MetricLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more MetricLogs 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 {MetricLogFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all MetricLogs
|
|
* const metricLogs = await prisma.metricLog.findMany()
|
|
*
|
|
* // Get first 10 MetricLogs
|
|
* const metricLogs = await prisma.metricLog.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const metricLogWithIdOnly = await prisma.metricLog.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends MetricLogFindManyArgs>(args?: Prisma.SelectSubset<T, MetricLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MetricLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a MetricLog.
|
|
* @param {MetricLogCreateArgs} args - Arguments to create a MetricLog.
|
|
* @example
|
|
* // Create one MetricLog
|
|
* const MetricLog = await prisma.metricLog.create({
|
|
* data: {
|
|
* // ... data to create a MetricLog
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends MetricLogCreateArgs>(args: Prisma.SelectSubset<T, MetricLogCreateArgs<ExtArgs>>): Prisma.Prisma__MetricLogClient<runtime.Types.Result.GetResult<Prisma.$MetricLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many MetricLogs.
|
|
* @param {MetricLogCreateManyArgs} args - Arguments to create many MetricLogs.
|
|
* @example
|
|
* // Create many MetricLogs
|
|
* const metricLog = await prisma.metricLog.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends MetricLogCreateManyArgs>(args?: Prisma.SelectSubset<T, MetricLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many MetricLogs and returns the data saved in the database.
|
|
* @param {MetricLogCreateManyAndReturnArgs} args - Arguments to create many MetricLogs.
|
|
* @example
|
|
* // Create many MetricLogs
|
|
* const metricLog = await prisma.metricLog.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many MetricLogs and only return the `id`
|
|
* const metricLogWithIdOnly = await prisma.metricLog.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 MetricLogCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MetricLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MetricLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a MetricLog.
|
|
* @param {MetricLogDeleteArgs} args - Arguments to delete one MetricLog.
|
|
* @example
|
|
* // Delete one MetricLog
|
|
* const MetricLog = await prisma.metricLog.delete({
|
|
* where: {
|
|
* // ... filter to delete one MetricLog
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends MetricLogDeleteArgs>(args: Prisma.SelectSubset<T, MetricLogDeleteArgs<ExtArgs>>): Prisma.Prisma__MetricLogClient<runtime.Types.Result.GetResult<Prisma.$MetricLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one MetricLog.
|
|
* @param {MetricLogUpdateArgs} args - Arguments to update one MetricLog.
|
|
* @example
|
|
* // Update one MetricLog
|
|
* const metricLog = await prisma.metricLog.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends MetricLogUpdateArgs>(args: Prisma.SelectSubset<T, MetricLogUpdateArgs<ExtArgs>>): Prisma.Prisma__MetricLogClient<runtime.Types.Result.GetResult<Prisma.$MetricLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more MetricLogs.
|
|
* @param {MetricLogDeleteManyArgs} args - Arguments to filter MetricLogs to delete.
|
|
* @example
|
|
* // Delete a few MetricLogs
|
|
* const { count } = await prisma.metricLog.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends MetricLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, MetricLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MetricLogs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MetricLogUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many MetricLogs
|
|
* const metricLog = await prisma.metricLog.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends MetricLogUpdateManyArgs>(args: Prisma.SelectSubset<T, MetricLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MetricLogs and returns the data updated in the database.
|
|
* @param {MetricLogUpdateManyAndReturnArgs} args - Arguments to update many MetricLogs.
|
|
* @example
|
|
* // Update many MetricLogs
|
|
* const metricLog = await prisma.metricLog.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more MetricLogs and only return the `id`
|
|
* const metricLogWithIdOnly = await prisma.metricLog.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 MetricLogUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MetricLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MetricLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one MetricLog.
|
|
* @param {MetricLogUpsertArgs} args - Arguments to update or create a MetricLog.
|
|
* @example
|
|
* // Update or create a MetricLog
|
|
* const metricLog = await prisma.metricLog.upsert({
|
|
* create: {
|
|
* // ... data to create a MetricLog
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the MetricLog we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends MetricLogUpsertArgs>(args: Prisma.SelectSubset<T, MetricLogUpsertArgs<ExtArgs>>): Prisma.Prisma__MetricLogClient<runtime.Types.Result.GetResult<Prisma.$MetricLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of MetricLogs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MetricLogCountArgs} args - Arguments to filter MetricLogs to count.
|
|
* @example
|
|
* // Count the number of MetricLogs
|
|
* const count = await prisma.metricLog.count({
|
|
* where: {
|
|
* // ... the filter for the MetricLogs we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends MetricLogCountArgs>(
|
|
args?: Prisma.Subset<T, MetricLogCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], MetricLogCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a MetricLog.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MetricLogAggregateArgs} 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 MetricLogAggregateArgs>(args: Prisma.Subset<T, MetricLogAggregateArgs>): Prisma.PrismaPromise<GetMetricLogAggregateType<T>>
|
|
|
|
/**
|
|
* Group by MetricLog.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MetricLogGroupByArgs} 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 MetricLogGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: MetricLogGroupByArgs['orderBy'] }
|
|
: { orderBy?: MetricLogGroupByArgs['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, MetricLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMetricLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the MetricLog model
|
|
*/
|
|
readonly fields: MetricLogFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for MetricLog.
|
|
* 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__MetricLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends Prisma.MetricLog$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MetricLog$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
tenant<T extends Prisma.MetricLog$tenantArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MetricLog$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 MetricLog model
|
|
*/
|
|
export interface MetricLogFieldRefs {
|
|
readonly id: Prisma.FieldRef<"MetricLog", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"MetricLog", 'DateTime'>
|
|
readonly env: Prisma.FieldRef<"MetricLog", 'String'>
|
|
readonly type: Prisma.FieldRef<"MetricLog", 'String'>
|
|
readonly route: Prisma.FieldRef<"MetricLog", 'String'>
|
|
readonly url: Prisma.FieldRef<"MetricLog", 'String'>
|
|
readonly function: Prisma.FieldRef<"MetricLog", 'String'>
|
|
readonly duration: Prisma.FieldRef<"MetricLog", 'Int'>
|
|
readonly userId: Prisma.FieldRef<"MetricLog", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"MetricLog", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* MetricLog findUnique
|
|
*/
|
|
export type MetricLogFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MetricLog
|
|
*/
|
|
select?: Prisma.MetricLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MetricLog
|
|
*/
|
|
omit?: Prisma.MetricLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MetricLogInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MetricLog to fetch.
|
|
*/
|
|
where: Prisma.MetricLogWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MetricLog findUniqueOrThrow
|
|
*/
|
|
export type MetricLogFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MetricLog
|
|
*/
|
|
select?: Prisma.MetricLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MetricLog
|
|
*/
|
|
omit?: Prisma.MetricLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MetricLogInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MetricLog to fetch.
|
|
*/
|
|
where: Prisma.MetricLogWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MetricLog findFirst
|
|
*/
|
|
export type MetricLogFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MetricLog
|
|
*/
|
|
select?: Prisma.MetricLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MetricLog
|
|
*/
|
|
omit?: Prisma.MetricLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MetricLogInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MetricLog to fetch.
|
|
*/
|
|
where?: Prisma.MetricLogWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MetricLogs to fetch.
|
|
*/
|
|
orderBy?: Prisma.MetricLogOrderByWithRelationInput | Prisma.MetricLogOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MetricLogs.
|
|
*/
|
|
cursor?: Prisma.MetricLogWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MetricLogs 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` MetricLogs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MetricLogs.
|
|
*/
|
|
distinct?: Prisma.MetricLogScalarFieldEnum | Prisma.MetricLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MetricLog findFirstOrThrow
|
|
*/
|
|
export type MetricLogFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MetricLog
|
|
*/
|
|
select?: Prisma.MetricLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MetricLog
|
|
*/
|
|
omit?: Prisma.MetricLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MetricLogInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MetricLog to fetch.
|
|
*/
|
|
where?: Prisma.MetricLogWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MetricLogs to fetch.
|
|
*/
|
|
orderBy?: Prisma.MetricLogOrderByWithRelationInput | Prisma.MetricLogOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MetricLogs.
|
|
*/
|
|
cursor?: Prisma.MetricLogWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MetricLogs 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` MetricLogs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MetricLogs.
|
|
*/
|
|
distinct?: Prisma.MetricLogScalarFieldEnum | Prisma.MetricLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MetricLog findMany
|
|
*/
|
|
export type MetricLogFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MetricLog
|
|
*/
|
|
select?: Prisma.MetricLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MetricLog
|
|
*/
|
|
omit?: Prisma.MetricLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MetricLogInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MetricLogs to fetch.
|
|
*/
|
|
where?: Prisma.MetricLogWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MetricLogs to fetch.
|
|
*/
|
|
orderBy?: Prisma.MetricLogOrderByWithRelationInput | Prisma.MetricLogOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing MetricLogs.
|
|
*/
|
|
cursor?: Prisma.MetricLogWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MetricLogs 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` MetricLogs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MetricLogs.
|
|
*/
|
|
distinct?: Prisma.MetricLogScalarFieldEnum | Prisma.MetricLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MetricLog create
|
|
*/
|
|
export type MetricLogCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MetricLog
|
|
*/
|
|
select?: Prisma.MetricLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MetricLog
|
|
*/
|
|
omit?: Prisma.MetricLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MetricLogInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a MetricLog.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MetricLogCreateInput, Prisma.MetricLogUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* MetricLog createMany
|
|
*/
|
|
export type MetricLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many MetricLogs.
|
|
*/
|
|
data: Prisma.MetricLogCreateManyInput | Prisma.MetricLogCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* MetricLog createManyAndReturn
|
|
*/
|
|
export type MetricLogCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MetricLog
|
|
*/
|
|
select?: Prisma.MetricLogSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MetricLog
|
|
*/
|
|
omit?: Prisma.MetricLogOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many MetricLogs.
|
|
*/
|
|
data: Prisma.MetricLogCreateManyInput | Prisma.MetricLogCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MetricLogIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MetricLog update
|
|
*/
|
|
export type MetricLogUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MetricLog
|
|
*/
|
|
select?: Prisma.MetricLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MetricLog
|
|
*/
|
|
omit?: Prisma.MetricLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MetricLogInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a MetricLog.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MetricLogUpdateInput, Prisma.MetricLogUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which MetricLog to update.
|
|
*/
|
|
where: Prisma.MetricLogWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MetricLog updateMany
|
|
*/
|
|
export type MetricLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update MetricLogs.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MetricLogUpdateManyMutationInput, Prisma.MetricLogUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MetricLogs to update
|
|
*/
|
|
where?: Prisma.MetricLogWhereInput
|
|
/**
|
|
* Limit how many MetricLogs to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MetricLog updateManyAndReturn
|
|
*/
|
|
export type MetricLogUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MetricLog
|
|
*/
|
|
select?: Prisma.MetricLogSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MetricLog
|
|
*/
|
|
omit?: Prisma.MetricLogOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update MetricLogs.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MetricLogUpdateManyMutationInput, Prisma.MetricLogUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MetricLogs to update
|
|
*/
|
|
where?: Prisma.MetricLogWhereInput
|
|
/**
|
|
* Limit how many MetricLogs to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MetricLogIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MetricLog upsert
|
|
*/
|
|
export type MetricLogUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MetricLog
|
|
*/
|
|
select?: Prisma.MetricLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MetricLog
|
|
*/
|
|
omit?: Prisma.MetricLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MetricLogInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the MetricLog to update in case it exists.
|
|
*/
|
|
where: Prisma.MetricLogWhereUniqueInput
|
|
/**
|
|
* In case the MetricLog found by the `where` argument doesn't exist, create a new MetricLog with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.MetricLogCreateInput, Prisma.MetricLogUncheckedCreateInput>
|
|
/**
|
|
* In case the MetricLog was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.MetricLogUpdateInput, Prisma.MetricLogUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* MetricLog delete
|
|
*/
|
|
export type MetricLogDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MetricLog
|
|
*/
|
|
select?: Prisma.MetricLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MetricLog
|
|
*/
|
|
omit?: Prisma.MetricLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MetricLogInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which MetricLog to delete.
|
|
*/
|
|
where: Prisma.MetricLogWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MetricLog deleteMany
|
|
*/
|
|
export type MetricLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MetricLogs to delete
|
|
*/
|
|
where?: Prisma.MetricLogWhereInput
|
|
/**
|
|
* Limit how many MetricLogs to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MetricLog.user
|
|
*/
|
|
export type MetricLog$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* MetricLog.tenant
|
|
*/
|
|
export type MetricLog$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
|
|
}
|
|
|
|
/**
|
|
* MetricLog without action
|
|
*/
|
|
export type MetricLogDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MetricLog
|
|
*/
|
|
select?: Prisma.MetricLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MetricLog
|
|
*/
|
|
omit?: Prisma.MetricLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MetricLogInclude<ExtArgs> | null
|
|
}
|