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

1703 lines
70 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 `SubscriptionPrice` 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 SubscriptionPrice
*
*/
export type SubscriptionPriceModel = runtime.Types.Result.DefaultSelection<Prisma.$SubscriptionPricePayload>
export type AggregateSubscriptionPrice = {
_count: SubscriptionPriceCountAggregateOutputType | null
_avg: SubscriptionPriceAvgAggregateOutputType | null
_sum: SubscriptionPriceSumAggregateOutputType | null
_min: SubscriptionPriceMinAggregateOutputType | null
_max: SubscriptionPriceMaxAggregateOutputType | null
}
export type SubscriptionPriceAvgAggregateOutputType = {
type: number | null
billingPeriod: number | null
price: runtime.Decimal | null
trialDays: number | null
}
export type SubscriptionPriceSumAggregateOutputType = {
type: number | null
billingPeriod: number | null
price: runtime.Decimal | null
trialDays: number | null
}
export type SubscriptionPriceMinAggregateOutputType = {
id: string | null
subscriptionProductId: string | null
stripeId: string | null
type: number | null
billingPeriod: number | null
price: runtime.Decimal | null
currency: string | null
trialDays: number | null
active: boolean | null
}
export type SubscriptionPriceMaxAggregateOutputType = {
id: string | null
subscriptionProductId: string | null
stripeId: string | null
type: number | null
billingPeriod: number | null
price: runtime.Decimal | null
currency: string | null
trialDays: number | null
active: boolean | null
}
export type SubscriptionPriceCountAggregateOutputType = {
id: number
subscriptionProductId: number
stripeId: number
type: number
billingPeriod: number
price: number
currency: number
trialDays: number
active: number
_all: number
}
export type SubscriptionPriceAvgAggregateInputType = {
type?: true
billingPeriod?: true
price?: true
trialDays?: true
}
export type SubscriptionPriceSumAggregateInputType = {
type?: true
billingPeriod?: true
price?: true
trialDays?: true
}
export type SubscriptionPriceMinAggregateInputType = {
id?: true
subscriptionProductId?: true
stripeId?: true
type?: true
billingPeriod?: true
price?: true
currency?: true
trialDays?: true
active?: true
}
export type SubscriptionPriceMaxAggregateInputType = {
id?: true
subscriptionProductId?: true
stripeId?: true
type?: true
billingPeriod?: true
price?: true
currency?: true
trialDays?: true
active?: true
}
export type SubscriptionPriceCountAggregateInputType = {
id?: true
subscriptionProductId?: true
stripeId?: true
type?: true
billingPeriod?: true
price?: true
currency?: true
trialDays?: true
active?: true
_all?: true
}
export type SubscriptionPriceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which SubscriptionPrice to aggregate.
*/
where?: Prisma.SubscriptionPriceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SubscriptionPrices to fetch.
*/
orderBy?: Prisma.SubscriptionPriceOrderByWithRelationInput | Prisma.SubscriptionPriceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.SubscriptionPriceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SubscriptionPrices 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` SubscriptionPrices.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned SubscriptionPrices
**/
_count?: true | SubscriptionPriceCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: SubscriptionPriceAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: SubscriptionPriceSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: SubscriptionPriceMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: SubscriptionPriceMaxAggregateInputType
}
export type GetSubscriptionPriceAggregateType<T extends SubscriptionPriceAggregateArgs> = {
[P in keyof T & keyof AggregateSubscriptionPrice]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateSubscriptionPrice[P]>
: Prisma.GetScalarType<T[P], AggregateSubscriptionPrice[P]>
}
export type SubscriptionPriceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.SubscriptionPriceWhereInput
orderBy?: Prisma.SubscriptionPriceOrderByWithAggregationInput | Prisma.SubscriptionPriceOrderByWithAggregationInput[]
by: Prisma.SubscriptionPriceScalarFieldEnum[] | Prisma.SubscriptionPriceScalarFieldEnum
having?: Prisma.SubscriptionPriceScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: SubscriptionPriceCountAggregateInputType | true
_avg?: SubscriptionPriceAvgAggregateInputType
_sum?: SubscriptionPriceSumAggregateInputType
_min?: SubscriptionPriceMinAggregateInputType
_max?: SubscriptionPriceMaxAggregateInputType
}
export type SubscriptionPriceGroupByOutputType = {
id: string
subscriptionProductId: string
stripeId: string
type: number
billingPeriod: number
price: runtime.Decimal
currency: string
trialDays: number
active: boolean
_count: SubscriptionPriceCountAggregateOutputType | null
_avg: SubscriptionPriceAvgAggregateOutputType | null
_sum: SubscriptionPriceSumAggregateOutputType | null
_min: SubscriptionPriceMinAggregateOutputType | null
_max: SubscriptionPriceMaxAggregateOutputType | null
}
export type GetSubscriptionPriceGroupByPayload<T extends SubscriptionPriceGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<SubscriptionPriceGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof SubscriptionPriceGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], SubscriptionPriceGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], SubscriptionPriceGroupByOutputType[P]>
}
>
>
export type SubscriptionPriceWhereInput = {
AND?: Prisma.SubscriptionPriceWhereInput | Prisma.SubscriptionPriceWhereInput[]
OR?: Prisma.SubscriptionPriceWhereInput[]
NOT?: Prisma.SubscriptionPriceWhereInput | Prisma.SubscriptionPriceWhereInput[]
id?: Prisma.StringFilter<"SubscriptionPrice"> | string
subscriptionProductId?: Prisma.StringFilter<"SubscriptionPrice"> | string
stripeId?: Prisma.StringFilter<"SubscriptionPrice"> | string
type?: Prisma.IntFilter<"SubscriptionPrice"> | number
billingPeriod?: Prisma.IntFilter<"SubscriptionPrice"> | number
price?: Prisma.DecimalFilter<"SubscriptionPrice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringFilter<"SubscriptionPrice"> | string
trialDays?: Prisma.IntFilter<"SubscriptionPrice"> | number
active?: Prisma.BoolFilter<"SubscriptionPrice"> | boolean
subscriptionProduct?: Prisma.XOR<Prisma.SubscriptionProductScalarRelationFilter, Prisma.SubscriptionProductWhereInput>
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceListRelationFilter
}
export type SubscriptionPriceOrderByWithRelationInput = {
id?: Prisma.SortOrder
subscriptionProductId?: Prisma.SortOrder
stripeId?: Prisma.SortOrder
type?: Prisma.SortOrder
billingPeriod?: Prisma.SortOrder
price?: Prisma.SortOrder
currency?: Prisma.SortOrder
trialDays?: Prisma.SortOrder
active?: Prisma.SortOrder
subscriptionProduct?: Prisma.SubscriptionProductOrderByWithRelationInput
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceOrderByRelationAggregateInput
}
export type SubscriptionPriceWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.SubscriptionPriceWhereInput | Prisma.SubscriptionPriceWhereInput[]
OR?: Prisma.SubscriptionPriceWhereInput[]
NOT?: Prisma.SubscriptionPriceWhereInput | Prisma.SubscriptionPriceWhereInput[]
subscriptionProductId?: Prisma.StringFilter<"SubscriptionPrice"> | string
stripeId?: Prisma.StringFilter<"SubscriptionPrice"> | string
type?: Prisma.IntFilter<"SubscriptionPrice"> | number
billingPeriod?: Prisma.IntFilter<"SubscriptionPrice"> | number
price?: Prisma.DecimalFilter<"SubscriptionPrice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringFilter<"SubscriptionPrice"> | string
trialDays?: Prisma.IntFilter<"SubscriptionPrice"> | number
active?: Prisma.BoolFilter<"SubscriptionPrice"> | boolean
subscriptionProduct?: Prisma.XOR<Prisma.SubscriptionProductScalarRelationFilter, Prisma.SubscriptionProductWhereInput>
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceListRelationFilter
}, "id">
export type SubscriptionPriceOrderByWithAggregationInput = {
id?: Prisma.SortOrder
subscriptionProductId?: Prisma.SortOrder
stripeId?: Prisma.SortOrder
type?: Prisma.SortOrder
billingPeriod?: Prisma.SortOrder
price?: Prisma.SortOrder
currency?: Prisma.SortOrder
trialDays?: Prisma.SortOrder
active?: Prisma.SortOrder
_count?: Prisma.SubscriptionPriceCountOrderByAggregateInput
_avg?: Prisma.SubscriptionPriceAvgOrderByAggregateInput
_max?: Prisma.SubscriptionPriceMaxOrderByAggregateInput
_min?: Prisma.SubscriptionPriceMinOrderByAggregateInput
_sum?: Prisma.SubscriptionPriceSumOrderByAggregateInput
}
export type SubscriptionPriceScalarWhereWithAggregatesInput = {
AND?: Prisma.SubscriptionPriceScalarWhereWithAggregatesInput | Prisma.SubscriptionPriceScalarWhereWithAggregatesInput[]
OR?: Prisma.SubscriptionPriceScalarWhereWithAggregatesInput[]
NOT?: Prisma.SubscriptionPriceScalarWhereWithAggregatesInput | Prisma.SubscriptionPriceScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"SubscriptionPrice"> | string
subscriptionProductId?: Prisma.StringWithAggregatesFilter<"SubscriptionPrice"> | string
stripeId?: Prisma.StringWithAggregatesFilter<"SubscriptionPrice"> | string
type?: Prisma.IntWithAggregatesFilter<"SubscriptionPrice"> | number
billingPeriod?: Prisma.IntWithAggregatesFilter<"SubscriptionPrice"> | number
price?: Prisma.DecimalWithAggregatesFilter<"SubscriptionPrice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringWithAggregatesFilter<"SubscriptionPrice"> | string
trialDays?: Prisma.IntWithAggregatesFilter<"SubscriptionPrice"> | number
active?: Prisma.BoolWithAggregatesFilter<"SubscriptionPrice"> | boolean
}
export type SubscriptionPriceCreateInput = {
id?: string
stripeId: string
type: number
billingPeriod: number
price: runtime.Decimal | runtime.DecimalJsLike | number | string
currency: string
trialDays: number
active: boolean
subscriptionProduct: Prisma.SubscriptionProductCreateNestedOneWithoutPricesInput
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceCreateNestedManyWithoutSubscriptionPriceInput
}
export type SubscriptionPriceUncheckedCreateInput = {
id?: string
subscriptionProductId: string
stripeId: string
type: number
billingPeriod: number
price: runtime.Decimal | runtime.DecimalJsLike | number | string
currency: string
trialDays: number
active: boolean
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedCreateNestedManyWithoutSubscriptionPriceInput
}
export type SubscriptionPriceUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.IntFieldUpdateOperationsInput | number
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringFieldUpdateOperationsInput | string
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
subscriptionProduct?: Prisma.SubscriptionProductUpdateOneRequiredWithoutPricesNestedInput
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUpdateManyWithoutSubscriptionPriceNestedInput
}
export type SubscriptionPriceUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.IntFieldUpdateOperationsInput | number
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringFieldUpdateOperationsInput | string
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedUpdateManyWithoutSubscriptionPriceNestedInput
}
export type SubscriptionPriceCreateManyInput = {
id?: string
subscriptionProductId: string
stripeId: string
type: number
billingPeriod: number
price: runtime.Decimal | runtime.DecimalJsLike | number | string
currency: string
trialDays: number
active: boolean
}
export type SubscriptionPriceUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.IntFieldUpdateOperationsInput | number
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringFieldUpdateOperationsInput | string
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type SubscriptionPriceUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.IntFieldUpdateOperationsInput | number
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringFieldUpdateOperationsInput | string
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type SubscriptionPriceListRelationFilter = {
every?: Prisma.SubscriptionPriceWhereInput
some?: Prisma.SubscriptionPriceWhereInput
none?: Prisma.SubscriptionPriceWhereInput
}
export type SubscriptionPriceOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type SubscriptionPriceCountOrderByAggregateInput = {
id?: Prisma.SortOrder
subscriptionProductId?: Prisma.SortOrder
stripeId?: Prisma.SortOrder
type?: Prisma.SortOrder
billingPeriod?: Prisma.SortOrder
price?: Prisma.SortOrder
currency?: Prisma.SortOrder
trialDays?: Prisma.SortOrder
active?: Prisma.SortOrder
}
export type SubscriptionPriceAvgOrderByAggregateInput = {
type?: Prisma.SortOrder
billingPeriod?: Prisma.SortOrder
price?: Prisma.SortOrder
trialDays?: Prisma.SortOrder
}
export type SubscriptionPriceMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
subscriptionProductId?: Prisma.SortOrder
stripeId?: Prisma.SortOrder
type?: Prisma.SortOrder
billingPeriod?: Prisma.SortOrder
price?: Prisma.SortOrder
currency?: Prisma.SortOrder
trialDays?: Prisma.SortOrder
active?: Prisma.SortOrder
}
export type SubscriptionPriceMinOrderByAggregateInput = {
id?: Prisma.SortOrder
subscriptionProductId?: Prisma.SortOrder
stripeId?: Prisma.SortOrder
type?: Prisma.SortOrder
billingPeriod?: Prisma.SortOrder
price?: Prisma.SortOrder
currency?: Prisma.SortOrder
trialDays?: Prisma.SortOrder
active?: Prisma.SortOrder
}
export type SubscriptionPriceSumOrderByAggregateInput = {
type?: Prisma.SortOrder
billingPeriod?: Prisma.SortOrder
price?: Prisma.SortOrder
trialDays?: Prisma.SortOrder
}
export type SubscriptionPriceNullableScalarRelationFilter = {
is?: Prisma.SubscriptionPriceWhereInput | null
isNot?: Prisma.SubscriptionPriceWhereInput | null
}
export type SubscriptionPriceCreateNestedManyWithoutSubscriptionProductInput = {
create?: Prisma.XOR<Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput, Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput> | Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput[] | Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput[]
connectOrCreate?: Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput[]
createMany?: Prisma.SubscriptionPriceCreateManySubscriptionProductInputEnvelope
connect?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[]
}
export type SubscriptionPriceUncheckedCreateNestedManyWithoutSubscriptionProductInput = {
create?: Prisma.XOR<Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput, Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput> | Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput[] | Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput[]
connectOrCreate?: Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput[]
createMany?: Prisma.SubscriptionPriceCreateManySubscriptionProductInputEnvelope
connect?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[]
}
export type SubscriptionPriceUpdateManyWithoutSubscriptionProductNestedInput = {
create?: Prisma.XOR<Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput, Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput> | Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput[] | Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput[]
connectOrCreate?: Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput[]
upsert?: Prisma.SubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput | Prisma.SubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput[]
createMany?: Prisma.SubscriptionPriceCreateManySubscriptionProductInputEnvelope
set?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[]
disconnect?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[]
delete?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[]
connect?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[]
update?: Prisma.SubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput | Prisma.SubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput[]
updateMany?: Prisma.SubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput | Prisma.SubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput[]
deleteMany?: Prisma.SubscriptionPriceScalarWhereInput | Prisma.SubscriptionPriceScalarWhereInput[]
}
export type SubscriptionPriceUncheckedUpdateManyWithoutSubscriptionProductNestedInput = {
create?: Prisma.XOR<Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput, Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput> | Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput[] | Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput[]
connectOrCreate?: Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput | Prisma.SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput[]
upsert?: Prisma.SubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput | Prisma.SubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput[]
createMany?: Prisma.SubscriptionPriceCreateManySubscriptionProductInputEnvelope
set?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[]
disconnect?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[]
delete?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[]
connect?: Prisma.SubscriptionPriceWhereUniqueInput | Prisma.SubscriptionPriceWhereUniqueInput[]
update?: Prisma.SubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput | Prisma.SubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput[]
updateMany?: Prisma.SubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput | Prisma.SubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput[]
deleteMany?: Prisma.SubscriptionPriceScalarWhereInput | Prisma.SubscriptionPriceScalarWhereInput[]
}
export type SubscriptionPriceCreateNestedOneWithoutTenantProductPricesInput = {
create?: Prisma.XOR<Prisma.SubscriptionPriceCreateWithoutTenantProductPricesInput, Prisma.SubscriptionPriceUncheckedCreateWithoutTenantProductPricesInput>
connectOrCreate?: Prisma.SubscriptionPriceCreateOrConnectWithoutTenantProductPricesInput
connect?: Prisma.SubscriptionPriceWhereUniqueInput
}
export type SubscriptionPriceUpdateOneWithoutTenantProductPricesNestedInput = {
create?: Prisma.XOR<Prisma.SubscriptionPriceCreateWithoutTenantProductPricesInput, Prisma.SubscriptionPriceUncheckedCreateWithoutTenantProductPricesInput>
connectOrCreate?: Prisma.SubscriptionPriceCreateOrConnectWithoutTenantProductPricesInput
upsert?: Prisma.SubscriptionPriceUpsertWithoutTenantProductPricesInput
disconnect?: Prisma.SubscriptionPriceWhereInput | boolean
delete?: Prisma.SubscriptionPriceWhereInput | boolean
connect?: Prisma.SubscriptionPriceWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.SubscriptionPriceUpdateToOneWithWhereWithoutTenantProductPricesInput, Prisma.SubscriptionPriceUpdateWithoutTenantProductPricesInput>, Prisma.SubscriptionPriceUncheckedUpdateWithoutTenantProductPricesInput>
}
export type SubscriptionPriceCreateWithoutSubscriptionProductInput = {
id?: string
stripeId: string
type: number
billingPeriod: number
price: runtime.Decimal | runtime.DecimalJsLike | number | string
currency: string
trialDays: number
active: boolean
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceCreateNestedManyWithoutSubscriptionPriceInput
}
export type SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput = {
id?: string
stripeId: string
type: number
billingPeriod: number
price: runtime.Decimal | runtime.DecimalJsLike | number | string
currency: string
trialDays: number
active: boolean
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedCreateNestedManyWithoutSubscriptionPriceInput
}
export type SubscriptionPriceCreateOrConnectWithoutSubscriptionProductInput = {
where: Prisma.SubscriptionPriceWhereUniqueInput
create: Prisma.XOR<Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput, Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput>
}
export type SubscriptionPriceCreateManySubscriptionProductInputEnvelope = {
data: Prisma.SubscriptionPriceCreateManySubscriptionProductInput | Prisma.SubscriptionPriceCreateManySubscriptionProductInput[]
skipDuplicates?: boolean
}
export type SubscriptionPriceUpsertWithWhereUniqueWithoutSubscriptionProductInput = {
where: Prisma.SubscriptionPriceWhereUniqueInput
update: Prisma.XOR<Prisma.SubscriptionPriceUpdateWithoutSubscriptionProductInput, Prisma.SubscriptionPriceUncheckedUpdateWithoutSubscriptionProductInput>
create: Prisma.XOR<Prisma.SubscriptionPriceCreateWithoutSubscriptionProductInput, Prisma.SubscriptionPriceUncheckedCreateWithoutSubscriptionProductInput>
}
export type SubscriptionPriceUpdateWithWhereUniqueWithoutSubscriptionProductInput = {
where: Prisma.SubscriptionPriceWhereUniqueInput
data: Prisma.XOR<Prisma.SubscriptionPriceUpdateWithoutSubscriptionProductInput, Prisma.SubscriptionPriceUncheckedUpdateWithoutSubscriptionProductInput>
}
export type SubscriptionPriceUpdateManyWithWhereWithoutSubscriptionProductInput = {
where: Prisma.SubscriptionPriceScalarWhereInput
data: Prisma.XOR<Prisma.SubscriptionPriceUpdateManyMutationInput, Prisma.SubscriptionPriceUncheckedUpdateManyWithoutSubscriptionProductInput>
}
export type SubscriptionPriceScalarWhereInput = {
AND?: Prisma.SubscriptionPriceScalarWhereInput | Prisma.SubscriptionPriceScalarWhereInput[]
OR?: Prisma.SubscriptionPriceScalarWhereInput[]
NOT?: Prisma.SubscriptionPriceScalarWhereInput | Prisma.SubscriptionPriceScalarWhereInput[]
id?: Prisma.StringFilter<"SubscriptionPrice"> | string
subscriptionProductId?: Prisma.StringFilter<"SubscriptionPrice"> | string
stripeId?: Prisma.StringFilter<"SubscriptionPrice"> | string
type?: Prisma.IntFilter<"SubscriptionPrice"> | number
billingPeriod?: Prisma.IntFilter<"SubscriptionPrice"> | number
price?: Prisma.DecimalFilter<"SubscriptionPrice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringFilter<"SubscriptionPrice"> | string
trialDays?: Prisma.IntFilter<"SubscriptionPrice"> | number
active?: Prisma.BoolFilter<"SubscriptionPrice"> | boolean
}
export type SubscriptionPriceCreateWithoutTenantProductPricesInput = {
id?: string
stripeId: string
type: number
billingPeriod: number
price: runtime.Decimal | runtime.DecimalJsLike | number | string
currency: string
trialDays: number
active: boolean
subscriptionProduct: Prisma.SubscriptionProductCreateNestedOneWithoutPricesInput
}
export type SubscriptionPriceUncheckedCreateWithoutTenantProductPricesInput = {
id?: string
subscriptionProductId: string
stripeId: string
type: number
billingPeriod: number
price: runtime.Decimal | runtime.DecimalJsLike | number | string
currency: string
trialDays: number
active: boolean
}
export type SubscriptionPriceCreateOrConnectWithoutTenantProductPricesInput = {
where: Prisma.SubscriptionPriceWhereUniqueInput
create: Prisma.XOR<Prisma.SubscriptionPriceCreateWithoutTenantProductPricesInput, Prisma.SubscriptionPriceUncheckedCreateWithoutTenantProductPricesInput>
}
export type SubscriptionPriceUpsertWithoutTenantProductPricesInput = {
update: Prisma.XOR<Prisma.SubscriptionPriceUpdateWithoutTenantProductPricesInput, Prisma.SubscriptionPriceUncheckedUpdateWithoutTenantProductPricesInput>
create: Prisma.XOR<Prisma.SubscriptionPriceCreateWithoutTenantProductPricesInput, Prisma.SubscriptionPriceUncheckedCreateWithoutTenantProductPricesInput>
where?: Prisma.SubscriptionPriceWhereInput
}
export type SubscriptionPriceUpdateToOneWithWhereWithoutTenantProductPricesInput = {
where?: Prisma.SubscriptionPriceWhereInput
data: Prisma.XOR<Prisma.SubscriptionPriceUpdateWithoutTenantProductPricesInput, Prisma.SubscriptionPriceUncheckedUpdateWithoutTenantProductPricesInput>
}
export type SubscriptionPriceUpdateWithoutTenantProductPricesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.IntFieldUpdateOperationsInput | number
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringFieldUpdateOperationsInput | string
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
subscriptionProduct?: Prisma.SubscriptionProductUpdateOneRequiredWithoutPricesNestedInput
}
export type SubscriptionPriceUncheckedUpdateWithoutTenantProductPricesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
subscriptionProductId?: Prisma.StringFieldUpdateOperationsInput | string
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.IntFieldUpdateOperationsInput | number
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringFieldUpdateOperationsInput | string
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type SubscriptionPriceCreateManySubscriptionProductInput = {
id?: string
stripeId: string
type: number
billingPeriod: number
price: runtime.Decimal | runtime.DecimalJsLike | number | string
currency: string
trialDays: number
active: boolean
}
export type SubscriptionPriceUpdateWithoutSubscriptionProductInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.IntFieldUpdateOperationsInput | number
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringFieldUpdateOperationsInput | string
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUpdateManyWithoutSubscriptionPriceNestedInput
}
export type SubscriptionPriceUncheckedUpdateWithoutSubscriptionProductInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.IntFieldUpdateOperationsInput | number
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringFieldUpdateOperationsInput | string
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
tenantProductPrices?: Prisma.TenantSubscriptionProductPriceUncheckedUpdateManyWithoutSubscriptionPriceNestedInput
}
export type SubscriptionPriceUncheckedUpdateManyWithoutSubscriptionProductInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
stripeId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.IntFieldUpdateOperationsInput | number
billingPeriod?: Prisma.IntFieldUpdateOperationsInput | number
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
currency?: Prisma.StringFieldUpdateOperationsInput | string
trialDays?: Prisma.IntFieldUpdateOperationsInput | number
active?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
/**
* Count Type SubscriptionPriceCountOutputType
*/
export type SubscriptionPriceCountOutputType = {
tenantProductPrices: number
}
export type SubscriptionPriceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenantProductPrices?: boolean | SubscriptionPriceCountOutputTypeCountTenantProductPricesArgs
}
/**
* SubscriptionPriceCountOutputType without action
*/
export type SubscriptionPriceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPriceCountOutputType
*/
select?: Prisma.SubscriptionPriceCountOutputTypeSelect<ExtArgs> | null
}
/**
* SubscriptionPriceCountOutputType without action
*/
export type SubscriptionPriceCountOutputTypeCountTenantProductPricesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.TenantSubscriptionProductPriceWhereInput
}
export type SubscriptionPriceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
subscriptionProductId?: boolean
stripeId?: boolean
type?: boolean
billingPeriod?: boolean
price?: boolean
currency?: boolean
trialDays?: boolean
active?: boolean
subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs<ExtArgs>
tenantProductPrices?: boolean | Prisma.SubscriptionPrice$tenantProductPricesArgs<ExtArgs>
_count?: boolean | Prisma.SubscriptionPriceCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["subscriptionPrice"]>
export type SubscriptionPriceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
subscriptionProductId?: boolean
stripeId?: boolean
type?: boolean
billingPeriod?: boolean
price?: boolean
currency?: boolean
trialDays?: boolean
active?: boolean
subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs<ExtArgs>
}, ExtArgs["result"]["subscriptionPrice"]>
export type SubscriptionPriceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
subscriptionProductId?: boolean
stripeId?: boolean
type?: boolean
billingPeriod?: boolean
price?: boolean
currency?: boolean
trialDays?: boolean
active?: boolean
subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs<ExtArgs>
}, ExtArgs["result"]["subscriptionPrice"]>
export type SubscriptionPriceSelectScalar = {
id?: boolean
subscriptionProductId?: boolean
stripeId?: boolean
type?: boolean
billingPeriod?: boolean
price?: boolean
currency?: boolean
trialDays?: boolean
active?: boolean
}
export type SubscriptionPriceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "subscriptionProductId" | "stripeId" | "type" | "billingPeriod" | "price" | "currency" | "trialDays" | "active", ExtArgs["result"]["subscriptionPrice"]>
export type SubscriptionPriceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs<ExtArgs>
tenantProductPrices?: boolean | Prisma.SubscriptionPrice$tenantProductPricesArgs<ExtArgs>
_count?: boolean | Prisma.SubscriptionPriceCountOutputTypeDefaultArgs<ExtArgs>
}
export type SubscriptionPriceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs<ExtArgs>
}
export type SubscriptionPriceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
subscriptionProduct?: boolean | Prisma.SubscriptionProductDefaultArgs<ExtArgs>
}
export type $SubscriptionPricePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "SubscriptionPrice"
objects: {
subscriptionProduct: Prisma.$SubscriptionProductPayload<ExtArgs>
tenantProductPrices: Prisma.$TenantSubscriptionProductPricePayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
subscriptionProductId: string
stripeId: string
type: number
billingPeriod: number
price: runtime.Decimal
currency: string
trialDays: number
active: boolean
}, ExtArgs["result"]["subscriptionPrice"]>
composites: {}
}
export type SubscriptionPriceGetPayload<S extends boolean | null | undefined | SubscriptionPriceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SubscriptionPricePayload, S>
export type SubscriptionPriceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<SubscriptionPriceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: SubscriptionPriceCountAggregateInputType | true
}
export interface SubscriptionPriceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SubscriptionPrice'], meta: { name: 'SubscriptionPrice' } }
/**
* Find zero or one SubscriptionPrice that matches the filter.
* @param {SubscriptionPriceFindUniqueArgs} args - Arguments to find a SubscriptionPrice
* @example
* // Get one SubscriptionPrice
* const subscriptionPrice = await prisma.subscriptionPrice.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends SubscriptionPriceFindUniqueArgs>(args: Prisma.SelectSubset<T, SubscriptionPriceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPricePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one SubscriptionPrice that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {SubscriptionPriceFindUniqueOrThrowArgs} args - Arguments to find a SubscriptionPrice
* @example
* // Get one SubscriptionPrice
* const subscriptionPrice = await prisma.subscriptionPrice.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends SubscriptionPriceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SubscriptionPriceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPricePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first SubscriptionPrice 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 {SubscriptionPriceFindFirstArgs} args - Arguments to find a SubscriptionPrice
* @example
* // Get one SubscriptionPrice
* const subscriptionPrice = await prisma.subscriptionPrice.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends SubscriptionPriceFindFirstArgs>(args?: Prisma.SelectSubset<T, SubscriptionPriceFindFirstArgs<ExtArgs>>): Prisma.Prisma__SubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPricePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first SubscriptionPrice 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 {SubscriptionPriceFindFirstOrThrowArgs} args - Arguments to find a SubscriptionPrice
* @example
* // Get one SubscriptionPrice
* const subscriptionPrice = await prisma.subscriptionPrice.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends SubscriptionPriceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SubscriptionPriceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPricePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more SubscriptionPrices 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 {SubscriptionPriceFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all SubscriptionPrices
* const subscriptionPrices = await prisma.subscriptionPrice.findMany()
*
* // Get first 10 SubscriptionPrices
* const subscriptionPrices = await prisma.subscriptionPrice.findMany({ take: 10 })
*
* // Only select the `id`
* const subscriptionPriceWithIdOnly = await prisma.subscriptionPrice.findMany({ select: { id: true } })
*
*/
findMany<T extends SubscriptionPriceFindManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionPriceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionPricePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a SubscriptionPrice.
* @param {SubscriptionPriceCreateArgs} args - Arguments to create a SubscriptionPrice.
* @example
* // Create one SubscriptionPrice
* const SubscriptionPrice = await prisma.subscriptionPrice.create({
* data: {
* // ... data to create a SubscriptionPrice
* }
* })
*
*/
create<T extends SubscriptionPriceCreateArgs>(args: Prisma.SelectSubset<T, SubscriptionPriceCreateArgs<ExtArgs>>): Prisma.Prisma__SubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPricePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many SubscriptionPrices.
* @param {SubscriptionPriceCreateManyArgs} args - Arguments to create many SubscriptionPrices.
* @example
* // Create many SubscriptionPrices
* const subscriptionPrice = await prisma.subscriptionPrice.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends SubscriptionPriceCreateManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionPriceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many SubscriptionPrices and returns the data saved in the database.
* @param {SubscriptionPriceCreateManyAndReturnArgs} args - Arguments to create many SubscriptionPrices.
* @example
* // Create many SubscriptionPrices
* const subscriptionPrice = await prisma.subscriptionPrice.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many SubscriptionPrices and only return the `id`
* const subscriptionPriceWithIdOnly = await prisma.subscriptionPrice.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 SubscriptionPriceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SubscriptionPriceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionPricePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a SubscriptionPrice.
* @param {SubscriptionPriceDeleteArgs} args - Arguments to delete one SubscriptionPrice.
* @example
* // Delete one SubscriptionPrice
* const SubscriptionPrice = await prisma.subscriptionPrice.delete({
* where: {
* // ... filter to delete one SubscriptionPrice
* }
* })
*
*/
delete<T extends SubscriptionPriceDeleteArgs>(args: Prisma.SelectSubset<T, SubscriptionPriceDeleteArgs<ExtArgs>>): Prisma.Prisma__SubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPricePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one SubscriptionPrice.
* @param {SubscriptionPriceUpdateArgs} args - Arguments to update one SubscriptionPrice.
* @example
* // Update one SubscriptionPrice
* const subscriptionPrice = await prisma.subscriptionPrice.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends SubscriptionPriceUpdateArgs>(args: Prisma.SelectSubset<T, SubscriptionPriceUpdateArgs<ExtArgs>>): Prisma.Prisma__SubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPricePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more SubscriptionPrices.
* @param {SubscriptionPriceDeleteManyArgs} args - Arguments to filter SubscriptionPrices to delete.
* @example
* // Delete a few SubscriptionPrices
* const { count } = await prisma.subscriptionPrice.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends SubscriptionPriceDeleteManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionPriceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more SubscriptionPrices.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SubscriptionPriceUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many SubscriptionPrices
* const subscriptionPrice = await prisma.subscriptionPrice.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends SubscriptionPriceUpdateManyArgs>(args: Prisma.SelectSubset<T, SubscriptionPriceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more SubscriptionPrices and returns the data updated in the database.
* @param {SubscriptionPriceUpdateManyAndReturnArgs} args - Arguments to update many SubscriptionPrices.
* @example
* // Update many SubscriptionPrices
* const subscriptionPrice = await prisma.subscriptionPrice.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more SubscriptionPrices and only return the `id`
* const subscriptionPriceWithIdOnly = await prisma.subscriptionPrice.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 SubscriptionPriceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SubscriptionPriceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionPricePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one SubscriptionPrice.
* @param {SubscriptionPriceUpsertArgs} args - Arguments to update or create a SubscriptionPrice.
* @example
* // Update or create a SubscriptionPrice
* const subscriptionPrice = await prisma.subscriptionPrice.upsert({
* create: {
* // ... data to create a SubscriptionPrice
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the SubscriptionPrice we want to update
* }
* })
*/
upsert<T extends SubscriptionPriceUpsertArgs>(args: Prisma.SelectSubset<T, SubscriptionPriceUpsertArgs<ExtArgs>>): Prisma.Prisma__SubscriptionPriceClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPricePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of SubscriptionPrices.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SubscriptionPriceCountArgs} args - Arguments to filter SubscriptionPrices to count.
* @example
* // Count the number of SubscriptionPrices
* const count = await prisma.subscriptionPrice.count({
* where: {
* // ... the filter for the SubscriptionPrices we want to count
* }
* })
**/
count<T extends SubscriptionPriceCountArgs>(
args?: Prisma.Subset<T, SubscriptionPriceCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], SubscriptionPriceCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a SubscriptionPrice.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SubscriptionPriceAggregateArgs} 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 SubscriptionPriceAggregateArgs>(args: Prisma.Subset<T, SubscriptionPriceAggregateArgs>): Prisma.PrismaPromise<GetSubscriptionPriceAggregateType<T>>
/**
* Group by SubscriptionPrice.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SubscriptionPriceGroupByArgs} 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 SubscriptionPriceGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: SubscriptionPriceGroupByArgs['orderBy'] }
: { orderBy?: SubscriptionPriceGroupByArgs['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, SubscriptionPriceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSubscriptionPriceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the SubscriptionPrice model
*/
readonly fields: SubscriptionPriceFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for SubscriptionPrice.
* 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__SubscriptionPriceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
subscriptionProduct<T extends Prisma.SubscriptionProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SubscriptionProductDefaultArgs<ExtArgs>>): Prisma.Prisma__SubscriptionProductClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
tenantProductPrices<T extends Prisma.SubscriptionPrice$tenantProductPricesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SubscriptionPrice$tenantProductPricesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TenantSubscriptionProductPricePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* 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 SubscriptionPrice model
*/
export interface SubscriptionPriceFieldRefs {
readonly id: Prisma.FieldRef<"SubscriptionPrice", 'String'>
readonly subscriptionProductId: Prisma.FieldRef<"SubscriptionPrice", 'String'>
readonly stripeId: Prisma.FieldRef<"SubscriptionPrice", 'String'>
readonly type: Prisma.FieldRef<"SubscriptionPrice", 'Int'>
readonly billingPeriod: Prisma.FieldRef<"SubscriptionPrice", 'Int'>
readonly price: Prisma.FieldRef<"SubscriptionPrice", 'Decimal'>
readonly currency: Prisma.FieldRef<"SubscriptionPrice", 'String'>
readonly trialDays: Prisma.FieldRef<"SubscriptionPrice", 'Int'>
readonly active: Prisma.FieldRef<"SubscriptionPrice", 'Boolean'>
}
// Custom InputTypes
/**
* SubscriptionPrice findUnique
*/
export type SubscriptionPriceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPrice
*/
select?: Prisma.SubscriptionPriceSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionPrice
*/
omit?: Prisma.SubscriptionPriceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionPriceInclude<ExtArgs> | null
/**
* Filter, which SubscriptionPrice to fetch.
*/
where: Prisma.SubscriptionPriceWhereUniqueInput
}
/**
* SubscriptionPrice findUniqueOrThrow
*/
export type SubscriptionPriceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPrice
*/
select?: Prisma.SubscriptionPriceSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionPrice
*/
omit?: Prisma.SubscriptionPriceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionPriceInclude<ExtArgs> | null
/**
* Filter, which SubscriptionPrice to fetch.
*/
where: Prisma.SubscriptionPriceWhereUniqueInput
}
/**
* SubscriptionPrice findFirst
*/
export type SubscriptionPriceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPrice
*/
select?: Prisma.SubscriptionPriceSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionPrice
*/
omit?: Prisma.SubscriptionPriceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionPriceInclude<ExtArgs> | null
/**
* Filter, which SubscriptionPrice to fetch.
*/
where?: Prisma.SubscriptionPriceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SubscriptionPrices to fetch.
*/
orderBy?: Prisma.SubscriptionPriceOrderByWithRelationInput | Prisma.SubscriptionPriceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SubscriptionPrices.
*/
cursor?: Prisma.SubscriptionPriceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SubscriptionPrices 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` SubscriptionPrices.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SubscriptionPrices.
*/
distinct?: Prisma.SubscriptionPriceScalarFieldEnum | Prisma.SubscriptionPriceScalarFieldEnum[]
}
/**
* SubscriptionPrice findFirstOrThrow
*/
export type SubscriptionPriceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPrice
*/
select?: Prisma.SubscriptionPriceSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionPrice
*/
omit?: Prisma.SubscriptionPriceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionPriceInclude<ExtArgs> | null
/**
* Filter, which SubscriptionPrice to fetch.
*/
where?: Prisma.SubscriptionPriceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SubscriptionPrices to fetch.
*/
orderBy?: Prisma.SubscriptionPriceOrderByWithRelationInput | Prisma.SubscriptionPriceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SubscriptionPrices.
*/
cursor?: Prisma.SubscriptionPriceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SubscriptionPrices 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` SubscriptionPrices.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SubscriptionPrices.
*/
distinct?: Prisma.SubscriptionPriceScalarFieldEnum | Prisma.SubscriptionPriceScalarFieldEnum[]
}
/**
* SubscriptionPrice findMany
*/
export type SubscriptionPriceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPrice
*/
select?: Prisma.SubscriptionPriceSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionPrice
*/
omit?: Prisma.SubscriptionPriceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionPriceInclude<ExtArgs> | null
/**
* Filter, which SubscriptionPrices to fetch.
*/
where?: Prisma.SubscriptionPriceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SubscriptionPrices to fetch.
*/
orderBy?: Prisma.SubscriptionPriceOrderByWithRelationInput | Prisma.SubscriptionPriceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing SubscriptionPrices.
*/
cursor?: Prisma.SubscriptionPriceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SubscriptionPrices 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` SubscriptionPrices.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SubscriptionPrices.
*/
distinct?: Prisma.SubscriptionPriceScalarFieldEnum | Prisma.SubscriptionPriceScalarFieldEnum[]
}
/**
* SubscriptionPrice create
*/
export type SubscriptionPriceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPrice
*/
select?: Prisma.SubscriptionPriceSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionPrice
*/
omit?: Prisma.SubscriptionPriceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionPriceInclude<ExtArgs> | null
/**
* The data needed to create a SubscriptionPrice.
*/
data: Prisma.XOR<Prisma.SubscriptionPriceCreateInput, Prisma.SubscriptionPriceUncheckedCreateInput>
}
/**
* SubscriptionPrice createMany
*/
export type SubscriptionPriceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many SubscriptionPrices.
*/
data: Prisma.SubscriptionPriceCreateManyInput | Prisma.SubscriptionPriceCreateManyInput[]
skipDuplicates?: boolean
}
/**
* SubscriptionPrice createManyAndReturn
*/
export type SubscriptionPriceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPrice
*/
select?: Prisma.SubscriptionPriceSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionPrice
*/
omit?: Prisma.SubscriptionPriceOmit<ExtArgs> | null
/**
* The data used to create many SubscriptionPrices.
*/
data: Prisma.SubscriptionPriceCreateManyInput | Prisma.SubscriptionPriceCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionPriceIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* SubscriptionPrice update
*/
export type SubscriptionPriceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPrice
*/
select?: Prisma.SubscriptionPriceSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionPrice
*/
omit?: Prisma.SubscriptionPriceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionPriceInclude<ExtArgs> | null
/**
* The data needed to update a SubscriptionPrice.
*/
data: Prisma.XOR<Prisma.SubscriptionPriceUpdateInput, Prisma.SubscriptionPriceUncheckedUpdateInput>
/**
* Choose, which SubscriptionPrice to update.
*/
where: Prisma.SubscriptionPriceWhereUniqueInput
}
/**
* SubscriptionPrice updateMany
*/
export type SubscriptionPriceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update SubscriptionPrices.
*/
data: Prisma.XOR<Prisma.SubscriptionPriceUpdateManyMutationInput, Prisma.SubscriptionPriceUncheckedUpdateManyInput>
/**
* Filter which SubscriptionPrices to update
*/
where?: Prisma.SubscriptionPriceWhereInput
/**
* Limit how many SubscriptionPrices to update.
*/
limit?: number
}
/**
* SubscriptionPrice updateManyAndReturn
*/
export type SubscriptionPriceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPrice
*/
select?: Prisma.SubscriptionPriceSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionPrice
*/
omit?: Prisma.SubscriptionPriceOmit<ExtArgs> | null
/**
* The data used to update SubscriptionPrices.
*/
data: Prisma.XOR<Prisma.SubscriptionPriceUpdateManyMutationInput, Prisma.SubscriptionPriceUncheckedUpdateManyInput>
/**
* Filter which SubscriptionPrices to update
*/
where?: Prisma.SubscriptionPriceWhereInput
/**
* Limit how many SubscriptionPrices to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionPriceIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* SubscriptionPrice upsert
*/
export type SubscriptionPriceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPrice
*/
select?: Prisma.SubscriptionPriceSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionPrice
*/
omit?: Prisma.SubscriptionPriceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionPriceInclude<ExtArgs> | null
/**
* The filter to search for the SubscriptionPrice to update in case it exists.
*/
where: Prisma.SubscriptionPriceWhereUniqueInput
/**
* In case the SubscriptionPrice found by the `where` argument doesn't exist, create a new SubscriptionPrice with this data.
*/
create: Prisma.XOR<Prisma.SubscriptionPriceCreateInput, Prisma.SubscriptionPriceUncheckedCreateInput>
/**
* In case the SubscriptionPrice was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.SubscriptionPriceUpdateInput, Prisma.SubscriptionPriceUncheckedUpdateInput>
}
/**
* SubscriptionPrice delete
*/
export type SubscriptionPriceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPrice
*/
select?: Prisma.SubscriptionPriceSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionPrice
*/
omit?: Prisma.SubscriptionPriceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionPriceInclude<ExtArgs> | null
/**
* Filter which SubscriptionPrice to delete.
*/
where: Prisma.SubscriptionPriceWhereUniqueInput
}
/**
* SubscriptionPrice deleteMany
*/
export type SubscriptionPriceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which SubscriptionPrices to delete
*/
where?: Prisma.SubscriptionPriceWhereInput
/**
* Limit how many SubscriptionPrices to delete.
*/
limit?: number
}
/**
* SubscriptionPrice.tenantProductPrices
*/
export type SubscriptionPrice$tenantProductPricesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TenantSubscriptionProductPrice
*/
select?: Prisma.TenantSubscriptionProductPriceSelect<ExtArgs> | null
/**
* Omit specific fields from the TenantSubscriptionProductPrice
*/
omit?: Prisma.TenantSubscriptionProductPriceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TenantSubscriptionProductPriceInclude<ExtArgs> | null
where?: Prisma.TenantSubscriptionProductPriceWhereInput
orderBy?: Prisma.TenantSubscriptionProductPriceOrderByWithRelationInput | Prisma.TenantSubscriptionProductPriceOrderByWithRelationInput[]
cursor?: Prisma.TenantSubscriptionProductPriceWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.TenantSubscriptionProductPriceScalarFieldEnum | Prisma.TenantSubscriptionProductPriceScalarFieldEnum[]
}
/**
* SubscriptionPrice without action
*/
export type SubscriptionPriceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SubscriptionPrice
*/
select?: Prisma.SubscriptionPriceSelect<ExtArgs> | null
/**
* Omit specific fields from the SubscriptionPrice
*/
omit?: Prisma.SubscriptionPriceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SubscriptionPriceInclude<ExtArgs> | null
}