Files
TREK/server/src/generated/prisma/models/oauth_tokens.ts
T
2026-04-26 23:22:06 +02:00

2153 lines
93 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `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<Prisma.$oauth_tokensPayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends Oauth_tokensAggregateArgs> = {
[P in keyof T & keyof AggregateOauth_tokens]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateOauth_tokens[P]>
: Prisma.GetScalarType<T[P], AggregateOauth_tokens[P]>
}
export type oauth_tokensGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends oauth_tokensGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Oauth_tokensGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Oauth_tokensGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Oauth_tokensGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Oauth_tokensGroupByOutputType[P]>
}
>
>
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<Prisma.Oauth_tokensNullableScalarRelationFilter, Prisma.oauth_tokensWhereInput> | null
other_oauth_tokens?: Prisma.Oauth_tokensListRelationFilter
users?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.usersWhereInput>
oauth_clients?: Prisma.XOR<Prisma.Oauth_clientsScalarRelationFilter, Prisma.oauth_clientsWhereInput>
}
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<Prisma.Oauth_tokensNullableScalarRelationFilter, Prisma.oauth_tokensWhereInput> | null
other_oauth_tokens?: Prisma.Oauth_tokensListRelationFilter
users?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.usersWhereInput>
oauth_clients?: Prisma.XOR<Prisma.Oauth_clientsScalarRelationFilter, Prisma.oauth_clientsWhereInput>
}, "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> | 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> | 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> | 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> | 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<Prisma.oauth_tokensCreateWithoutOther_oauth_tokensInput, Prisma.oauth_tokensUncheckedCreateWithoutOther_oauth_tokensInput>
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> | 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> | 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<Prisma.oauth_tokensCreateWithoutOther_oauth_tokensInput, Prisma.oauth_tokensUncheckedCreateWithoutOther_oauth_tokensInput>
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.XOR<Prisma.oauth_tokensUpdateToOneWithWhereWithoutOther_oauth_tokensInput, Prisma.oauth_tokensUpdateWithoutOther_oauth_tokensInput>, Prisma.oauth_tokensUncheckedUpdateWithoutOther_oauth_tokensInput>
}
export type oauth_tokensUpdateManyWithoutOauth_tokensNestedInput = {
create?: Prisma.XOR<Prisma.oauth_tokensCreateWithoutOauth_tokensInput, Prisma.oauth_tokensUncheckedCreateWithoutOauth_tokensInput> | 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> | 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> | 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> | 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> | 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> | 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<Prisma.oauth_tokensCreateWithoutOauth_clientsInput, Prisma.oauth_tokensUncheckedCreateWithoutOauth_clientsInput>
}
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<Prisma.oauth_tokensUpdateWithoutOauth_clientsInput, Prisma.oauth_tokensUncheckedUpdateWithoutOauth_clientsInput>
create: Prisma.XOR<Prisma.oauth_tokensCreateWithoutOauth_clientsInput, Prisma.oauth_tokensUncheckedCreateWithoutOauth_clientsInput>
}
export type oauth_tokensUpdateWithWhereUniqueWithoutOauth_clientsInput = {
where: Prisma.oauth_tokensWhereUniqueInput
data: Prisma.XOR<Prisma.oauth_tokensUpdateWithoutOauth_clientsInput, Prisma.oauth_tokensUncheckedUpdateWithoutOauth_clientsInput>
}
export type oauth_tokensUpdateManyWithWhereWithoutOauth_clientsInput = {
where: Prisma.oauth_tokensScalarWhereInput
data: Prisma.XOR<Prisma.oauth_tokensUpdateManyMutationInput, Prisma.oauth_tokensUncheckedUpdateManyWithoutOauth_clientsInput>
}
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<Prisma.oauth_tokensCreateWithoutOther_oauth_tokensInput, Prisma.oauth_tokensUncheckedCreateWithoutOther_oauth_tokensInput>
}
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<Prisma.oauth_tokensCreateWithoutOauth_tokensInput, Prisma.oauth_tokensUncheckedCreateWithoutOauth_tokensInput>
}
export type oauth_tokensCreateManyOauth_tokensInputEnvelope = {
data: Prisma.oauth_tokensCreateManyOauth_tokensInput | Prisma.oauth_tokensCreateManyOauth_tokensInput[]
}
export type oauth_tokensUpsertWithoutOther_oauth_tokensInput = {
update: Prisma.XOR<Prisma.oauth_tokensUpdateWithoutOther_oauth_tokensInput, Prisma.oauth_tokensUncheckedUpdateWithoutOther_oauth_tokensInput>
create: Prisma.XOR<Prisma.oauth_tokensCreateWithoutOther_oauth_tokensInput, Prisma.oauth_tokensUncheckedCreateWithoutOther_oauth_tokensInput>
where?: Prisma.oauth_tokensWhereInput
}
export type oauth_tokensUpdateToOneWithWhereWithoutOther_oauth_tokensInput = {
where?: Prisma.oauth_tokensWhereInput
data: Prisma.XOR<Prisma.oauth_tokensUpdateWithoutOther_oauth_tokensInput, Prisma.oauth_tokensUncheckedUpdateWithoutOther_oauth_tokensInput>
}
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<Prisma.oauth_tokensUpdateWithoutOauth_tokensInput, Prisma.oauth_tokensUncheckedUpdateWithoutOauth_tokensInput>
create: Prisma.XOR<Prisma.oauth_tokensCreateWithoutOauth_tokensInput, Prisma.oauth_tokensUncheckedCreateWithoutOauth_tokensInput>
}
export type oauth_tokensUpdateWithWhereUniqueWithoutOauth_tokensInput = {
where: Prisma.oauth_tokensWhereUniqueInput
data: Prisma.XOR<Prisma.oauth_tokensUpdateWithoutOauth_tokensInput, Prisma.oauth_tokensUncheckedUpdateWithoutOauth_tokensInput>
}
export type oauth_tokensUpdateManyWithWhereWithoutOauth_tokensInput = {
where: Prisma.oauth_tokensScalarWhereInput
data: Prisma.XOR<Prisma.oauth_tokensUpdateManyMutationInput, Prisma.oauth_tokensUncheckedUpdateManyWithoutOauth_tokensInput>
}
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<Prisma.oauth_tokensCreateWithoutUsersInput, Prisma.oauth_tokensUncheckedCreateWithoutUsersInput>
}
export type oauth_tokensCreateManyUsersInputEnvelope = {
data: Prisma.oauth_tokensCreateManyUsersInput | Prisma.oauth_tokensCreateManyUsersInput[]
}
export type oauth_tokensUpsertWithWhereUniqueWithoutUsersInput = {
where: Prisma.oauth_tokensWhereUniqueInput
update: Prisma.XOR<Prisma.oauth_tokensUpdateWithoutUsersInput, Prisma.oauth_tokensUncheckedUpdateWithoutUsersInput>
create: Prisma.XOR<Prisma.oauth_tokensCreateWithoutUsersInput, Prisma.oauth_tokensUncheckedCreateWithoutUsersInput>
}
export type oauth_tokensUpdateWithWhereUniqueWithoutUsersInput = {
where: Prisma.oauth_tokensWhereUniqueInput
data: Prisma.XOR<Prisma.oauth_tokensUpdateWithoutUsersInput, Prisma.oauth_tokensUncheckedUpdateWithoutUsersInput>
}
export type oauth_tokensUpdateManyWithWhereWithoutUsersInput = {
where: Prisma.oauth_tokensScalarWhereInput
data: Prisma.XOR<Prisma.oauth_tokensUpdateManyMutationInput, Prisma.oauth_tokensUncheckedUpdateManyWithoutUsersInput>
}
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
other_oauth_tokens?: boolean | Oauth_tokensCountOutputTypeCountOther_oauth_tokensArgs
}
/**
* Oauth_tokensCountOutputType without action
*/
export type Oauth_tokensCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Oauth_tokensCountOutputType
*/
select?: Prisma.Oauth_tokensCountOutputTypeSelect<ExtArgs> | null
}
/**
* Oauth_tokensCountOutputType without action
*/
export type Oauth_tokensCountOutputTypeCountOther_oauth_tokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.oauth_tokensWhereInput
}
export type oauth_tokensSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
other_oauth_tokens?: boolean | Prisma.oauth_tokens$other_oauth_tokensArgs<ExtArgs>
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
oauth_clients?: boolean | Prisma.oauth_clientsDefaultArgs<ExtArgs>
_count?: boolean | Prisma.Oauth_tokensCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["oauth_tokens"]>
export type oauth_tokensSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
oauth_clients?: boolean | Prisma.oauth_clientsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["oauth_tokens"]>
export type oauth_tokensSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
oauth_clients?: boolean | Prisma.oauth_clientsDefaultArgs<ExtArgs>
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
oauth_tokens?: boolean | Prisma.oauth_tokens$oauth_tokensArgs<ExtArgs>
other_oauth_tokens?: boolean | Prisma.oauth_tokens$other_oauth_tokensArgs<ExtArgs>
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
oauth_clients?: boolean | Prisma.oauth_clientsDefaultArgs<ExtArgs>
_count?: boolean | Prisma.Oauth_tokensCountOutputTypeDefaultArgs<ExtArgs>
}
export type oauth_tokensIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
oauth_tokens?: boolean | Prisma.oauth_tokens$oauth_tokensArgs<ExtArgs>
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
oauth_clients?: boolean | Prisma.oauth_clientsDefaultArgs<ExtArgs>
}
export type oauth_tokensIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
oauth_tokens?: boolean | Prisma.oauth_tokens$oauth_tokensArgs<ExtArgs>
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
oauth_clients?: boolean | Prisma.oauth_clientsDefaultArgs<ExtArgs>
}
export type $oauth_tokensPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "oauth_tokens"
objects: {
oauth_tokens: Prisma.$oauth_tokensPayload<ExtArgs> | null
other_oauth_tokens: Prisma.$oauth_tokensPayload<ExtArgs>[]
users: Prisma.$usersPayload<ExtArgs>
oauth_clients: Prisma.$oauth_clientsPayload<ExtArgs>
}
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<S extends boolean | null | undefined | oauth_tokensDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload, S>
export type oauth_tokensCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<oauth_tokensFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Oauth_tokensCountAggregateInputType | true
}
export interface oauth_tokensDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends oauth_tokensFindUniqueArgs>(args: Prisma.SelectSubset<T, oauth_tokensFindUniqueArgs<ExtArgs>>): Prisma.Prisma__oauth_tokensClient<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, 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<T extends oauth_tokensFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, oauth_tokensFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__oauth_tokensClient<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, 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<T extends oauth_tokensFindFirstArgs>(args?: Prisma.SelectSubset<T, oauth_tokensFindFirstArgs<ExtArgs>>): Prisma.Prisma__oauth_tokensClient<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, 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<T extends oauth_tokensFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, oauth_tokensFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__oauth_tokensClient<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, 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<T extends oauth_tokensFindManyArgs>(args?: Prisma.SelectSubset<T, oauth_tokensFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, 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<T extends oauth_tokensCreateArgs>(args: Prisma.SelectSubset<T, oauth_tokensCreateArgs<ExtArgs>>): Prisma.Prisma__oauth_tokensClient<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, 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<T extends oauth_tokensCreateManyArgs>(args?: Prisma.SelectSubset<T, oauth_tokensCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends oauth_tokensCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, oauth_tokensCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, 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<T extends oauth_tokensDeleteArgs>(args: Prisma.SelectSubset<T, oauth_tokensDeleteArgs<ExtArgs>>): Prisma.Prisma__oauth_tokensClient<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, 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<T extends oauth_tokensUpdateArgs>(args: Prisma.SelectSubset<T, oauth_tokensUpdateArgs<ExtArgs>>): Prisma.Prisma__oauth_tokensClient<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, 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<T extends oauth_tokensDeleteManyArgs>(args?: Prisma.SelectSubset<T, oauth_tokensDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends oauth_tokensUpdateManyArgs>(args: Prisma.SelectSubset<T, oauth_tokensUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends oauth_tokensUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, oauth_tokensUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, 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<T extends oauth_tokensUpsertArgs>(args: Prisma.SelectSubset<T, oauth_tokensUpsertArgs<ExtArgs>>): Prisma.Prisma__oauth_tokensClient<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, 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<T extends oauth_tokensCountArgs>(
args?: Prisma.Subset<T, oauth_tokensCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Oauth_tokensCountAggregateOutputType>
: 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<T extends Oauth_tokensAggregateArgs>(args: Prisma.Subset<T, Oauth_tokensAggregateArgs>): Prisma.PrismaPromise<GetOauth_tokensAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: oauth_tokensGroupByArgs['orderBy'] }
: { orderBy?: oauth_tokensGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
InputErrors extends ByEmpty extends Prisma.True
? `Error: "by" must not be empty.`
: HavingValid extends Prisma.False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: Prisma.SubsetIntersection<T, oauth_tokensGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOauth_tokensGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
oauth_tokens<T extends Prisma.oauth_tokens$oauth_tokensArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.oauth_tokens$oauth_tokensArgs<ExtArgs>>): Prisma.Prisma__oauth_tokensClient<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
other_oauth_tokens<T extends Prisma.oauth_tokens$other_oauth_tokensArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.oauth_tokens$other_oauth_tokensArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$oauth_tokensPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
users<T extends Prisma.usersDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.usersDefaultArgs<ExtArgs>>): Prisma.Prisma__usersClient<runtime.Types.Result.GetResult<Prisma.$usersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
oauth_clients<T extends Prisma.oauth_clientsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.oauth_clientsDefaultArgs<ExtArgs>>): Prisma.Prisma__oauth_clientsClient<runtime.Types.Result.GetResult<Prisma.$oauth_clientsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.oauth_tokensInclude<ExtArgs> | null
/**
* Filter, which oauth_tokens to fetch.
*/
where: Prisma.oauth_tokensWhereUniqueInput
}
/**
* oauth_tokens findUniqueOrThrow
*/
export type oauth_tokensFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.oauth_tokensInclude<ExtArgs> | null
/**
* Filter, which oauth_tokens to fetch.
*/
where: Prisma.oauth_tokensWhereUniqueInput
}
/**
* oauth_tokens findFirst
*/
export type oauth_tokensFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.oauth_tokensInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.oauth_tokensInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.oauth_tokensInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.oauth_tokensInclude<ExtArgs> | null
/**
* The data needed to create a oauth_tokens.
*/
data: Prisma.XOR<Prisma.oauth_tokensCreateInput, Prisma.oauth_tokensUncheckedCreateInput>
}
/**
* oauth_tokens createMany
*/
export type oauth_tokensCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many oauth_tokens.
*/
data: Prisma.oauth_tokensCreateManyInput | Prisma.oauth_tokensCreateManyInput[]
}
/**
* oauth_tokens createManyAndReturn
*/
export type oauth_tokensCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | 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<ExtArgs> | null
}
/**
* oauth_tokens update
*/
export type oauth_tokensUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.oauth_tokensInclude<ExtArgs> | null
/**
* The data needed to update a oauth_tokens.
*/
data: Prisma.XOR<Prisma.oauth_tokensUpdateInput, Prisma.oauth_tokensUncheckedUpdateInput>
/**
* Choose, which oauth_tokens to update.
*/
where: Prisma.oauth_tokensWhereUniqueInput
}
/**
* oauth_tokens updateMany
*/
export type oauth_tokensUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update oauth_tokens.
*/
data: Prisma.XOR<Prisma.oauth_tokensUpdateManyMutationInput, Prisma.oauth_tokensUncheckedUpdateManyInput>
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* The data used to update oauth_tokens.
*/
data: Prisma.XOR<Prisma.oauth_tokensUpdateManyMutationInput, Prisma.oauth_tokensUncheckedUpdateManyInput>
/**
* 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<ExtArgs> | null
}
/**
* oauth_tokens upsert
*/
export type oauth_tokensUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.oauth_tokensInclude<ExtArgs> | 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<Prisma.oauth_tokensCreateInput, Prisma.oauth_tokensUncheckedCreateInput>
/**
* In case the oauth_tokens was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.oauth_tokensUpdateInput, Prisma.oauth_tokensUncheckedUpdateInput>
}
/**
* oauth_tokens delete
*/
export type oauth_tokensDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.oauth_tokensInclude<ExtArgs> | null
/**
* Filter which oauth_tokens to delete.
*/
where: Prisma.oauth_tokensWhereUniqueInput
}
/**
* oauth_tokens deleteMany
*/
export type oauth_tokensDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.oauth_tokensInclude<ExtArgs> | null
where?: Prisma.oauth_tokensWhereInput
}
/**
* oauth_tokens.other_oauth_tokens
*/
export type oauth_tokens$other_oauth_tokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.oauth_tokensInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the oauth_tokens
*/
select?: Prisma.oauth_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the oauth_tokens
*/
omit?: Prisma.oauth_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.oauth_tokensInclude<ExtArgs> | null
}