/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregatePartnerAccount]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type PartnerAccountGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof PartnerAccountGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 account?: Prisma.XOR } 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 account?: Prisma.XOR }, "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 connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutAccountInput connect?: Prisma.PartnerAccountWhereUniqueInput } export type PartnerAccountUncheckedCreateNestedOneWithoutAccountInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutAccountInput connect?: Prisma.PartnerAccountWhereUniqueInput } export type PartnerAccountUpdateOneWithoutAccountNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutAccountInput upsert?: Prisma.PartnerAccountUpsertWithoutAccountInput disconnect?: Prisma.PartnerAccountWhereInput | boolean delete?: Prisma.PartnerAccountWhereInput | boolean connect?: Prisma.PartnerAccountWhereUniqueInput update?: Prisma.XOR, Prisma.PartnerAccountUncheckedUpdateWithoutAccountInput> } export type PartnerAccountUncheckedUpdateOneWithoutAccountNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutAccountInput upsert?: Prisma.PartnerAccountUpsertWithoutAccountInput disconnect?: Prisma.PartnerAccountWhereInput | boolean delete?: Prisma.PartnerAccountWhereInput | boolean connect?: Prisma.PartnerAccountWhereUniqueInput update?: Prisma.XOR, Prisma.PartnerAccountUncheckedUpdateWithoutAccountInput> } export type PartnerAccountCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | 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[] connectOrCreate?: Prisma.PartnerAccountCreateOrConnectWithoutUserInput | Prisma.PartnerAccountCreateOrConnectWithoutUserInput[] createMany?: Prisma.PartnerAccountCreateManyUserInputEnvelope connect?: Prisma.PartnerAccountWhereUniqueInput | Prisma.PartnerAccountWhereUniqueInput[] } export type PartnerAccountUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | 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[] 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 } export type PartnerAccountUpsertWithoutAccountInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.PartnerAccountWhereInput } export type PartnerAccountUpdateToOneWithWhereWithoutAccountInput = { where?: Prisma.PartnerAccountWhereInput data: Prisma.XOR } 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 } export type PartnerAccountCreateManyUserInputEnvelope = { data: Prisma.PartnerAccountCreateManyUserInput | Prisma.PartnerAccountCreateManyUserInput[] skipDuplicates?: boolean } export type PartnerAccountUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.PartnerAccountWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type PartnerAccountUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.PartnerAccountWhereUniqueInput data: Prisma.XOR } export type PartnerAccountUpdateManyWithWhereWithoutUserInput = { where: Prisma.PartnerAccountScalarWhereInput data: Prisma.XOR } 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 = runtime.Types.Extensions.GetSelect<{ id?: boolean role?: boolean created_at?: boolean updated_at?: boolean user_id?: boolean account_id?: boolean user?: boolean | Prisma.PartnerDefaultArgs account?: boolean | Prisma.AccountDefaultArgs }, 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 = runtime.Types.Extensions.GetOmit<"id" | "role" | "created_at" | "updated_at" | "user_id" | "account_id", ExtArgs["result"]["partnerAccount"]> export type PartnerAccountInclude = { user?: boolean | Prisma.PartnerDefaultArgs account?: boolean | Prisma.AccountDefaultArgs } export type $PartnerAccountPayload = { name: "PartnerAccount" objects: { user: Prisma.$PartnerPayload account: Prisma.$AccountPayload } 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 = runtime.Types.Result.GetResult export type PartnerAccountCountArgs = Omit & { select?: PartnerAccountCountAggregateInputType | true } export interface PartnerAccountDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__PartnerAccountClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__PartnerAccountClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__PartnerAccountClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__PartnerAccountClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__PartnerAccountClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__PartnerAccountClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__PartnerAccountClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__PartnerAccountClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: PartnerAccountGroupByArgs['orderBy'] } : { orderBy?: PartnerAccountGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetPartnerAccountGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__PartnerClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> account = {}>(args?: Prisma.Subset>): Prisma.Prisma__AccountClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the PartnerAccount */ select?: Prisma.PartnerAccountSelect | null /** * Omit specific fields from the PartnerAccount */ omit?: Prisma.PartnerAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PartnerAccountInclude | null /** * Filter, which PartnerAccount to fetch. */ where: Prisma.PartnerAccountWhereUniqueInput } /** * PartnerAccount findUniqueOrThrow */ export type PartnerAccountFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PartnerAccount */ select?: Prisma.PartnerAccountSelect | null /** * Omit specific fields from the PartnerAccount */ omit?: Prisma.PartnerAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PartnerAccountInclude | null /** * Filter, which PartnerAccount to fetch. */ where: Prisma.PartnerAccountWhereUniqueInput } /** * PartnerAccount findFirst */ export type PartnerAccountFindFirstArgs = { /** * Select specific fields to fetch from the PartnerAccount */ select?: Prisma.PartnerAccountSelect | null /** * Omit specific fields from the PartnerAccount */ omit?: Prisma.PartnerAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PartnerAccountInclude | 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 = { /** * Select specific fields to fetch from the PartnerAccount */ select?: Prisma.PartnerAccountSelect | null /** * Omit specific fields from the PartnerAccount */ omit?: Prisma.PartnerAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PartnerAccountInclude | 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 = { /** * Select specific fields to fetch from the PartnerAccount */ select?: Prisma.PartnerAccountSelect | null /** * Omit specific fields from the PartnerAccount */ omit?: Prisma.PartnerAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PartnerAccountInclude | 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 = { /** * Select specific fields to fetch from the PartnerAccount */ select?: Prisma.PartnerAccountSelect | null /** * Omit specific fields from the PartnerAccount */ omit?: Prisma.PartnerAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PartnerAccountInclude | null /** * The data needed to create a PartnerAccount. */ data: Prisma.XOR } /** * PartnerAccount createMany */ export type PartnerAccountCreateManyArgs = { /** * The data used to create many PartnerAccounts. */ data: Prisma.PartnerAccountCreateManyInput | Prisma.PartnerAccountCreateManyInput[] skipDuplicates?: boolean } /** * PartnerAccount update */ export type PartnerAccountUpdateArgs = { /** * Select specific fields to fetch from the PartnerAccount */ select?: Prisma.PartnerAccountSelect | null /** * Omit specific fields from the PartnerAccount */ omit?: Prisma.PartnerAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PartnerAccountInclude | null /** * The data needed to update a PartnerAccount. */ data: Prisma.XOR /** * Choose, which PartnerAccount to update. */ where: Prisma.PartnerAccountWhereUniqueInput } /** * PartnerAccount updateMany */ export type PartnerAccountUpdateManyArgs = { /** * The data used to update PartnerAccounts. */ data: Prisma.XOR /** * Filter which PartnerAccounts to update */ where?: Prisma.PartnerAccountWhereInput /** * Limit how many PartnerAccounts to update. */ limit?: number } /** * PartnerAccount upsert */ export type PartnerAccountUpsertArgs = { /** * Select specific fields to fetch from the PartnerAccount */ select?: Prisma.PartnerAccountSelect | null /** * Omit specific fields from the PartnerAccount */ omit?: Prisma.PartnerAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PartnerAccountInclude | 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 /** * In case the PartnerAccount was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * PartnerAccount delete */ export type PartnerAccountDeleteArgs = { /** * Select specific fields to fetch from the PartnerAccount */ select?: Prisma.PartnerAccountSelect | null /** * Omit specific fields from the PartnerAccount */ omit?: Prisma.PartnerAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PartnerAccountInclude | null /** * Filter which PartnerAccount to delete. */ where: Prisma.PartnerAccountWhereUniqueInput } /** * PartnerAccount deleteMany */ export type PartnerAccountDeleteManyArgs = { /** * Filter which PartnerAccounts to delete */ where?: Prisma.PartnerAccountWhereInput /** * Limit how many PartnerAccounts to delete. */ limit?: number } /** * PartnerAccount without action */ export type PartnerAccountDefaultArgs = { /** * Select specific fields to fetch from the PartnerAccount */ select?: Prisma.PartnerAccountSelect | null /** * Omit specific fields from the PartnerAccount */ omit?: Prisma.PartnerAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PartnerAccountInclude | null }