/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `TenantSubscription` 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 TenantSubscription * */ export type TenantSubscriptionModel = runtime.Types.Result.DefaultSelection export type AggregateTenantSubscription = { _count: TenantSubscriptionCountAggregateOutputType | null _min: TenantSubscriptionMinAggregateOutputType | null _max: TenantSubscriptionMaxAggregateOutputType | null } export type TenantSubscriptionMinAggregateOutputType = { id: string | null tenantId: string | null stripeCustomerId: string | null } export type TenantSubscriptionMaxAggregateOutputType = { id: string | null tenantId: string | null stripeCustomerId: string | null } export type TenantSubscriptionCountAggregateOutputType = { id: number tenantId: number stripeCustomerId: number _all: number } export type TenantSubscriptionMinAggregateInputType = { id?: true tenantId?: true stripeCustomerId?: true } export type TenantSubscriptionMaxAggregateInputType = { id?: true tenantId?: true stripeCustomerId?: true } export type TenantSubscriptionCountAggregateInputType = { id?: true tenantId?: true stripeCustomerId?: true _all?: true } export type TenantSubscriptionAggregateArgs = { /** * Filter which TenantSubscription to aggregate. */ where?: Prisma.TenantSubscriptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TenantSubscriptions to fetch. */ orderBy?: Prisma.TenantSubscriptionOrderByWithRelationInput | Prisma.TenantSubscriptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.TenantSubscriptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TenantSubscriptions 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` TenantSubscriptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned TenantSubscriptions **/ _count?: true | TenantSubscriptionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TenantSubscriptionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TenantSubscriptionMaxAggregateInputType } export type GetTenantSubscriptionAggregateType = { [P in keyof T & keyof AggregateTenantSubscription]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type TenantSubscriptionGroupByArgs = { where?: Prisma.TenantSubscriptionWhereInput orderBy?: Prisma.TenantSubscriptionOrderByWithAggregationInput | Prisma.TenantSubscriptionOrderByWithAggregationInput[] by: Prisma.TenantSubscriptionScalarFieldEnum[] | Prisma.TenantSubscriptionScalarFieldEnum having?: Prisma.TenantSubscriptionScalarWhereWithAggregatesInput take?: number skip?: number _count?: TenantSubscriptionCountAggregateInputType | true _min?: TenantSubscriptionMinAggregateInputType _max?: TenantSubscriptionMaxAggregateInputType } export type TenantSubscriptionGroupByOutputType = { id: string tenantId: string stripeCustomerId: string | null _count: TenantSubscriptionCountAggregateOutputType | null _min: TenantSubscriptionMinAggregateOutputType | null _max: TenantSubscriptionMaxAggregateOutputType | null } export type GetTenantSubscriptionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof TenantSubscriptionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type TenantSubscriptionWhereInput = { AND?: Prisma.TenantSubscriptionWhereInput | Prisma.TenantSubscriptionWhereInput[] OR?: Prisma.TenantSubscriptionWhereInput[] NOT?: Prisma.TenantSubscriptionWhereInput | Prisma.TenantSubscriptionWhereInput[] id?: Prisma.StringFilter<"TenantSubscription"> | string tenantId?: Prisma.StringFilter<"TenantSubscription"> | string stripeCustomerId?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null tenant?: Prisma.XOR products?: Prisma.TenantSubscriptionProductListRelationFilter } export type TenantSubscriptionOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder stripeCustomerId?: Prisma.SortOrderInput | Prisma.SortOrder tenant?: Prisma.TenantOrderByWithRelationInput products?: Prisma.TenantSubscriptionProductOrderByRelationAggregateInput } export type TenantSubscriptionWhereUniqueInput = Prisma.AtLeast<{ id?: string tenantId?: string AND?: Prisma.TenantSubscriptionWhereInput | Prisma.TenantSubscriptionWhereInput[] OR?: Prisma.TenantSubscriptionWhereInput[] NOT?: Prisma.TenantSubscriptionWhereInput | Prisma.TenantSubscriptionWhereInput[] stripeCustomerId?: Prisma.StringNullableFilter<"TenantSubscription"> | string | null tenant?: Prisma.XOR products?: Prisma.TenantSubscriptionProductListRelationFilter }, "id" | "tenantId"> export type TenantSubscriptionOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder stripeCustomerId?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.TenantSubscriptionCountOrderByAggregateInput _max?: Prisma.TenantSubscriptionMaxOrderByAggregateInput _min?: Prisma.TenantSubscriptionMinOrderByAggregateInput } export type TenantSubscriptionScalarWhereWithAggregatesInput = { AND?: Prisma.TenantSubscriptionScalarWhereWithAggregatesInput | Prisma.TenantSubscriptionScalarWhereWithAggregatesInput[] OR?: Prisma.TenantSubscriptionScalarWhereWithAggregatesInput[] NOT?: Prisma.TenantSubscriptionScalarWhereWithAggregatesInput | Prisma.TenantSubscriptionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"TenantSubscription"> | string tenantId?: Prisma.StringWithAggregatesFilter<"TenantSubscription"> | string stripeCustomerId?: Prisma.StringNullableWithAggregatesFilter<"TenantSubscription"> | string | null } export type TenantSubscriptionCreateInput = { id?: string stripeCustomerId?: string | null tenant: Prisma.TenantCreateNestedOneWithoutSubscriptionInput products?: Prisma.TenantSubscriptionProductCreateNestedManyWithoutTenantSubscriptionInput } export type TenantSubscriptionUncheckedCreateInput = { id?: string tenantId: string stripeCustomerId?: string | null products?: Prisma.TenantSubscriptionProductUncheckedCreateNestedManyWithoutTenantSubscriptionInput } export type TenantSubscriptionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string stripeCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenant?: Prisma.TenantUpdateOneRequiredWithoutSubscriptionNestedInput products?: Prisma.TenantSubscriptionProductUpdateManyWithoutTenantSubscriptionNestedInput } export type TenantSubscriptionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string stripeCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null products?: Prisma.TenantSubscriptionProductUncheckedUpdateManyWithoutTenantSubscriptionNestedInput } export type TenantSubscriptionCreateManyInput = { id?: string tenantId: string stripeCustomerId?: string | null } export type TenantSubscriptionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string stripeCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type TenantSubscriptionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string stripeCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type TenantSubscriptionNullableScalarRelationFilter = { is?: Prisma.TenantSubscriptionWhereInput | null isNot?: Prisma.TenantSubscriptionWhereInput | null } export type TenantSubscriptionCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder stripeCustomerId?: Prisma.SortOrder } export type TenantSubscriptionMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder stripeCustomerId?: Prisma.SortOrder } export type TenantSubscriptionMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder stripeCustomerId?: Prisma.SortOrder } export type TenantSubscriptionScalarRelationFilter = { is?: Prisma.TenantSubscriptionWhereInput isNot?: Prisma.TenantSubscriptionWhereInput } export type TenantSubscriptionCreateNestedOneWithoutTenantInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutTenantInput connect?: Prisma.TenantSubscriptionWhereUniqueInput } export type TenantSubscriptionUncheckedCreateNestedOneWithoutTenantInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutTenantInput connect?: Prisma.TenantSubscriptionWhereUniqueInput } export type TenantSubscriptionUpdateOneWithoutTenantNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutTenantInput upsert?: Prisma.TenantSubscriptionUpsertWithoutTenantInput disconnect?: Prisma.TenantSubscriptionWhereInput | boolean delete?: Prisma.TenantSubscriptionWhereInput | boolean connect?: Prisma.TenantSubscriptionWhereUniqueInput update?: Prisma.XOR, Prisma.TenantSubscriptionUncheckedUpdateWithoutTenantInput> } export type TenantSubscriptionUncheckedUpdateOneWithoutTenantNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutTenantInput upsert?: Prisma.TenantSubscriptionUpsertWithoutTenantInput disconnect?: Prisma.TenantSubscriptionWhereInput | boolean delete?: Prisma.TenantSubscriptionWhereInput | boolean connect?: Prisma.TenantSubscriptionWhereUniqueInput update?: Prisma.XOR, Prisma.TenantSubscriptionUncheckedUpdateWithoutTenantInput> } export type TenantSubscriptionCreateNestedOneWithoutProductsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutProductsInput connect?: Prisma.TenantSubscriptionWhereUniqueInput } export type TenantSubscriptionUpdateOneRequiredWithoutProductsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TenantSubscriptionCreateOrConnectWithoutProductsInput upsert?: Prisma.TenantSubscriptionUpsertWithoutProductsInput connect?: Prisma.TenantSubscriptionWhereUniqueInput update?: Prisma.XOR, Prisma.TenantSubscriptionUncheckedUpdateWithoutProductsInput> } export type TenantSubscriptionCreateWithoutTenantInput = { id?: string stripeCustomerId?: string | null products?: Prisma.TenantSubscriptionProductCreateNestedManyWithoutTenantSubscriptionInput } export type TenantSubscriptionUncheckedCreateWithoutTenantInput = { id?: string stripeCustomerId?: string | null products?: Prisma.TenantSubscriptionProductUncheckedCreateNestedManyWithoutTenantSubscriptionInput } export type TenantSubscriptionCreateOrConnectWithoutTenantInput = { where: Prisma.TenantSubscriptionWhereUniqueInput create: Prisma.XOR } export type TenantSubscriptionUpsertWithoutTenantInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TenantSubscriptionWhereInput } export type TenantSubscriptionUpdateToOneWithWhereWithoutTenantInput = { where?: Prisma.TenantSubscriptionWhereInput data: Prisma.XOR } export type TenantSubscriptionUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string stripeCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null products?: Prisma.TenantSubscriptionProductUpdateManyWithoutTenantSubscriptionNestedInput } export type TenantSubscriptionUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string stripeCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null products?: Prisma.TenantSubscriptionProductUncheckedUpdateManyWithoutTenantSubscriptionNestedInput } export type TenantSubscriptionCreateWithoutProductsInput = { id?: string stripeCustomerId?: string | null tenant: Prisma.TenantCreateNestedOneWithoutSubscriptionInput } export type TenantSubscriptionUncheckedCreateWithoutProductsInput = { id?: string tenantId: string stripeCustomerId?: string | null } export type TenantSubscriptionCreateOrConnectWithoutProductsInput = { where: Prisma.TenantSubscriptionWhereUniqueInput create: Prisma.XOR } export type TenantSubscriptionUpsertWithoutProductsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TenantSubscriptionWhereInput } export type TenantSubscriptionUpdateToOneWithWhereWithoutProductsInput = { where?: Prisma.TenantSubscriptionWhereInput data: Prisma.XOR } export type TenantSubscriptionUpdateWithoutProductsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string stripeCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenant?: Prisma.TenantUpdateOneRequiredWithoutSubscriptionNestedInput } export type TenantSubscriptionUncheckedUpdateWithoutProductsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string stripeCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } /** * Count Type TenantSubscriptionCountOutputType */ export type TenantSubscriptionCountOutputType = { products: number } export type TenantSubscriptionCountOutputTypeSelect = { products?: boolean | TenantSubscriptionCountOutputTypeCountProductsArgs } /** * TenantSubscriptionCountOutputType without action */ export type TenantSubscriptionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the TenantSubscriptionCountOutputType */ select?: Prisma.TenantSubscriptionCountOutputTypeSelect | null } /** * TenantSubscriptionCountOutputType without action */ export type TenantSubscriptionCountOutputTypeCountProductsArgs = { where?: Prisma.TenantSubscriptionProductWhereInput } export type TenantSubscriptionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean stripeCustomerId?: boolean tenant?: boolean | Prisma.TenantDefaultArgs products?: boolean | Prisma.TenantSubscription$productsArgs _count?: boolean | Prisma.TenantSubscriptionCountOutputTypeDefaultArgs }, ExtArgs["result"]["tenantSubscription"]> export type TenantSubscriptionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean stripeCustomerId?: boolean tenant?: boolean | Prisma.TenantDefaultArgs }, ExtArgs["result"]["tenantSubscription"]> export type TenantSubscriptionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean stripeCustomerId?: boolean tenant?: boolean | Prisma.TenantDefaultArgs }, ExtArgs["result"]["tenantSubscription"]> export type TenantSubscriptionSelectScalar = { id?: boolean tenantId?: boolean stripeCustomerId?: boolean } export type TenantSubscriptionOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "stripeCustomerId", ExtArgs["result"]["tenantSubscription"]> export type TenantSubscriptionInclude = { tenant?: boolean | Prisma.TenantDefaultArgs products?: boolean | Prisma.TenantSubscription$productsArgs _count?: boolean | Prisma.TenantSubscriptionCountOutputTypeDefaultArgs } export type TenantSubscriptionIncludeCreateManyAndReturn = { tenant?: boolean | Prisma.TenantDefaultArgs } export type TenantSubscriptionIncludeUpdateManyAndReturn = { tenant?: boolean | Prisma.TenantDefaultArgs } export type $TenantSubscriptionPayload = { name: "TenantSubscription" objects: { tenant: Prisma.$TenantPayload products: Prisma.$TenantSubscriptionProductPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string stripeCustomerId: string | null }, ExtArgs["result"]["tenantSubscription"]> composites: {} } export type TenantSubscriptionGetPayload = runtime.Types.Result.GetResult export type TenantSubscriptionCountArgs = Omit & { select?: TenantSubscriptionCountAggregateInputType | true } export interface TenantSubscriptionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['TenantSubscription'], meta: { name: 'TenantSubscription' } } /** * Find zero or one TenantSubscription that matches the filter. * @param {TenantSubscriptionFindUniqueArgs} args - Arguments to find a TenantSubscription * @example * // Get one TenantSubscription * const tenantSubscription = await prisma.tenantSubscription.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one TenantSubscription that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TenantSubscriptionFindUniqueOrThrowArgs} args - Arguments to find a TenantSubscription * @example * // Get one TenantSubscription * const tenantSubscription = await prisma.tenantSubscription.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first TenantSubscription 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 {TenantSubscriptionFindFirstArgs} args - Arguments to find a TenantSubscription * @example * // Get one TenantSubscription * const tenantSubscription = await prisma.tenantSubscription.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first TenantSubscription 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 {TenantSubscriptionFindFirstOrThrowArgs} args - Arguments to find a TenantSubscription * @example * // Get one TenantSubscription * const tenantSubscription = await prisma.tenantSubscription.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more TenantSubscriptions 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 {TenantSubscriptionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all TenantSubscriptions * const tenantSubscriptions = await prisma.tenantSubscription.findMany() * * // Get first 10 TenantSubscriptions * const tenantSubscriptions = await prisma.tenantSubscription.findMany({ take: 10 }) * * // Only select the `id` * const tenantSubscriptionWithIdOnly = await prisma.tenantSubscription.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a TenantSubscription. * @param {TenantSubscriptionCreateArgs} args - Arguments to create a TenantSubscription. * @example * // Create one TenantSubscription * const TenantSubscription = await prisma.tenantSubscription.create({ * data: { * // ... data to create a TenantSubscription * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many TenantSubscriptions. * @param {TenantSubscriptionCreateManyArgs} args - Arguments to create many TenantSubscriptions. * @example * // Create many TenantSubscriptions * const tenantSubscription = await prisma.tenantSubscription.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many TenantSubscriptions and returns the data saved in the database. * @param {TenantSubscriptionCreateManyAndReturnArgs} args - Arguments to create many TenantSubscriptions. * @example * // Create many TenantSubscriptions * const tenantSubscription = await prisma.tenantSubscription.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many TenantSubscriptions and only return the `id` * const tenantSubscriptionWithIdOnly = await prisma.tenantSubscription.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a TenantSubscription. * @param {TenantSubscriptionDeleteArgs} args - Arguments to delete one TenantSubscription. * @example * // Delete one TenantSubscription * const TenantSubscription = await prisma.tenantSubscription.delete({ * where: { * // ... filter to delete one TenantSubscription * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one TenantSubscription. * @param {TenantSubscriptionUpdateArgs} args - Arguments to update one TenantSubscription. * @example * // Update one TenantSubscription * const tenantSubscription = await prisma.tenantSubscription.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more TenantSubscriptions. * @param {TenantSubscriptionDeleteManyArgs} args - Arguments to filter TenantSubscriptions to delete. * @example * // Delete a few TenantSubscriptions * const { count } = await prisma.tenantSubscription.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TenantSubscriptions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TenantSubscriptionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many TenantSubscriptions * const tenantSubscription = await prisma.tenantSubscription.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TenantSubscriptions and returns the data updated in the database. * @param {TenantSubscriptionUpdateManyAndReturnArgs} args - Arguments to update many TenantSubscriptions. * @example * // Update many TenantSubscriptions * const tenantSubscription = await prisma.tenantSubscription.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more TenantSubscriptions and only return the `id` * const tenantSubscriptionWithIdOnly = await prisma.tenantSubscription.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one TenantSubscription. * @param {TenantSubscriptionUpsertArgs} args - Arguments to update or create a TenantSubscription. * @example * // Update or create a TenantSubscription * const tenantSubscription = await prisma.tenantSubscription.upsert({ * create: { * // ... data to create a TenantSubscription * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the TenantSubscription we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TenantSubscriptionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of TenantSubscriptions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TenantSubscriptionCountArgs} args - Arguments to filter TenantSubscriptions to count. * @example * // Count the number of TenantSubscriptions * const count = await prisma.tenantSubscription.count({ * where: { * // ... the filter for the TenantSubscriptions we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a TenantSubscription. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TenantSubscriptionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by TenantSubscription. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TenantSubscriptionGroupByArgs} 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 TenantSubscriptionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: TenantSubscriptionGroupByArgs['orderBy'] } : { orderBy?: TenantSubscriptionGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetTenantSubscriptionGroupByPayload : Prisma.PrismaPromise /** * Fields of the TenantSubscription model */ readonly fields: TenantSubscriptionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for TenantSubscription. * 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__TenantSubscriptionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> products = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the TenantSubscription model */ export interface TenantSubscriptionFieldRefs { readonly id: Prisma.FieldRef<"TenantSubscription", 'String'> readonly tenantId: Prisma.FieldRef<"TenantSubscription", 'String'> readonly stripeCustomerId: Prisma.FieldRef<"TenantSubscription", 'String'> } // Custom InputTypes /** * TenantSubscription findUnique */ export type TenantSubscriptionFindUniqueArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * Filter, which TenantSubscription to fetch. */ where: Prisma.TenantSubscriptionWhereUniqueInput } /** * TenantSubscription findUniqueOrThrow */ export type TenantSubscriptionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * Filter, which TenantSubscription to fetch. */ where: Prisma.TenantSubscriptionWhereUniqueInput } /** * TenantSubscription findFirst */ export type TenantSubscriptionFindFirstArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * Filter, which TenantSubscription to fetch. */ where?: Prisma.TenantSubscriptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TenantSubscriptions to fetch. */ orderBy?: Prisma.TenantSubscriptionOrderByWithRelationInput | Prisma.TenantSubscriptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TenantSubscriptions. */ cursor?: Prisma.TenantSubscriptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TenantSubscriptions 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` TenantSubscriptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TenantSubscriptions. */ distinct?: Prisma.TenantSubscriptionScalarFieldEnum | Prisma.TenantSubscriptionScalarFieldEnum[] } /** * TenantSubscription findFirstOrThrow */ export type TenantSubscriptionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * Filter, which TenantSubscription to fetch. */ where?: Prisma.TenantSubscriptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TenantSubscriptions to fetch. */ orderBy?: Prisma.TenantSubscriptionOrderByWithRelationInput | Prisma.TenantSubscriptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TenantSubscriptions. */ cursor?: Prisma.TenantSubscriptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TenantSubscriptions 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` TenantSubscriptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TenantSubscriptions. */ distinct?: Prisma.TenantSubscriptionScalarFieldEnum | Prisma.TenantSubscriptionScalarFieldEnum[] } /** * TenantSubscription findMany */ export type TenantSubscriptionFindManyArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * Filter, which TenantSubscriptions to fetch. */ where?: Prisma.TenantSubscriptionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TenantSubscriptions to fetch. */ orderBy?: Prisma.TenantSubscriptionOrderByWithRelationInput | Prisma.TenantSubscriptionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing TenantSubscriptions. */ cursor?: Prisma.TenantSubscriptionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TenantSubscriptions 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` TenantSubscriptions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TenantSubscriptions. */ distinct?: Prisma.TenantSubscriptionScalarFieldEnum | Prisma.TenantSubscriptionScalarFieldEnum[] } /** * TenantSubscription create */ export type TenantSubscriptionCreateArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * The data needed to create a TenantSubscription. */ data: Prisma.XOR } /** * TenantSubscription createMany */ export type TenantSubscriptionCreateManyArgs = { /** * The data used to create many TenantSubscriptions. */ data: Prisma.TenantSubscriptionCreateManyInput | Prisma.TenantSubscriptionCreateManyInput[] skipDuplicates?: boolean } /** * TenantSubscription createManyAndReturn */ export type TenantSubscriptionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelectCreateManyAndReturn | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * The data used to create many TenantSubscriptions. */ data: Prisma.TenantSubscriptionCreateManyInput | Prisma.TenantSubscriptionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionIncludeCreateManyAndReturn | null } /** * TenantSubscription update */ export type TenantSubscriptionUpdateArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * The data needed to update a TenantSubscription. */ data: Prisma.XOR /** * Choose, which TenantSubscription to update. */ where: Prisma.TenantSubscriptionWhereUniqueInput } /** * TenantSubscription updateMany */ export type TenantSubscriptionUpdateManyArgs = { /** * The data used to update TenantSubscriptions. */ data: Prisma.XOR /** * Filter which TenantSubscriptions to update */ where?: Prisma.TenantSubscriptionWhereInput /** * Limit how many TenantSubscriptions to update. */ limit?: number } /** * TenantSubscription updateManyAndReturn */ export type TenantSubscriptionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelectUpdateManyAndReturn | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * The data used to update TenantSubscriptions. */ data: Prisma.XOR /** * Filter which TenantSubscriptions to update */ where?: Prisma.TenantSubscriptionWhereInput /** * Limit how many TenantSubscriptions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionIncludeUpdateManyAndReturn | null } /** * TenantSubscription upsert */ export type TenantSubscriptionUpsertArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * The filter to search for the TenantSubscription to update in case it exists. */ where: Prisma.TenantSubscriptionWhereUniqueInput /** * In case the TenantSubscription found by the `where` argument doesn't exist, create a new TenantSubscription with this data. */ create: Prisma.XOR /** * In case the TenantSubscription was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * TenantSubscription delete */ export type TenantSubscriptionDeleteArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null /** * Filter which TenantSubscription to delete. */ where: Prisma.TenantSubscriptionWhereUniqueInput } /** * TenantSubscription deleteMany */ export type TenantSubscriptionDeleteManyArgs = { /** * Filter which TenantSubscriptions to delete */ where?: Prisma.TenantSubscriptionWhereInput /** * Limit how many TenantSubscriptions to delete. */ limit?: number } /** * TenantSubscription.products */ export type TenantSubscription$productsArgs = { /** * Select specific fields to fetch from the TenantSubscriptionProduct */ select?: Prisma.TenantSubscriptionProductSelect | null /** * Omit specific fields from the TenantSubscriptionProduct */ omit?: Prisma.TenantSubscriptionProductOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionProductInclude | null where?: Prisma.TenantSubscriptionProductWhereInput orderBy?: Prisma.TenantSubscriptionProductOrderByWithRelationInput | Prisma.TenantSubscriptionProductOrderByWithRelationInput[] cursor?: Prisma.TenantSubscriptionProductWhereUniqueInput take?: number skip?: number distinct?: Prisma.TenantSubscriptionProductScalarFieldEnum | Prisma.TenantSubscriptionProductScalarFieldEnum[] } /** * TenantSubscription without action */ export type TenantSubscriptionDefaultArgs = { /** * Select specific fields to fetch from the TenantSubscription */ select?: Prisma.TenantSubscriptionSelect | null /** * Omit specific fields from the TenantSubscription */ omit?: Prisma.TenantSubscriptionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantSubscriptionInclude | null }