1347 lines
53 KiB
TypeScript
1347 lines
53 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 `PartnerAccount` 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.js"
|
|
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
|
|
/**
|
|
* Model PartnerAccount
|
|
*
|
|
*/
|
|
export type PartnerAccountModel = runtime.Types.Result.DefaultSelection<Prisma.$PartnerAccountPayload>
|
|
|
|
export type AggregatePartnerAccount = {
|
|
_count: PartnerAccountCountAggregateOutputType | null
|
|
_min: PartnerAccountMinAggregateOutputType | null
|
|
_max: PartnerAccountMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type PartnerAccountMinAggregateOutputType = {
|
|
id: string | null
|
|
role: $Enums.PartnerRole | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
user_id: string | null
|
|
account_id: string | null
|
|
}
|
|
|
|
export type PartnerAccountMaxAggregateOutputType = {
|
|
id: string | null
|
|
role: $Enums.PartnerRole | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
user_id: string | null
|
|
account_id: string | null
|
|
}
|
|
|
|
export type PartnerAccountCountAggregateOutputType = {
|
|
id: number
|
|
role: number
|
|
created_at: number
|
|
updated_at: number
|
|
user_id: number
|
|
account_id: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type PartnerAccountMinAggregateInputType = {
|
|
id?: true
|
|
role?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
user_id?: true
|
|
account_id?: true
|
|
}
|
|
|
|
export type PartnerAccountMaxAggregateInputType = {
|
|
id?: true
|
|
role?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
user_id?: true
|
|
account_id?: true
|
|
}
|
|
|
|
export type PartnerAccountCountAggregateInputType = {
|
|
id?: true
|
|
role?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
user_id?: true
|
|
account_id?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type PartnerAccountAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PartnerAccount to aggregate.
|
|
*/
|
|
where?: Prisma.PartnerAccountWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PartnerAccounts to fetch.
|
|
*/
|
|
orderBy?: Prisma.PartnerAccountOrderByWithRelationInput | Prisma.PartnerAccountOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.PartnerAccountWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PartnerAccounts 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` PartnerAccounts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned PartnerAccounts
|
|
**/
|
|
_count?: true | PartnerAccountCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: PartnerAccountMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: PartnerAccountMaxAggregateInputType
|
|
}
|
|
|
|
export type GetPartnerAccountAggregateType<T extends PartnerAccountAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePartnerAccount]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregatePartnerAccount[P]>
|
|
: Prisma.GetScalarType<T[P], AggregatePartnerAccount[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerAccountGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.PartnerAccountWhereInput
|
|
orderBy?: Prisma.PartnerAccountOrderByWithAggregationInput | Prisma.PartnerAccountOrderByWithAggregationInput[]
|
|
by: Prisma.PartnerAccountScalarFieldEnum[] | Prisma.PartnerAccountScalarFieldEnum
|
|
having?: Prisma.PartnerAccountScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: PartnerAccountCountAggregateInputType | true
|
|
_min?: PartnerAccountMinAggregateInputType
|
|
_max?: PartnerAccountMaxAggregateInputType
|
|
}
|
|
|
|
export type PartnerAccountGroupByOutputType = {
|
|
id: string
|
|
role: $Enums.PartnerRole
|
|
created_at: Date
|
|
updated_at: Date
|
|
user_id: string
|
|
account_id: string
|
|
_count: PartnerAccountCountAggregateOutputType | null
|
|
_min: PartnerAccountMinAggregateOutputType | null
|
|
_max: PartnerAccountMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetPartnerAccountGroupByPayload<T extends PartnerAccountGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<PartnerAccountGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PartnerAccountGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], PartnerAccountGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], PartnerAccountGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type PartnerAccountWhereInput = {
|
|
AND?: Prisma.PartnerAccountWhereInput | Prisma.PartnerAccountWhereInput[]
|
|
OR?: Prisma.PartnerAccountWhereInput[]
|
|
NOT?: Prisma.PartnerAccountWhereInput | Prisma.PartnerAccountWhereInput[]
|
|
id?: Prisma.StringFilter<"PartnerAccount"> | string
|
|
role?: Prisma.EnumPartnerRoleFilter<"PartnerAccount"> | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeFilter<"PartnerAccount"> | Date | string
|
|
updated_at?: Prisma.DateTimeFilter<"PartnerAccount"> | Date | string
|
|
user_id?: Prisma.StringFilter<"PartnerAccount"> | string
|
|
account_id?: Prisma.StringFilter<"PartnerAccount"> | string
|
|
user?: Prisma.XOR<Prisma.PartnerScalarRelationFilter, Prisma.PartnerWhereInput>
|
|
account?: Prisma.XOR<Prisma.AccountScalarRelationFilter, Prisma.AccountWhereInput>
|
|
}
|
|
|
|
export type PartnerAccountOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
role?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
user_id?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
user?: Prisma.PartnerOrderByWithRelationInput
|
|
account?: Prisma.AccountOrderByWithRelationInput
|
|
_relevance?: Prisma.PartnerAccountOrderByRelevanceInput
|
|
}
|
|
|
|
export type PartnerAccountWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
account_id?: string
|
|
AND?: Prisma.PartnerAccountWhereInput | Prisma.PartnerAccountWhereInput[]
|
|
OR?: Prisma.PartnerAccountWhereInput[]
|
|
NOT?: Prisma.PartnerAccountWhereInput | Prisma.PartnerAccountWhereInput[]
|
|
role?: Prisma.EnumPartnerRoleFilter<"PartnerAccount"> | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeFilter<"PartnerAccount"> | Date | string
|
|
updated_at?: Prisma.DateTimeFilter<"PartnerAccount"> | Date | string
|
|
user_id?: Prisma.StringFilter<"PartnerAccount"> | string
|
|
user?: Prisma.XOR<Prisma.PartnerScalarRelationFilter, Prisma.PartnerWhereInput>
|
|
account?: Prisma.XOR<Prisma.AccountScalarRelationFilter, Prisma.AccountWhereInput>
|
|
}, "id" | "account_id">
|
|
|
|
export type PartnerAccountOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
role?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
user_id?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
_count?: Prisma.PartnerAccountCountOrderByAggregateInput
|
|
_max?: Prisma.PartnerAccountMaxOrderByAggregateInput
|
|
_min?: Prisma.PartnerAccountMinOrderByAggregateInput
|
|
}
|
|
|
|
export type PartnerAccountScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.PartnerAccountScalarWhereWithAggregatesInput | Prisma.PartnerAccountScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.PartnerAccountScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.PartnerAccountScalarWhereWithAggregatesInput | Prisma.PartnerAccountScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"PartnerAccount"> | string
|
|
role?: Prisma.EnumPartnerRoleWithAggregatesFilter<"PartnerAccount"> | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"PartnerAccount"> | Date | string
|
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"PartnerAccount"> | Date | string
|
|
user_id?: Prisma.StringWithAggregatesFilter<"PartnerAccount"> | string
|
|
account_id?: Prisma.StringWithAggregatesFilter<"PartnerAccount"> | string
|
|
}
|
|
|
|
export type PartnerAccountCreateInput = {
|
|
id?: string
|
|
role: $Enums.PartnerRole
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
user: Prisma.PartnerCreateNestedOneWithoutAccountsInput
|
|
account: Prisma.AccountCreateNestedOneWithoutPartner_accountInput
|
|
}
|
|
|
|
export type PartnerAccountUncheckedCreateInput = {
|
|
id?: string
|
|
role: $Enums.PartnerRole
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
user_id: string
|
|
account_id: string
|
|
}
|
|
|
|
export type PartnerAccountUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
role?: Prisma.EnumPartnerRoleFieldUpdateOperationsInput | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: Prisma.PartnerUpdateOneRequiredWithoutAccountsNestedInput
|
|
account?: Prisma.AccountUpdateOneRequiredWithoutPartner_accountNestedInput
|
|
}
|
|
|
|
export type PartnerAccountUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
role?: Prisma.EnumPartnerRoleFieldUpdateOperationsInput | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
user_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type PartnerAccountCreateManyInput = {
|
|
id?: string
|
|
role: $Enums.PartnerRole
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
user_id: string
|
|
account_id: string
|
|
}
|
|
|
|
export type PartnerAccountUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
role?: Prisma.EnumPartnerRoleFieldUpdateOperationsInput | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type PartnerAccountUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
role?: Prisma.EnumPartnerRoleFieldUpdateOperationsInput | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
user_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type PartnerAccountNullableScalarRelationFilter = {
|
|
is?: Prisma.PartnerAccountWhereInput | null
|
|
isNot?: Prisma.PartnerAccountWhereInput | null
|
|
}
|
|
|
|
export type PartnerAccountListRelationFilter = {
|
|
every?: Prisma.PartnerAccountWhereInput
|
|
some?: Prisma.PartnerAccountWhereInput
|
|
none?: Prisma.PartnerAccountWhereInput
|
|
}
|
|
|
|
export type PartnerAccountOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PartnerAccountOrderByRelevanceInput = {
|
|
fields: Prisma.PartnerAccountOrderByRelevanceFieldEnum | Prisma.PartnerAccountOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type PartnerAccountCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
role?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
user_id?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PartnerAccountMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
role?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
user_id?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PartnerAccountMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
role?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
user_id?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PartnerAccountCreateNestedOneWithoutAccountInput = {
|
|
create?: Prisma.XOR<Prisma.PartnerAccountCreateWithoutAccountInput, Prisma.PartnerAccountUncheckedCreateWithoutAccountInput>
|
|
connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutAccountInput
|
|
connect?: Prisma.PartnerAccountWhereUniqueInput
|
|
}
|
|
|
|
export type PartnerAccountUncheckedCreateNestedOneWithoutAccountInput = {
|
|
create?: Prisma.XOR<Prisma.PartnerAccountCreateWithoutAccountInput, Prisma.PartnerAccountUncheckedCreateWithoutAccountInput>
|
|
connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutAccountInput
|
|
connect?: Prisma.PartnerAccountWhereUniqueInput
|
|
}
|
|
|
|
export type PartnerAccountUpdateOneWithoutAccountNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PartnerAccountCreateWithoutAccountInput, Prisma.PartnerAccountUncheckedCreateWithoutAccountInput>
|
|
connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutAccountInput
|
|
upsert?: Prisma.PartnerAccountUpsertWithoutAccountInput
|
|
disconnect?: Prisma.PartnerAccountWhereInput | boolean
|
|
delete?: Prisma.PartnerAccountWhereInput | boolean
|
|
connect?: Prisma.PartnerAccountWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerAccountUpdateToOneWithWhereWithoutAccountInput, Prisma.PartnerAccountUpdateWithoutAccountInput>, Prisma.PartnerAccountUncheckedUpdateWithoutAccountInput>
|
|
}
|
|
|
|
export type PartnerAccountUncheckedUpdateOneWithoutAccountNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PartnerAccountCreateWithoutAccountInput, Prisma.PartnerAccountUncheckedCreateWithoutAccountInput>
|
|
connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutAccountInput
|
|
upsert?: Prisma.PartnerAccountUpsertWithoutAccountInput
|
|
disconnect?: Prisma.PartnerAccountWhereInput | boolean
|
|
delete?: Prisma.PartnerAccountWhereInput | boolean
|
|
connect?: Prisma.PartnerAccountWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerAccountUpdateToOneWithWhereWithoutAccountInput, Prisma.PartnerAccountUpdateWithoutAccountInput>, Prisma.PartnerAccountUncheckedUpdateWithoutAccountInput>
|
|
}
|
|
|
|
export type PartnerAccountCreateNestedManyWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.PartnerAccountCreateWithoutUserInput, Prisma.PartnerAccountUncheckedCreateWithoutUserInput> | Prisma.PartnerAccountCreateWithoutUserInput[] | Prisma.PartnerAccountUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutUserInput | Prisma.PartnerAccountCreateOrConnectWithoutUserInput[]
|
|
createMany?: Prisma.PartnerAccountCreateManyUserInputEnvelope
|
|
connect?: Prisma.PartnerAccountWhereUniqueInput | Prisma.PartnerAccountWhereUniqueInput[]
|
|
}
|
|
|
|
export type PartnerAccountUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.PartnerAccountCreateWithoutUserInput, Prisma.PartnerAccountUncheckedCreateWithoutUserInput> | Prisma.PartnerAccountCreateWithoutUserInput[] | Prisma.PartnerAccountUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutUserInput | Prisma.PartnerAccountCreateOrConnectWithoutUserInput[]
|
|
createMany?: Prisma.PartnerAccountCreateManyUserInputEnvelope
|
|
connect?: Prisma.PartnerAccountWhereUniqueInput | Prisma.PartnerAccountWhereUniqueInput[]
|
|
}
|
|
|
|
export type PartnerAccountUpdateManyWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PartnerAccountCreateWithoutUserInput, Prisma.PartnerAccountUncheckedCreateWithoutUserInput> | Prisma.PartnerAccountCreateWithoutUserInput[] | Prisma.PartnerAccountUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutUserInput | Prisma.PartnerAccountCreateOrConnectWithoutUserInput[]
|
|
upsert?: Prisma.PartnerAccountUpsertWithWhereUniqueWithoutUserInput | Prisma.PartnerAccountUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: Prisma.PartnerAccountCreateManyUserInputEnvelope
|
|
set?: Prisma.PartnerAccountWhereUniqueInput | Prisma.PartnerAccountWhereUniqueInput[]
|
|
disconnect?: Prisma.PartnerAccountWhereUniqueInput | Prisma.PartnerAccountWhereUniqueInput[]
|
|
delete?: Prisma.PartnerAccountWhereUniqueInput | Prisma.PartnerAccountWhereUniqueInput[]
|
|
connect?: Prisma.PartnerAccountWhereUniqueInput | Prisma.PartnerAccountWhereUniqueInput[]
|
|
update?: Prisma.PartnerAccountUpdateWithWhereUniqueWithoutUserInput | Prisma.PartnerAccountUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: Prisma.PartnerAccountUpdateManyWithWhereWithoutUserInput | Prisma.PartnerAccountUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: Prisma.PartnerAccountScalarWhereInput | Prisma.PartnerAccountScalarWhereInput[]
|
|
}
|
|
|
|
export type PartnerAccountUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PartnerAccountCreateWithoutUserInput, Prisma.PartnerAccountUncheckedCreateWithoutUserInput> | Prisma.PartnerAccountCreateWithoutUserInput[] | Prisma.PartnerAccountUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutUserInput | Prisma.PartnerAccountCreateOrConnectWithoutUserInput[]
|
|
upsert?: Prisma.PartnerAccountUpsertWithWhereUniqueWithoutUserInput | Prisma.PartnerAccountUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: Prisma.PartnerAccountCreateManyUserInputEnvelope
|
|
set?: Prisma.PartnerAccountWhereUniqueInput | Prisma.PartnerAccountWhereUniqueInput[]
|
|
disconnect?: Prisma.PartnerAccountWhereUniqueInput | Prisma.PartnerAccountWhereUniqueInput[]
|
|
delete?: Prisma.PartnerAccountWhereUniqueInput | Prisma.PartnerAccountWhereUniqueInput[]
|
|
connect?: Prisma.PartnerAccountWhereUniqueInput | Prisma.PartnerAccountWhereUniqueInput[]
|
|
update?: Prisma.PartnerAccountUpdateWithWhereUniqueWithoutUserInput | Prisma.PartnerAccountUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: Prisma.PartnerAccountUpdateManyWithWhereWithoutUserInput | Prisma.PartnerAccountUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: Prisma.PartnerAccountScalarWhereInput | Prisma.PartnerAccountScalarWhereInput[]
|
|
}
|
|
|
|
export type EnumPartnerRoleFieldUpdateOperationsInput = {
|
|
set?: $Enums.PartnerRole
|
|
}
|
|
|
|
export type PartnerAccountCreateWithoutAccountInput = {
|
|
id?: string
|
|
role: $Enums.PartnerRole
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
user: Prisma.PartnerCreateNestedOneWithoutAccountsInput
|
|
}
|
|
|
|
export type PartnerAccountUncheckedCreateWithoutAccountInput = {
|
|
id?: string
|
|
role: $Enums.PartnerRole
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
user_id: string
|
|
}
|
|
|
|
export type PartnerAccountCreateOrConnectWithoutAccountInput = {
|
|
where: Prisma.PartnerAccountWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.PartnerAccountCreateWithoutAccountInput, Prisma.PartnerAccountUncheckedCreateWithoutAccountInput>
|
|
}
|
|
|
|
export type PartnerAccountUpsertWithoutAccountInput = {
|
|
update: Prisma.XOR<Prisma.PartnerAccountUpdateWithoutAccountInput, Prisma.PartnerAccountUncheckedUpdateWithoutAccountInput>
|
|
create: Prisma.XOR<Prisma.PartnerAccountCreateWithoutAccountInput, Prisma.PartnerAccountUncheckedCreateWithoutAccountInput>
|
|
where?: Prisma.PartnerAccountWhereInput
|
|
}
|
|
|
|
export type PartnerAccountUpdateToOneWithWhereWithoutAccountInput = {
|
|
where?: Prisma.PartnerAccountWhereInput
|
|
data: Prisma.XOR<Prisma.PartnerAccountUpdateWithoutAccountInput, Prisma.PartnerAccountUncheckedUpdateWithoutAccountInput>
|
|
}
|
|
|
|
export type PartnerAccountUpdateWithoutAccountInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
role?: Prisma.EnumPartnerRoleFieldUpdateOperationsInput | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: Prisma.PartnerUpdateOneRequiredWithoutAccountsNestedInput
|
|
}
|
|
|
|
export type PartnerAccountUncheckedUpdateWithoutAccountInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
role?: Prisma.EnumPartnerRoleFieldUpdateOperationsInput | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
user_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type PartnerAccountCreateWithoutUserInput = {
|
|
id?: string
|
|
role: $Enums.PartnerRole
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
account: Prisma.AccountCreateNestedOneWithoutPartner_accountInput
|
|
}
|
|
|
|
export type PartnerAccountUncheckedCreateWithoutUserInput = {
|
|
id?: string
|
|
role: $Enums.PartnerRole
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
account_id: string
|
|
}
|
|
|
|
export type PartnerAccountCreateOrConnectWithoutUserInput = {
|
|
where: Prisma.PartnerAccountWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.PartnerAccountCreateWithoutUserInput, Prisma.PartnerAccountUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type PartnerAccountCreateManyUserInputEnvelope = {
|
|
data: Prisma.PartnerAccountCreateManyUserInput | Prisma.PartnerAccountCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type PartnerAccountUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.PartnerAccountWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.PartnerAccountUpdateWithoutUserInput, Prisma.PartnerAccountUncheckedUpdateWithoutUserInput>
|
|
create: Prisma.XOR<Prisma.PartnerAccountCreateWithoutUserInput, Prisma.PartnerAccountUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type PartnerAccountUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.PartnerAccountWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.PartnerAccountUpdateWithoutUserInput, Prisma.PartnerAccountUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type PartnerAccountUpdateManyWithWhereWithoutUserInput = {
|
|
where: Prisma.PartnerAccountScalarWhereInput
|
|
data: Prisma.XOR<Prisma.PartnerAccountUpdateManyMutationInput, Prisma.PartnerAccountUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type PartnerAccountScalarWhereInput = {
|
|
AND?: Prisma.PartnerAccountScalarWhereInput | Prisma.PartnerAccountScalarWhereInput[]
|
|
OR?: Prisma.PartnerAccountScalarWhereInput[]
|
|
NOT?: Prisma.PartnerAccountScalarWhereInput | Prisma.PartnerAccountScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"PartnerAccount"> | string
|
|
role?: Prisma.EnumPartnerRoleFilter<"PartnerAccount"> | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeFilter<"PartnerAccount"> | Date | string
|
|
updated_at?: Prisma.DateTimeFilter<"PartnerAccount"> | Date | string
|
|
user_id?: Prisma.StringFilter<"PartnerAccount"> | string
|
|
account_id?: Prisma.StringFilter<"PartnerAccount"> | string
|
|
}
|
|
|
|
export type PartnerAccountCreateManyUserInput = {
|
|
id?: string
|
|
role: $Enums.PartnerRole
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
account_id: string
|
|
}
|
|
|
|
export type PartnerAccountUpdateWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
role?: Prisma.EnumPartnerRoleFieldUpdateOperationsInput | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
account?: Prisma.AccountUpdateOneRequiredWithoutPartner_accountNestedInput
|
|
}
|
|
|
|
export type PartnerAccountUncheckedUpdateWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
role?: Prisma.EnumPartnerRoleFieldUpdateOperationsInput | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type PartnerAccountUncheckedUpdateManyWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
role?: Prisma.EnumPartnerRoleFieldUpdateOperationsInput | $Enums.PartnerRole
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
|
|
export type PartnerAccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
role?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
user_id?: boolean
|
|
account_id?: boolean
|
|
user?: boolean | Prisma.PartnerDefaultArgs<ExtArgs>
|
|
account?: boolean | Prisma.AccountDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["partnerAccount"]>
|
|
|
|
|
|
|
|
export type PartnerAccountSelectScalar = {
|
|
id?: boolean
|
|
role?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
user_id?: boolean
|
|
account_id?: boolean
|
|
}
|
|
|
|
export type PartnerAccountOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "role" | "created_at" | "updated_at" | "user_id" | "account_id", ExtArgs["result"]["partnerAccount"]>
|
|
export type PartnerAccountInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.PartnerDefaultArgs<ExtArgs>
|
|
account?: boolean | Prisma.AccountDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $PartnerAccountPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "PartnerAccount"
|
|
objects: {
|
|
user: Prisma.$PartnerPayload<ExtArgs>
|
|
account: Prisma.$AccountPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
role: $Enums.PartnerRole
|
|
created_at: Date
|
|
updated_at: Date
|
|
user_id: string
|
|
account_id: string
|
|
}, ExtArgs["result"]["partnerAccount"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type PartnerAccountGetPayload<S extends boolean | null | undefined | PartnerAccountDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload, S>
|
|
|
|
export type PartnerAccountCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<PartnerAccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: PartnerAccountCountAggregateInputType | true
|
|
}
|
|
|
|
export interface PartnerAccountDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PartnerAccount'], meta: { name: 'PartnerAccount' } }
|
|
/**
|
|
* Find zero or one PartnerAccount that matches the filter.
|
|
* @param {PartnerAccountFindUniqueArgs} args - Arguments to find a PartnerAccount
|
|
* @example
|
|
* // Get one PartnerAccount
|
|
* const partnerAccount = await prisma.partnerAccount.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends PartnerAccountFindUniqueArgs>(args: Prisma.SelectSubset<T, PartnerAccountFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PartnerAccountClient<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one PartnerAccount that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {PartnerAccountFindUniqueOrThrowArgs} args - Arguments to find a PartnerAccount
|
|
* @example
|
|
* // Get one PartnerAccount
|
|
* const partnerAccount = await prisma.partnerAccount.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends PartnerAccountFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PartnerAccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PartnerAccountClient<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first PartnerAccount 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 {PartnerAccountFindFirstArgs} args - Arguments to find a PartnerAccount
|
|
* @example
|
|
* // Get one PartnerAccount
|
|
* const partnerAccount = await prisma.partnerAccount.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends PartnerAccountFindFirstArgs>(args?: Prisma.SelectSubset<T, PartnerAccountFindFirstArgs<ExtArgs>>): Prisma.Prisma__PartnerAccountClient<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first PartnerAccount 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 {PartnerAccountFindFirstOrThrowArgs} args - Arguments to find a PartnerAccount
|
|
* @example
|
|
* // Get one PartnerAccount
|
|
* const partnerAccount = await prisma.partnerAccount.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends PartnerAccountFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PartnerAccountFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PartnerAccountClient<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more PartnerAccounts 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 {PartnerAccountFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all PartnerAccounts
|
|
* const partnerAccounts = await prisma.partnerAccount.findMany()
|
|
*
|
|
* // Get first 10 PartnerAccounts
|
|
* const partnerAccounts = await prisma.partnerAccount.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const partnerAccountWithIdOnly = await prisma.partnerAccount.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends PartnerAccountFindManyArgs>(args?: Prisma.SelectSubset<T, PartnerAccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a PartnerAccount.
|
|
* @param {PartnerAccountCreateArgs} args - Arguments to create a PartnerAccount.
|
|
* @example
|
|
* // Create one PartnerAccount
|
|
* const PartnerAccount = await prisma.partnerAccount.create({
|
|
* data: {
|
|
* // ... data to create a PartnerAccount
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends PartnerAccountCreateArgs>(args: Prisma.SelectSubset<T, PartnerAccountCreateArgs<ExtArgs>>): Prisma.Prisma__PartnerAccountClient<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many PartnerAccounts.
|
|
* @param {PartnerAccountCreateManyArgs} args - Arguments to create many PartnerAccounts.
|
|
* @example
|
|
* // Create many PartnerAccounts
|
|
* const partnerAccount = await prisma.partnerAccount.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends PartnerAccountCreateManyArgs>(args?: Prisma.SelectSubset<T, PartnerAccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a PartnerAccount.
|
|
* @param {PartnerAccountDeleteArgs} args - Arguments to delete one PartnerAccount.
|
|
* @example
|
|
* // Delete one PartnerAccount
|
|
* const PartnerAccount = await prisma.partnerAccount.delete({
|
|
* where: {
|
|
* // ... filter to delete one PartnerAccount
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends PartnerAccountDeleteArgs>(args: Prisma.SelectSubset<T, PartnerAccountDeleteArgs<ExtArgs>>): Prisma.Prisma__PartnerAccountClient<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one PartnerAccount.
|
|
* @param {PartnerAccountUpdateArgs} args - Arguments to update one PartnerAccount.
|
|
* @example
|
|
* // Update one PartnerAccount
|
|
* const partnerAccount = await prisma.partnerAccount.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends PartnerAccountUpdateArgs>(args: Prisma.SelectSubset<T, PartnerAccountUpdateArgs<ExtArgs>>): Prisma.Prisma__PartnerAccountClient<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more PartnerAccounts.
|
|
* @param {PartnerAccountDeleteManyArgs} args - Arguments to filter PartnerAccounts to delete.
|
|
* @example
|
|
* // Delete a few PartnerAccounts
|
|
* const { count } = await prisma.partnerAccount.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends PartnerAccountDeleteManyArgs>(args?: Prisma.SelectSubset<T, PartnerAccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more PartnerAccounts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PartnerAccountUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many PartnerAccounts
|
|
* const partnerAccount = await prisma.partnerAccount.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends PartnerAccountUpdateManyArgs>(args: Prisma.SelectSubset<T, PartnerAccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one PartnerAccount.
|
|
* @param {PartnerAccountUpsertArgs} args - Arguments to update or create a PartnerAccount.
|
|
* @example
|
|
* // Update or create a PartnerAccount
|
|
* const partnerAccount = await prisma.partnerAccount.upsert({
|
|
* create: {
|
|
* // ... data to create a PartnerAccount
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the PartnerAccount we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends PartnerAccountUpsertArgs>(args: Prisma.SelectSubset<T, PartnerAccountUpsertArgs<ExtArgs>>): Prisma.Prisma__PartnerAccountClient<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of PartnerAccounts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PartnerAccountCountArgs} args - Arguments to filter PartnerAccounts to count.
|
|
* @example
|
|
* // Count the number of PartnerAccounts
|
|
* const count = await prisma.partnerAccount.count({
|
|
* where: {
|
|
* // ... the filter for the PartnerAccounts we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends PartnerAccountCountArgs>(
|
|
args?: Prisma.Subset<T, PartnerAccountCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], PartnerAccountCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a PartnerAccount.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PartnerAccountAggregateArgs} 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 PartnerAccountAggregateArgs>(args: Prisma.Subset<T, PartnerAccountAggregateArgs>): Prisma.PrismaPromise<GetPartnerAccountAggregateType<T>>
|
|
|
|
/**
|
|
* Group by PartnerAccount.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PartnerAccountGroupByArgs} 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 PartnerAccountGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: PartnerAccountGroupByArgs['orderBy'] }
|
|
: { orderBy?: PartnerAccountGroupByArgs['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, PartnerAccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPartnerAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the PartnerAccount model
|
|
*/
|
|
readonly fields: PartnerAccountFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for PartnerAccount.
|
|
* 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__PartnerAccountClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends Prisma.PartnerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PartnerDefaultArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
account<T extends Prisma.AccountDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AccountDefaultArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<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 PartnerAccount model
|
|
*/
|
|
export interface PartnerAccountFieldRefs {
|
|
readonly id: Prisma.FieldRef<"PartnerAccount", 'String'>
|
|
readonly role: Prisma.FieldRef<"PartnerAccount", 'PartnerRole'>
|
|
readonly created_at: Prisma.FieldRef<"PartnerAccount", 'DateTime'>
|
|
readonly updated_at: Prisma.FieldRef<"PartnerAccount", 'DateTime'>
|
|
readonly user_id: Prisma.FieldRef<"PartnerAccount", 'String'>
|
|
readonly account_id: Prisma.FieldRef<"PartnerAccount", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* PartnerAccount findUnique
|
|
*/
|
|
export type PartnerAccountFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PartnerAccount
|
|
*/
|
|
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PartnerAccount
|
|
*/
|
|
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PartnerAccount to fetch.
|
|
*/
|
|
where: Prisma.PartnerAccountWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PartnerAccount findUniqueOrThrow
|
|
*/
|
|
export type PartnerAccountFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PartnerAccount
|
|
*/
|
|
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PartnerAccount
|
|
*/
|
|
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PartnerAccount to fetch.
|
|
*/
|
|
where: Prisma.PartnerAccountWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PartnerAccount findFirst
|
|
*/
|
|
export type PartnerAccountFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PartnerAccount
|
|
*/
|
|
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PartnerAccount
|
|
*/
|
|
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PartnerAccount to fetch.
|
|
*/
|
|
where?: Prisma.PartnerAccountWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PartnerAccounts to fetch.
|
|
*/
|
|
orderBy?: Prisma.PartnerAccountOrderByWithRelationInput | Prisma.PartnerAccountOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for PartnerAccounts.
|
|
*/
|
|
cursor?: Prisma.PartnerAccountWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PartnerAccounts 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` PartnerAccounts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PartnerAccounts.
|
|
*/
|
|
distinct?: Prisma.PartnerAccountScalarFieldEnum | Prisma.PartnerAccountScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PartnerAccount findFirstOrThrow
|
|
*/
|
|
export type PartnerAccountFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PartnerAccount
|
|
*/
|
|
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PartnerAccount
|
|
*/
|
|
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PartnerAccount to fetch.
|
|
*/
|
|
where?: Prisma.PartnerAccountWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PartnerAccounts to fetch.
|
|
*/
|
|
orderBy?: Prisma.PartnerAccountOrderByWithRelationInput | Prisma.PartnerAccountOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for PartnerAccounts.
|
|
*/
|
|
cursor?: Prisma.PartnerAccountWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PartnerAccounts 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` PartnerAccounts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PartnerAccounts.
|
|
*/
|
|
distinct?: Prisma.PartnerAccountScalarFieldEnum | Prisma.PartnerAccountScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PartnerAccount findMany
|
|
*/
|
|
export type PartnerAccountFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PartnerAccount
|
|
*/
|
|
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PartnerAccount
|
|
*/
|
|
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PartnerAccounts to fetch.
|
|
*/
|
|
where?: Prisma.PartnerAccountWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PartnerAccounts to fetch.
|
|
*/
|
|
orderBy?: Prisma.PartnerAccountOrderByWithRelationInput | Prisma.PartnerAccountOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing PartnerAccounts.
|
|
*/
|
|
cursor?: Prisma.PartnerAccountWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PartnerAccounts 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` PartnerAccounts.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.PartnerAccountScalarFieldEnum | Prisma.PartnerAccountScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PartnerAccount create
|
|
*/
|
|
export type PartnerAccountCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PartnerAccount
|
|
*/
|
|
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PartnerAccount
|
|
*/
|
|
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a PartnerAccount.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PartnerAccountCreateInput, Prisma.PartnerAccountUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* PartnerAccount createMany
|
|
*/
|
|
export type PartnerAccountCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many PartnerAccounts.
|
|
*/
|
|
data: Prisma.PartnerAccountCreateManyInput | Prisma.PartnerAccountCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* PartnerAccount update
|
|
*/
|
|
export type PartnerAccountUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PartnerAccount
|
|
*/
|
|
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PartnerAccount
|
|
*/
|
|
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a PartnerAccount.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PartnerAccountUpdateInput, Prisma.PartnerAccountUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which PartnerAccount to update.
|
|
*/
|
|
where: Prisma.PartnerAccountWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PartnerAccount updateMany
|
|
*/
|
|
export type PartnerAccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update PartnerAccounts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PartnerAccountUpdateManyMutationInput, Prisma.PartnerAccountUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PartnerAccounts to update
|
|
*/
|
|
where?: Prisma.PartnerAccountWhereInput
|
|
/**
|
|
* Limit how many PartnerAccounts to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* PartnerAccount upsert
|
|
*/
|
|
export type PartnerAccountUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PartnerAccount
|
|
*/
|
|
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PartnerAccount
|
|
*/
|
|
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the PartnerAccount to update in case it exists.
|
|
*/
|
|
where: Prisma.PartnerAccountWhereUniqueInput
|
|
/**
|
|
* In case the PartnerAccount found by the `where` argument doesn't exist, create a new PartnerAccount with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.PartnerAccountCreateInput, Prisma.PartnerAccountUncheckedCreateInput>
|
|
/**
|
|
* In case the PartnerAccount was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.PartnerAccountUpdateInput, Prisma.PartnerAccountUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* PartnerAccount delete
|
|
*/
|
|
export type PartnerAccountDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PartnerAccount
|
|
*/
|
|
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PartnerAccount
|
|
*/
|
|
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which PartnerAccount to delete.
|
|
*/
|
|
where: Prisma.PartnerAccountWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PartnerAccount deleteMany
|
|
*/
|
|
export type PartnerAccountDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PartnerAccounts to delete
|
|
*/
|
|
where?: Prisma.PartnerAccountWhereInput
|
|
/**
|
|
* Limit how many PartnerAccounts to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* PartnerAccount without action
|
|
*/
|
|
export type PartnerAccountDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PartnerAccount
|
|
*/
|
|
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PartnerAccount
|
|
*/
|
|
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
|
}
|