/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `oauth_tokens` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums" import type * as Prisma from "../internal/prismaNamespace" /** * Model oauth_tokens * */ export type oauth_tokensModel = runtime.Types.Result.DefaultSelection export type AggregateOauth_tokens = { _count: Oauth_tokensCountAggregateOutputType | null _avg: Oauth_tokensAvgAggregateOutputType | null _sum: Oauth_tokensSumAggregateOutputType | null _min: Oauth_tokensMinAggregateOutputType | null _max: Oauth_tokensMaxAggregateOutputType | null } export type Oauth_tokensAvgAggregateOutputType = { id: number | null user_id: number | null parent_token_id: number | null } export type Oauth_tokensSumAggregateOutputType = { id: number | null user_id: number | null parent_token_id: number | null } export type Oauth_tokensMinAggregateOutputType = { id: number | null client_id: string | null user_id: number | null access_token_hash: string | null refresh_token_hash: string | null scopes: string | null access_token_expires_at: Date | null refresh_token_expires_at: Date | null revoked_at: Date | null created_at: Date | null parent_token_id: number | null audience: string | null } export type Oauth_tokensMaxAggregateOutputType = { id: number | null client_id: string | null user_id: number | null access_token_hash: string | null refresh_token_hash: string | null scopes: string | null access_token_expires_at: Date | null refresh_token_expires_at: Date | null revoked_at: Date | null created_at: Date | null parent_token_id: number | null audience: string | null } export type Oauth_tokensCountAggregateOutputType = { id: number client_id: number user_id: number access_token_hash: number refresh_token_hash: number scopes: number access_token_expires_at: number refresh_token_expires_at: number revoked_at: number created_at: number parent_token_id: number audience: number _all: number } export type Oauth_tokensAvgAggregateInputType = { id?: true user_id?: true parent_token_id?: true } export type Oauth_tokensSumAggregateInputType = { id?: true user_id?: true parent_token_id?: true } export type Oauth_tokensMinAggregateInputType = { id?: true client_id?: true user_id?: true access_token_hash?: true refresh_token_hash?: true scopes?: true access_token_expires_at?: true refresh_token_expires_at?: true revoked_at?: true created_at?: true parent_token_id?: true audience?: true } export type Oauth_tokensMaxAggregateInputType = { id?: true client_id?: true user_id?: true access_token_hash?: true refresh_token_hash?: true scopes?: true access_token_expires_at?: true refresh_token_expires_at?: true revoked_at?: true created_at?: true parent_token_id?: true audience?: true } export type Oauth_tokensCountAggregateInputType = { id?: true client_id?: true user_id?: true access_token_hash?: true refresh_token_hash?: true scopes?: true access_token_expires_at?: true refresh_token_expires_at?: true revoked_at?: true created_at?: true parent_token_id?: true audience?: true _all?: true } export type Oauth_tokensAggregateArgs = { /** * Filter which oauth_tokens to aggregate. */ where?: Prisma.oauth_tokensWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of oauth_tokens to fetch. */ orderBy?: Prisma.oauth_tokensOrderByWithRelationInput | Prisma.oauth_tokensOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.oauth_tokensWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` oauth_tokens 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` oauth_tokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned oauth_tokens **/ _count?: true | Oauth_tokensCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Oauth_tokensAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Oauth_tokensSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Oauth_tokensMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Oauth_tokensMaxAggregateInputType } export type GetOauth_tokensAggregateType = { [P in keyof T & keyof AggregateOauth_tokens]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type oauth_tokensGroupByArgs = { where?: Prisma.oauth_tokensWhereInput orderBy?: Prisma.oauth_tokensOrderByWithAggregationInput | Prisma.oauth_tokensOrderByWithAggregationInput[] by: Prisma.Oauth_tokensScalarFieldEnum[] | Prisma.Oauth_tokensScalarFieldEnum having?: Prisma.oauth_tokensScalarWhereWithAggregatesInput take?: number skip?: number _count?: Oauth_tokensCountAggregateInputType | true _avg?: Oauth_tokensAvgAggregateInputType _sum?: Oauth_tokensSumAggregateInputType _min?: Oauth_tokensMinAggregateInputType _max?: Oauth_tokensMaxAggregateInputType } export type Oauth_tokensGroupByOutputType = { id: number client_id: string user_id: number access_token_hash: string refresh_token_hash: string scopes: string access_token_expires_at: Date refresh_token_expires_at: Date revoked_at: Date | null created_at: Date | null parent_token_id: number | null audience: string | null _count: Oauth_tokensCountAggregateOutputType | null _avg: Oauth_tokensAvgAggregateOutputType | null _sum: Oauth_tokensSumAggregateOutputType | null _min: Oauth_tokensMinAggregateOutputType | null _max: Oauth_tokensMaxAggregateOutputType | null } export type GetOauth_tokensGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Oauth_tokensGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type oauth_tokensWhereInput = { AND?: Prisma.oauth_tokensWhereInput | Prisma.oauth_tokensWhereInput[] OR?: Prisma.oauth_tokensWhereInput[] NOT?: Prisma.oauth_tokensWhereInput | Prisma.oauth_tokensWhereInput[] id?: Prisma.IntFilter<"oauth_tokens"> | number client_id?: Prisma.StringFilter<"oauth_tokens"> | string user_id?: Prisma.IntFilter<"oauth_tokens"> | number access_token_hash?: Prisma.StringFilter<"oauth_tokens"> | string refresh_token_hash?: Prisma.StringFilter<"oauth_tokens"> | string scopes?: Prisma.StringFilter<"oauth_tokens"> | string access_token_expires_at?: Prisma.DateTimeFilter<"oauth_tokens"> | Date | string refresh_token_expires_at?: Prisma.DateTimeFilter<"oauth_tokens"> | Date | string revoked_at?: Prisma.DateTimeNullableFilter<"oauth_tokens"> | Date | string | null created_at?: Prisma.DateTimeNullableFilter<"oauth_tokens"> | Date | string | null parent_token_id?: Prisma.IntNullableFilter<"oauth_tokens"> | number | null audience?: Prisma.StringNullableFilter<"oauth_tokens"> | string | null oauth_tokens?: Prisma.XOR | null other_oauth_tokens?: Prisma.Oauth_tokensListRelationFilter users?: Prisma.XOR oauth_clients?: Prisma.XOR } export type oauth_tokensOrderByWithRelationInput = { id?: Prisma.SortOrder client_id?: Prisma.SortOrder user_id?: Prisma.SortOrder access_token_hash?: Prisma.SortOrder refresh_token_hash?: Prisma.SortOrder scopes?: Prisma.SortOrder access_token_expires_at?: Prisma.SortOrder refresh_token_expires_at?: Prisma.SortOrder revoked_at?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder parent_token_id?: Prisma.SortOrderInput | Prisma.SortOrder audience?: Prisma.SortOrderInput | Prisma.SortOrder oauth_tokens?: Prisma.oauth_tokensOrderByWithRelationInput other_oauth_tokens?: Prisma.oauth_tokensOrderByRelationAggregateInput users?: Prisma.usersOrderByWithRelationInput oauth_clients?: Prisma.oauth_clientsOrderByWithRelationInput } export type oauth_tokensWhereUniqueInput = Prisma.AtLeast<{ id?: number access_token_hash?: string refresh_token_hash?: string AND?: Prisma.oauth_tokensWhereInput | Prisma.oauth_tokensWhereInput[] OR?: Prisma.oauth_tokensWhereInput[] NOT?: Prisma.oauth_tokensWhereInput | Prisma.oauth_tokensWhereInput[] client_id?: Prisma.StringFilter<"oauth_tokens"> | string user_id?: Prisma.IntFilter<"oauth_tokens"> | number scopes?: Prisma.StringFilter<"oauth_tokens"> | string access_token_expires_at?: Prisma.DateTimeFilter<"oauth_tokens"> | Date | string refresh_token_expires_at?: Prisma.DateTimeFilter<"oauth_tokens"> | Date | string revoked_at?: Prisma.DateTimeNullableFilter<"oauth_tokens"> | Date | string | null created_at?: Prisma.DateTimeNullableFilter<"oauth_tokens"> | Date | string | null parent_token_id?: Prisma.IntNullableFilter<"oauth_tokens"> | number | null audience?: Prisma.StringNullableFilter<"oauth_tokens"> | string | null oauth_tokens?: Prisma.XOR | null other_oauth_tokens?: Prisma.Oauth_tokensListRelationFilter users?: Prisma.XOR oauth_clients?: Prisma.XOR }, "id" | "access_token_hash" | "refresh_token_hash"> export type oauth_tokensOrderByWithAggregationInput = { id?: Prisma.SortOrder client_id?: Prisma.SortOrder user_id?: Prisma.SortOrder access_token_hash?: Prisma.SortOrder refresh_token_hash?: Prisma.SortOrder scopes?: Prisma.SortOrder access_token_expires_at?: Prisma.SortOrder refresh_token_expires_at?: Prisma.SortOrder revoked_at?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder parent_token_id?: Prisma.SortOrderInput | Prisma.SortOrder audience?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.oauth_tokensCountOrderByAggregateInput _avg?: Prisma.oauth_tokensAvgOrderByAggregateInput _max?: Prisma.oauth_tokensMaxOrderByAggregateInput _min?: Prisma.oauth_tokensMinOrderByAggregateInput _sum?: Prisma.oauth_tokensSumOrderByAggregateInput } export type oauth_tokensScalarWhereWithAggregatesInput = { AND?: Prisma.oauth_tokensScalarWhereWithAggregatesInput | Prisma.oauth_tokensScalarWhereWithAggregatesInput[] OR?: Prisma.oauth_tokensScalarWhereWithAggregatesInput[] NOT?: Prisma.oauth_tokensScalarWhereWithAggregatesInput | Prisma.oauth_tokensScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"oauth_tokens"> | number client_id?: Prisma.StringWithAggregatesFilter<"oauth_tokens"> | string user_id?: Prisma.IntWithAggregatesFilter<"oauth_tokens"> | number access_token_hash?: Prisma.StringWithAggregatesFilter<"oauth_tokens"> | string refresh_token_hash?: Prisma.StringWithAggregatesFilter<"oauth_tokens"> | string scopes?: Prisma.StringWithAggregatesFilter<"oauth_tokens"> | string access_token_expires_at?: Prisma.DateTimeWithAggregatesFilter<"oauth_tokens"> | Date | string refresh_token_expires_at?: Prisma.DateTimeWithAggregatesFilter<"oauth_tokens"> | Date | string revoked_at?: Prisma.DateTimeNullableWithAggregatesFilter<"oauth_tokens"> | Date | string | null created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"oauth_tokens"> | Date | string | null parent_token_id?: Prisma.IntNullableWithAggregatesFilter<"oauth_tokens"> | number | null audience?: Prisma.StringNullableWithAggregatesFilter<"oauth_tokens"> | string | null } export type oauth_tokensCreateInput = { access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null audience?: string | null oauth_tokens?: Prisma.oauth_tokensCreateNestedOneWithoutOther_oauth_tokensInput other_oauth_tokens?: Prisma.oauth_tokensCreateNestedManyWithoutOauth_tokensInput users: Prisma.usersCreateNestedOneWithoutOauth_tokensInput oauth_clients: Prisma.oauth_clientsCreateNestedOneWithoutOauth_tokensInput } export type oauth_tokensUncheckedCreateInput = { id?: number client_id: string user_id: number access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null parent_token_id?: number | null audience?: string | null other_oauth_tokens?: Prisma.oauth_tokensUncheckedCreateNestedManyWithoutOauth_tokensInput } export type oauth_tokensUpdateInput = { access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oauth_tokens?: Prisma.oauth_tokensUpdateOneWithoutOther_oauth_tokensNestedInput other_oauth_tokens?: Prisma.oauth_tokensUpdateManyWithoutOauth_tokensNestedInput users?: Prisma.usersUpdateOneRequiredWithoutOauth_tokensNestedInput oauth_clients?: Prisma.oauth_clientsUpdateOneRequiredWithoutOauth_tokensNestedInput } export type oauth_tokensUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number client_id?: Prisma.StringFieldUpdateOperationsInput | string user_id?: Prisma.IntFieldUpdateOperationsInput | number access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parent_token_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null other_oauth_tokens?: Prisma.oauth_tokensUncheckedUpdateManyWithoutOauth_tokensNestedInput } export type oauth_tokensCreateManyInput = { id?: number client_id: string user_id: number access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null parent_token_id?: number | null audience?: string | null } export type oauth_tokensUpdateManyMutationInput = { access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type oauth_tokensUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number client_id?: Prisma.StringFieldUpdateOperationsInput | string user_id?: Prisma.IntFieldUpdateOperationsInput | number access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parent_token_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type Oauth_tokensListRelationFilter = { every?: Prisma.oauth_tokensWhereInput some?: Prisma.oauth_tokensWhereInput none?: Prisma.oauth_tokensWhereInput } export type oauth_tokensOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type Oauth_tokensNullableScalarRelationFilter = { is?: Prisma.oauth_tokensWhereInput | null isNot?: Prisma.oauth_tokensWhereInput | null } export type oauth_tokensCountOrderByAggregateInput = { id?: Prisma.SortOrder client_id?: Prisma.SortOrder user_id?: Prisma.SortOrder access_token_hash?: Prisma.SortOrder refresh_token_hash?: Prisma.SortOrder scopes?: Prisma.SortOrder access_token_expires_at?: Prisma.SortOrder refresh_token_expires_at?: Prisma.SortOrder revoked_at?: Prisma.SortOrder created_at?: Prisma.SortOrder parent_token_id?: Prisma.SortOrder audience?: Prisma.SortOrder } export type oauth_tokensAvgOrderByAggregateInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder parent_token_id?: Prisma.SortOrder } export type oauth_tokensMaxOrderByAggregateInput = { id?: Prisma.SortOrder client_id?: Prisma.SortOrder user_id?: Prisma.SortOrder access_token_hash?: Prisma.SortOrder refresh_token_hash?: Prisma.SortOrder scopes?: Prisma.SortOrder access_token_expires_at?: Prisma.SortOrder refresh_token_expires_at?: Prisma.SortOrder revoked_at?: Prisma.SortOrder created_at?: Prisma.SortOrder parent_token_id?: Prisma.SortOrder audience?: Prisma.SortOrder } export type oauth_tokensMinOrderByAggregateInput = { id?: Prisma.SortOrder client_id?: Prisma.SortOrder user_id?: Prisma.SortOrder access_token_hash?: Prisma.SortOrder refresh_token_hash?: Prisma.SortOrder scopes?: Prisma.SortOrder access_token_expires_at?: Prisma.SortOrder refresh_token_expires_at?: Prisma.SortOrder revoked_at?: Prisma.SortOrder created_at?: Prisma.SortOrder parent_token_id?: Prisma.SortOrder audience?: Prisma.SortOrder } export type oauth_tokensSumOrderByAggregateInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder parent_token_id?: Prisma.SortOrder } export type oauth_tokensCreateNestedManyWithoutOauth_clientsInput = { create?: Prisma.XOR | Prisma.oauth_tokensCreateWithoutOauth_clientsInput[] | Prisma.oauth_tokensUncheckedCreateWithoutOauth_clientsInput[] connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutOauth_clientsInput | Prisma.oauth_tokensCreateOrConnectWithoutOauth_clientsInput[] createMany?: Prisma.oauth_tokensCreateManyOauth_clientsInputEnvelope connect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] } export type oauth_tokensUncheckedCreateNestedManyWithoutOauth_clientsInput = { create?: Prisma.XOR | Prisma.oauth_tokensCreateWithoutOauth_clientsInput[] | Prisma.oauth_tokensUncheckedCreateWithoutOauth_clientsInput[] connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutOauth_clientsInput | Prisma.oauth_tokensCreateOrConnectWithoutOauth_clientsInput[] createMany?: Prisma.oauth_tokensCreateManyOauth_clientsInputEnvelope connect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] } export type oauth_tokensUpdateManyWithoutOauth_clientsNestedInput = { create?: Prisma.XOR | Prisma.oauth_tokensCreateWithoutOauth_clientsInput[] | Prisma.oauth_tokensUncheckedCreateWithoutOauth_clientsInput[] connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutOauth_clientsInput | Prisma.oauth_tokensCreateOrConnectWithoutOauth_clientsInput[] upsert?: Prisma.oauth_tokensUpsertWithWhereUniqueWithoutOauth_clientsInput | Prisma.oauth_tokensUpsertWithWhereUniqueWithoutOauth_clientsInput[] createMany?: Prisma.oauth_tokensCreateManyOauth_clientsInputEnvelope set?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] disconnect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] delete?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] connect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] update?: Prisma.oauth_tokensUpdateWithWhereUniqueWithoutOauth_clientsInput | Prisma.oauth_tokensUpdateWithWhereUniqueWithoutOauth_clientsInput[] updateMany?: Prisma.oauth_tokensUpdateManyWithWhereWithoutOauth_clientsInput | Prisma.oauth_tokensUpdateManyWithWhereWithoutOauth_clientsInput[] deleteMany?: Prisma.oauth_tokensScalarWhereInput | Prisma.oauth_tokensScalarWhereInput[] } export type oauth_tokensUncheckedUpdateManyWithoutOauth_clientsNestedInput = { create?: Prisma.XOR | Prisma.oauth_tokensCreateWithoutOauth_clientsInput[] | Prisma.oauth_tokensUncheckedCreateWithoutOauth_clientsInput[] connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutOauth_clientsInput | Prisma.oauth_tokensCreateOrConnectWithoutOauth_clientsInput[] upsert?: Prisma.oauth_tokensUpsertWithWhereUniqueWithoutOauth_clientsInput | Prisma.oauth_tokensUpsertWithWhereUniqueWithoutOauth_clientsInput[] createMany?: Prisma.oauth_tokensCreateManyOauth_clientsInputEnvelope set?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] disconnect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] delete?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] connect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] update?: Prisma.oauth_tokensUpdateWithWhereUniqueWithoutOauth_clientsInput | Prisma.oauth_tokensUpdateWithWhereUniqueWithoutOauth_clientsInput[] updateMany?: Prisma.oauth_tokensUpdateManyWithWhereWithoutOauth_clientsInput | Prisma.oauth_tokensUpdateManyWithWhereWithoutOauth_clientsInput[] deleteMany?: Prisma.oauth_tokensScalarWhereInput | Prisma.oauth_tokensScalarWhereInput[] } export type oauth_tokensCreateNestedOneWithoutOther_oauth_tokensInput = { create?: Prisma.XOR connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutOther_oauth_tokensInput connect?: Prisma.oauth_tokensWhereUniqueInput } export type oauth_tokensCreateNestedManyWithoutOauth_tokensInput = { create?: Prisma.XOR | Prisma.oauth_tokensCreateWithoutOauth_tokensInput[] | Prisma.oauth_tokensUncheckedCreateWithoutOauth_tokensInput[] connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutOauth_tokensInput | Prisma.oauth_tokensCreateOrConnectWithoutOauth_tokensInput[] createMany?: Prisma.oauth_tokensCreateManyOauth_tokensInputEnvelope connect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] } export type oauth_tokensUncheckedCreateNestedManyWithoutOauth_tokensInput = { create?: Prisma.XOR | Prisma.oauth_tokensCreateWithoutOauth_tokensInput[] | Prisma.oauth_tokensUncheckedCreateWithoutOauth_tokensInput[] connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutOauth_tokensInput | Prisma.oauth_tokensCreateOrConnectWithoutOauth_tokensInput[] createMany?: Prisma.oauth_tokensCreateManyOauth_tokensInputEnvelope connect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type oauth_tokensUpdateOneWithoutOther_oauth_tokensNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutOther_oauth_tokensInput upsert?: Prisma.oauth_tokensUpsertWithoutOther_oauth_tokensInput disconnect?: Prisma.oauth_tokensWhereInput | boolean delete?: Prisma.oauth_tokensWhereInput | boolean connect?: Prisma.oauth_tokensWhereUniqueInput update?: Prisma.XOR, Prisma.oauth_tokensUncheckedUpdateWithoutOther_oauth_tokensInput> } export type oauth_tokensUpdateManyWithoutOauth_tokensNestedInput = { create?: Prisma.XOR | Prisma.oauth_tokensCreateWithoutOauth_tokensInput[] | Prisma.oauth_tokensUncheckedCreateWithoutOauth_tokensInput[] connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutOauth_tokensInput | Prisma.oauth_tokensCreateOrConnectWithoutOauth_tokensInput[] upsert?: Prisma.oauth_tokensUpsertWithWhereUniqueWithoutOauth_tokensInput | Prisma.oauth_tokensUpsertWithWhereUniqueWithoutOauth_tokensInput[] createMany?: Prisma.oauth_tokensCreateManyOauth_tokensInputEnvelope set?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] disconnect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] delete?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] connect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] update?: Prisma.oauth_tokensUpdateWithWhereUniqueWithoutOauth_tokensInput | Prisma.oauth_tokensUpdateWithWhereUniqueWithoutOauth_tokensInput[] updateMany?: Prisma.oauth_tokensUpdateManyWithWhereWithoutOauth_tokensInput | Prisma.oauth_tokensUpdateManyWithWhereWithoutOauth_tokensInput[] deleteMany?: Prisma.oauth_tokensScalarWhereInput | Prisma.oauth_tokensScalarWhereInput[] } export type oauth_tokensUncheckedUpdateManyWithoutOauth_tokensNestedInput = { create?: Prisma.XOR | Prisma.oauth_tokensCreateWithoutOauth_tokensInput[] | Prisma.oauth_tokensUncheckedCreateWithoutOauth_tokensInput[] connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutOauth_tokensInput | Prisma.oauth_tokensCreateOrConnectWithoutOauth_tokensInput[] upsert?: Prisma.oauth_tokensUpsertWithWhereUniqueWithoutOauth_tokensInput | Prisma.oauth_tokensUpsertWithWhereUniqueWithoutOauth_tokensInput[] createMany?: Prisma.oauth_tokensCreateManyOauth_tokensInputEnvelope set?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] disconnect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] delete?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] connect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] update?: Prisma.oauth_tokensUpdateWithWhereUniqueWithoutOauth_tokensInput | Prisma.oauth_tokensUpdateWithWhereUniqueWithoutOauth_tokensInput[] updateMany?: Prisma.oauth_tokensUpdateManyWithWhereWithoutOauth_tokensInput | Prisma.oauth_tokensUpdateManyWithWhereWithoutOauth_tokensInput[] deleteMany?: Prisma.oauth_tokensScalarWhereInput | Prisma.oauth_tokensScalarWhereInput[] } export type oauth_tokensCreateNestedManyWithoutUsersInput = { create?: Prisma.XOR | Prisma.oauth_tokensCreateWithoutUsersInput[] | Prisma.oauth_tokensUncheckedCreateWithoutUsersInput[] connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutUsersInput | Prisma.oauth_tokensCreateOrConnectWithoutUsersInput[] createMany?: Prisma.oauth_tokensCreateManyUsersInputEnvelope connect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] } export type oauth_tokensUncheckedCreateNestedManyWithoutUsersInput = { create?: Prisma.XOR | Prisma.oauth_tokensCreateWithoutUsersInput[] | Prisma.oauth_tokensUncheckedCreateWithoutUsersInput[] connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutUsersInput | Prisma.oauth_tokensCreateOrConnectWithoutUsersInput[] createMany?: Prisma.oauth_tokensCreateManyUsersInputEnvelope connect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] } export type oauth_tokensUpdateManyWithoutUsersNestedInput = { create?: Prisma.XOR | Prisma.oauth_tokensCreateWithoutUsersInput[] | Prisma.oauth_tokensUncheckedCreateWithoutUsersInput[] connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutUsersInput | Prisma.oauth_tokensCreateOrConnectWithoutUsersInput[] upsert?: Prisma.oauth_tokensUpsertWithWhereUniqueWithoutUsersInput | Prisma.oauth_tokensUpsertWithWhereUniqueWithoutUsersInput[] createMany?: Prisma.oauth_tokensCreateManyUsersInputEnvelope set?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] disconnect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] delete?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] connect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] update?: Prisma.oauth_tokensUpdateWithWhereUniqueWithoutUsersInput | Prisma.oauth_tokensUpdateWithWhereUniqueWithoutUsersInput[] updateMany?: Prisma.oauth_tokensUpdateManyWithWhereWithoutUsersInput | Prisma.oauth_tokensUpdateManyWithWhereWithoutUsersInput[] deleteMany?: Prisma.oauth_tokensScalarWhereInput | Prisma.oauth_tokensScalarWhereInput[] } export type oauth_tokensUncheckedUpdateManyWithoutUsersNestedInput = { create?: Prisma.XOR | Prisma.oauth_tokensCreateWithoutUsersInput[] | Prisma.oauth_tokensUncheckedCreateWithoutUsersInput[] connectOrCreate?: Prisma.oauth_tokensCreateOrConnectWithoutUsersInput | Prisma.oauth_tokensCreateOrConnectWithoutUsersInput[] upsert?: Prisma.oauth_tokensUpsertWithWhereUniqueWithoutUsersInput | Prisma.oauth_tokensUpsertWithWhereUniqueWithoutUsersInput[] createMany?: Prisma.oauth_tokensCreateManyUsersInputEnvelope set?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] disconnect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] delete?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] connect?: Prisma.oauth_tokensWhereUniqueInput | Prisma.oauth_tokensWhereUniqueInput[] update?: Prisma.oauth_tokensUpdateWithWhereUniqueWithoutUsersInput | Prisma.oauth_tokensUpdateWithWhereUniqueWithoutUsersInput[] updateMany?: Prisma.oauth_tokensUpdateManyWithWhereWithoutUsersInput | Prisma.oauth_tokensUpdateManyWithWhereWithoutUsersInput[] deleteMany?: Prisma.oauth_tokensScalarWhereInput | Prisma.oauth_tokensScalarWhereInput[] } export type oauth_tokensCreateWithoutOauth_clientsInput = { access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null audience?: string | null oauth_tokens?: Prisma.oauth_tokensCreateNestedOneWithoutOther_oauth_tokensInput other_oauth_tokens?: Prisma.oauth_tokensCreateNestedManyWithoutOauth_tokensInput users: Prisma.usersCreateNestedOneWithoutOauth_tokensInput } export type oauth_tokensUncheckedCreateWithoutOauth_clientsInput = { id?: number user_id: number access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null parent_token_id?: number | null audience?: string | null other_oauth_tokens?: Prisma.oauth_tokensUncheckedCreateNestedManyWithoutOauth_tokensInput } export type oauth_tokensCreateOrConnectWithoutOauth_clientsInput = { where: Prisma.oauth_tokensWhereUniqueInput create: Prisma.XOR } export type oauth_tokensCreateManyOauth_clientsInputEnvelope = { data: Prisma.oauth_tokensCreateManyOauth_clientsInput | Prisma.oauth_tokensCreateManyOauth_clientsInput[] } export type oauth_tokensUpsertWithWhereUniqueWithoutOauth_clientsInput = { where: Prisma.oauth_tokensWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type oauth_tokensUpdateWithWhereUniqueWithoutOauth_clientsInput = { where: Prisma.oauth_tokensWhereUniqueInput data: Prisma.XOR } export type oauth_tokensUpdateManyWithWhereWithoutOauth_clientsInput = { where: Prisma.oauth_tokensScalarWhereInput data: Prisma.XOR } export type oauth_tokensScalarWhereInput = { AND?: Prisma.oauth_tokensScalarWhereInput | Prisma.oauth_tokensScalarWhereInput[] OR?: Prisma.oauth_tokensScalarWhereInput[] NOT?: Prisma.oauth_tokensScalarWhereInput | Prisma.oauth_tokensScalarWhereInput[] id?: Prisma.IntFilter<"oauth_tokens"> | number client_id?: Prisma.StringFilter<"oauth_tokens"> | string user_id?: Prisma.IntFilter<"oauth_tokens"> | number access_token_hash?: Prisma.StringFilter<"oauth_tokens"> | string refresh_token_hash?: Prisma.StringFilter<"oauth_tokens"> | string scopes?: Prisma.StringFilter<"oauth_tokens"> | string access_token_expires_at?: Prisma.DateTimeFilter<"oauth_tokens"> | Date | string refresh_token_expires_at?: Prisma.DateTimeFilter<"oauth_tokens"> | Date | string revoked_at?: Prisma.DateTimeNullableFilter<"oauth_tokens"> | Date | string | null created_at?: Prisma.DateTimeNullableFilter<"oauth_tokens"> | Date | string | null parent_token_id?: Prisma.IntNullableFilter<"oauth_tokens"> | number | null audience?: Prisma.StringNullableFilter<"oauth_tokens"> | string | null } export type oauth_tokensCreateWithoutOther_oauth_tokensInput = { access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null audience?: string | null oauth_tokens?: Prisma.oauth_tokensCreateNestedOneWithoutOther_oauth_tokensInput users: Prisma.usersCreateNestedOneWithoutOauth_tokensInput oauth_clients: Prisma.oauth_clientsCreateNestedOneWithoutOauth_tokensInput } export type oauth_tokensUncheckedCreateWithoutOther_oauth_tokensInput = { id?: number client_id: string user_id: number access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null parent_token_id?: number | null audience?: string | null } export type oauth_tokensCreateOrConnectWithoutOther_oauth_tokensInput = { where: Prisma.oauth_tokensWhereUniqueInput create: Prisma.XOR } export type oauth_tokensCreateWithoutOauth_tokensInput = { access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null audience?: string | null other_oauth_tokens?: Prisma.oauth_tokensCreateNestedManyWithoutOauth_tokensInput users: Prisma.usersCreateNestedOneWithoutOauth_tokensInput oauth_clients: Prisma.oauth_clientsCreateNestedOneWithoutOauth_tokensInput } export type oauth_tokensUncheckedCreateWithoutOauth_tokensInput = { id?: number client_id: string user_id: number access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null audience?: string | null other_oauth_tokens?: Prisma.oauth_tokensUncheckedCreateNestedManyWithoutOauth_tokensInput } export type oauth_tokensCreateOrConnectWithoutOauth_tokensInput = { where: Prisma.oauth_tokensWhereUniqueInput create: Prisma.XOR } export type oauth_tokensCreateManyOauth_tokensInputEnvelope = { data: Prisma.oauth_tokensCreateManyOauth_tokensInput | Prisma.oauth_tokensCreateManyOauth_tokensInput[] } export type oauth_tokensUpsertWithoutOther_oauth_tokensInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.oauth_tokensWhereInput } export type oauth_tokensUpdateToOneWithWhereWithoutOther_oauth_tokensInput = { where?: Prisma.oauth_tokensWhereInput data: Prisma.XOR } export type oauth_tokensUpdateWithoutOther_oauth_tokensInput = { access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oauth_tokens?: Prisma.oauth_tokensUpdateOneWithoutOther_oauth_tokensNestedInput users?: Prisma.usersUpdateOneRequiredWithoutOauth_tokensNestedInput oauth_clients?: Prisma.oauth_clientsUpdateOneRequiredWithoutOauth_tokensNestedInput } export type oauth_tokensUncheckedUpdateWithoutOther_oauth_tokensInput = { id?: Prisma.IntFieldUpdateOperationsInput | number client_id?: Prisma.StringFieldUpdateOperationsInput | string user_id?: Prisma.IntFieldUpdateOperationsInput | number access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parent_token_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type oauth_tokensUpsertWithWhereUniqueWithoutOauth_tokensInput = { where: Prisma.oauth_tokensWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type oauth_tokensUpdateWithWhereUniqueWithoutOauth_tokensInput = { where: Prisma.oauth_tokensWhereUniqueInput data: Prisma.XOR } export type oauth_tokensUpdateManyWithWhereWithoutOauth_tokensInput = { where: Prisma.oauth_tokensScalarWhereInput data: Prisma.XOR } export type oauth_tokensCreateWithoutUsersInput = { access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null audience?: string | null oauth_tokens?: Prisma.oauth_tokensCreateNestedOneWithoutOther_oauth_tokensInput other_oauth_tokens?: Prisma.oauth_tokensCreateNestedManyWithoutOauth_tokensInput oauth_clients: Prisma.oauth_clientsCreateNestedOneWithoutOauth_tokensInput } export type oauth_tokensUncheckedCreateWithoutUsersInput = { id?: number client_id: string access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null parent_token_id?: number | null audience?: string | null other_oauth_tokens?: Prisma.oauth_tokensUncheckedCreateNestedManyWithoutOauth_tokensInput } export type oauth_tokensCreateOrConnectWithoutUsersInput = { where: Prisma.oauth_tokensWhereUniqueInput create: Prisma.XOR } export type oauth_tokensCreateManyUsersInputEnvelope = { data: Prisma.oauth_tokensCreateManyUsersInput | Prisma.oauth_tokensCreateManyUsersInput[] } export type oauth_tokensUpsertWithWhereUniqueWithoutUsersInput = { where: Prisma.oauth_tokensWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type oauth_tokensUpdateWithWhereUniqueWithoutUsersInput = { where: Prisma.oauth_tokensWhereUniqueInput data: Prisma.XOR } export type oauth_tokensUpdateManyWithWhereWithoutUsersInput = { where: Prisma.oauth_tokensScalarWhereInput data: Prisma.XOR } export type oauth_tokensCreateManyOauth_clientsInput = { id?: number user_id: number access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null parent_token_id?: number | null audience?: string | null } export type oauth_tokensUpdateWithoutOauth_clientsInput = { access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oauth_tokens?: Prisma.oauth_tokensUpdateOneWithoutOther_oauth_tokensNestedInput other_oauth_tokens?: Prisma.oauth_tokensUpdateManyWithoutOauth_tokensNestedInput users?: Prisma.usersUpdateOneRequiredWithoutOauth_tokensNestedInput } export type oauth_tokensUncheckedUpdateWithoutOauth_clientsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number user_id?: Prisma.IntFieldUpdateOperationsInput | number access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parent_token_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null other_oauth_tokens?: Prisma.oauth_tokensUncheckedUpdateManyWithoutOauth_tokensNestedInput } export type oauth_tokensUncheckedUpdateManyWithoutOauth_clientsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number user_id?: Prisma.IntFieldUpdateOperationsInput | number access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parent_token_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type oauth_tokensCreateManyOauth_tokensInput = { id?: number client_id: string user_id: number access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null audience?: string | null } export type oauth_tokensUpdateWithoutOauth_tokensInput = { access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null other_oauth_tokens?: Prisma.oauth_tokensUpdateManyWithoutOauth_tokensNestedInput users?: Prisma.usersUpdateOneRequiredWithoutOauth_tokensNestedInput oauth_clients?: Prisma.oauth_clientsUpdateOneRequiredWithoutOauth_tokensNestedInput } export type oauth_tokensUncheckedUpdateWithoutOauth_tokensInput = { id?: Prisma.IntFieldUpdateOperationsInput | number client_id?: Prisma.StringFieldUpdateOperationsInput | string user_id?: Prisma.IntFieldUpdateOperationsInput | number access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null other_oauth_tokens?: Prisma.oauth_tokensUncheckedUpdateManyWithoutOauth_tokensNestedInput } export type oauth_tokensUncheckedUpdateManyWithoutOauth_tokensInput = { id?: Prisma.IntFieldUpdateOperationsInput | number client_id?: Prisma.StringFieldUpdateOperationsInput | string user_id?: Prisma.IntFieldUpdateOperationsInput | number access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type oauth_tokensCreateManyUsersInput = { id?: number client_id: string access_token_hash: string refresh_token_hash: string scopes?: string access_token_expires_at: Date | string refresh_token_expires_at: Date | string revoked_at?: Date | string | null created_at?: Date | string | null parent_token_id?: number | null audience?: string | null } export type oauth_tokensUpdateWithoutUsersInput = { access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null oauth_tokens?: Prisma.oauth_tokensUpdateOneWithoutOther_oauth_tokensNestedInput other_oauth_tokens?: Prisma.oauth_tokensUpdateManyWithoutOauth_tokensNestedInput oauth_clients?: Prisma.oauth_clientsUpdateOneRequiredWithoutOauth_tokensNestedInput } export type oauth_tokensUncheckedUpdateWithoutUsersInput = { id?: Prisma.IntFieldUpdateOperationsInput | number client_id?: Prisma.StringFieldUpdateOperationsInput | string access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parent_token_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null other_oauth_tokens?: Prisma.oauth_tokensUncheckedUpdateManyWithoutOauth_tokensNestedInput } export type oauth_tokensUncheckedUpdateManyWithoutUsersInput = { id?: Prisma.IntFieldUpdateOperationsInput | number client_id?: Prisma.StringFieldUpdateOperationsInput | string access_token_hash?: Prisma.StringFieldUpdateOperationsInput | string refresh_token_hash?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.StringFieldUpdateOperationsInput | string access_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expires_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revoked_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parent_token_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null audience?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } /** * Count Type Oauth_tokensCountOutputType */ export type Oauth_tokensCountOutputType = { other_oauth_tokens: number } export type Oauth_tokensCountOutputTypeSelect = { other_oauth_tokens?: boolean | Oauth_tokensCountOutputTypeCountOther_oauth_tokensArgs } /** * Oauth_tokensCountOutputType without action */ export type Oauth_tokensCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the Oauth_tokensCountOutputType */ select?: Prisma.Oauth_tokensCountOutputTypeSelect | null } /** * Oauth_tokensCountOutputType without action */ export type Oauth_tokensCountOutputTypeCountOther_oauth_tokensArgs = { where?: Prisma.oauth_tokensWhereInput } export type oauth_tokensSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean client_id?: boolean user_id?: boolean access_token_hash?: boolean refresh_token_hash?: boolean scopes?: boolean access_token_expires_at?: boolean refresh_token_expires_at?: boolean revoked_at?: boolean created_at?: boolean parent_token_id?: boolean audience?: boolean oauth_tokens?: boolean | Prisma.oauth_tokens$oauth_tokensArgs other_oauth_tokens?: boolean | Prisma.oauth_tokens$other_oauth_tokensArgs users?: boolean | Prisma.usersDefaultArgs oauth_clients?: boolean | Prisma.oauth_clientsDefaultArgs _count?: boolean | Prisma.Oauth_tokensCountOutputTypeDefaultArgs }, ExtArgs["result"]["oauth_tokens"]> export type oauth_tokensSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean client_id?: boolean user_id?: boolean access_token_hash?: boolean refresh_token_hash?: boolean scopes?: boolean access_token_expires_at?: boolean refresh_token_expires_at?: boolean revoked_at?: boolean created_at?: boolean parent_token_id?: boolean audience?: boolean oauth_tokens?: boolean | Prisma.oauth_tokens$oauth_tokensArgs users?: boolean | Prisma.usersDefaultArgs oauth_clients?: boolean | Prisma.oauth_clientsDefaultArgs }, ExtArgs["result"]["oauth_tokens"]> export type oauth_tokensSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean client_id?: boolean user_id?: boolean access_token_hash?: boolean refresh_token_hash?: boolean scopes?: boolean access_token_expires_at?: boolean refresh_token_expires_at?: boolean revoked_at?: boolean created_at?: boolean parent_token_id?: boolean audience?: boolean oauth_tokens?: boolean | Prisma.oauth_tokens$oauth_tokensArgs users?: boolean | Prisma.usersDefaultArgs oauth_clients?: boolean | Prisma.oauth_clientsDefaultArgs }, ExtArgs["result"]["oauth_tokens"]> export type oauth_tokensSelectScalar = { id?: boolean client_id?: boolean user_id?: boolean access_token_hash?: boolean refresh_token_hash?: boolean scopes?: boolean access_token_expires_at?: boolean refresh_token_expires_at?: boolean revoked_at?: boolean created_at?: boolean parent_token_id?: boolean audience?: boolean } export type oauth_tokensOmit = runtime.Types.Extensions.GetOmit<"id" | "client_id" | "user_id" | "access_token_hash" | "refresh_token_hash" | "scopes" | "access_token_expires_at" | "refresh_token_expires_at" | "revoked_at" | "created_at" | "parent_token_id" | "audience", ExtArgs["result"]["oauth_tokens"]> export type oauth_tokensInclude = { oauth_tokens?: boolean | Prisma.oauth_tokens$oauth_tokensArgs other_oauth_tokens?: boolean | Prisma.oauth_tokens$other_oauth_tokensArgs users?: boolean | Prisma.usersDefaultArgs oauth_clients?: boolean | Prisma.oauth_clientsDefaultArgs _count?: boolean | Prisma.Oauth_tokensCountOutputTypeDefaultArgs } export type oauth_tokensIncludeCreateManyAndReturn = { oauth_tokens?: boolean | Prisma.oauth_tokens$oauth_tokensArgs users?: boolean | Prisma.usersDefaultArgs oauth_clients?: boolean | Prisma.oauth_clientsDefaultArgs } export type oauth_tokensIncludeUpdateManyAndReturn = { oauth_tokens?: boolean | Prisma.oauth_tokens$oauth_tokensArgs users?: boolean | Prisma.usersDefaultArgs oauth_clients?: boolean | Prisma.oauth_clientsDefaultArgs } export type $oauth_tokensPayload = { name: "oauth_tokens" objects: { oauth_tokens: Prisma.$oauth_tokensPayload | null other_oauth_tokens: Prisma.$oauth_tokensPayload[] users: Prisma.$usersPayload oauth_clients: Prisma.$oauth_clientsPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number client_id: string user_id: number access_token_hash: string refresh_token_hash: string scopes: string access_token_expires_at: Date refresh_token_expires_at: Date revoked_at: Date | null created_at: Date | null parent_token_id: number | null audience: string | null }, ExtArgs["result"]["oauth_tokens"]> composites: {} } export type oauth_tokensGetPayload = runtime.Types.Result.GetResult export type oauth_tokensCountArgs = Omit & { select?: Oauth_tokensCountAggregateInputType | true } export interface oauth_tokensDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['oauth_tokens'], meta: { name: 'oauth_tokens' } } /** * Find zero or one Oauth_tokens that matches the filter. * @param {oauth_tokensFindUniqueArgs} args - Arguments to find a Oauth_tokens * @example * // Get one Oauth_tokens * const oauth_tokens = await prisma.oauth_tokens.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__oauth_tokensClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Oauth_tokens that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {oauth_tokensFindUniqueOrThrowArgs} args - Arguments to find a Oauth_tokens * @example * // Get one Oauth_tokens * const oauth_tokens = await prisma.oauth_tokens.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__oauth_tokensClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Oauth_tokens 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 {oauth_tokensFindFirstArgs} args - Arguments to find a Oauth_tokens * @example * // Get one Oauth_tokens * const oauth_tokens = await prisma.oauth_tokens.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__oauth_tokensClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Oauth_tokens 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 {oauth_tokensFindFirstOrThrowArgs} args - Arguments to find a Oauth_tokens * @example * // Get one Oauth_tokens * const oauth_tokens = await prisma.oauth_tokens.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__oauth_tokensClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Oauth_tokens 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 {oauth_tokensFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Oauth_tokens * const oauth_tokens = await prisma.oauth_tokens.findMany() * * // Get first 10 Oauth_tokens * const oauth_tokens = await prisma.oauth_tokens.findMany({ take: 10 }) * * // Only select the `id` * const oauth_tokensWithIdOnly = await prisma.oauth_tokens.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Oauth_tokens. * @param {oauth_tokensCreateArgs} args - Arguments to create a Oauth_tokens. * @example * // Create one Oauth_tokens * const Oauth_tokens = await prisma.oauth_tokens.create({ * data: { * // ... data to create a Oauth_tokens * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__oauth_tokensClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Oauth_tokens. * @param {oauth_tokensCreateManyArgs} args - Arguments to create many Oauth_tokens. * @example * // Create many Oauth_tokens * const oauth_tokens = await prisma.oauth_tokens.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Oauth_tokens and returns the data saved in the database. * @param {oauth_tokensCreateManyAndReturnArgs} args - Arguments to create many Oauth_tokens. * @example * // Create many Oauth_tokens * const oauth_tokens = await prisma.oauth_tokens.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Oauth_tokens and only return the `id` * const oauth_tokensWithIdOnly = await prisma.oauth_tokens.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 Oauth_tokens. * @param {oauth_tokensDeleteArgs} args - Arguments to delete one Oauth_tokens. * @example * // Delete one Oauth_tokens * const Oauth_tokens = await prisma.oauth_tokens.delete({ * where: { * // ... filter to delete one Oauth_tokens * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__oauth_tokensClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Oauth_tokens. * @param {oauth_tokensUpdateArgs} args - Arguments to update one Oauth_tokens. * @example * // Update one Oauth_tokens * const oauth_tokens = await prisma.oauth_tokens.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__oauth_tokensClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Oauth_tokens. * @param {oauth_tokensDeleteManyArgs} args - Arguments to filter Oauth_tokens to delete. * @example * // Delete a few Oauth_tokens * const { count } = await prisma.oauth_tokens.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Oauth_tokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {oauth_tokensUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Oauth_tokens * const oauth_tokens = await prisma.oauth_tokens.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Oauth_tokens and returns the data updated in the database. * @param {oauth_tokensUpdateManyAndReturnArgs} args - Arguments to update many Oauth_tokens. * @example * // Update many Oauth_tokens * const oauth_tokens = await prisma.oauth_tokens.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Oauth_tokens and only return the `id` * const oauth_tokensWithIdOnly = await prisma.oauth_tokens.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 Oauth_tokens. * @param {oauth_tokensUpsertArgs} args - Arguments to update or create a Oauth_tokens. * @example * // Update or create a Oauth_tokens * const oauth_tokens = await prisma.oauth_tokens.upsert({ * create: { * // ... data to create a Oauth_tokens * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Oauth_tokens we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__oauth_tokensClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Oauth_tokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {oauth_tokensCountArgs} args - Arguments to filter Oauth_tokens to count. * @example * // Count the number of Oauth_tokens * const count = await prisma.oauth_tokens.count({ * where: { * // ... the filter for the Oauth_tokens 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 Oauth_tokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Oauth_tokensAggregateArgs} 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 Oauth_tokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {oauth_tokensGroupByArgs} 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 oauth_tokensGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: oauth_tokensGroupByArgs['orderBy'] } : { orderBy?: oauth_tokensGroupByArgs['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 ? GetOauth_tokensGroupByPayload : Prisma.PrismaPromise /** * Fields of the oauth_tokens model */ readonly fields: oauth_tokensFieldRefs; } /** * The delegate class that acts as a "Promise-like" for oauth_tokens. * 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__oauth_tokensClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" oauth_tokens = {}>(args?: Prisma.Subset>): Prisma.Prisma__oauth_tokensClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> other_oauth_tokens = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> users = {}>(args?: Prisma.Subset>): Prisma.Prisma__usersClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> oauth_clients = {}>(args?: Prisma.Subset>): Prisma.Prisma__oauth_clientsClient, 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 oauth_tokens model */ export interface oauth_tokensFieldRefs { readonly id: Prisma.FieldRef<"oauth_tokens", 'Int'> readonly client_id: Prisma.FieldRef<"oauth_tokens", 'String'> readonly user_id: Prisma.FieldRef<"oauth_tokens", 'Int'> readonly access_token_hash: Prisma.FieldRef<"oauth_tokens", 'String'> readonly refresh_token_hash: Prisma.FieldRef<"oauth_tokens", 'String'> readonly scopes: Prisma.FieldRef<"oauth_tokens", 'String'> readonly access_token_expires_at: Prisma.FieldRef<"oauth_tokens", 'DateTime'> readonly refresh_token_expires_at: Prisma.FieldRef<"oauth_tokens", 'DateTime'> readonly revoked_at: Prisma.FieldRef<"oauth_tokens", 'DateTime'> readonly created_at: Prisma.FieldRef<"oauth_tokens", 'DateTime'> readonly parent_token_id: Prisma.FieldRef<"oauth_tokens", 'Int'> readonly audience: Prisma.FieldRef<"oauth_tokens", 'String'> } // Custom InputTypes /** * oauth_tokens findUnique */ export type oauth_tokensFindUniqueArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelect | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensInclude | null /** * Filter, which oauth_tokens to fetch. */ where: Prisma.oauth_tokensWhereUniqueInput } /** * oauth_tokens findUniqueOrThrow */ export type oauth_tokensFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelect | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensInclude | null /** * Filter, which oauth_tokens to fetch. */ where: Prisma.oauth_tokensWhereUniqueInput } /** * oauth_tokens findFirst */ export type oauth_tokensFindFirstArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelect | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensInclude | null /** * Filter, which oauth_tokens to fetch. */ where?: Prisma.oauth_tokensWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of oauth_tokens to fetch. */ orderBy?: Prisma.oauth_tokensOrderByWithRelationInput | Prisma.oauth_tokensOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for oauth_tokens. */ cursor?: Prisma.oauth_tokensWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` oauth_tokens 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` oauth_tokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of oauth_tokens. */ distinct?: Prisma.Oauth_tokensScalarFieldEnum | Prisma.Oauth_tokensScalarFieldEnum[] } /** * oauth_tokens findFirstOrThrow */ export type oauth_tokensFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelect | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensInclude | null /** * Filter, which oauth_tokens to fetch. */ where?: Prisma.oauth_tokensWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of oauth_tokens to fetch. */ orderBy?: Prisma.oauth_tokensOrderByWithRelationInput | Prisma.oauth_tokensOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for oauth_tokens. */ cursor?: Prisma.oauth_tokensWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` oauth_tokens 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` oauth_tokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of oauth_tokens. */ distinct?: Prisma.Oauth_tokensScalarFieldEnum | Prisma.Oauth_tokensScalarFieldEnum[] } /** * oauth_tokens findMany */ export type oauth_tokensFindManyArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelect | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensInclude | null /** * Filter, which oauth_tokens to fetch. */ where?: Prisma.oauth_tokensWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of oauth_tokens to fetch. */ orderBy?: Prisma.oauth_tokensOrderByWithRelationInput | Prisma.oauth_tokensOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing oauth_tokens. */ cursor?: Prisma.oauth_tokensWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` oauth_tokens 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` oauth_tokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of oauth_tokens. */ distinct?: Prisma.Oauth_tokensScalarFieldEnum | Prisma.Oauth_tokensScalarFieldEnum[] } /** * oauth_tokens create */ export type oauth_tokensCreateArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelect | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensInclude | null /** * The data needed to create a oauth_tokens. */ data: Prisma.XOR } /** * oauth_tokens createMany */ export type oauth_tokensCreateManyArgs = { /** * The data used to create many oauth_tokens. */ data: Prisma.oauth_tokensCreateManyInput | Prisma.oauth_tokensCreateManyInput[] } /** * oauth_tokens createManyAndReturn */ export type oauth_tokensCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelectCreateManyAndReturn | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * The data used to create many oauth_tokens. */ data: Prisma.oauth_tokensCreateManyInput | Prisma.oauth_tokensCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensIncludeCreateManyAndReturn | null } /** * oauth_tokens update */ export type oauth_tokensUpdateArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelect | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensInclude | null /** * The data needed to update a oauth_tokens. */ data: Prisma.XOR /** * Choose, which oauth_tokens to update. */ where: Prisma.oauth_tokensWhereUniqueInput } /** * oauth_tokens updateMany */ export type oauth_tokensUpdateManyArgs = { /** * The data used to update oauth_tokens. */ data: Prisma.XOR /** * Filter which oauth_tokens to update */ where?: Prisma.oauth_tokensWhereInput /** * Limit how many oauth_tokens to update. */ limit?: number } /** * oauth_tokens updateManyAndReturn */ export type oauth_tokensUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelectUpdateManyAndReturn | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * The data used to update oauth_tokens. */ data: Prisma.XOR /** * Filter which oauth_tokens to update */ where?: Prisma.oauth_tokensWhereInput /** * Limit how many oauth_tokens to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensIncludeUpdateManyAndReturn | null } /** * oauth_tokens upsert */ export type oauth_tokensUpsertArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelect | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensInclude | null /** * The filter to search for the oauth_tokens to update in case it exists. */ where: Prisma.oauth_tokensWhereUniqueInput /** * In case the oauth_tokens found by the `where` argument doesn't exist, create a new oauth_tokens with this data. */ create: Prisma.XOR /** * In case the oauth_tokens was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * oauth_tokens delete */ export type oauth_tokensDeleteArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelect | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensInclude | null /** * Filter which oauth_tokens to delete. */ where: Prisma.oauth_tokensWhereUniqueInput } /** * oauth_tokens deleteMany */ export type oauth_tokensDeleteManyArgs = { /** * Filter which oauth_tokens to delete */ where?: Prisma.oauth_tokensWhereInput /** * Limit how many oauth_tokens to delete. */ limit?: number } /** * oauth_tokens.oauth_tokens */ export type oauth_tokens$oauth_tokensArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelect | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensInclude | null where?: Prisma.oauth_tokensWhereInput } /** * oauth_tokens.other_oauth_tokens */ export type oauth_tokens$other_oauth_tokensArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelect | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensInclude | null where?: Prisma.oauth_tokensWhereInput orderBy?: Prisma.oauth_tokensOrderByWithRelationInput | Prisma.oauth_tokensOrderByWithRelationInput[] cursor?: Prisma.oauth_tokensWhereUniqueInput take?: number skip?: number distinct?: Prisma.Oauth_tokensScalarFieldEnum | Prisma.Oauth_tokensScalarFieldEnum[] } /** * oauth_tokens without action */ export type oauth_tokensDefaultArgs = { /** * Select specific fields to fetch from the oauth_tokens */ select?: Prisma.oauth_tokensSelect | null /** * Omit specific fields from the oauth_tokens */ omit?: Prisma.oauth_tokensOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.oauth_tokensInclude | null }