
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `PlanFeature` 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"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * Model PlanFeature
 * 
 */
export type PlanFeatureModel = runtime.Types.Result.DefaultSelection<Prisma.$PlanFeaturePayload>

export type AggregatePlanFeature = {
  _count: PlanFeatureCountAggregateOutputType | null
  _avg: PlanFeatureAvgAggregateOutputType | null
  _sum: PlanFeatureSumAggregateOutputType | null
  _min: PlanFeatureMinAggregateOutputType | null
  _max: PlanFeatureMaxAggregateOutputType | null
}

export type PlanFeatureAvgAggregateOutputType = {
  limit: number | null
}

export type PlanFeatureSumAggregateOutputType = {
  limit: number | null
}

export type PlanFeatureMinAggregateOutputType = {
  id: string | null
  planId: string | null
  key: string | null
  enabled: boolean | null
  limit: number | null
}

export type PlanFeatureMaxAggregateOutputType = {
  id: string | null
  planId: string | null
  key: string | null
  enabled: boolean | null
  limit: number | null
}

export type PlanFeatureCountAggregateOutputType = {
  id: number
  planId: number
  key: number
  enabled: number
  limit: number
  _all: number
}


export type PlanFeatureAvgAggregateInputType = {
  limit?: true
}

export type PlanFeatureSumAggregateInputType = {
  limit?: true
}

export type PlanFeatureMinAggregateInputType = {
  id?: true
  planId?: true
  key?: true
  enabled?: true
  limit?: true
}

export type PlanFeatureMaxAggregateInputType = {
  id?: true
  planId?: true
  key?: true
  enabled?: true
  limit?: true
}

export type PlanFeatureCountAggregateInputType = {
  id?: true
  planId?: true
  key?: true
  enabled?: true
  limit?: true
  _all?: true
}

export type PlanFeatureAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which PlanFeature to aggregate.
   */
  where?: Prisma.PlanFeatureWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of PlanFeatures to fetch.
   */
  orderBy?: Prisma.PlanFeatureOrderByWithRelationInput | Prisma.PlanFeatureOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.PlanFeatureWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` PlanFeatures 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` PlanFeatures.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned PlanFeatures
  **/
  _count?: true | PlanFeatureCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: PlanFeatureAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: PlanFeatureSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: PlanFeatureMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: PlanFeatureMaxAggregateInputType
}

export type GetPlanFeatureAggregateType<T extends PlanFeatureAggregateArgs> = {
      [P in keyof T & keyof AggregatePlanFeature]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregatePlanFeature[P]>
    : Prisma.GetScalarType<T[P], AggregatePlanFeature[P]>
}




export type PlanFeatureGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.PlanFeatureWhereInput
  orderBy?: Prisma.PlanFeatureOrderByWithAggregationInput | Prisma.PlanFeatureOrderByWithAggregationInput[]
  by: Prisma.PlanFeatureScalarFieldEnum[] | Prisma.PlanFeatureScalarFieldEnum
  having?: Prisma.PlanFeatureScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: PlanFeatureCountAggregateInputType | true
  _avg?: PlanFeatureAvgAggregateInputType
  _sum?: PlanFeatureSumAggregateInputType
  _min?: PlanFeatureMinAggregateInputType
  _max?: PlanFeatureMaxAggregateInputType
}

export type PlanFeatureGroupByOutputType = {
  id: string
  planId: string
  key: string
  enabled: boolean
  limit: number | null
  _count: PlanFeatureCountAggregateOutputType | null
  _avg: PlanFeatureAvgAggregateOutputType | null
  _sum: PlanFeatureSumAggregateOutputType | null
  _min: PlanFeatureMinAggregateOutputType | null
  _max: PlanFeatureMaxAggregateOutputType | null
}

export type GetPlanFeatureGroupByPayload<T extends PlanFeatureGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<PlanFeatureGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof PlanFeatureGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], PlanFeatureGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], PlanFeatureGroupByOutputType[P]>
      }
    >
  >



export type PlanFeatureWhereInput = {
  AND?: Prisma.PlanFeatureWhereInput | Prisma.PlanFeatureWhereInput[]
  OR?: Prisma.PlanFeatureWhereInput[]
  NOT?: Prisma.PlanFeatureWhereInput | Prisma.PlanFeatureWhereInput[]
  id?: Prisma.StringFilter<"PlanFeature"> | string
  planId?: Prisma.StringFilter<"PlanFeature"> | string
  key?: Prisma.StringFilter<"PlanFeature"> | string
  enabled?: Prisma.BoolFilter<"PlanFeature"> | boolean
  limit?: Prisma.IntNullableFilter<"PlanFeature"> | number | null
  plan?: Prisma.XOR<Prisma.PlanScalarRelationFilter, Prisma.PlanWhereInput>
}

export type PlanFeatureOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  planId?: Prisma.SortOrder
  key?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  limit?: Prisma.SortOrderInput | Prisma.SortOrder
  plan?: Prisma.PlanOrderByWithRelationInput
}

export type PlanFeatureWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  planId_key?: Prisma.PlanFeaturePlanIdKeyCompoundUniqueInput
  AND?: Prisma.PlanFeatureWhereInput | Prisma.PlanFeatureWhereInput[]
  OR?: Prisma.PlanFeatureWhereInput[]
  NOT?: Prisma.PlanFeatureWhereInput | Prisma.PlanFeatureWhereInput[]
  planId?: Prisma.StringFilter<"PlanFeature"> | string
  key?: Prisma.StringFilter<"PlanFeature"> | string
  enabled?: Prisma.BoolFilter<"PlanFeature"> | boolean
  limit?: Prisma.IntNullableFilter<"PlanFeature"> | number | null
  plan?: Prisma.XOR<Prisma.PlanScalarRelationFilter, Prisma.PlanWhereInput>
}, "id" | "planId_key">

export type PlanFeatureOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  planId?: Prisma.SortOrder
  key?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  limit?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.PlanFeatureCountOrderByAggregateInput
  _avg?: Prisma.PlanFeatureAvgOrderByAggregateInput
  _max?: Prisma.PlanFeatureMaxOrderByAggregateInput
  _min?: Prisma.PlanFeatureMinOrderByAggregateInput
  _sum?: Prisma.PlanFeatureSumOrderByAggregateInput
}

export type PlanFeatureScalarWhereWithAggregatesInput = {
  AND?: Prisma.PlanFeatureScalarWhereWithAggregatesInput | Prisma.PlanFeatureScalarWhereWithAggregatesInput[]
  OR?: Prisma.PlanFeatureScalarWhereWithAggregatesInput[]
  NOT?: Prisma.PlanFeatureScalarWhereWithAggregatesInput | Prisma.PlanFeatureScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"PlanFeature"> | string
  planId?: Prisma.StringWithAggregatesFilter<"PlanFeature"> | string
  key?: Prisma.StringWithAggregatesFilter<"PlanFeature"> | string
  enabled?: Prisma.BoolWithAggregatesFilter<"PlanFeature"> | boolean
  limit?: Prisma.IntNullableWithAggregatesFilter<"PlanFeature"> | number | null
}

export type PlanFeatureCreateInput = {
  id?: string
  key: string
  enabled?: boolean
  limit?: number | null
  plan: Prisma.PlanCreateNestedOneWithoutFeaturesInput
}

export type PlanFeatureUncheckedCreateInput = {
  id?: string
  planId: string
  key: string
  enabled?: boolean
  limit?: number | null
}

export type PlanFeatureUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  key?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  limit?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  plan?: Prisma.PlanUpdateOneRequiredWithoutFeaturesNestedInput
}

export type PlanFeatureUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  planId?: Prisma.StringFieldUpdateOperationsInput | string
  key?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  limit?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type PlanFeatureCreateManyInput = {
  id?: string
  planId: string
  key: string
  enabled?: boolean
  limit?: number | null
}

export type PlanFeatureUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  key?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  limit?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type PlanFeatureUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  planId?: Prisma.StringFieldUpdateOperationsInput | string
  key?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  limit?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type PlanFeatureListRelationFilter = {
  every?: Prisma.PlanFeatureWhereInput
  some?: Prisma.PlanFeatureWhereInput
  none?: Prisma.PlanFeatureWhereInput
}

export type PlanFeatureOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type PlanFeaturePlanIdKeyCompoundUniqueInput = {
  planId: string
  key: string
}

export type PlanFeatureCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  planId?: Prisma.SortOrder
  key?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  limit?: Prisma.SortOrder
}

export type PlanFeatureAvgOrderByAggregateInput = {
  limit?: Prisma.SortOrder
}

export type PlanFeatureMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  planId?: Prisma.SortOrder
  key?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  limit?: Prisma.SortOrder
}

export type PlanFeatureMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  planId?: Prisma.SortOrder
  key?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  limit?: Prisma.SortOrder
}

export type PlanFeatureSumOrderByAggregateInput = {
  limit?: Prisma.SortOrder
}

export type PlanFeatureCreateNestedManyWithoutPlanInput = {
  create?: Prisma.XOR<Prisma.PlanFeatureCreateWithoutPlanInput, Prisma.PlanFeatureUncheckedCreateWithoutPlanInput> | Prisma.PlanFeatureCreateWithoutPlanInput[] | Prisma.PlanFeatureUncheckedCreateWithoutPlanInput[]
  connectOrCreate?: Prisma.PlanFeatureCreateOrConnectWithoutPlanInput | Prisma.PlanFeatureCreateOrConnectWithoutPlanInput[]
  createMany?: Prisma.PlanFeatureCreateManyPlanInputEnvelope
  connect?: Prisma.PlanFeatureWhereUniqueInput | Prisma.PlanFeatureWhereUniqueInput[]
}

export type PlanFeatureUncheckedCreateNestedManyWithoutPlanInput = {
  create?: Prisma.XOR<Prisma.PlanFeatureCreateWithoutPlanInput, Prisma.PlanFeatureUncheckedCreateWithoutPlanInput> | Prisma.PlanFeatureCreateWithoutPlanInput[] | Prisma.PlanFeatureUncheckedCreateWithoutPlanInput[]
  connectOrCreate?: Prisma.PlanFeatureCreateOrConnectWithoutPlanInput | Prisma.PlanFeatureCreateOrConnectWithoutPlanInput[]
  createMany?: Prisma.PlanFeatureCreateManyPlanInputEnvelope
  connect?: Prisma.PlanFeatureWhereUniqueInput | Prisma.PlanFeatureWhereUniqueInput[]
}

export type PlanFeatureUpdateManyWithoutPlanNestedInput = {
  create?: Prisma.XOR<Prisma.PlanFeatureCreateWithoutPlanInput, Prisma.PlanFeatureUncheckedCreateWithoutPlanInput> | Prisma.PlanFeatureCreateWithoutPlanInput[] | Prisma.PlanFeatureUncheckedCreateWithoutPlanInput[]
  connectOrCreate?: Prisma.PlanFeatureCreateOrConnectWithoutPlanInput | Prisma.PlanFeatureCreateOrConnectWithoutPlanInput[]
  upsert?: Prisma.PlanFeatureUpsertWithWhereUniqueWithoutPlanInput | Prisma.PlanFeatureUpsertWithWhereUniqueWithoutPlanInput[]
  createMany?: Prisma.PlanFeatureCreateManyPlanInputEnvelope
  set?: Prisma.PlanFeatureWhereUniqueInput | Prisma.PlanFeatureWhereUniqueInput[]
  disconnect?: Prisma.PlanFeatureWhereUniqueInput | Prisma.PlanFeatureWhereUniqueInput[]
  delete?: Prisma.PlanFeatureWhereUniqueInput | Prisma.PlanFeatureWhereUniqueInput[]
  connect?: Prisma.PlanFeatureWhereUniqueInput | Prisma.PlanFeatureWhereUniqueInput[]
  update?: Prisma.PlanFeatureUpdateWithWhereUniqueWithoutPlanInput | Prisma.PlanFeatureUpdateWithWhereUniqueWithoutPlanInput[]
  updateMany?: Prisma.PlanFeatureUpdateManyWithWhereWithoutPlanInput | Prisma.PlanFeatureUpdateManyWithWhereWithoutPlanInput[]
  deleteMany?: Prisma.PlanFeatureScalarWhereInput | Prisma.PlanFeatureScalarWhereInput[]
}

export type PlanFeatureUncheckedUpdateManyWithoutPlanNestedInput = {
  create?: Prisma.XOR<Prisma.PlanFeatureCreateWithoutPlanInput, Prisma.PlanFeatureUncheckedCreateWithoutPlanInput> | Prisma.PlanFeatureCreateWithoutPlanInput[] | Prisma.PlanFeatureUncheckedCreateWithoutPlanInput[]
  connectOrCreate?: Prisma.PlanFeatureCreateOrConnectWithoutPlanInput | Prisma.PlanFeatureCreateOrConnectWithoutPlanInput[]
  upsert?: Prisma.PlanFeatureUpsertWithWhereUniqueWithoutPlanInput | Prisma.PlanFeatureUpsertWithWhereUniqueWithoutPlanInput[]
  createMany?: Prisma.PlanFeatureCreateManyPlanInputEnvelope
  set?: Prisma.PlanFeatureWhereUniqueInput | Prisma.PlanFeatureWhereUniqueInput[]
  disconnect?: Prisma.PlanFeatureWhereUniqueInput | Prisma.PlanFeatureWhereUniqueInput[]
  delete?: Prisma.PlanFeatureWhereUniqueInput | Prisma.PlanFeatureWhereUniqueInput[]
  connect?: Prisma.PlanFeatureWhereUniqueInput | Prisma.PlanFeatureWhereUniqueInput[]
  update?: Prisma.PlanFeatureUpdateWithWhereUniqueWithoutPlanInput | Prisma.PlanFeatureUpdateWithWhereUniqueWithoutPlanInput[]
  updateMany?: Prisma.PlanFeatureUpdateManyWithWhereWithoutPlanInput | Prisma.PlanFeatureUpdateManyWithWhereWithoutPlanInput[]
  deleteMany?: Prisma.PlanFeatureScalarWhereInput | Prisma.PlanFeatureScalarWhereInput[]
}

export type NullableIntFieldUpdateOperationsInput = {
  set?: number | null
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type PlanFeatureCreateWithoutPlanInput = {
  id?: string
  key: string
  enabled?: boolean
  limit?: number | null
}

export type PlanFeatureUncheckedCreateWithoutPlanInput = {
  id?: string
  key: string
  enabled?: boolean
  limit?: number | null
}

export type PlanFeatureCreateOrConnectWithoutPlanInput = {
  where: Prisma.PlanFeatureWhereUniqueInput
  create: Prisma.XOR<Prisma.PlanFeatureCreateWithoutPlanInput, Prisma.PlanFeatureUncheckedCreateWithoutPlanInput>
}

export type PlanFeatureCreateManyPlanInputEnvelope = {
  data: Prisma.PlanFeatureCreateManyPlanInput | Prisma.PlanFeatureCreateManyPlanInput[]
  skipDuplicates?: boolean
}

export type PlanFeatureUpsertWithWhereUniqueWithoutPlanInput = {
  where: Prisma.PlanFeatureWhereUniqueInput
  update: Prisma.XOR<Prisma.PlanFeatureUpdateWithoutPlanInput, Prisma.PlanFeatureUncheckedUpdateWithoutPlanInput>
  create: Prisma.XOR<Prisma.PlanFeatureCreateWithoutPlanInput, Prisma.PlanFeatureUncheckedCreateWithoutPlanInput>
}

export type PlanFeatureUpdateWithWhereUniqueWithoutPlanInput = {
  where: Prisma.PlanFeatureWhereUniqueInput
  data: Prisma.XOR<Prisma.PlanFeatureUpdateWithoutPlanInput, Prisma.PlanFeatureUncheckedUpdateWithoutPlanInput>
}

export type PlanFeatureUpdateManyWithWhereWithoutPlanInput = {
  where: Prisma.PlanFeatureScalarWhereInput
  data: Prisma.XOR<Prisma.PlanFeatureUpdateManyMutationInput, Prisma.PlanFeatureUncheckedUpdateManyWithoutPlanInput>
}

export type PlanFeatureScalarWhereInput = {
  AND?: Prisma.PlanFeatureScalarWhereInput | Prisma.PlanFeatureScalarWhereInput[]
  OR?: Prisma.PlanFeatureScalarWhereInput[]
  NOT?: Prisma.PlanFeatureScalarWhereInput | Prisma.PlanFeatureScalarWhereInput[]
  id?: Prisma.StringFilter<"PlanFeature"> | string
  planId?: Prisma.StringFilter<"PlanFeature"> | string
  key?: Prisma.StringFilter<"PlanFeature"> | string
  enabled?: Prisma.BoolFilter<"PlanFeature"> | boolean
  limit?: Prisma.IntNullableFilter<"PlanFeature"> | number | null
}

export type PlanFeatureCreateManyPlanInput = {
  id?: string
  key: string
  enabled?: boolean
  limit?: number | null
}

export type PlanFeatureUpdateWithoutPlanInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  key?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  limit?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type PlanFeatureUncheckedUpdateWithoutPlanInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  key?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  limit?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type PlanFeatureUncheckedUpdateManyWithoutPlanInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  key?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  limit?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}



export type PlanFeatureSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  planId?: boolean
  key?: boolean
  enabled?: boolean
  limit?: boolean
  plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
}, ExtArgs["result"]["planFeature"]>

export type PlanFeatureSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  planId?: boolean
  key?: boolean
  enabled?: boolean
  limit?: boolean
  plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
}, ExtArgs["result"]["planFeature"]>

export type PlanFeatureSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  planId?: boolean
  key?: boolean
  enabled?: boolean
  limit?: boolean
  plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
}, ExtArgs["result"]["planFeature"]>

export type PlanFeatureSelectScalar = {
  id?: boolean
  planId?: boolean
  key?: boolean
  enabled?: boolean
  limit?: boolean
}

export type PlanFeatureOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "planId" | "key" | "enabled" | "limit", ExtArgs["result"]["planFeature"]>
export type PlanFeatureInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
}
export type PlanFeatureIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
}
export type PlanFeatureIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
}

export type $PlanFeaturePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "PlanFeature"
  objects: {
    plan: Prisma.$PlanPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    planId: string
    key: string
    enabled: boolean
    limit: number | null
  }, ExtArgs["result"]["planFeature"]>
  composites: {}
}

export type PlanFeatureGetPayload<S extends boolean | null | undefined | PlanFeatureDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PlanFeaturePayload, S>

export type PlanFeatureCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<PlanFeatureFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: PlanFeatureCountAggregateInputType | true
  }

export interface PlanFeatureDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PlanFeature'], meta: { name: 'PlanFeature' } }
  /**
   * Find zero or one PlanFeature that matches the filter.
   * @param {PlanFeatureFindUniqueArgs} args - Arguments to find a PlanFeature
   * @example
   * // Get one PlanFeature
   * const planFeature = await prisma.planFeature.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends PlanFeatureFindUniqueArgs>(args: Prisma.SelectSubset<T, PlanFeatureFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PlanFeatureClient<runtime.Types.Result.GetResult<Prisma.$PlanFeaturePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one PlanFeature that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {PlanFeatureFindUniqueOrThrowArgs} args - Arguments to find a PlanFeature
   * @example
   * // Get one PlanFeature
   * const planFeature = await prisma.planFeature.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends PlanFeatureFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PlanFeatureFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PlanFeatureClient<runtime.Types.Result.GetResult<Prisma.$PlanFeaturePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first PlanFeature 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 {PlanFeatureFindFirstArgs} args - Arguments to find a PlanFeature
   * @example
   * // Get one PlanFeature
   * const planFeature = await prisma.planFeature.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends PlanFeatureFindFirstArgs>(args?: Prisma.SelectSubset<T, PlanFeatureFindFirstArgs<ExtArgs>>): Prisma.Prisma__PlanFeatureClient<runtime.Types.Result.GetResult<Prisma.$PlanFeaturePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first PlanFeature 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 {PlanFeatureFindFirstOrThrowArgs} args - Arguments to find a PlanFeature
   * @example
   * // Get one PlanFeature
   * const planFeature = await prisma.planFeature.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends PlanFeatureFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PlanFeatureFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PlanFeatureClient<runtime.Types.Result.GetResult<Prisma.$PlanFeaturePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more PlanFeatures 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 {PlanFeatureFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all PlanFeatures
   * const planFeatures = await prisma.planFeature.findMany()
   * 
   * // Get first 10 PlanFeatures
   * const planFeatures = await prisma.planFeature.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const planFeatureWithIdOnly = await prisma.planFeature.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends PlanFeatureFindManyArgs>(args?: Prisma.SelectSubset<T, PlanFeatureFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlanFeaturePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a PlanFeature.
   * @param {PlanFeatureCreateArgs} args - Arguments to create a PlanFeature.
   * @example
   * // Create one PlanFeature
   * const PlanFeature = await prisma.planFeature.create({
   *   data: {
   *     // ... data to create a PlanFeature
   *   }
   * })
   * 
   */
  create<T extends PlanFeatureCreateArgs>(args: Prisma.SelectSubset<T, PlanFeatureCreateArgs<ExtArgs>>): Prisma.Prisma__PlanFeatureClient<runtime.Types.Result.GetResult<Prisma.$PlanFeaturePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many PlanFeatures.
   * @param {PlanFeatureCreateManyArgs} args - Arguments to create many PlanFeatures.
   * @example
   * // Create many PlanFeatures
   * const planFeature = await prisma.planFeature.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends PlanFeatureCreateManyArgs>(args?: Prisma.SelectSubset<T, PlanFeatureCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many PlanFeatures and returns the data saved in the database.
   * @param {PlanFeatureCreateManyAndReturnArgs} args - Arguments to create many PlanFeatures.
   * @example
   * // Create many PlanFeatures
   * const planFeature = await prisma.planFeature.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many PlanFeatures and only return the `id`
   * const planFeatureWithIdOnly = await prisma.planFeature.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 PlanFeatureCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PlanFeatureCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlanFeaturePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a PlanFeature.
   * @param {PlanFeatureDeleteArgs} args - Arguments to delete one PlanFeature.
   * @example
   * // Delete one PlanFeature
   * const PlanFeature = await prisma.planFeature.delete({
   *   where: {
   *     // ... filter to delete one PlanFeature
   *   }
   * })
   * 
   */
  delete<T extends PlanFeatureDeleteArgs>(args: Prisma.SelectSubset<T, PlanFeatureDeleteArgs<ExtArgs>>): Prisma.Prisma__PlanFeatureClient<runtime.Types.Result.GetResult<Prisma.$PlanFeaturePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one PlanFeature.
   * @param {PlanFeatureUpdateArgs} args - Arguments to update one PlanFeature.
   * @example
   * // Update one PlanFeature
   * const planFeature = await prisma.planFeature.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends PlanFeatureUpdateArgs>(args: Prisma.SelectSubset<T, PlanFeatureUpdateArgs<ExtArgs>>): Prisma.Prisma__PlanFeatureClient<runtime.Types.Result.GetResult<Prisma.$PlanFeaturePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more PlanFeatures.
   * @param {PlanFeatureDeleteManyArgs} args - Arguments to filter PlanFeatures to delete.
   * @example
   * // Delete a few PlanFeatures
   * const { count } = await prisma.planFeature.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends PlanFeatureDeleteManyArgs>(args?: Prisma.SelectSubset<T, PlanFeatureDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more PlanFeatures.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {PlanFeatureUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many PlanFeatures
   * const planFeature = await prisma.planFeature.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends PlanFeatureUpdateManyArgs>(args: Prisma.SelectSubset<T, PlanFeatureUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more PlanFeatures and returns the data updated in the database.
   * @param {PlanFeatureUpdateManyAndReturnArgs} args - Arguments to update many PlanFeatures.
   * @example
   * // Update many PlanFeatures
   * const planFeature = await prisma.planFeature.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more PlanFeatures and only return the `id`
   * const planFeatureWithIdOnly = await prisma.planFeature.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 PlanFeatureUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PlanFeatureUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlanFeaturePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one PlanFeature.
   * @param {PlanFeatureUpsertArgs} args - Arguments to update or create a PlanFeature.
   * @example
   * // Update or create a PlanFeature
   * const planFeature = await prisma.planFeature.upsert({
   *   create: {
   *     // ... data to create a PlanFeature
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the PlanFeature we want to update
   *   }
   * })
   */
  upsert<T extends PlanFeatureUpsertArgs>(args: Prisma.SelectSubset<T, PlanFeatureUpsertArgs<ExtArgs>>): Prisma.Prisma__PlanFeatureClient<runtime.Types.Result.GetResult<Prisma.$PlanFeaturePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of PlanFeatures.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {PlanFeatureCountArgs} args - Arguments to filter PlanFeatures to count.
   * @example
   * // Count the number of PlanFeatures
   * const count = await prisma.planFeature.count({
   *   where: {
   *     // ... the filter for the PlanFeatures we want to count
   *   }
   * })
  **/
  count<T extends PlanFeatureCountArgs>(
    args?: Prisma.Subset<T, PlanFeatureCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], PlanFeatureCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a PlanFeature.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {PlanFeatureAggregateArgs} 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 PlanFeatureAggregateArgs>(args: Prisma.Subset<T, PlanFeatureAggregateArgs>): Prisma.PrismaPromise<GetPlanFeatureAggregateType<T>>

  /**
   * Group by PlanFeature.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {PlanFeatureGroupByArgs} 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 PlanFeatureGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: PlanFeatureGroupByArgs['orderBy'] }
      : { orderBy?: PlanFeatureGroupByArgs['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, PlanFeatureGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPlanFeatureGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the PlanFeature model
 */
readonly fields: PlanFeatureFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for PlanFeature.
 * 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__PlanFeatureClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  plan<T extends Prisma.PlanDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PlanDefaultArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  /**
   * Attaches callbacks for the resolution and/or rejection of the Promise.
   * @param onfulfilled The callback to execute when the Promise is resolved.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of which ever callback is executed.
   */
  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * Attaches a callback for only the rejection of the Promise.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of the callback.
   */
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
   * resolved value cannot be modified from the callback.
   * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
   * @returns A Promise for the completion of the callback.
   */
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}




/**
 * Fields of the PlanFeature model
 */
export interface PlanFeatureFieldRefs {
  readonly id: Prisma.FieldRef<"PlanFeature", 'String'>
  readonly planId: Prisma.FieldRef<"PlanFeature", 'String'>
  readonly key: Prisma.FieldRef<"PlanFeature", 'String'>
  readonly enabled: Prisma.FieldRef<"PlanFeature", 'Boolean'>
  readonly limit: Prisma.FieldRef<"PlanFeature", 'Int'>
}
    

// Custom InputTypes
/**
 * PlanFeature findUnique
 */
export type PlanFeatureFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlanFeature
   */
  select?: Prisma.PlanFeatureSelect<ExtArgs> | null
  /**
   * Omit specific fields from the PlanFeature
   */
  omit?: Prisma.PlanFeatureOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanFeatureInclude<ExtArgs> | null
  /**
   * Filter, which PlanFeature to fetch.
   */
  where: Prisma.PlanFeatureWhereUniqueInput
}

/**
 * PlanFeature findUniqueOrThrow
 */
export type PlanFeatureFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlanFeature
   */
  select?: Prisma.PlanFeatureSelect<ExtArgs> | null
  /**
   * Omit specific fields from the PlanFeature
   */
  omit?: Prisma.PlanFeatureOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanFeatureInclude<ExtArgs> | null
  /**
   * Filter, which PlanFeature to fetch.
   */
  where: Prisma.PlanFeatureWhereUniqueInput
}

/**
 * PlanFeature findFirst
 */
export type PlanFeatureFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlanFeature
   */
  select?: Prisma.PlanFeatureSelect<ExtArgs> | null
  /**
   * Omit specific fields from the PlanFeature
   */
  omit?: Prisma.PlanFeatureOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanFeatureInclude<ExtArgs> | null
  /**
   * Filter, which PlanFeature to fetch.
   */
  where?: Prisma.PlanFeatureWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of PlanFeatures to fetch.
   */
  orderBy?: Prisma.PlanFeatureOrderByWithRelationInput | Prisma.PlanFeatureOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for PlanFeatures.
   */
  cursor?: Prisma.PlanFeatureWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` PlanFeatures 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` PlanFeatures.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of PlanFeatures.
   */
  distinct?: Prisma.PlanFeatureScalarFieldEnum | Prisma.PlanFeatureScalarFieldEnum[]
}

/**
 * PlanFeature findFirstOrThrow
 */
export type PlanFeatureFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlanFeature
   */
  select?: Prisma.PlanFeatureSelect<ExtArgs> | null
  /**
   * Omit specific fields from the PlanFeature
   */
  omit?: Prisma.PlanFeatureOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanFeatureInclude<ExtArgs> | null
  /**
   * Filter, which PlanFeature to fetch.
   */
  where?: Prisma.PlanFeatureWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of PlanFeatures to fetch.
   */
  orderBy?: Prisma.PlanFeatureOrderByWithRelationInput | Prisma.PlanFeatureOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for PlanFeatures.
   */
  cursor?: Prisma.PlanFeatureWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` PlanFeatures 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` PlanFeatures.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of PlanFeatures.
   */
  distinct?: Prisma.PlanFeatureScalarFieldEnum | Prisma.PlanFeatureScalarFieldEnum[]
}

/**
 * PlanFeature findMany
 */
export type PlanFeatureFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlanFeature
   */
  select?: Prisma.PlanFeatureSelect<ExtArgs> | null
  /**
   * Omit specific fields from the PlanFeature
   */
  omit?: Prisma.PlanFeatureOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanFeatureInclude<ExtArgs> | null
  /**
   * Filter, which PlanFeatures to fetch.
   */
  where?: Prisma.PlanFeatureWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of PlanFeatures to fetch.
   */
  orderBy?: Prisma.PlanFeatureOrderByWithRelationInput | Prisma.PlanFeatureOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing PlanFeatures.
   */
  cursor?: Prisma.PlanFeatureWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` PlanFeatures 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` PlanFeatures.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of PlanFeatures.
   */
  distinct?: Prisma.PlanFeatureScalarFieldEnum | Prisma.PlanFeatureScalarFieldEnum[]
}

/**
 * PlanFeature create
 */
export type PlanFeatureCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlanFeature
   */
  select?: Prisma.PlanFeatureSelect<ExtArgs> | null
  /**
   * Omit specific fields from the PlanFeature
   */
  omit?: Prisma.PlanFeatureOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanFeatureInclude<ExtArgs> | null
  /**
   * The data needed to create a PlanFeature.
   */
  data: Prisma.XOR<Prisma.PlanFeatureCreateInput, Prisma.PlanFeatureUncheckedCreateInput>
}

/**
 * PlanFeature createMany
 */
export type PlanFeatureCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many PlanFeatures.
   */
  data: Prisma.PlanFeatureCreateManyInput | Prisma.PlanFeatureCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * PlanFeature createManyAndReturn
 */
export type PlanFeatureCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlanFeature
   */
  select?: Prisma.PlanFeatureSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the PlanFeature
   */
  omit?: Prisma.PlanFeatureOmit<ExtArgs> | null
  /**
   * The data used to create many PlanFeatures.
   */
  data: Prisma.PlanFeatureCreateManyInput | Prisma.PlanFeatureCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanFeatureIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * PlanFeature update
 */
export type PlanFeatureUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlanFeature
   */
  select?: Prisma.PlanFeatureSelect<ExtArgs> | null
  /**
   * Omit specific fields from the PlanFeature
   */
  omit?: Prisma.PlanFeatureOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanFeatureInclude<ExtArgs> | null
  /**
   * The data needed to update a PlanFeature.
   */
  data: Prisma.XOR<Prisma.PlanFeatureUpdateInput, Prisma.PlanFeatureUncheckedUpdateInput>
  /**
   * Choose, which PlanFeature to update.
   */
  where: Prisma.PlanFeatureWhereUniqueInput
}

/**
 * PlanFeature updateMany
 */
export type PlanFeatureUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update PlanFeatures.
   */
  data: Prisma.XOR<Prisma.PlanFeatureUpdateManyMutationInput, Prisma.PlanFeatureUncheckedUpdateManyInput>
  /**
   * Filter which PlanFeatures to update
   */
  where?: Prisma.PlanFeatureWhereInput
  /**
   * Limit how many PlanFeatures to update.
   */
  limit?: number
}

/**
 * PlanFeature updateManyAndReturn
 */
export type PlanFeatureUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlanFeature
   */
  select?: Prisma.PlanFeatureSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the PlanFeature
   */
  omit?: Prisma.PlanFeatureOmit<ExtArgs> | null
  /**
   * The data used to update PlanFeatures.
   */
  data: Prisma.XOR<Prisma.PlanFeatureUpdateManyMutationInput, Prisma.PlanFeatureUncheckedUpdateManyInput>
  /**
   * Filter which PlanFeatures to update
   */
  where?: Prisma.PlanFeatureWhereInput
  /**
   * Limit how many PlanFeatures to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanFeatureIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * PlanFeature upsert
 */
export type PlanFeatureUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlanFeature
   */
  select?: Prisma.PlanFeatureSelect<ExtArgs> | null
  /**
   * Omit specific fields from the PlanFeature
   */
  omit?: Prisma.PlanFeatureOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanFeatureInclude<ExtArgs> | null
  /**
   * The filter to search for the PlanFeature to update in case it exists.
   */
  where: Prisma.PlanFeatureWhereUniqueInput
  /**
   * In case the PlanFeature found by the `where` argument doesn't exist, create a new PlanFeature with this data.
   */
  create: Prisma.XOR<Prisma.PlanFeatureCreateInput, Prisma.PlanFeatureUncheckedCreateInput>
  /**
   * In case the PlanFeature was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.PlanFeatureUpdateInput, Prisma.PlanFeatureUncheckedUpdateInput>
}

/**
 * PlanFeature delete
 */
export type PlanFeatureDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlanFeature
   */
  select?: Prisma.PlanFeatureSelect<ExtArgs> | null
  /**
   * Omit specific fields from the PlanFeature
   */
  omit?: Prisma.PlanFeatureOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanFeatureInclude<ExtArgs> | null
  /**
   * Filter which PlanFeature to delete.
   */
  where: Prisma.PlanFeatureWhereUniqueInput
}

/**
 * PlanFeature deleteMany
 */
export type PlanFeatureDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which PlanFeatures to delete
   */
  where?: Prisma.PlanFeatureWhereInput
  /**
   * Limit how many PlanFeatures to delete.
   */
  limit?: number
}

/**
 * PlanFeature without action
 */
export type PlanFeatureDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlanFeature
   */
  select?: Prisma.PlanFeatureSelect<ExtArgs> | null
  /**
   * Omit specific fields from the PlanFeature
   */
  omit?: Prisma.PlanFeatureOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanFeatureInclude<ExtArgs> | null
}
