Files
HiveGrid-Wireframes/hivegrid-cloud/packages/db/generated/prisma/client/models/SubscriptionUsageBasedTier.ts
T

1443 lines
66 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 `SubscriptionUsageBasedTier` model and its related types.
*
* 🟢 You can import this file directly.
*/
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"
/**
* Model SubscriptionUsageBasedTier
*
*/
export type SubscriptionUsageBasedTierModel = runtime.Types.Result.DefaultSelection<Prisma.$SubscriptionUsageBasedTierPayload>
export type AggregateSubscriptionUsageBasedTier = {
_count: SubscriptionUsageBasedTierCountAggregateOutputType | null
_avg: SubscriptionUsageBasedTierAvgAggregateOutputType | null
_sum: SubscriptionUsageBasedTierSumAggregateOutputType | null
_min: SubscriptionUsageBasedTierMinAggregateOutputType | null
_max: SubscriptionUsageBasedTierMaxAggregateOutputType | null
}
export type SubscriptionUsageBasedTierAvgAggregateOutputType = {
from: number | null
to: number | null
perUnitPrice: runtime.Decimal | null
flatFeePrice: runtime.Decimal | null
}
export type SubscriptionUsageBasedTierSumAggregateOutputType = {
from: number | null
to: number | null
perUnitPrice: runtime.Decimal | null
flatFeePrice: runtime.Decimal | null
}
export type SubscriptionUsageBasedTierMinAggregateOutputType = {
id: string | null
subscriptionUsageBasedPriceId: string | null
from: number | null
to: number | null
perUnitPrice: runtime.Decimal | null
flatFeePrice: runtime.Decimal | null
}
export type SubscriptionUsageBasedTierMaxAggregateOutputType = {
id: string | null
subscriptionUsageBasedPriceId: string | null
from: number | null
to: number | null
perUnitPrice: runtime.Decimal | null
flatFeePrice: runtime.Decimal | null
}
export type SubscriptionUsageBasedTierCountAggregateOutputType = {
id: number
subscriptionUsageBasedPriceId: number
from: number
to: number
perUnitPrice: number
flatFeePrice: number
_all: number
}
export type SubscriptionUsageBasedTierAvgAggregateInputType = {
from?: true
to?: true
perUnitPrice?: true
flatFeePrice?: true
}
export type SubscriptionUsageBasedTierSumAggregateInputType = {
from?: true
to?: true
perUnitPrice?: true
flatFeePrice?: true
}
export type SubscriptionUsageBasedTierMinAggregateInputType = {
id?: true
subscriptionUsageBasedPriceId?: true
from?: true
to?: true
perUnitPrice?: true
flatFeePrice?: true
}
export type SubscriptionUsageBasedTierMaxAggregateInputType = {
id?: true
subscriptionUsageBasedPriceId?: true
from?: true
to?: true
perUnitPrice?: true
flatFeePrice?: true
}
export type SubscriptionUsageBasedTierCountAggregateInputType = {
id?: true
subscriptionUsageBasedPriceId?: true
from?: true
to?: true
perUnitPrice?: true
flatFeePrice?: true
_all?: true
}
export type SubscriptionUsageBasedTierAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which SubscriptionUsageBasedTier to aggregate.
*/
where?: Prisma.SubscriptionUsageBasedTierWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SubscriptionUsageBasedTiers to fetch.
*/
orderBy?: Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput | Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SubscriptionUsageBasedTiers 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` SubscriptionUsageBasedTiers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned SubscriptionUsageBasedTiers
**/
_count?: true | SubscriptionUsageBasedTierCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: SubscriptionUsageBasedTierAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: SubscriptionUsageBasedTierSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: SubscriptionUsageBasedTierMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: SubscriptionUsageBasedTierMaxAggregateInputType
}
export type GetSubscriptionUsageBasedTierAggregateType<T extends SubscriptionUsageBasedTierAggregateArgs> = {
[P in keyof T & keyof AggregateSubscriptionUsageBasedTier]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateSubscriptionUsageBasedTier[P]>
: Prisma.GetScalarType<T[P], AggregateSubscriptionUsageBasedTier[P]>
}
export type SubscriptionUsageBasedTierGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.SubscriptionUsageBasedTierWhereInput
orderBy?: Prisma.SubscriptionUsageBasedTierOrderByWithAggregationInput | Prisma.SubscriptionUsageBasedTierOrderByWithAggregationInput[]
by: Prisma.SubscriptionUsageBasedTierScalarFieldEnum[] | Prisma.SubscriptionUsageBasedTierScalarFieldEnum
having?: Prisma.SubscriptionUsageBasedTierScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: SubscriptionUsageBasedTierCountAggregateInputType | true
_avg?: SubscriptionUsageBasedTierAvgAggregateInputType
_sum?: SubscriptionUsageBasedTierSumAggregateInputType
_min?: SubscriptionUsageBasedTierMinAggregateInputType
_max?: SubscriptionUsageBasedTierMaxAggregateInputType
}
export type SubscriptionUsageBasedTierGroupByOutputType = {
id: string
subscriptionUsageBasedPriceId: string
from: number
to: number | null
perUnitPrice: runtime.Decimal | null
flatFeePrice: runtime.Decimal | null
_count: SubscriptionUsageBasedTierCountAggregateOutputType | null
_avg: SubscriptionUsageBasedTierAvgAggregateOutputType | null
_sum: SubscriptionUsageBasedTierSumAggregateOutputType | null
_min: SubscriptionUsageBasedTierMinAggregateOutputType | null
_max: SubscriptionUsageBasedTierMaxAggregateOutputType | null
}
export type GetSubscriptionUsageBasedTierGroupByPayload<T extends SubscriptionUsageBasedTierGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<SubscriptionUsageBasedTierGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof SubscriptionUsageBasedTierGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], SubscriptionUsageBasedTierGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], SubscriptionUsageBasedTierGroupByOutputType[P]>
}
>
>
export type SubscriptionUsageBasedTierWhereInput = {
AND?: Prisma.SubscriptionUsageBasedTierWhereInput | Prisma.SubscriptionUsageBasedTierWhereInput[]
OR?: Prisma.SubscriptionUsageBasedTierWhereInput[]
NOT?: Prisma.SubscriptionUsageBasedTierWhereInput | Prisma.SubscriptionUsageBasedTierWhereInput[]
id?: Prisma.StringFilter<"SubscriptionUsageBasedTier"> | string
subscriptionUsageBasedPriceId?: Prisma.StringFilter<"SubscriptionUsageBasedTier"> | string
from?: Prisma.IntFilter<"SubscriptionUsageBasedTier"> | number
to?: Prisma.IntNullableFilter<"SubscriptionUsageBasedTier"> | number | null
perUnitPrice?: Prisma.DecimalNullableFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: Prisma.DecimalNullableFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
subscriptionUsageBasedPrice?: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceScalarRelationFilter, Prisma.SubscriptionUsageBasedPriceWhereInput>
}
export type SubscriptionUsageBasedTierOrderByWithRelationInput = {
id?: Prisma.SortOrder
subscriptionUsageBasedPriceId?: Prisma.SortOrder
from?: Prisma.SortOrder
to?: Prisma.SortOrderInput | Prisma.SortOrder
perUnitPrice?: Prisma.SortOrderInput | Prisma.SortOrder
flatFeePrice?: Prisma.SortOrderInput | Prisma.SortOrder
subscriptionUsageBasedPrice?: Prisma.SubscriptionUsageBasedPriceOrderByWithRelationInput
}
export type SubscriptionUsageBasedTierWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.SubscriptionUsageBasedTierWhereInput | Prisma.SubscriptionUsageBasedTierWhereInput[]
OR?: Prisma.SubscriptionUsageBasedTierWhereInput[]
NOT?: Prisma.SubscriptionUsageBasedTierWhereInput | Prisma.SubscriptionUsageBasedTierWhereInput[]
subscriptionUsageBasedPriceId?: Prisma.StringFilter<"SubscriptionUsageBasedTier"> | string
from?: Prisma.IntFilter<"SubscriptionUsageBasedTier"> | number
to?: Prisma.IntNullableFilter<"SubscriptionUsageBasedTier"> | number | null
perUnitPrice?: Prisma.DecimalNullableFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: Prisma.DecimalNullableFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
subscriptionUsageBasedPrice?: Prisma.XOR<Prisma.SubscriptionUsageBasedPriceScalarRelationFilter, Prisma.SubscriptionUsageBasedPriceWhereInput>
}, "id">
export type SubscriptionUsageBasedTierOrderByWithAggregationInput = {
id?: Prisma.SortOrder
subscriptionUsageBasedPriceId?: Prisma.SortOrder
from?: Prisma.SortOrder
to?: Prisma.SortOrderInput | Prisma.SortOrder
perUnitPrice?: Prisma.SortOrderInput | Prisma.SortOrder
flatFeePrice?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.SubscriptionUsageBasedTierCountOrderByAggregateInput
_avg?: Prisma.SubscriptionUsageBasedTierAvgOrderByAggregateInput
_max?: Prisma.SubscriptionUsageBasedTierMaxOrderByAggregateInput
_min?: Prisma.SubscriptionUsageBasedTierMinOrderByAggregateInput
_sum?: Prisma.SubscriptionUsageBasedTierSumOrderByAggregateInput
}
export type SubscriptionUsageBasedTierScalarWhereWithAggregatesInput = {
AND?: Prisma.SubscriptionUsageBasedTierScalarWhereWithAggregatesInput | Prisma.SubscriptionUsageBasedTierScalarWhereWithAggregatesInput[]
OR?: Prisma.SubscriptionUsageBasedTierScalarWhereWithAggregatesInput[]
NOT?: Prisma.SubscriptionUsageBasedTierScalarWhereWithAggregatesInput | Prisma.SubscriptionUsageBasedTierScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedTier"> | string
subscriptionUsageBasedPriceId?: Prisma.StringWithAggregatesFilter<"SubscriptionUsageBasedTier"> | string
from?: Prisma.IntWithAggregatesFilter<"SubscriptionUsageBasedTier"> | number
to?: Prisma.IntNullableWithAggregatesFilter<"SubscriptionUsageBasedTier"> | number | null
perUnitPrice?: Prisma.DecimalNullableWithAggregatesFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: Prisma.DecimalNullableWithAggregatesFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierCreateInput = {
id?: string
from: number
to?: number | null
perUnitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
subscriptionUsageBasedPrice: Prisma.SubscriptionUsageBasedPriceCreateNestedOneWithoutTiersInput
}
export type SubscriptionUsageBasedTierUncheckedCreateInput = {
id?: string
subscriptionUsageBasedPriceId: string
from: number
to?: number | null
perUnitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
from?: Prisma.IntFieldUpdateOperationsInput | number
to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
subscriptionUsageBasedPrice?: Prisma.SubscriptionUsageBasedPriceUpdateOneRequiredWithoutTiersNestedInput
}
export type SubscriptionUsageBasedTierUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
subscriptionUsageBasedPriceId?: Prisma.StringFieldUpdateOperationsInput | string
from?: Prisma.IntFieldUpdateOperationsInput | number
to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierCreateManyInput = {
id?: string
subscriptionUsageBasedPriceId: string
from: number
to?: number | null
perUnitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
from?: Prisma.IntFieldUpdateOperationsInput | number
to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
subscriptionUsageBasedPriceId?: Prisma.StringFieldUpdateOperationsInput | string
from?: Prisma.IntFieldUpdateOperationsInput | number
to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierListRelationFilter = {
every?: Prisma.SubscriptionUsageBasedTierWhereInput
some?: Prisma.SubscriptionUsageBasedTierWhereInput
none?: Prisma.SubscriptionUsageBasedTierWhereInput
}
export type SubscriptionUsageBasedTierOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type SubscriptionUsageBasedTierCountOrderByAggregateInput = {
id?: Prisma.SortOrder
subscriptionUsageBasedPriceId?: Prisma.SortOrder
from?: Prisma.SortOrder
to?: Prisma.SortOrder
perUnitPrice?: Prisma.SortOrder
flatFeePrice?: Prisma.SortOrder
}
export type SubscriptionUsageBasedTierAvgOrderByAggregateInput = {
from?: Prisma.SortOrder
to?: Prisma.SortOrder
perUnitPrice?: Prisma.SortOrder
flatFeePrice?: Prisma.SortOrder
}
export type SubscriptionUsageBasedTierMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
subscriptionUsageBasedPriceId?: Prisma.SortOrder
from?: Prisma.SortOrder
to?: Prisma.SortOrder
perUnitPrice?: Prisma.SortOrder
flatFeePrice?: Prisma.SortOrder
}
export type SubscriptionUsageBasedTierMinOrderByAggregateInput = {
id?: Prisma.SortOrder
subscriptionUsageBasedPriceId?: Prisma.SortOrder
from?: Prisma.SortOrder
to?: Prisma.SortOrder
perUnitPrice?: Prisma.SortOrder
flatFeePrice?: Prisma.SortOrder
}
export type SubscriptionUsageBasedTierSumOrderByAggregateInput = {
from?: Prisma.SortOrder
to?: Prisma.SortOrder
perUnitPrice?: Prisma.SortOrder
flatFeePrice?: Prisma.SortOrder
}
export type SubscriptionUsageBasedTierCreateNestedManyWithoutSubscriptionUsageBasedPriceInput = {
create?: Prisma.XOR<Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput, Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput> | Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput[] | Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput[]
connectOrCreate?: Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput[]
createMany?: Prisma.SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInputEnvelope
connect?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[]
}
export type SubscriptionUsageBasedTierUncheckedCreateNestedManyWithoutSubscriptionUsageBasedPriceInput = {
create?: Prisma.XOR<Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput, Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput> | Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput[] | Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput[]
connectOrCreate?: Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput[]
createMany?: Prisma.SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInputEnvelope
connect?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[]
}
export type SubscriptionUsageBasedTierUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput = {
create?: Prisma.XOR<Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput, Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput> | Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput[] | Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput[]
connectOrCreate?: Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput[]
upsert?: Prisma.SubscriptionUsageBasedTierUpsertWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierUpsertWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput[]
createMany?: Prisma.SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInputEnvelope
set?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[]
disconnect?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[]
delete?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[]
connect?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[]
update?: Prisma.SubscriptionUsageBasedTierUpdateWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierUpdateWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput[]
updateMany?: Prisma.SubscriptionUsageBasedTierUpdateManyWithWhereWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierUpdateManyWithWhereWithoutSubscriptionUsageBasedPriceInput[]
deleteMany?: Prisma.SubscriptionUsageBasedTierScalarWhereInput | Prisma.SubscriptionUsageBasedTierScalarWhereInput[]
}
export type SubscriptionUsageBasedTierUncheckedUpdateManyWithoutSubscriptionUsageBasedPriceNestedInput = {
create?: Prisma.XOR<Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput, Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput> | Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput[] | Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput[]
connectOrCreate?: Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput[]
upsert?: Prisma.SubscriptionUsageBasedTierUpsertWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierUpsertWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput[]
createMany?: Prisma.SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInputEnvelope
set?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[]
disconnect?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[]
delete?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[]
connect?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput | Prisma.SubscriptionUsageBasedTierWhereUniqueInput[]
update?: Prisma.SubscriptionUsageBasedTierUpdateWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierUpdateWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput[]
updateMany?: Prisma.SubscriptionUsageBasedTierUpdateManyWithWhereWithoutSubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierUpdateManyWithWhereWithoutSubscriptionUsageBasedPriceInput[]
deleteMany?: Prisma.SubscriptionUsageBasedTierScalarWhereInput | Prisma.SubscriptionUsageBasedTierScalarWhereInput[]
}
export type SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput = {
id?: string
from: number
to?: number | null
perUnitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput = {
id?: string
from: number
to?: number | null
perUnitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierCreateOrConnectWithoutSubscriptionUsageBasedPriceInput = {
where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
create: Prisma.XOR<Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput, Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput>
}
export type SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInputEnvelope = {
data: Prisma.SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInput | Prisma.SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInput[]
skipDuplicates?: boolean
}
export type SubscriptionUsageBasedTierUpsertWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput = {
where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
update: Prisma.XOR<Prisma.SubscriptionUsageBasedTierUpdateWithoutSubscriptionUsageBasedPriceInput, Prisma.SubscriptionUsageBasedTierUncheckedUpdateWithoutSubscriptionUsageBasedPriceInput>
create: Prisma.XOR<Prisma.SubscriptionUsageBasedTierCreateWithoutSubscriptionUsageBasedPriceInput, Prisma.SubscriptionUsageBasedTierUncheckedCreateWithoutSubscriptionUsageBasedPriceInput>
}
export type SubscriptionUsageBasedTierUpdateWithWhereUniqueWithoutSubscriptionUsageBasedPriceInput = {
where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
data: Prisma.XOR<Prisma.SubscriptionUsageBasedTierUpdateWithoutSubscriptionUsageBasedPriceInput, Prisma.SubscriptionUsageBasedTierUncheckedUpdateWithoutSubscriptionUsageBasedPriceInput>
}
export type SubscriptionUsageBasedTierUpdateManyWithWhereWithoutSubscriptionUsageBasedPriceInput = {
where: Prisma.SubscriptionUsageBasedTierScalarWhereInput
data: Prisma.XOR<Prisma.SubscriptionUsageBasedTierUpdateManyMutationInput, Prisma.SubscriptionUsageBasedTierUncheckedUpdateManyWithoutSubscriptionUsageBasedPriceInput>
}
export type SubscriptionUsageBasedTierScalarWhereInput = {
AND?: Prisma.SubscriptionUsageBasedTierScalarWhereInput | Prisma.SubscriptionUsageBasedTierScalarWhereInput[]
OR?: Prisma.SubscriptionUsageBasedTierScalarWhereInput[]
NOT?: Prisma.SubscriptionUsageBasedTierScalarWhereInput | Prisma.SubscriptionUsageBasedTierScalarWhereInput[]
id?: Prisma.StringFilter<"SubscriptionUsageBasedTier"> | string
subscriptionUsageBasedPriceId?: Prisma.StringFilter<"SubscriptionUsageBasedTier"> | string
from?: Prisma.IntFilter<"SubscriptionUsageBasedTier"> | number
to?: Prisma.IntNullableFilter<"SubscriptionUsageBasedTier"> | number | null
perUnitPrice?: Prisma.DecimalNullableFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: Prisma.DecimalNullableFilter<"SubscriptionUsageBasedTier"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierCreateManySubscriptionUsageBasedPriceInput = {
id?: string
from: number
to?: number | null
perUnitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierUpdateWithoutSubscriptionUsageBasedPriceInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
from?: Prisma.IntFieldUpdateOperationsInput | number
to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierUncheckedUpdateWithoutSubscriptionUsageBasedPriceInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
from?: Prisma.IntFieldUpdateOperationsInput | number
to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierUncheckedUpdateManyWithoutSubscriptionUsageBasedPriceInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
from?: Prisma.IntFieldUpdateOperationsInput | number
to?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
perUnitPrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
flatFeePrice?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type SubscriptionUsageBasedTierSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
subscriptionUsageBasedPriceId?: boolean
from?: boolean
to?: boolean
perUnitPrice?: boolean
flatFeePrice?: boolean
subscriptionUsageBasedPrice?: boolean | Prisma.SubscriptionUsageBasedPriceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["subscriptionUsageBasedTier"]>
export type SubscriptionUsageBasedTierSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
subscriptionUsageBasedPriceId?: boolean
from?: boolean
to?: boolean
perUnitPrice?: boolean
flatFeePrice?: boolean
subscriptionUsageBasedPrice?: boolean | Prisma.SubscriptionUsageBasedPriceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["subscriptionUsageBasedTier"]>
export type SubscriptionUsageBasedTierSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
subscriptionUsageBasedPriceId?: boolean
from?: boolean
to?: boolean
perUnitPrice?: boolean
flatFeePrice?: boolean
subscriptionUsageBasedPrice?: boolean | Prisma.SubscriptionUsageBasedPriceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["subscriptionUsageBasedTier"]>
export type SubscriptionUsageBasedTierSelectScalar = {
id?: boolean
subscriptionUsageBasedPriceId?: boolean
from?: boolean
to?: boolean
perUnitPrice?: boolean
flatFeePrice?: boolean
}
export type SubscriptionUsageBasedTierOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "subscriptionUsageBasedPriceId" | "from" | "to" | "perUnitPrice" | "flatFeePrice", ExtArgs["result"]["subscriptionUsageBasedTier"]>
export type SubscriptionUsageBasedTierInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
subscriptionUsageBasedPrice?: boolean | Prisma.SubscriptionUsageBasedPriceDefaultArgs<ExtArgs>
}
export type SubscriptionUsageBasedTierIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
subscriptionUsageBasedPrice?: boolean | Prisma.SubscriptionUsageBasedPriceDefaultArgs<ExtArgs>
}
export type SubscriptionUsageBasedTierIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
subscriptionUsageBasedPrice?: boolean | Prisma.SubscriptionUsageBasedPriceDefaultArgs<ExtArgs>
}
export type $SubscriptionUsageBasedTierPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "SubscriptionUsageBasedTier"
objects: {
subscriptionUsageBasedPrice: Prisma.$SubscriptionUsageBasedPricePayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
subscriptionUsageBasedPriceId: string
from: number
to: number | null
perUnitPrice: runtime.Decimal | null
flatFeePrice: runtime.Decimal | null
}, ExtArgs["result"]["subscriptionUsageBasedTier"]>
composites: {}
}
export type SubscriptionUsageBasedTierGetPayload<S extends boolean | null | undefined | SubscriptionUsageBasedTierDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload, S>
export type SubscriptionUsageBasedTierCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<SubscriptionUsageBasedTierFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: SubscriptionUsageBasedTierCountAggregateInputType | true
}
export interface SubscriptionUsageBasedTierDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SubscriptionUsageBasedTier'], meta: { name: 'SubscriptionUsageBasedTier' } }
/**
* Find zero or one SubscriptionUsageBasedTier that matches the filter.
* @param {SubscriptionUsageBasedTierFindUniqueArgs} args - Arguments to find a SubscriptionUsageBasedTier
* @example
* // Get one SubscriptionUsageBasedTier
* const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends SubscriptionUsageBasedTierFindUniqueArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedTierFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedTierClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one SubscriptionUsageBasedTier that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {SubscriptionUsageBasedTierFindUniqueOrThrowArgs} args - Arguments to find a SubscriptionUsageBasedTier
* @example
* // Get one SubscriptionUsageBasedTier
* const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends SubscriptionUsageBasedTierFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedTierFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedTierClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first SubscriptionUsageBasedTier 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 {SubscriptionUsageBasedTierFindFirstArgs} args - Arguments to find a SubscriptionUsageBasedTier
* @example
* // Get one SubscriptionUsageBasedTier
* const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends SubscriptionUsageBasedTierFindFirstArgs>(args?: Prisma.SelectSubset<T, SubscriptionUsageBasedTierFindFirstArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedTierClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first SubscriptionUsageBasedTier 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 {SubscriptionUsageBasedTierFindFirstOrThrowArgs} args - Arguments to find a SubscriptionUsageBasedTier
* @example
* // Get one SubscriptionUsageBasedTier
* const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends SubscriptionUsageBasedTierFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SubscriptionUsageBasedTierFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedTierClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more SubscriptionUsageBasedTiers 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 {SubscriptionUsageBasedTierFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all SubscriptionUsageBasedTiers
* const subscriptionUsageBasedTiers = await prisma.subscriptionUsageBasedTier.findMany()
*
* // Get first 10 SubscriptionUsageBasedTiers
* const subscriptionUsageBasedTiers = await prisma.subscriptionUsageBasedTier.findMany({ take: 10 })
*
* // Only select the `id`
* const subscriptionUsageBasedTierWithIdOnly = await prisma.subscriptionUsageBasedTier.findMany({ select: { id: true } })
*
*/
findMany<T extends SubscriptionUsageBasedTierFindManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionUsageBasedTierFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a SubscriptionUsageBasedTier.
* @param {SubscriptionUsageBasedTierCreateArgs} args - Arguments to create a SubscriptionUsageBasedTier.
* @example
* // Create one SubscriptionUsageBasedTier
* const SubscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.create({
* data: {
* // ... data to create a SubscriptionUsageBasedTier
* }
* })
*
*/
create<T extends SubscriptionUsageBasedTierCreateArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedTierCreateArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedTierClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many SubscriptionUsageBasedTiers.
* @param {SubscriptionUsageBasedTierCreateManyArgs} args - Arguments to create many SubscriptionUsageBasedTiers.
* @example
* // Create many SubscriptionUsageBasedTiers
* const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends SubscriptionUsageBasedTierCreateManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionUsageBasedTierCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many SubscriptionUsageBasedTiers and returns the data saved in the database.
* @param {SubscriptionUsageBasedTierCreateManyAndReturnArgs} args - Arguments to create many SubscriptionUsageBasedTiers.
* @example
* // Create many SubscriptionUsageBasedTiers
* const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many SubscriptionUsageBasedTiers and only return the `id`
* const subscriptionUsageBasedTierWithIdOnly = await prisma.subscriptionUsageBasedTier.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends SubscriptionUsageBasedTierCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SubscriptionUsageBasedTierCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a SubscriptionUsageBasedTier.
* @param {SubscriptionUsageBasedTierDeleteArgs} args - Arguments to delete one SubscriptionUsageBasedTier.
* @example
* // Delete one SubscriptionUsageBasedTier
* const SubscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.delete({
* where: {
* // ... filter to delete one SubscriptionUsageBasedTier
* }
* })
*
*/
delete<T extends SubscriptionUsageBasedTierDeleteArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedTierDeleteArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedTierClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one SubscriptionUsageBasedTier.
* @param {SubscriptionUsageBasedTierUpdateArgs} args - Arguments to update one SubscriptionUsageBasedTier.
* @example
* // Update one SubscriptionUsageBasedTier
* const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends SubscriptionUsageBasedTierUpdateArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedTierUpdateArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedTierClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more SubscriptionUsageBasedTiers.
* @param {SubscriptionUsageBasedTierDeleteManyArgs} args - Arguments to filter SubscriptionUsageBasedTiers to delete.
* @example
* // Delete a few SubscriptionUsageBasedTiers
* const { count } = await prisma.subscriptionUsageBasedTier.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends SubscriptionUsageBasedTierDeleteManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionUsageBasedTierDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more SubscriptionUsageBasedTiers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SubscriptionUsageBasedTierUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many SubscriptionUsageBasedTiers
* const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends SubscriptionUsageBasedTierUpdateManyArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedTierUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more SubscriptionUsageBasedTiers and returns the data updated in the database.
* @param {SubscriptionUsageBasedTierUpdateManyAndReturnArgs} args - Arguments to update many SubscriptionUsageBasedTiers.
* @example
* // Update many SubscriptionUsageBasedTiers
* const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more SubscriptionUsageBasedTiers and only return the `id`
* const subscriptionUsageBasedTierWithIdOnly = await prisma.subscriptionUsageBasedTier.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends SubscriptionUsageBasedTierUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedTierUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one SubscriptionUsageBasedTier.
* @param {SubscriptionUsageBasedTierUpsertArgs} args - Arguments to update or create a SubscriptionUsageBasedTier.
* @example
* // Update or create a SubscriptionUsageBasedTier
* const subscriptionUsageBasedTier = await prisma.subscriptionUsageBasedTier.upsert({
* create: {
* // ... data to create a SubscriptionUsageBasedTier
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the SubscriptionUsageBasedTier we want to update
* }
* })
*/
upsert<T extends SubscriptionUsageBasedTierUpsertArgs>(args: Prisma.SelectSubset<T, SubscriptionUsageBasedTierUpsertArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedTierClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedTierPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of SubscriptionUsageBasedTiers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SubscriptionUsageBasedTierCountArgs} args - Arguments to filter SubscriptionUsageBasedTiers to count.
* @example
* // Count the number of SubscriptionUsageBasedTiers
* const count = await prisma.subscriptionUsageBasedTier.count({
* where: {
* // ... the filter for the SubscriptionUsageBasedTiers we want to count
* }
* })
**/
count<T extends SubscriptionUsageBasedTierCountArgs>(
args?: Prisma.Subset<T, SubscriptionUsageBasedTierCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], SubscriptionUsageBasedTierCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a SubscriptionUsageBasedTier.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SubscriptionUsageBasedTierAggregateArgs} 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 SubscriptionUsageBasedTierAggregateArgs>(args: Prisma.Subset<T, SubscriptionUsageBasedTierAggregateArgs>): Prisma.PrismaPromise<GetSubscriptionUsageBasedTierAggregateType<T>>
/**
* Group by SubscriptionUsageBasedTier.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SubscriptionUsageBasedTierGroupByArgs} 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 SubscriptionUsageBasedTierGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: SubscriptionUsageBasedTierGroupByArgs['orderBy'] }
: { orderBy?: SubscriptionUsageBasedTierGroupByArgs['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, SubscriptionUsageBasedTierGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSubscriptionUsageBasedTierGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the SubscriptionUsageBasedTier model
*/
readonly fields: SubscriptionUsageBasedTierFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for SubscriptionUsageBasedTier.
* 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__SubscriptionUsageBasedTierClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
subscriptionUsageBasedPrice<T extends Prisma.SubscriptionUsageBasedPriceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SubscriptionUsageBasedPriceDefaultArgs<ExtArgs>>): Prisma.Prisma__SubscriptionUsageBasedPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionUsageBasedPricePayload<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 SubscriptionUsageBasedTier model
*/
export interface SubscriptionUsageBasedTierFieldRefs {
readonly id: Prisma.FieldRef<"SubscriptionUsageBasedTier", 'String'>
readonly subscriptionUsageBasedPriceId: Prisma.FieldRef<"SubscriptionUsageBasedTier", 'String'>
readonly from: Prisma.FieldRef<"SubscriptionUsageBasedTier", 'Int'>
readonly to: Prisma.FieldRef<"SubscriptionUsageBasedTier", 'Int'>
readonly perUnitPrice: Prisma.FieldRef<"SubscriptionUsageBasedTier", 'Decimal'>
readonly flatFeePrice: Prisma.FieldRef<"SubscriptionUsageBasedTier", 'Decimal'>
}
// Custom InputTypes
/**
* SubscriptionUsageBasedTier findUnique
*/
export type SubscriptionUsageBasedTierFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionUsageBasedTier
*/
select?: Prisma.SubscriptionUsageBasedTierSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionUsageBasedTier
*/
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionUsageBasedTierInclude<ExtArgs> | null
/**
* Filter, which SubscriptionUsageBasedTier to fetch.
*/
where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
}
/**
* SubscriptionUsageBasedTier findUniqueOrThrow
*/
export type SubscriptionUsageBasedTierFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionUsageBasedTier
*/
select?: Prisma.SubscriptionUsageBasedTierSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionUsageBasedTier
*/
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionUsageBasedTierInclude<ExtArgs> | null
/**
* Filter, which SubscriptionUsageBasedTier to fetch.
*/
where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
}
/**
* SubscriptionUsageBasedTier findFirst
*/
export type SubscriptionUsageBasedTierFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionUsageBasedTier
*/
select?: Prisma.SubscriptionUsageBasedTierSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionUsageBasedTier
*/
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionUsageBasedTierInclude<ExtArgs> | null
/**
* Filter, which SubscriptionUsageBasedTier to fetch.
*/
where?: Prisma.SubscriptionUsageBasedTierWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SubscriptionUsageBasedTiers to fetch.
*/
orderBy?: Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput | Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SubscriptionUsageBasedTiers.
*/
cursor?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SubscriptionUsageBasedTiers 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` SubscriptionUsageBasedTiers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SubscriptionUsageBasedTiers.
*/
distinct?: Prisma.SubscriptionUsageBasedTierScalarFieldEnum | Prisma.SubscriptionUsageBasedTierScalarFieldEnum[]
}
/**
* SubscriptionUsageBasedTier findFirstOrThrow
*/
export type SubscriptionUsageBasedTierFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionUsageBasedTier
*/
select?: Prisma.SubscriptionUsageBasedTierSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionUsageBasedTier
*/
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionUsageBasedTierInclude<ExtArgs> | null
/**
* Filter, which SubscriptionUsageBasedTier to fetch.
*/
where?: Prisma.SubscriptionUsageBasedTierWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SubscriptionUsageBasedTiers to fetch.
*/
orderBy?: Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput | Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SubscriptionUsageBasedTiers.
*/
cursor?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SubscriptionUsageBasedTiers 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` SubscriptionUsageBasedTiers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SubscriptionUsageBasedTiers.
*/
distinct?: Prisma.SubscriptionUsageBasedTierScalarFieldEnum | Prisma.SubscriptionUsageBasedTierScalarFieldEnum[]
}
/**
* SubscriptionUsageBasedTier findMany
*/
export type SubscriptionUsageBasedTierFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionUsageBasedTier
*/
select?: Prisma.SubscriptionUsageBasedTierSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionUsageBasedTier
*/
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionUsageBasedTierInclude<ExtArgs> | null
/**
* Filter, which SubscriptionUsageBasedTiers to fetch.
*/
where?: Prisma.SubscriptionUsageBasedTierWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SubscriptionUsageBasedTiers to fetch.
*/
orderBy?: Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput | Prisma.SubscriptionUsageBasedTierOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing SubscriptionUsageBasedTiers.
*/
cursor?: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SubscriptionUsageBasedTiers 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` SubscriptionUsageBasedTiers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SubscriptionUsageBasedTiers.
*/
distinct?: Prisma.SubscriptionUsageBasedTierScalarFieldEnum | Prisma.SubscriptionUsageBasedTierScalarFieldEnum[]
}
/**
* SubscriptionUsageBasedTier create
*/
export type SubscriptionUsageBasedTierCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionUsageBasedTier
*/
select?: Prisma.SubscriptionUsageBasedTierSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionUsageBasedTier
*/
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionUsageBasedTierInclude<ExtArgs> | null
/**
* The data needed to create a SubscriptionUsageBasedTier.
*/
data: Prisma.XOR<Prisma.SubscriptionUsageBasedTierCreateInput, Prisma.SubscriptionUsageBasedTierUncheckedCreateInput>
}
/**
* SubscriptionUsageBasedTier createMany
*/
export type SubscriptionUsageBasedTierCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many SubscriptionUsageBasedTiers.
*/
data: Prisma.SubscriptionUsageBasedTierCreateManyInput | Prisma.SubscriptionUsageBasedTierCreateManyInput[]
skipDuplicates?: boolean
}
/**
* SubscriptionUsageBasedTier createManyAndReturn
*/
export type SubscriptionUsageBasedTierCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionUsageBasedTier
*/
select?: Prisma.SubscriptionUsageBasedTierSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionUsageBasedTier
*/
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
/**
* The data used to create many SubscriptionUsageBasedTiers.
*/
data: Prisma.SubscriptionUsageBasedTierCreateManyInput | Prisma.SubscriptionUsageBasedTierCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionUsageBasedTierIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* SubscriptionUsageBasedTier update
*/
export type SubscriptionUsageBasedTierUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionUsageBasedTier
*/
select?: Prisma.SubscriptionUsageBasedTierSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionUsageBasedTier
*/
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionUsageBasedTierInclude<ExtArgs> | null
/**
* The data needed to update a SubscriptionUsageBasedTier.
*/
data: Prisma.XOR<Prisma.SubscriptionUsageBasedTierUpdateInput, Prisma.SubscriptionUsageBasedTierUncheckedUpdateInput>
/**
* Choose, which SubscriptionUsageBasedTier to update.
*/
where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
}
/**
* SubscriptionUsageBasedTier updateMany
*/
export type SubscriptionUsageBasedTierUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update SubscriptionUsageBasedTiers.
*/
data: Prisma.XOR<Prisma.SubscriptionUsageBasedTierUpdateManyMutationInput, Prisma.SubscriptionUsageBasedTierUncheckedUpdateManyInput>
/**
* Filter which SubscriptionUsageBasedTiers to update
*/
where?: Prisma.SubscriptionUsageBasedTierWhereInput
/**
* Limit how many SubscriptionUsageBasedTiers to update.
*/
limit?: number
}
/**
* SubscriptionUsageBasedTier updateManyAndReturn
*/
export type SubscriptionUsageBasedTierUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionUsageBasedTier
*/
select?: Prisma.SubscriptionUsageBasedTierSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionUsageBasedTier
*/
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
/**
* The data used to update SubscriptionUsageBasedTiers.
*/
data: Prisma.XOR<Prisma.SubscriptionUsageBasedTierUpdateManyMutationInput, Prisma.SubscriptionUsageBasedTierUncheckedUpdateManyInput>
/**
* Filter which SubscriptionUsageBasedTiers to update
*/
where?: Prisma.SubscriptionUsageBasedTierWhereInput
/**
* Limit how many SubscriptionUsageBasedTiers to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionUsageBasedTierIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* SubscriptionUsageBasedTier upsert
*/
export type SubscriptionUsageBasedTierUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionUsageBasedTier
*/
select?: Prisma.SubscriptionUsageBasedTierSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionUsageBasedTier
*/
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionUsageBasedTierInclude<ExtArgs> | null
/**
* The filter to search for the SubscriptionUsageBasedTier to update in case it exists.
*/
where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
/**
* In case the SubscriptionUsageBasedTier found by the `where` argument doesn't exist, create a new SubscriptionUsageBasedTier with this data.
*/
create: Prisma.XOR<Prisma.SubscriptionUsageBasedTierCreateInput, Prisma.SubscriptionUsageBasedTierUncheckedCreateInput>
/**
* In case the SubscriptionUsageBasedTier was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.SubscriptionUsageBasedTierUpdateInput, Prisma.SubscriptionUsageBasedTierUncheckedUpdateInput>
}
/**
* SubscriptionUsageBasedTier delete
*/
export type SubscriptionUsageBasedTierDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionUsageBasedTier
*/
select?: Prisma.SubscriptionUsageBasedTierSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionUsageBasedTier
*/
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionUsageBasedTierInclude<ExtArgs> | null
/**
* Filter which SubscriptionUsageBasedTier to delete.
*/
where: Prisma.SubscriptionUsageBasedTierWhereUniqueInput
}
/**
* SubscriptionUsageBasedTier deleteMany
*/
export type SubscriptionUsageBasedTierDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which SubscriptionUsageBasedTiers to delete
*/
where?: Prisma.SubscriptionUsageBasedTierWhereInput
/**
* Limit how many SubscriptionUsageBasedTiers to delete.
*/
limit?: number
}
/**
* SubscriptionUsageBasedTier without action
*/
export type SubscriptionUsageBasedTierDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionUsageBasedTier
*/
select?: Prisma.SubscriptionUsageBasedTierSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionUsageBasedTier
*/
omit?: Prisma.SubscriptionUsageBasedTierOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionUsageBasedTierInclude<ExtArgs> | null
}