/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `FeatureFlag` 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 FeatureFlag * */ export type FeatureFlagModel = runtime.Types.Result.DefaultSelection export type AggregateFeatureFlag = { _count: FeatureFlagCountAggregateOutputType | null _min: FeatureFlagMinAggregateOutputType | null _max: FeatureFlagMaxAggregateOutputType | null } export type FeatureFlagMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null key: string | null scope: string | null tenantId: string | null userId: string | null name: string | null description: string | null enabled: boolean | null enabledFrom: Date | null enabledUntil: Date | null parentFlagId: string | null } export type FeatureFlagMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null key: string | null scope: string | null tenantId: string | null userId: string | null name: string | null description: string | null enabled: boolean | null enabledFrom: Date | null enabledUntil: Date | null parentFlagId: string | null } export type FeatureFlagCountAggregateOutputType = { id: number createdAt: number updatedAt: number key: number scope: number tenantId: number userId: number name: number description: number enabled: number rules: number variants: number enabledFrom: number enabledUntil: number parentFlagId: number _all: number } export type FeatureFlagMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true key?: true scope?: true tenantId?: true userId?: true name?: true description?: true enabled?: true enabledFrom?: true enabledUntil?: true parentFlagId?: true } export type FeatureFlagMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true key?: true scope?: true tenantId?: true userId?: true name?: true description?: true enabled?: true enabledFrom?: true enabledUntil?: true parentFlagId?: true } export type FeatureFlagCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true key?: true scope?: true tenantId?: true userId?: true name?: true description?: true enabled?: true rules?: true variants?: true enabledFrom?: true enabledUntil?: true parentFlagId?: true _all?: true } export type FeatureFlagAggregateArgs = { /** * Filter which FeatureFlag to aggregate. */ where?: Prisma.FeatureFlagWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FeatureFlags to fetch. */ orderBy?: Prisma.FeatureFlagOrderByWithRelationInput | Prisma.FeatureFlagOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.FeatureFlagWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FeatureFlags 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` FeatureFlags. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned FeatureFlags **/ _count?: true | FeatureFlagCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: FeatureFlagMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: FeatureFlagMaxAggregateInputType } export type GetFeatureFlagAggregateType = { [P in keyof T & keyof AggregateFeatureFlag]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type FeatureFlagGroupByArgs = { where?: Prisma.FeatureFlagWhereInput orderBy?: Prisma.FeatureFlagOrderByWithAggregationInput | Prisma.FeatureFlagOrderByWithAggregationInput[] by: Prisma.FeatureFlagScalarFieldEnum[] | Prisma.FeatureFlagScalarFieldEnum having?: Prisma.FeatureFlagScalarWhereWithAggregatesInput take?: number skip?: number _count?: FeatureFlagCountAggregateInputType | true _min?: FeatureFlagMinAggregateInputType _max?: FeatureFlagMaxAggregateInputType } export type FeatureFlagGroupByOutputType = { id: string createdAt: Date updatedAt: Date key: string | null scope: string tenantId: string | null userId: string | null name: string description: string enabled: boolean rules: runtime.JsonValue | null variants: runtime.JsonValue[] enabledFrom: Date | null enabledUntil: Date | null parentFlagId: string | null _count: FeatureFlagCountAggregateOutputType | null _min: FeatureFlagMinAggregateOutputType | null _max: FeatureFlagMaxAggregateOutputType | null } export type GetFeatureFlagGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof FeatureFlagGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type FeatureFlagWhereInput = { AND?: Prisma.FeatureFlagWhereInput | Prisma.FeatureFlagWhereInput[] OR?: Prisma.FeatureFlagWhereInput[] NOT?: Prisma.FeatureFlagWhereInput | Prisma.FeatureFlagWhereInput[] id?: Prisma.StringFilter<"FeatureFlag"> | string createdAt?: Prisma.DateTimeFilter<"FeatureFlag"> | Date | string updatedAt?: Prisma.DateTimeFilter<"FeatureFlag"> | Date | string key?: Prisma.StringNullableFilter<"FeatureFlag"> | string | null scope?: Prisma.StringFilter<"FeatureFlag"> | string tenantId?: Prisma.StringNullableFilter<"FeatureFlag"> | string | null userId?: Prisma.StringNullableFilter<"FeatureFlag"> | string | null name?: Prisma.StringFilter<"FeatureFlag"> | string description?: Prisma.StringFilter<"FeatureFlag"> | string enabled?: Prisma.BoolFilter<"FeatureFlag"> | boolean rules?: Prisma.JsonNullableFilter<"FeatureFlag"> variants?: Prisma.JsonNullableListFilter<"FeatureFlag"> enabledFrom?: Prisma.DateTimeNullableFilter<"FeatureFlag"> | Date | string | null enabledUntil?: Prisma.DateTimeNullableFilter<"FeatureFlag"> | Date | string | null parentFlagId?: Prisma.StringNullableFilter<"FeatureFlag"> | string | null parentFlag?: Prisma.XOR | null childFlags?: Prisma.FeatureFlagListRelationFilter audits?: Prisma.FeatureFlagAuditListRelationFilter events?: Prisma.AnalyticsEventListRelationFilter filters?: Prisma.FeatureFlagFilterListRelationFilter } export type FeatureFlagOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder key?: Prisma.SortOrderInput | Prisma.SortOrder scope?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder enabled?: Prisma.SortOrder rules?: Prisma.SortOrderInput | Prisma.SortOrder variants?: Prisma.SortOrder enabledFrom?: Prisma.SortOrderInput | Prisma.SortOrder enabledUntil?: Prisma.SortOrderInput | Prisma.SortOrder parentFlagId?: Prisma.SortOrderInput | Prisma.SortOrder parentFlag?: Prisma.FeatureFlagOrderByWithRelationInput childFlags?: Prisma.FeatureFlagOrderByRelationAggregateInput audits?: Prisma.FeatureFlagAuditOrderByRelationAggregateInput events?: Prisma.AnalyticsEventOrderByRelationAggregateInput filters?: Prisma.FeatureFlagFilterOrderByRelationAggregateInput } export type FeatureFlagWhereUniqueInput = Prisma.AtLeast<{ id?: string name_description?: Prisma.FeatureFlagNameDescriptionCompoundUniqueInput AND?: Prisma.FeatureFlagWhereInput | Prisma.FeatureFlagWhereInput[] OR?: Prisma.FeatureFlagWhereInput[] NOT?: Prisma.FeatureFlagWhereInput | Prisma.FeatureFlagWhereInput[] createdAt?: Prisma.DateTimeFilter<"FeatureFlag"> | Date | string updatedAt?: Prisma.DateTimeFilter<"FeatureFlag"> | Date | string key?: Prisma.StringNullableFilter<"FeatureFlag"> | string | null scope?: Prisma.StringFilter<"FeatureFlag"> | string tenantId?: Prisma.StringNullableFilter<"FeatureFlag"> | string | null userId?: Prisma.StringNullableFilter<"FeatureFlag"> | string | null name?: Prisma.StringFilter<"FeatureFlag"> | string description?: Prisma.StringFilter<"FeatureFlag"> | string enabled?: Prisma.BoolFilter<"FeatureFlag"> | boolean rules?: Prisma.JsonNullableFilter<"FeatureFlag"> variants?: Prisma.JsonNullableListFilter<"FeatureFlag"> enabledFrom?: Prisma.DateTimeNullableFilter<"FeatureFlag"> | Date | string | null enabledUntil?: Prisma.DateTimeNullableFilter<"FeatureFlag"> | Date | string | null parentFlagId?: Prisma.StringNullableFilter<"FeatureFlag"> | string | null parentFlag?: Prisma.XOR | null childFlags?: Prisma.FeatureFlagListRelationFilter audits?: Prisma.FeatureFlagAuditListRelationFilter events?: Prisma.AnalyticsEventListRelationFilter filters?: Prisma.FeatureFlagFilterListRelationFilter }, "id" | "name_description"> export type FeatureFlagOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder key?: Prisma.SortOrderInput | Prisma.SortOrder scope?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder enabled?: Prisma.SortOrder rules?: Prisma.SortOrderInput | Prisma.SortOrder variants?: Prisma.SortOrder enabledFrom?: Prisma.SortOrderInput | Prisma.SortOrder enabledUntil?: Prisma.SortOrderInput | Prisma.SortOrder parentFlagId?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.FeatureFlagCountOrderByAggregateInput _max?: Prisma.FeatureFlagMaxOrderByAggregateInput _min?: Prisma.FeatureFlagMinOrderByAggregateInput } export type FeatureFlagScalarWhereWithAggregatesInput = { AND?: Prisma.FeatureFlagScalarWhereWithAggregatesInput | Prisma.FeatureFlagScalarWhereWithAggregatesInput[] OR?: Prisma.FeatureFlagScalarWhereWithAggregatesInput[] NOT?: Prisma.FeatureFlagScalarWhereWithAggregatesInput | Prisma.FeatureFlagScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"FeatureFlag"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"FeatureFlag"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"FeatureFlag"> | Date | string key?: Prisma.StringNullableWithAggregatesFilter<"FeatureFlag"> | string | null scope?: Prisma.StringWithAggregatesFilter<"FeatureFlag"> | string tenantId?: Prisma.StringNullableWithAggregatesFilter<"FeatureFlag"> | string | null userId?: Prisma.StringNullableWithAggregatesFilter<"FeatureFlag"> | string | null name?: Prisma.StringWithAggregatesFilter<"FeatureFlag"> | string description?: Prisma.StringWithAggregatesFilter<"FeatureFlag"> | string enabled?: Prisma.BoolWithAggregatesFilter<"FeatureFlag"> | boolean rules?: Prisma.JsonNullableWithAggregatesFilter<"FeatureFlag"> variants?: Prisma.JsonNullableListFilter<"FeatureFlag"> enabledFrom?: Prisma.DateTimeNullableWithAggregatesFilter<"FeatureFlag"> | Date | string | null enabledUntil?: Prisma.DateTimeNullableWithAggregatesFilter<"FeatureFlag"> | Date | string | null parentFlagId?: Prisma.StringNullableWithAggregatesFilter<"FeatureFlag"> | string | null } export type FeatureFlagCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null parentFlag?: Prisma.FeatureFlagCreateNestedOneWithoutChildFlagsInput childFlags?: Prisma.FeatureFlagCreateNestedManyWithoutParentFlagInput audits?: Prisma.FeatureFlagAuditCreateNestedManyWithoutFlagInput events?: Prisma.AnalyticsEventCreateNestedManyWithoutFeatureFlagInput filters?: Prisma.FeatureFlagFilterCreateNestedManyWithoutFeatureFlagInput } export type FeatureFlagUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null parentFlagId?: string | null childFlags?: Prisma.FeatureFlagUncheckedCreateNestedManyWithoutParentFlagInput audits?: Prisma.FeatureFlagAuditUncheckedCreateNestedManyWithoutFlagInput events?: Prisma.AnalyticsEventUncheckedCreateNestedManyWithoutFeatureFlagInput filters?: Prisma.FeatureFlagFilterUncheckedCreateNestedManyWithoutFeatureFlagInput } export type FeatureFlagUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parentFlag?: Prisma.FeatureFlagUpdateOneWithoutChildFlagsNestedInput childFlags?: Prisma.FeatureFlagUpdateManyWithoutParentFlagNestedInput audits?: Prisma.FeatureFlagAuditUpdateManyWithoutFlagNestedInput events?: Prisma.AnalyticsEventUpdateManyWithoutFeatureFlagNestedInput filters?: Prisma.FeatureFlagFilterUpdateManyWithoutFeatureFlagNestedInput } export type FeatureFlagUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parentFlagId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null childFlags?: Prisma.FeatureFlagUncheckedUpdateManyWithoutParentFlagNestedInput audits?: Prisma.FeatureFlagAuditUncheckedUpdateManyWithoutFlagNestedInput events?: Prisma.AnalyticsEventUncheckedUpdateManyWithoutFeatureFlagNestedInput filters?: Prisma.FeatureFlagFilterUncheckedUpdateManyWithoutFeatureFlagNestedInput } export type FeatureFlagCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null parentFlagId?: string | null } export type FeatureFlagUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type FeatureFlagUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parentFlagId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type FeatureFlagNullableScalarRelationFilter = { is?: Prisma.FeatureFlagWhereInput | null isNot?: Prisma.FeatureFlagWhereInput | null } export type JsonNullableListFilter<$PrismaModel = never> = | Prisma.PatchUndefined< Prisma.Either>, Exclude>, 'path'>>, Required> > | Prisma.OptionalFlat>, 'path'>> export type JsonNullableListFilterBase<$PrismaModel = never> = { equals?: runtime.InputJsonValue[] | Prisma.ListJsonFieldRefInput<$PrismaModel> | null has?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null hasEvery?: runtime.InputJsonValue[] | Prisma.ListJsonFieldRefInput<$PrismaModel> hasSome?: runtime.InputJsonValue[] | Prisma.ListJsonFieldRefInput<$PrismaModel> isEmpty?: boolean } export type FeatureFlagListRelationFilter = { every?: Prisma.FeatureFlagWhereInput some?: Prisma.FeatureFlagWhereInput none?: Prisma.FeatureFlagWhereInput } export type FeatureFlagOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type FeatureFlagNameDescriptionCompoundUniqueInput = { name: string description: string } export type FeatureFlagCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder key?: Prisma.SortOrder scope?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder enabled?: Prisma.SortOrder rules?: Prisma.SortOrder variants?: Prisma.SortOrder enabledFrom?: Prisma.SortOrder enabledUntil?: Prisma.SortOrder parentFlagId?: Prisma.SortOrder } export type FeatureFlagMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder key?: Prisma.SortOrder scope?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder enabled?: Prisma.SortOrder enabledFrom?: Prisma.SortOrder enabledUntil?: Prisma.SortOrder parentFlagId?: Prisma.SortOrder } export type FeatureFlagMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder key?: Prisma.SortOrder scope?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder enabled?: Prisma.SortOrder enabledFrom?: Prisma.SortOrder enabledUntil?: Prisma.SortOrder parentFlagId?: Prisma.SortOrder } export type FeatureFlagScalarRelationFilter = { is?: Prisma.FeatureFlagWhereInput isNot?: Prisma.FeatureFlagWhereInput } export type FeatureFlagCreateNestedOneWithoutEventsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.FeatureFlagCreateOrConnectWithoutEventsInput connect?: Prisma.FeatureFlagWhereUniqueInput } export type FeatureFlagUpdateOneWithoutEventsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.FeatureFlagCreateOrConnectWithoutEventsInput upsert?: Prisma.FeatureFlagUpsertWithoutEventsInput disconnect?: Prisma.FeatureFlagWhereInput | boolean delete?: Prisma.FeatureFlagWhereInput | boolean connect?: Prisma.FeatureFlagWhereUniqueInput update?: Prisma.XOR, Prisma.FeatureFlagUncheckedUpdateWithoutEventsInput> } export type FeatureFlagCreatevariantsInput = { set: runtime.InputJsonValue[] } export type FeatureFlagCreateNestedOneWithoutChildFlagsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.FeatureFlagCreateOrConnectWithoutChildFlagsInput connect?: Prisma.FeatureFlagWhereUniqueInput } export type FeatureFlagCreateNestedManyWithoutParentFlagInput = { create?: Prisma.XOR | Prisma.FeatureFlagCreateWithoutParentFlagInput[] | Prisma.FeatureFlagUncheckedCreateWithoutParentFlagInput[] connectOrCreate?: Prisma.FeatureFlagCreateOrConnectWithoutParentFlagInput | Prisma.FeatureFlagCreateOrConnectWithoutParentFlagInput[] createMany?: Prisma.FeatureFlagCreateManyParentFlagInputEnvelope connect?: Prisma.FeatureFlagWhereUniqueInput | Prisma.FeatureFlagWhereUniqueInput[] } export type FeatureFlagUncheckedCreateNestedManyWithoutParentFlagInput = { create?: Prisma.XOR | Prisma.FeatureFlagCreateWithoutParentFlagInput[] | Prisma.FeatureFlagUncheckedCreateWithoutParentFlagInput[] connectOrCreate?: Prisma.FeatureFlagCreateOrConnectWithoutParentFlagInput | Prisma.FeatureFlagCreateOrConnectWithoutParentFlagInput[] createMany?: Prisma.FeatureFlagCreateManyParentFlagInputEnvelope connect?: Prisma.FeatureFlagWhereUniqueInput | Prisma.FeatureFlagWhereUniqueInput[] } export type FeatureFlagUpdatevariantsInput = { set?: runtime.InputJsonValue[] push?: runtime.InputJsonValue | runtime.InputJsonValue[] } export type FeatureFlagUpdateOneWithoutChildFlagsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.FeatureFlagCreateOrConnectWithoutChildFlagsInput upsert?: Prisma.FeatureFlagUpsertWithoutChildFlagsInput disconnect?: Prisma.FeatureFlagWhereInput | boolean delete?: Prisma.FeatureFlagWhereInput | boolean connect?: Prisma.FeatureFlagWhereUniqueInput update?: Prisma.XOR, Prisma.FeatureFlagUncheckedUpdateWithoutChildFlagsInput> } export type FeatureFlagUpdateManyWithoutParentFlagNestedInput = { create?: Prisma.XOR | Prisma.FeatureFlagCreateWithoutParentFlagInput[] | Prisma.FeatureFlagUncheckedCreateWithoutParentFlagInput[] connectOrCreate?: Prisma.FeatureFlagCreateOrConnectWithoutParentFlagInput | Prisma.FeatureFlagCreateOrConnectWithoutParentFlagInput[] upsert?: Prisma.FeatureFlagUpsertWithWhereUniqueWithoutParentFlagInput | Prisma.FeatureFlagUpsertWithWhereUniqueWithoutParentFlagInput[] createMany?: Prisma.FeatureFlagCreateManyParentFlagInputEnvelope set?: Prisma.FeatureFlagWhereUniqueInput | Prisma.FeatureFlagWhereUniqueInput[] disconnect?: Prisma.FeatureFlagWhereUniqueInput | Prisma.FeatureFlagWhereUniqueInput[] delete?: Prisma.FeatureFlagWhereUniqueInput | Prisma.FeatureFlagWhereUniqueInput[] connect?: Prisma.FeatureFlagWhereUniqueInput | Prisma.FeatureFlagWhereUniqueInput[] update?: Prisma.FeatureFlagUpdateWithWhereUniqueWithoutParentFlagInput | Prisma.FeatureFlagUpdateWithWhereUniqueWithoutParentFlagInput[] updateMany?: Prisma.FeatureFlagUpdateManyWithWhereWithoutParentFlagInput | Prisma.FeatureFlagUpdateManyWithWhereWithoutParentFlagInput[] deleteMany?: Prisma.FeatureFlagScalarWhereInput | Prisma.FeatureFlagScalarWhereInput[] } export type FeatureFlagUncheckedUpdateManyWithoutParentFlagNestedInput = { create?: Prisma.XOR | Prisma.FeatureFlagCreateWithoutParentFlagInput[] | Prisma.FeatureFlagUncheckedCreateWithoutParentFlagInput[] connectOrCreate?: Prisma.FeatureFlagCreateOrConnectWithoutParentFlagInput | Prisma.FeatureFlagCreateOrConnectWithoutParentFlagInput[] upsert?: Prisma.FeatureFlagUpsertWithWhereUniqueWithoutParentFlagInput | Prisma.FeatureFlagUpsertWithWhereUniqueWithoutParentFlagInput[] createMany?: Prisma.FeatureFlagCreateManyParentFlagInputEnvelope set?: Prisma.FeatureFlagWhereUniqueInput | Prisma.FeatureFlagWhereUniqueInput[] disconnect?: Prisma.FeatureFlagWhereUniqueInput | Prisma.FeatureFlagWhereUniqueInput[] delete?: Prisma.FeatureFlagWhereUniqueInput | Prisma.FeatureFlagWhereUniqueInput[] connect?: Prisma.FeatureFlagWhereUniqueInput | Prisma.FeatureFlagWhereUniqueInput[] update?: Prisma.FeatureFlagUpdateWithWhereUniqueWithoutParentFlagInput | Prisma.FeatureFlagUpdateWithWhereUniqueWithoutParentFlagInput[] updateMany?: Prisma.FeatureFlagUpdateManyWithWhereWithoutParentFlagInput | Prisma.FeatureFlagUpdateManyWithWhereWithoutParentFlagInput[] deleteMany?: Prisma.FeatureFlagScalarWhereInput | Prisma.FeatureFlagScalarWhereInput[] } export type FeatureFlagCreateNestedOneWithoutFiltersInput = { create?: Prisma.XOR connectOrCreate?: Prisma.FeatureFlagCreateOrConnectWithoutFiltersInput connect?: Prisma.FeatureFlagWhereUniqueInput } export type FeatureFlagUpdateOneRequiredWithoutFiltersNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.FeatureFlagCreateOrConnectWithoutFiltersInput upsert?: Prisma.FeatureFlagUpsertWithoutFiltersInput connect?: Prisma.FeatureFlagWhereUniqueInput update?: Prisma.XOR, Prisma.FeatureFlagUncheckedUpdateWithoutFiltersInput> } export type FeatureFlagCreateNestedOneWithoutAuditsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.FeatureFlagCreateOrConnectWithoutAuditsInput connect?: Prisma.FeatureFlagWhereUniqueInput } export type FeatureFlagUpdateOneRequiredWithoutAuditsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.FeatureFlagCreateOrConnectWithoutAuditsInput upsert?: Prisma.FeatureFlagUpsertWithoutAuditsInput connect?: Prisma.FeatureFlagWhereUniqueInput update?: Prisma.XOR, Prisma.FeatureFlagUncheckedUpdateWithoutAuditsInput> } export type FeatureFlagCreateWithoutEventsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null parentFlag?: Prisma.FeatureFlagCreateNestedOneWithoutChildFlagsInput childFlags?: Prisma.FeatureFlagCreateNestedManyWithoutParentFlagInput audits?: Prisma.FeatureFlagAuditCreateNestedManyWithoutFlagInput filters?: Prisma.FeatureFlagFilterCreateNestedManyWithoutFeatureFlagInput } export type FeatureFlagUncheckedCreateWithoutEventsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null parentFlagId?: string | null childFlags?: Prisma.FeatureFlagUncheckedCreateNestedManyWithoutParentFlagInput audits?: Prisma.FeatureFlagAuditUncheckedCreateNestedManyWithoutFlagInput filters?: Prisma.FeatureFlagFilterUncheckedCreateNestedManyWithoutFeatureFlagInput } export type FeatureFlagCreateOrConnectWithoutEventsInput = { where: Prisma.FeatureFlagWhereUniqueInput create: Prisma.XOR } export type FeatureFlagUpsertWithoutEventsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.FeatureFlagWhereInput } export type FeatureFlagUpdateToOneWithWhereWithoutEventsInput = { where?: Prisma.FeatureFlagWhereInput data: Prisma.XOR } export type FeatureFlagUpdateWithoutEventsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parentFlag?: Prisma.FeatureFlagUpdateOneWithoutChildFlagsNestedInput childFlags?: Prisma.FeatureFlagUpdateManyWithoutParentFlagNestedInput audits?: Prisma.FeatureFlagAuditUpdateManyWithoutFlagNestedInput filters?: Prisma.FeatureFlagFilterUpdateManyWithoutFeatureFlagNestedInput } export type FeatureFlagUncheckedUpdateWithoutEventsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parentFlagId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null childFlags?: Prisma.FeatureFlagUncheckedUpdateManyWithoutParentFlagNestedInput audits?: Prisma.FeatureFlagAuditUncheckedUpdateManyWithoutFlagNestedInput filters?: Prisma.FeatureFlagFilterUncheckedUpdateManyWithoutFeatureFlagNestedInput } export type FeatureFlagCreateWithoutChildFlagsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null parentFlag?: Prisma.FeatureFlagCreateNestedOneWithoutChildFlagsInput audits?: Prisma.FeatureFlagAuditCreateNestedManyWithoutFlagInput events?: Prisma.AnalyticsEventCreateNestedManyWithoutFeatureFlagInput filters?: Prisma.FeatureFlagFilterCreateNestedManyWithoutFeatureFlagInput } export type FeatureFlagUncheckedCreateWithoutChildFlagsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null parentFlagId?: string | null audits?: Prisma.FeatureFlagAuditUncheckedCreateNestedManyWithoutFlagInput events?: Prisma.AnalyticsEventUncheckedCreateNestedManyWithoutFeatureFlagInput filters?: Prisma.FeatureFlagFilterUncheckedCreateNestedManyWithoutFeatureFlagInput } export type FeatureFlagCreateOrConnectWithoutChildFlagsInput = { where: Prisma.FeatureFlagWhereUniqueInput create: Prisma.XOR } export type FeatureFlagCreateWithoutParentFlagInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null childFlags?: Prisma.FeatureFlagCreateNestedManyWithoutParentFlagInput audits?: Prisma.FeatureFlagAuditCreateNestedManyWithoutFlagInput events?: Prisma.AnalyticsEventCreateNestedManyWithoutFeatureFlagInput filters?: Prisma.FeatureFlagFilterCreateNestedManyWithoutFeatureFlagInput } export type FeatureFlagUncheckedCreateWithoutParentFlagInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null childFlags?: Prisma.FeatureFlagUncheckedCreateNestedManyWithoutParentFlagInput audits?: Prisma.FeatureFlagAuditUncheckedCreateNestedManyWithoutFlagInput events?: Prisma.AnalyticsEventUncheckedCreateNestedManyWithoutFeatureFlagInput filters?: Prisma.FeatureFlagFilterUncheckedCreateNestedManyWithoutFeatureFlagInput } export type FeatureFlagCreateOrConnectWithoutParentFlagInput = { where: Prisma.FeatureFlagWhereUniqueInput create: Prisma.XOR } export type FeatureFlagCreateManyParentFlagInputEnvelope = { data: Prisma.FeatureFlagCreateManyParentFlagInput | Prisma.FeatureFlagCreateManyParentFlagInput[] skipDuplicates?: boolean } export type FeatureFlagUpsertWithoutChildFlagsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.FeatureFlagWhereInput } export type FeatureFlagUpdateToOneWithWhereWithoutChildFlagsInput = { where?: Prisma.FeatureFlagWhereInput data: Prisma.XOR } export type FeatureFlagUpdateWithoutChildFlagsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parentFlag?: Prisma.FeatureFlagUpdateOneWithoutChildFlagsNestedInput audits?: Prisma.FeatureFlagAuditUpdateManyWithoutFlagNestedInput events?: Prisma.AnalyticsEventUpdateManyWithoutFeatureFlagNestedInput filters?: Prisma.FeatureFlagFilterUpdateManyWithoutFeatureFlagNestedInput } export type FeatureFlagUncheckedUpdateWithoutChildFlagsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parentFlagId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null audits?: Prisma.FeatureFlagAuditUncheckedUpdateManyWithoutFlagNestedInput events?: Prisma.AnalyticsEventUncheckedUpdateManyWithoutFeatureFlagNestedInput filters?: Prisma.FeatureFlagFilterUncheckedUpdateManyWithoutFeatureFlagNestedInput } export type FeatureFlagUpsertWithWhereUniqueWithoutParentFlagInput = { where: Prisma.FeatureFlagWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type FeatureFlagUpdateWithWhereUniqueWithoutParentFlagInput = { where: Prisma.FeatureFlagWhereUniqueInput data: Prisma.XOR } export type FeatureFlagUpdateManyWithWhereWithoutParentFlagInput = { where: Prisma.FeatureFlagScalarWhereInput data: Prisma.XOR } export type FeatureFlagScalarWhereInput = { AND?: Prisma.FeatureFlagScalarWhereInput | Prisma.FeatureFlagScalarWhereInput[] OR?: Prisma.FeatureFlagScalarWhereInput[] NOT?: Prisma.FeatureFlagScalarWhereInput | Prisma.FeatureFlagScalarWhereInput[] id?: Prisma.StringFilter<"FeatureFlag"> | string createdAt?: Prisma.DateTimeFilter<"FeatureFlag"> | Date | string updatedAt?: Prisma.DateTimeFilter<"FeatureFlag"> | Date | string key?: Prisma.StringNullableFilter<"FeatureFlag"> | string | null scope?: Prisma.StringFilter<"FeatureFlag"> | string tenantId?: Prisma.StringNullableFilter<"FeatureFlag"> | string | null userId?: Prisma.StringNullableFilter<"FeatureFlag"> | string | null name?: Prisma.StringFilter<"FeatureFlag"> | string description?: Prisma.StringFilter<"FeatureFlag"> | string enabled?: Prisma.BoolFilter<"FeatureFlag"> | boolean rules?: Prisma.JsonNullableFilter<"FeatureFlag"> variants?: Prisma.JsonNullableListFilter<"FeatureFlag"> enabledFrom?: Prisma.DateTimeNullableFilter<"FeatureFlag"> | Date | string | null enabledUntil?: Prisma.DateTimeNullableFilter<"FeatureFlag"> | Date | string | null parentFlagId?: Prisma.StringNullableFilter<"FeatureFlag"> | string | null } export type FeatureFlagCreateWithoutFiltersInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null parentFlag?: Prisma.FeatureFlagCreateNestedOneWithoutChildFlagsInput childFlags?: Prisma.FeatureFlagCreateNestedManyWithoutParentFlagInput audits?: Prisma.FeatureFlagAuditCreateNestedManyWithoutFlagInput events?: Prisma.AnalyticsEventCreateNestedManyWithoutFeatureFlagInput } export type FeatureFlagUncheckedCreateWithoutFiltersInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null parentFlagId?: string | null childFlags?: Prisma.FeatureFlagUncheckedCreateNestedManyWithoutParentFlagInput audits?: Prisma.FeatureFlagAuditUncheckedCreateNestedManyWithoutFlagInput events?: Prisma.AnalyticsEventUncheckedCreateNestedManyWithoutFeatureFlagInput } export type FeatureFlagCreateOrConnectWithoutFiltersInput = { where: Prisma.FeatureFlagWhereUniqueInput create: Prisma.XOR } export type FeatureFlagUpsertWithoutFiltersInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.FeatureFlagWhereInput } export type FeatureFlagUpdateToOneWithWhereWithoutFiltersInput = { where?: Prisma.FeatureFlagWhereInput data: Prisma.XOR } export type FeatureFlagUpdateWithoutFiltersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parentFlag?: Prisma.FeatureFlagUpdateOneWithoutChildFlagsNestedInput childFlags?: Prisma.FeatureFlagUpdateManyWithoutParentFlagNestedInput audits?: Prisma.FeatureFlagAuditUpdateManyWithoutFlagNestedInput events?: Prisma.AnalyticsEventUpdateManyWithoutFeatureFlagNestedInput } export type FeatureFlagUncheckedUpdateWithoutFiltersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parentFlagId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null childFlags?: Prisma.FeatureFlagUncheckedUpdateManyWithoutParentFlagNestedInput audits?: Prisma.FeatureFlagAuditUncheckedUpdateManyWithoutFlagNestedInput events?: Prisma.AnalyticsEventUncheckedUpdateManyWithoutFeatureFlagNestedInput } export type FeatureFlagCreateWithoutAuditsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null parentFlag?: Prisma.FeatureFlagCreateNestedOneWithoutChildFlagsInput childFlags?: Prisma.FeatureFlagCreateNestedManyWithoutParentFlagInput events?: Prisma.AnalyticsEventCreateNestedManyWithoutFeatureFlagInput filters?: Prisma.FeatureFlagFilterCreateNestedManyWithoutFeatureFlagInput } export type FeatureFlagUncheckedCreateWithoutAuditsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null parentFlagId?: string | null childFlags?: Prisma.FeatureFlagUncheckedCreateNestedManyWithoutParentFlagInput events?: Prisma.AnalyticsEventUncheckedCreateNestedManyWithoutFeatureFlagInput filters?: Prisma.FeatureFlagFilterUncheckedCreateNestedManyWithoutFeatureFlagInput } export type FeatureFlagCreateOrConnectWithoutAuditsInput = { where: Prisma.FeatureFlagWhereUniqueInput create: Prisma.XOR } export type FeatureFlagUpsertWithoutAuditsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.FeatureFlagWhereInput } export type FeatureFlagUpdateToOneWithWhereWithoutAuditsInput = { where?: Prisma.FeatureFlagWhereInput data: Prisma.XOR } export type FeatureFlagUpdateWithoutAuditsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parentFlag?: Prisma.FeatureFlagUpdateOneWithoutChildFlagsNestedInput childFlags?: Prisma.FeatureFlagUpdateManyWithoutParentFlagNestedInput events?: Prisma.AnalyticsEventUpdateManyWithoutFeatureFlagNestedInput filters?: Prisma.FeatureFlagFilterUpdateManyWithoutFeatureFlagNestedInput } export type FeatureFlagUncheckedUpdateWithoutAuditsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null parentFlagId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null childFlags?: Prisma.FeatureFlagUncheckedUpdateManyWithoutParentFlagNestedInput events?: Prisma.AnalyticsEventUncheckedUpdateManyWithoutFeatureFlagNestedInput filters?: Prisma.FeatureFlagFilterUncheckedUpdateManyWithoutFeatureFlagNestedInput } export type FeatureFlagCreateManyParentFlagInput = { id?: string createdAt?: Date | string updatedAt?: Date | string key?: string | null scope?: string tenantId?: string | null userId?: string | null name: string description: string enabled?: boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagCreatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Date | string | null enabledUntil?: Date | string | null } export type FeatureFlagUpdateWithoutParentFlagInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null childFlags?: Prisma.FeatureFlagUpdateManyWithoutParentFlagNestedInput audits?: Prisma.FeatureFlagAuditUpdateManyWithoutFlagNestedInput events?: Prisma.AnalyticsEventUpdateManyWithoutFeatureFlagNestedInput filters?: Prisma.FeatureFlagFilterUpdateManyWithoutFeatureFlagNestedInput } export type FeatureFlagUncheckedUpdateWithoutParentFlagInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null childFlags?: Prisma.FeatureFlagUncheckedUpdateManyWithoutParentFlagNestedInput audits?: Prisma.FeatureFlagAuditUncheckedUpdateManyWithoutFlagNestedInput events?: Prisma.AnalyticsEventUncheckedUpdateManyWithoutFeatureFlagNestedInput filters?: Prisma.FeatureFlagFilterUncheckedUpdateManyWithoutFeatureFlagNestedInput } export type FeatureFlagUncheckedUpdateManyWithoutParentFlagInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean rules?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue variants?: Prisma.FeatureFlagUpdatevariantsInput | runtime.InputJsonValue[] enabledFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null enabledUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } /** * Count Type FeatureFlagCountOutputType */ export type FeatureFlagCountOutputType = { childFlags: number audits: number events: number filters: number } export type FeatureFlagCountOutputTypeSelect = { childFlags?: boolean | FeatureFlagCountOutputTypeCountChildFlagsArgs audits?: boolean | FeatureFlagCountOutputTypeCountAuditsArgs events?: boolean | FeatureFlagCountOutputTypeCountEventsArgs filters?: boolean | FeatureFlagCountOutputTypeCountFiltersArgs } /** * FeatureFlagCountOutputType without action */ export type FeatureFlagCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the FeatureFlagCountOutputType */ select?: Prisma.FeatureFlagCountOutputTypeSelect | null } /** * FeatureFlagCountOutputType without action */ export type FeatureFlagCountOutputTypeCountChildFlagsArgs = { where?: Prisma.FeatureFlagWhereInput } /** * FeatureFlagCountOutputType without action */ export type FeatureFlagCountOutputTypeCountAuditsArgs = { where?: Prisma.FeatureFlagAuditWhereInput } /** * FeatureFlagCountOutputType without action */ export type FeatureFlagCountOutputTypeCountEventsArgs = { where?: Prisma.AnalyticsEventWhereInput } /** * FeatureFlagCountOutputType without action */ export type FeatureFlagCountOutputTypeCountFiltersArgs = { where?: Prisma.FeatureFlagFilterWhereInput } export type FeatureFlagSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean key?: boolean scope?: boolean tenantId?: boolean userId?: boolean name?: boolean description?: boolean enabled?: boolean rules?: boolean variants?: boolean enabledFrom?: boolean enabledUntil?: boolean parentFlagId?: boolean parentFlag?: boolean | Prisma.FeatureFlag$parentFlagArgs childFlags?: boolean | Prisma.FeatureFlag$childFlagsArgs audits?: boolean | Prisma.FeatureFlag$auditsArgs events?: boolean | Prisma.FeatureFlag$eventsArgs filters?: boolean | Prisma.FeatureFlag$filtersArgs _count?: boolean | Prisma.FeatureFlagCountOutputTypeDefaultArgs }, ExtArgs["result"]["featureFlag"]> export type FeatureFlagSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean key?: boolean scope?: boolean tenantId?: boolean userId?: boolean name?: boolean description?: boolean enabled?: boolean rules?: boolean variants?: boolean enabledFrom?: boolean enabledUntil?: boolean parentFlagId?: boolean parentFlag?: boolean | Prisma.FeatureFlag$parentFlagArgs }, ExtArgs["result"]["featureFlag"]> export type FeatureFlagSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean key?: boolean scope?: boolean tenantId?: boolean userId?: boolean name?: boolean description?: boolean enabled?: boolean rules?: boolean variants?: boolean enabledFrom?: boolean enabledUntil?: boolean parentFlagId?: boolean parentFlag?: boolean | Prisma.FeatureFlag$parentFlagArgs }, ExtArgs["result"]["featureFlag"]> export type FeatureFlagSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean key?: boolean scope?: boolean tenantId?: boolean userId?: boolean name?: boolean description?: boolean enabled?: boolean rules?: boolean variants?: boolean enabledFrom?: boolean enabledUntil?: boolean parentFlagId?: boolean } export type FeatureFlagOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "key" | "scope" | "tenantId" | "userId" | "name" | "description" | "enabled" | "rules" | "variants" | "enabledFrom" | "enabledUntil" | "parentFlagId", ExtArgs["result"]["featureFlag"]> export type FeatureFlagInclude = { parentFlag?: boolean | Prisma.FeatureFlag$parentFlagArgs childFlags?: boolean | Prisma.FeatureFlag$childFlagsArgs audits?: boolean | Prisma.FeatureFlag$auditsArgs events?: boolean | Prisma.FeatureFlag$eventsArgs filters?: boolean | Prisma.FeatureFlag$filtersArgs _count?: boolean | Prisma.FeatureFlagCountOutputTypeDefaultArgs } export type FeatureFlagIncludeCreateManyAndReturn = { parentFlag?: boolean | Prisma.FeatureFlag$parentFlagArgs } export type FeatureFlagIncludeUpdateManyAndReturn = { parentFlag?: boolean | Prisma.FeatureFlag$parentFlagArgs } export type $FeatureFlagPayload = { name: "FeatureFlag" objects: { parentFlag: Prisma.$FeatureFlagPayload | null childFlags: Prisma.$FeatureFlagPayload[] audits: Prisma.$FeatureFlagAuditPayload[] events: Prisma.$AnalyticsEventPayload[] filters: Prisma.$FeatureFlagFilterPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date key: string | null scope: string tenantId: string | null userId: string | null name: string description: string enabled: boolean rules: runtime.JsonValue | null variants: runtime.JsonValue[] enabledFrom: Date | null enabledUntil: Date | null parentFlagId: string | null }, ExtArgs["result"]["featureFlag"]> composites: {} } export type FeatureFlagGetPayload = runtime.Types.Result.GetResult export type FeatureFlagCountArgs = Omit & { select?: FeatureFlagCountAggregateInputType | true } export interface FeatureFlagDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['FeatureFlag'], meta: { name: 'FeatureFlag' } } /** * Find zero or one FeatureFlag that matches the filter. * @param {FeatureFlagFindUniqueArgs} args - Arguments to find a FeatureFlag * @example * // Get one FeatureFlag * const featureFlag = await prisma.featureFlag.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__FeatureFlagClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one FeatureFlag that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {FeatureFlagFindUniqueOrThrowArgs} args - Arguments to find a FeatureFlag * @example * // Get one FeatureFlag * const featureFlag = await prisma.featureFlag.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__FeatureFlagClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first FeatureFlag 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 {FeatureFlagFindFirstArgs} args - Arguments to find a FeatureFlag * @example * // Get one FeatureFlag * const featureFlag = await prisma.featureFlag.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__FeatureFlagClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first FeatureFlag 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 {FeatureFlagFindFirstOrThrowArgs} args - Arguments to find a FeatureFlag * @example * // Get one FeatureFlag * const featureFlag = await prisma.featureFlag.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__FeatureFlagClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more FeatureFlags 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 {FeatureFlagFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all FeatureFlags * const featureFlags = await prisma.featureFlag.findMany() * * // Get first 10 FeatureFlags * const featureFlags = await prisma.featureFlag.findMany({ take: 10 }) * * // Only select the `id` * const featureFlagWithIdOnly = await prisma.featureFlag.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a FeatureFlag. * @param {FeatureFlagCreateArgs} args - Arguments to create a FeatureFlag. * @example * // Create one FeatureFlag * const FeatureFlag = await prisma.featureFlag.create({ * data: { * // ... data to create a FeatureFlag * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__FeatureFlagClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many FeatureFlags. * @param {FeatureFlagCreateManyArgs} args - Arguments to create many FeatureFlags. * @example * // Create many FeatureFlags * const featureFlag = await prisma.featureFlag.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many FeatureFlags and returns the data saved in the database. * @param {FeatureFlagCreateManyAndReturnArgs} args - Arguments to create many FeatureFlags. * @example * // Create many FeatureFlags * const featureFlag = await prisma.featureFlag.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many FeatureFlags and only return the `id` * const featureFlagWithIdOnly = await prisma.featureFlag.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 FeatureFlag. * @param {FeatureFlagDeleteArgs} args - Arguments to delete one FeatureFlag. * @example * // Delete one FeatureFlag * const FeatureFlag = await prisma.featureFlag.delete({ * where: { * // ... filter to delete one FeatureFlag * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__FeatureFlagClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one FeatureFlag. * @param {FeatureFlagUpdateArgs} args - Arguments to update one FeatureFlag. * @example * // Update one FeatureFlag * const featureFlag = await prisma.featureFlag.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__FeatureFlagClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more FeatureFlags. * @param {FeatureFlagDeleteManyArgs} args - Arguments to filter FeatureFlags to delete. * @example * // Delete a few FeatureFlags * const { count } = await prisma.featureFlag.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more FeatureFlags. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FeatureFlagUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many FeatureFlags * const featureFlag = await prisma.featureFlag.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more FeatureFlags and returns the data updated in the database. * @param {FeatureFlagUpdateManyAndReturnArgs} args - Arguments to update many FeatureFlags. * @example * // Update many FeatureFlags * const featureFlag = await prisma.featureFlag.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more FeatureFlags and only return the `id` * const featureFlagWithIdOnly = await prisma.featureFlag.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 FeatureFlag. * @param {FeatureFlagUpsertArgs} args - Arguments to update or create a FeatureFlag. * @example * // Update or create a FeatureFlag * const featureFlag = await prisma.featureFlag.upsert({ * create: { * // ... data to create a FeatureFlag * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the FeatureFlag we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__FeatureFlagClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of FeatureFlags. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FeatureFlagCountArgs} args - Arguments to filter FeatureFlags to count. * @example * // Count the number of FeatureFlags * const count = await prisma.featureFlag.count({ * where: { * // ... the filter for the FeatureFlags 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 FeatureFlag. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FeatureFlagAggregateArgs} 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 FeatureFlag. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FeatureFlagGroupByArgs} 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 FeatureFlagGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: FeatureFlagGroupByArgs['orderBy'] } : { orderBy?: FeatureFlagGroupByArgs['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 ? GetFeatureFlagGroupByPayload : Prisma.PrismaPromise /** * Fields of the FeatureFlag model */ readonly fields: FeatureFlagFieldRefs; } /** * The delegate class that acts as a "Promise-like" for FeatureFlag. * 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__FeatureFlagClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" parentFlag = {}>(args?: Prisma.Subset>): Prisma.Prisma__FeatureFlagClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> childFlags = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> audits = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> events = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> filters = {}>(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 FeatureFlag model */ export interface FeatureFlagFieldRefs { readonly id: Prisma.FieldRef<"FeatureFlag", 'String'> readonly createdAt: Prisma.FieldRef<"FeatureFlag", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"FeatureFlag", 'DateTime'> readonly key: Prisma.FieldRef<"FeatureFlag", 'String'> readonly scope: Prisma.FieldRef<"FeatureFlag", 'String'> readonly tenantId: Prisma.FieldRef<"FeatureFlag", 'String'> readonly userId: Prisma.FieldRef<"FeatureFlag", 'String'> readonly name: Prisma.FieldRef<"FeatureFlag", 'String'> readonly description: Prisma.FieldRef<"FeatureFlag", 'String'> readonly enabled: Prisma.FieldRef<"FeatureFlag", 'Boolean'> readonly rules: Prisma.FieldRef<"FeatureFlag", 'Json'> readonly variants: Prisma.FieldRef<"FeatureFlag", 'Json[]'> readonly enabledFrom: Prisma.FieldRef<"FeatureFlag", 'DateTime'> readonly enabledUntil: Prisma.FieldRef<"FeatureFlag", 'DateTime'> readonly parentFlagId: Prisma.FieldRef<"FeatureFlag", 'String'> } // Custom InputTypes /** * FeatureFlag findUnique */ export type FeatureFlagFindUniqueArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagInclude | null /** * Filter, which FeatureFlag to fetch. */ where: Prisma.FeatureFlagWhereUniqueInput } /** * FeatureFlag findUniqueOrThrow */ export type FeatureFlagFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagInclude | null /** * Filter, which FeatureFlag to fetch. */ where: Prisma.FeatureFlagWhereUniqueInput } /** * FeatureFlag findFirst */ export type FeatureFlagFindFirstArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagInclude | null /** * Filter, which FeatureFlag to fetch. */ where?: Prisma.FeatureFlagWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FeatureFlags to fetch. */ orderBy?: Prisma.FeatureFlagOrderByWithRelationInput | Prisma.FeatureFlagOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for FeatureFlags. */ cursor?: Prisma.FeatureFlagWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FeatureFlags 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` FeatureFlags. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of FeatureFlags. */ distinct?: Prisma.FeatureFlagScalarFieldEnum | Prisma.FeatureFlagScalarFieldEnum[] } /** * FeatureFlag findFirstOrThrow */ export type FeatureFlagFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagInclude | null /** * Filter, which FeatureFlag to fetch. */ where?: Prisma.FeatureFlagWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FeatureFlags to fetch. */ orderBy?: Prisma.FeatureFlagOrderByWithRelationInput | Prisma.FeatureFlagOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for FeatureFlags. */ cursor?: Prisma.FeatureFlagWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FeatureFlags 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` FeatureFlags. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of FeatureFlags. */ distinct?: Prisma.FeatureFlagScalarFieldEnum | Prisma.FeatureFlagScalarFieldEnum[] } /** * FeatureFlag findMany */ export type FeatureFlagFindManyArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagInclude | null /** * Filter, which FeatureFlags to fetch. */ where?: Prisma.FeatureFlagWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FeatureFlags to fetch. */ orderBy?: Prisma.FeatureFlagOrderByWithRelationInput | Prisma.FeatureFlagOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing FeatureFlags. */ cursor?: Prisma.FeatureFlagWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FeatureFlags 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` FeatureFlags. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of FeatureFlags. */ distinct?: Prisma.FeatureFlagScalarFieldEnum | Prisma.FeatureFlagScalarFieldEnum[] } /** * FeatureFlag create */ export type FeatureFlagCreateArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagInclude | null /** * The data needed to create a FeatureFlag. */ data: Prisma.XOR } /** * FeatureFlag createMany */ export type FeatureFlagCreateManyArgs = { /** * The data used to create many FeatureFlags. */ data: Prisma.FeatureFlagCreateManyInput | Prisma.FeatureFlagCreateManyInput[] skipDuplicates?: boolean } /** * FeatureFlag createManyAndReturn */ export type FeatureFlagCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelectCreateManyAndReturn | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * The data used to create many FeatureFlags. */ data: Prisma.FeatureFlagCreateManyInput | Prisma.FeatureFlagCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagIncludeCreateManyAndReturn | null } /** * FeatureFlag update */ export type FeatureFlagUpdateArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagInclude | null /** * The data needed to update a FeatureFlag. */ data: Prisma.XOR /** * Choose, which FeatureFlag to update. */ where: Prisma.FeatureFlagWhereUniqueInput } /** * FeatureFlag updateMany */ export type FeatureFlagUpdateManyArgs = { /** * The data used to update FeatureFlags. */ data: Prisma.XOR /** * Filter which FeatureFlags to update */ where?: Prisma.FeatureFlagWhereInput /** * Limit how many FeatureFlags to update. */ limit?: number } /** * FeatureFlag updateManyAndReturn */ export type FeatureFlagUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelectUpdateManyAndReturn | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * The data used to update FeatureFlags. */ data: Prisma.XOR /** * Filter which FeatureFlags to update */ where?: Prisma.FeatureFlagWhereInput /** * Limit how many FeatureFlags to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagIncludeUpdateManyAndReturn | null } /** * FeatureFlag upsert */ export type FeatureFlagUpsertArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagInclude | null /** * The filter to search for the FeatureFlag to update in case it exists. */ where: Prisma.FeatureFlagWhereUniqueInput /** * In case the FeatureFlag found by the `where` argument doesn't exist, create a new FeatureFlag with this data. */ create: Prisma.XOR /** * In case the FeatureFlag was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * FeatureFlag delete */ export type FeatureFlagDeleteArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagInclude | null /** * Filter which FeatureFlag to delete. */ where: Prisma.FeatureFlagWhereUniqueInput } /** * FeatureFlag deleteMany */ export type FeatureFlagDeleteManyArgs = { /** * Filter which FeatureFlags to delete */ where?: Prisma.FeatureFlagWhereInput /** * Limit how many FeatureFlags to delete. */ limit?: number } /** * FeatureFlag.parentFlag */ export type FeatureFlag$parentFlagArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagInclude | null where?: Prisma.FeatureFlagWhereInput } /** * FeatureFlag.childFlags */ export type FeatureFlag$childFlagsArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagInclude | null where?: Prisma.FeatureFlagWhereInput orderBy?: Prisma.FeatureFlagOrderByWithRelationInput | Prisma.FeatureFlagOrderByWithRelationInput[] cursor?: Prisma.FeatureFlagWhereUniqueInput take?: number skip?: number distinct?: Prisma.FeatureFlagScalarFieldEnum | Prisma.FeatureFlagScalarFieldEnum[] } /** * FeatureFlag.audits */ export type FeatureFlag$auditsArgs = { /** * Select specific fields to fetch from the FeatureFlagAudit */ select?: Prisma.FeatureFlagAuditSelect | null /** * Omit specific fields from the FeatureFlagAudit */ omit?: Prisma.FeatureFlagAuditOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagAuditInclude | null where?: Prisma.FeatureFlagAuditWhereInput orderBy?: Prisma.FeatureFlagAuditOrderByWithRelationInput | Prisma.FeatureFlagAuditOrderByWithRelationInput[] cursor?: Prisma.FeatureFlagAuditWhereUniqueInput take?: number skip?: number distinct?: Prisma.FeatureFlagAuditScalarFieldEnum | Prisma.FeatureFlagAuditScalarFieldEnum[] } /** * FeatureFlag.events */ export type FeatureFlag$eventsArgs = { /** * Select specific fields to fetch from the AnalyticsEvent */ select?: Prisma.AnalyticsEventSelect | null /** * Omit specific fields from the AnalyticsEvent */ omit?: Prisma.AnalyticsEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AnalyticsEventInclude | null where?: Prisma.AnalyticsEventWhereInput orderBy?: Prisma.AnalyticsEventOrderByWithRelationInput | Prisma.AnalyticsEventOrderByWithRelationInput[] cursor?: Prisma.AnalyticsEventWhereUniqueInput take?: number skip?: number distinct?: Prisma.AnalyticsEventScalarFieldEnum | Prisma.AnalyticsEventScalarFieldEnum[] } /** * FeatureFlag.filters */ export type FeatureFlag$filtersArgs = { /** * Select specific fields to fetch from the FeatureFlagFilter */ select?: Prisma.FeatureFlagFilterSelect | null /** * Omit specific fields from the FeatureFlagFilter */ omit?: Prisma.FeatureFlagFilterOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagFilterInclude | null where?: Prisma.FeatureFlagFilterWhereInput orderBy?: Prisma.FeatureFlagFilterOrderByWithRelationInput | Prisma.FeatureFlagFilterOrderByWithRelationInput[] cursor?: Prisma.FeatureFlagFilterWhereUniqueInput take?: number skip?: number distinct?: Prisma.FeatureFlagFilterScalarFieldEnum | Prisma.FeatureFlagFilterScalarFieldEnum[] } /** * FeatureFlag without action */ export type FeatureFlagDefaultArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: Prisma.FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: Prisma.FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FeatureFlagInclude | null }