/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateMetricLog]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type MetricLogGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof MetricLogGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 | null tenant?: Prisma.XOR | 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 | null tenant?: Prisma.XOR | 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[] connectOrCreate?: Prisma.MetricLogCreateOrConnectWithoutUserInput | Prisma.MetricLogCreateOrConnectWithoutUserInput[] createMany?: Prisma.MetricLogCreateManyUserInputEnvelope connect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[] } export type MetricLogUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | 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[] 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[] 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[] connectOrCreate?: Prisma.MetricLogCreateOrConnectWithoutTenantInput | Prisma.MetricLogCreateOrConnectWithoutTenantInput[] createMany?: Prisma.MetricLogCreateManyTenantInputEnvelope connect?: Prisma.MetricLogWhereUniqueInput | Prisma.MetricLogWhereUniqueInput[] } export type MetricLogUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | 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[] 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[] 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 } export type MetricLogCreateManyUserInputEnvelope = { data: Prisma.MetricLogCreateManyUserInput | Prisma.MetricLogCreateManyUserInput[] skipDuplicates?: boolean } export type MetricLogUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.MetricLogWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type MetricLogUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.MetricLogWhereUniqueInput data: Prisma.XOR } export type MetricLogUpdateManyWithWhereWithoutUserInput = { where: Prisma.MetricLogScalarWhereInput data: Prisma.XOR } 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 } export type MetricLogCreateManyTenantInputEnvelope = { data: Prisma.MetricLogCreateManyTenantInput | Prisma.MetricLogCreateManyTenantInput[] skipDuplicates?: boolean } export type MetricLogUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.MetricLogWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type MetricLogUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.MetricLogWhereUniqueInput data: Prisma.XOR } export type MetricLogUpdateManyWithWhereWithoutTenantInput = { where: Prisma.MetricLogScalarWhereInput data: Prisma.XOR } 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 = 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 tenant?: boolean | Prisma.MetricLog$tenantArgs }, ExtArgs["result"]["metricLog"]> export type MetricLogSelectCreateManyAndReturn = 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 tenant?: boolean | Prisma.MetricLog$tenantArgs }, ExtArgs["result"]["metricLog"]> export type MetricLogSelectUpdateManyAndReturn = 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 tenant?: boolean | Prisma.MetricLog$tenantArgs }, 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 = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "env" | "type" | "route" | "url" | "function" | "duration" | "userId" | "tenantId", ExtArgs["result"]["metricLog"]> export type MetricLogInclude = { user?: boolean | Prisma.MetricLog$userArgs tenant?: boolean | Prisma.MetricLog$tenantArgs } export type MetricLogIncludeCreateManyAndReturn = { user?: boolean | Prisma.MetricLog$userArgs tenant?: boolean | Prisma.MetricLog$tenantArgs } export type MetricLogIncludeUpdateManyAndReturn = { user?: boolean | Prisma.MetricLog$userArgs tenant?: boolean | Prisma.MetricLog$tenantArgs } export type $MetricLogPayload = { name: "MetricLog" objects: { user: Prisma.$UserPayload | null tenant: Prisma.$TenantPayload | 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 = runtime.Types.Result.GetResult export type MetricLogCountArgs = Omit & { select?: MetricLogCountAggregateInputType | true } export interface MetricLogDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__MetricLogClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__MetricLogClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__MetricLogClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__MetricLogClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__MetricLogClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__MetricLogClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__MetricLogClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__MetricLogClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: MetricLogGroupByArgs['orderBy'] } : { orderBy?: MetricLogGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetMetricLogGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the MetricLog */ select?: Prisma.MetricLogSelect | null /** * Omit specific fields from the MetricLog */ omit?: Prisma.MetricLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MetricLogInclude | null /** * Filter, which MetricLog to fetch. */ where: Prisma.MetricLogWhereUniqueInput } /** * MetricLog findUniqueOrThrow */ export type MetricLogFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the MetricLog */ select?: Prisma.MetricLogSelect | null /** * Omit specific fields from the MetricLog */ omit?: Prisma.MetricLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MetricLogInclude | null /** * Filter, which MetricLog to fetch. */ where: Prisma.MetricLogWhereUniqueInput } /** * MetricLog findFirst */ export type MetricLogFindFirstArgs = { /** * Select specific fields to fetch from the MetricLog */ select?: Prisma.MetricLogSelect | null /** * Omit specific fields from the MetricLog */ omit?: Prisma.MetricLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MetricLogInclude | 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 = { /** * Select specific fields to fetch from the MetricLog */ select?: Prisma.MetricLogSelect | null /** * Omit specific fields from the MetricLog */ omit?: Prisma.MetricLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MetricLogInclude | 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 = { /** * Select specific fields to fetch from the MetricLog */ select?: Prisma.MetricLogSelect | null /** * Omit specific fields from the MetricLog */ omit?: Prisma.MetricLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MetricLogInclude | 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 = { /** * Select specific fields to fetch from the MetricLog */ select?: Prisma.MetricLogSelect | null /** * Omit specific fields from the MetricLog */ omit?: Prisma.MetricLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MetricLogInclude | null /** * The data needed to create a MetricLog. */ data: Prisma.XOR } /** * MetricLog createMany */ export type MetricLogCreateManyArgs = { /** * The data used to create many MetricLogs. */ data: Prisma.MetricLogCreateManyInput | Prisma.MetricLogCreateManyInput[] skipDuplicates?: boolean } /** * MetricLog createManyAndReturn */ export type MetricLogCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the MetricLog */ select?: Prisma.MetricLogSelectCreateManyAndReturn | null /** * Omit specific fields from the MetricLog */ omit?: Prisma.MetricLogOmit | 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 | null } /** * MetricLog update */ export type MetricLogUpdateArgs = { /** * Select specific fields to fetch from the MetricLog */ select?: Prisma.MetricLogSelect | null /** * Omit specific fields from the MetricLog */ omit?: Prisma.MetricLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MetricLogInclude | null /** * The data needed to update a MetricLog. */ data: Prisma.XOR /** * Choose, which MetricLog to update. */ where: Prisma.MetricLogWhereUniqueInput } /** * MetricLog updateMany */ export type MetricLogUpdateManyArgs = { /** * The data used to update MetricLogs. */ data: Prisma.XOR /** * Filter which MetricLogs to update */ where?: Prisma.MetricLogWhereInput /** * Limit how many MetricLogs to update. */ limit?: number } /** * MetricLog updateManyAndReturn */ export type MetricLogUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the MetricLog */ select?: Prisma.MetricLogSelectUpdateManyAndReturn | null /** * Omit specific fields from the MetricLog */ omit?: Prisma.MetricLogOmit | null /** * The data used to update MetricLogs. */ data: Prisma.XOR /** * 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 | null } /** * MetricLog upsert */ export type MetricLogUpsertArgs = { /** * Select specific fields to fetch from the MetricLog */ select?: Prisma.MetricLogSelect | null /** * Omit specific fields from the MetricLog */ omit?: Prisma.MetricLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MetricLogInclude | 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 /** * In case the MetricLog was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * MetricLog delete */ export type MetricLogDeleteArgs = { /** * Select specific fields to fetch from the MetricLog */ select?: Prisma.MetricLogSelect | null /** * Omit specific fields from the MetricLog */ omit?: Prisma.MetricLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MetricLogInclude | null /** * Filter which MetricLog to delete. */ where: Prisma.MetricLogWhereUniqueInput } /** * MetricLog deleteMany */ export type MetricLogDeleteManyArgs = { /** * Filter which MetricLogs to delete */ where?: Prisma.MetricLogWhereInput /** * Limit how many MetricLogs to delete. */ limit?: number } /** * MetricLog.user */ export type MetricLog$userArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput } /** * MetricLog.tenant */ export type MetricLog$tenantArgs = { /** * Select specific fields to fetch from the Tenant */ select?: Prisma.TenantSelect | null /** * Omit specific fields from the Tenant */ omit?: Prisma.TenantOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantInclude | null where?: Prisma.TenantWhereInput } /** * MetricLog without action */ export type MetricLogDefaultArgs = { /** * Select specific fields to fetch from the MetricLog */ select?: Prisma.MetricLogSelect | null /** * Omit specific fields from the MetricLog */ omit?: Prisma.MetricLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MetricLogInclude | null }