/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `LostReason` 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 LostReason * */ export type LostReasonModel = runtime.Types.Result.DefaultSelection export type AggregateLostReason = { _count: LostReasonCountAggregateOutputType | null _avg: LostReasonAvgAggregateOutputType | null _sum: LostReasonSumAggregateOutputType | null _min: LostReasonMinAggregateOutputType | null _max: LostReasonMaxAggregateOutputType | null } export type LostReasonAvgAggregateOutputType = { position: number | null } export type LostReasonSumAggregateOutputType = { position: number | null } export type LostReasonMinAggregateOutputType = { id: string | null tenantId: string | null createdAt: Date | null updatedAt: Date | null name: string | null beschreibung: string | null kategorie: string | null istVorlage: boolean | null position: number | null isDemoData: boolean | null archivedAt: Date | null } export type LostReasonMaxAggregateOutputType = { id: string | null tenantId: string | null createdAt: Date | null updatedAt: Date | null name: string | null beschreibung: string | null kategorie: string | null istVorlage: boolean | null position: number | null isDemoData: boolean | null archivedAt: Date | null } export type LostReasonCountAggregateOutputType = { id: number tenantId: number createdAt: number updatedAt: number name: number beschreibung: number kategorie: number istVorlage: number position: number isDemoData: number archivedAt: number _all: number } export type LostReasonAvgAggregateInputType = { position?: true } export type LostReasonSumAggregateInputType = { position?: true } export type LostReasonMinAggregateInputType = { id?: true tenantId?: true createdAt?: true updatedAt?: true name?: true beschreibung?: true kategorie?: true istVorlage?: true position?: true isDemoData?: true archivedAt?: true } export type LostReasonMaxAggregateInputType = { id?: true tenantId?: true createdAt?: true updatedAt?: true name?: true beschreibung?: true kategorie?: true istVorlage?: true position?: true isDemoData?: true archivedAt?: true } export type LostReasonCountAggregateInputType = { id?: true tenantId?: true createdAt?: true updatedAt?: true name?: true beschreibung?: true kategorie?: true istVorlage?: true position?: true isDemoData?: true archivedAt?: true _all?: true } export type LostReasonAggregateArgs = { /** * Filter which LostReason to aggregate. */ where?: Prisma.LostReasonWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LostReasons to fetch. */ orderBy?: Prisma.LostReasonOrderByWithRelationInput | Prisma.LostReasonOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.LostReasonWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LostReasons 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` LostReasons. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned LostReasons **/ _count?: true | LostReasonCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: LostReasonAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: LostReasonSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: LostReasonMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: LostReasonMaxAggregateInputType } export type GetLostReasonAggregateType = { [P in keyof T & keyof AggregateLostReason]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type LostReasonGroupByArgs = { where?: Prisma.LostReasonWhereInput orderBy?: Prisma.LostReasonOrderByWithAggregationInput | Prisma.LostReasonOrderByWithAggregationInput[] by: Prisma.LostReasonScalarFieldEnum[] | Prisma.LostReasonScalarFieldEnum having?: Prisma.LostReasonScalarWhereWithAggregatesInput take?: number skip?: number _count?: LostReasonCountAggregateInputType | true _avg?: LostReasonAvgAggregateInputType _sum?: LostReasonSumAggregateInputType _min?: LostReasonMinAggregateInputType _max?: LostReasonMaxAggregateInputType } export type LostReasonGroupByOutputType = { id: string tenantId: string createdAt: Date updatedAt: Date name: string beschreibung: string | null kategorie: string | null istVorlage: boolean position: number isDemoData: boolean archivedAt: Date | null _count: LostReasonCountAggregateOutputType | null _avg: LostReasonAvgAggregateOutputType | null _sum: LostReasonSumAggregateOutputType | null _min: LostReasonMinAggregateOutputType | null _max: LostReasonMaxAggregateOutputType | null } export type GetLostReasonGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof LostReasonGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type LostReasonWhereInput = { AND?: Prisma.LostReasonWhereInput | Prisma.LostReasonWhereInput[] OR?: Prisma.LostReasonWhereInput[] NOT?: Prisma.LostReasonWhereInput | Prisma.LostReasonWhereInput[] id?: Prisma.StringFilter<"LostReason"> | string tenantId?: Prisma.StringFilter<"LostReason"> | string createdAt?: Prisma.DateTimeFilter<"LostReason"> | Date | string updatedAt?: Prisma.DateTimeFilter<"LostReason"> | Date | string name?: Prisma.StringFilter<"LostReason"> | string beschreibung?: Prisma.StringNullableFilter<"LostReason"> | string | null kategorie?: Prisma.StringNullableFilter<"LostReason"> | string | null istVorlage?: Prisma.BoolFilter<"LostReason"> | boolean position?: Prisma.IntFilter<"LostReason"> | number isDemoData?: Prisma.BoolFilter<"LostReason"> | boolean archivedAt?: Prisma.DateTimeNullableFilter<"LostReason"> | Date | string | null projekte?: Prisma.ProjektListRelationFilter } export type LostReasonOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder beschreibung?: Prisma.SortOrderInput | Prisma.SortOrder kategorie?: Prisma.SortOrderInput | Prisma.SortOrder istVorlage?: Prisma.SortOrder position?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder projekte?: Prisma.ProjektOrderByRelationAggregateInput } export type LostReasonWhereUniqueInput = Prisma.AtLeast<{ id?: string tenantId_name?: Prisma.LostReasonTenantIdNameCompoundUniqueInput AND?: Prisma.LostReasonWhereInput | Prisma.LostReasonWhereInput[] OR?: Prisma.LostReasonWhereInput[] NOT?: Prisma.LostReasonWhereInput | Prisma.LostReasonWhereInput[] tenantId?: Prisma.StringFilter<"LostReason"> | string createdAt?: Prisma.DateTimeFilter<"LostReason"> | Date | string updatedAt?: Prisma.DateTimeFilter<"LostReason"> | Date | string name?: Prisma.StringFilter<"LostReason"> | string beschreibung?: Prisma.StringNullableFilter<"LostReason"> | string | null kategorie?: Prisma.StringNullableFilter<"LostReason"> | string | null istVorlage?: Prisma.BoolFilter<"LostReason"> | boolean position?: Prisma.IntFilter<"LostReason"> | number isDemoData?: Prisma.BoolFilter<"LostReason"> | boolean archivedAt?: Prisma.DateTimeNullableFilter<"LostReason"> | Date | string | null projekte?: Prisma.ProjektListRelationFilter }, "id" | "tenantId_name"> export type LostReasonOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder beschreibung?: Prisma.SortOrderInput | Prisma.SortOrder kategorie?: Prisma.SortOrderInput | Prisma.SortOrder istVorlage?: Prisma.SortOrder position?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.LostReasonCountOrderByAggregateInput _avg?: Prisma.LostReasonAvgOrderByAggregateInput _max?: Prisma.LostReasonMaxOrderByAggregateInput _min?: Prisma.LostReasonMinOrderByAggregateInput _sum?: Prisma.LostReasonSumOrderByAggregateInput } export type LostReasonScalarWhereWithAggregatesInput = { AND?: Prisma.LostReasonScalarWhereWithAggregatesInput | Prisma.LostReasonScalarWhereWithAggregatesInput[] OR?: Prisma.LostReasonScalarWhereWithAggregatesInput[] NOT?: Prisma.LostReasonScalarWhereWithAggregatesInput | Prisma.LostReasonScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"LostReason"> | string tenantId?: Prisma.StringWithAggregatesFilter<"LostReason"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"LostReason"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"LostReason"> | Date | string name?: Prisma.StringWithAggregatesFilter<"LostReason"> | string beschreibung?: Prisma.StringNullableWithAggregatesFilter<"LostReason"> | string | null kategorie?: Prisma.StringNullableWithAggregatesFilter<"LostReason"> | string | null istVorlage?: Prisma.BoolWithAggregatesFilter<"LostReason"> | boolean position?: Prisma.IntWithAggregatesFilter<"LostReason"> | number isDemoData?: Prisma.BoolWithAggregatesFilter<"LostReason"> | boolean archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"LostReason"> | Date | string | null } export type LostReasonCreateInput = { id?: string tenantId: string createdAt?: Date | string updatedAt?: Date | string name: string beschreibung?: string | null kategorie?: string | null istVorlage?: boolean position?: number isDemoData?: boolean archivedAt?: Date | string | null projekte?: Prisma.ProjektCreateNestedManyWithoutLostReasonInput } export type LostReasonUncheckedCreateInput = { id?: string tenantId: string createdAt?: Date | string updatedAt?: Date | string name: string beschreibung?: string | null kategorie?: string | null istVorlage?: boolean position?: number isDemoData?: boolean archivedAt?: Date | string | null projekte?: Prisma.ProjektUncheckedCreateNestedManyWithoutLostReasonInput } export type LostReasonUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string beschreibung?: Prisma.NullableStringFieldUpdateOperationsInput | string | null kategorie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null istVorlage?: Prisma.BoolFieldUpdateOperationsInput | boolean position?: Prisma.IntFieldUpdateOperationsInput | number isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null projekte?: Prisma.ProjektUpdateManyWithoutLostReasonNestedInput } export type LostReasonUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string beschreibung?: Prisma.NullableStringFieldUpdateOperationsInput | string | null kategorie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null istVorlage?: Prisma.BoolFieldUpdateOperationsInput | boolean position?: Prisma.IntFieldUpdateOperationsInput | number isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null projekte?: Prisma.ProjektUncheckedUpdateManyWithoutLostReasonNestedInput } export type LostReasonCreateManyInput = { id?: string tenantId: string createdAt?: Date | string updatedAt?: Date | string name: string beschreibung?: string | null kategorie?: string | null istVorlage?: boolean position?: number isDemoData?: boolean archivedAt?: Date | string | null } export type LostReasonUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string beschreibung?: Prisma.NullableStringFieldUpdateOperationsInput | string | null kategorie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null istVorlage?: Prisma.BoolFieldUpdateOperationsInput | boolean position?: Prisma.IntFieldUpdateOperationsInput | number isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type LostReasonUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string beschreibung?: Prisma.NullableStringFieldUpdateOperationsInput | string | null kategorie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null istVorlage?: Prisma.BoolFieldUpdateOperationsInput | boolean position?: Prisma.IntFieldUpdateOperationsInput | number isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type LostReasonTenantIdNameCompoundUniqueInput = { tenantId: string name: string } export type LostReasonCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder beschreibung?: Prisma.SortOrder kategorie?: Prisma.SortOrder istVorlage?: Prisma.SortOrder position?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type LostReasonAvgOrderByAggregateInput = { position?: Prisma.SortOrder } export type LostReasonMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder beschreibung?: Prisma.SortOrder kategorie?: Prisma.SortOrder istVorlage?: Prisma.SortOrder position?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type LostReasonMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder name?: Prisma.SortOrder beschreibung?: Prisma.SortOrder kategorie?: Prisma.SortOrder istVorlage?: Prisma.SortOrder position?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type LostReasonSumOrderByAggregateInput = { position?: Prisma.SortOrder } export type LostReasonNullableScalarRelationFilter = { is?: Prisma.LostReasonWhereInput | null isNot?: Prisma.LostReasonWhereInput | null } export type LostReasonCreateNestedOneWithoutProjekteInput = { create?: Prisma.XOR connectOrCreate?: Prisma.LostReasonCreateOrConnectWithoutProjekteInput connect?: Prisma.LostReasonWhereUniqueInput } export type LostReasonUpdateOneWithoutProjekteNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.LostReasonCreateOrConnectWithoutProjekteInput upsert?: Prisma.LostReasonUpsertWithoutProjekteInput disconnect?: Prisma.LostReasonWhereInput | boolean delete?: Prisma.LostReasonWhereInput | boolean connect?: Prisma.LostReasonWhereUniqueInput update?: Prisma.XOR, Prisma.LostReasonUncheckedUpdateWithoutProjekteInput> } export type LostReasonCreateWithoutProjekteInput = { id?: string tenantId: string createdAt?: Date | string updatedAt?: Date | string name: string beschreibung?: string | null kategorie?: string | null istVorlage?: boolean position?: number isDemoData?: boolean archivedAt?: Date | string | null } export type LostReasonUncheckedCreateWithoutProjekteInput = { id?: string tenantId: string createdAt?: Date | string updatedAt?: Date | string name: string beschreibung?: string | null kategorie?: string | null istVorlage?: boolean position?: number isDemoData?: boolean archivedAt?: Date | string | null } export type LostReasonCreateOrConnectWithoutProjekteInput = { where: Prisma.LostReasonWhereUniqueInput create: Prisma.XOR } export type LostReasonUpsertWithoutProjekteInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.LostReasonWhereInput } export type LostReasonUpdateToOneWithWhereWithoutProjekteInput = { where?: Prisma.LostReasonWhereInput data: Prisma.XOR } export type LostReasonUpdateWithoutProjekteInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string beschreibung?: Prisma.NullableStringFieldUpdateOperationsInput | string | null kategorie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null istVorlage?: Prisma.BoolFieldUpdateOperationsInput | boolean position?: Prisma.IntFieldUpdateOperationsInput | number isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type LostReasonUncheckedUpdateWithoutProjekteInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string beschreibung?: Prisma.NullableStringFieldUpdateOperationsInput | string | null kategorie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null istVorlage?: Prisma.BoolFieldUpdateOperationsInput | boolean position?: Prisma.IntFieldUpdateOperationsInput | number isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } /** * Count Type LostReasonCountOutputType */ export type LostReasonCountOutputType = { projekte: number } export type LostReasonCountOutputTypeSelect = { projekte?: boolean | LostReasonCountOutputTypeCountProjekteArgs } /** * LostReasonCountOutputType without action */ export type LostReasonCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the LostReasonCountOutputType */ select?: Prisma.LostReasonCountOutputTypeSelect | null } /** * LostReasonCountOutputType without action */ export type LostReasonCountOutputTypeCountProjekteArgs = { where?: Prisma.ProjektWhereInput } export type LostReasonSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean beschreibung?: boolean kategorie?: boolean istVorlage?: boolean position?: boolean isDemoData?: boolean archivedAt?: boolean projekte?: boolean | Prisma.LostReason$projekteArgs _count?: boolean | Prisma.LostReasonCountOutputTypeDefaultArgs }, ExtArgs["result"]["lostReason"]> export type LostReasonSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean beschreibung?: boolean kategorie?: boolean istVorlage?: boolean position?: boolean isDemoData?: boolean archivedAt?: boolean }, ExtArgs["result"]["lostReason"]> export type LostReasonSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean beschreibung?: boolean kategorie?: boolean istVorlage?: boolean position?: boolean isDemoData?: boolean archivedAt?: boolean }, ExtArgs["result"]["lostReason"]> export type LostReasonSelectScalar = { id?: boolean tenantId?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean beschreibung?: boolean kategorie?: boolean istVorlage?: boolean position?: boolean isDemoData?: boolean archivedAt?: boolean } export type LostReasonOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "createdAt" | "updatedAt" | "name" | "beschreibung" | "kategorie" | "istVorlage" | "position" | "isDemoData" | "archivedAt", ExtArgs["result"]["lostReason"]> export type LostReasonInclude = { projekte?: boolean | Prisma.LostReason$projekteArgs _count?: boolean | Prisma.LostReasonCountOutputTypeDefaultArgs } export type LostReasonIncludeCreateManyAndReturn = {} export type LostReasonIncludeUpdateManyAndReturn = {} export type $LostReasonPayload = { name: "LostReason" objects: { projekte: Prisma.$ProjektPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string createdAt: Date updatedAt: Date name: string /** * WF-P8 S06: one-line explanation shown next to the reason in the admin table. */ beschreibung: string | null /** * WF-P8 S06: free-text grouping ("Preis", "Budget", "Wettbewerb", ...). */ kategorie: string | null /** * WF-P8 S06: true for the SHK reasons the tenant seed ships, false for * reasons the tenant created itself. Distinct from isDemoData, which marks * throwaway demo rows. */ istVorlage: boolean position: number isDemoData: boolean archivedAt: Date | null }, ExtArgs["result"]["lostReason"]> composites: {} } export type LostReasonGetPayload = runtime.Types.Result.GetResult export type LostReasonCountArgs = Omit & { select?: LostReasonCountAggregateInputType | true } export interface LostReasonDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['LostReason'], meta: { name: 'LostReason' } } /** * Find zero or one LostReason that matches the filter. * @param {LostReasonFindUniqueArgs} args - Arguments to find a LostReason * @example * // Get one LostReason * const lostReason = await prisma.lostReason.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__LostReasonClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one LostReason that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {LostReasonFindUniqueOrThrowArgs} args - Arguments to find a LostReason * @example * // Get one LostReason * const lostReason = await prisma.lostReason.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__LostReasonClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first LostReason 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 {LostReasonFindFirstArgs} args - Arguments to find a LostReason * @example * // Get one LostReason * const lostReason = await prisma.lostReason.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__LostReasonClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first LostReason 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 {LostReasonFindFirstOrThrowArgs} args - Arguments to find a LostReason * @example * // Get one LostReason * const lostReason = await prisma.lostReason.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__LostReasonClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more LostReasons 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 {LostReasonFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all LostReasons * const lostReasons = await prisma.lostReason.findMany() * * // Get first 10 LostReasons * const lostReasons = await prisma.lostReason.findMany({ take: 10 }) * * // Only select the `id` * const lostReasonWithIdOnly = await prisma.lostReason.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a LostReason. * @param {LostReasonCreateArgs} args - Arguments to create a LostReason. * @example * // Create one LostReason * const LostReason = await prisma.lostReason.create({ * data: { * // ... data to create a LostReason * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__LostReasonClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many LostReasons. * @param {LostReasonCreateManyArgs} args - Arguments to create many LostReasons. * @example * // Create many LostReasons * const lostReason = await prisma.lostReason.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many LostReasons and returns the data saved in the database. * @param {LostReasonCreateManyAndReturnArgs} args - Arguments to create many LostReasons. * @example * // Create many LostReasons * const lostReason = await prisma.lostReason.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many LostReasons and only return the `id` * const lostReasonWithIdOnly = await prisma.lostReason.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 LostReason. * @param {LostReasonDeleteArgs} args - Arguments to delete one LostReason. * @example * // Delete one LostReason * const LostReason = await prisma.lostReason.delete({ * where: { * // ... filter to delete one LostReason * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__LostReasonClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one LostReason. * @param {LostReasonUpdateArgs} args - Arguments to update one LostReason. * @example * // Update one LostReason * const lostReason = await prisma.lostReason.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__LostReasonClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more LostReasons. * @param {LostReasonDeleteManyArgs} args - Arguments to filter LostReasons to delete. * @example * // Delete a few LostReasons * const { count } = await prisma.lostReason.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LostReasons. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LostReasonUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many LostReasons * const lostReason = await prisma.lostReason.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LostReasons and returns the data updated in the database. * @param {LostReasonUpdateManyAndReturnArgs} args - Arguments to update many LostReasons. * @example * // Update many LostReasons * const lostReason = await prisma.lostReason.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more LostReasons and only return the `id` * const lostReasonWithIdOnly = await prisma.lostReason.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 LostReason. * @param {LostReasonUpsertArgs} args - Arguments to update or create a LostReason. * @example * // Update or create a LostReason * const lostReason = await prisma.lostReason.upsert({ * create: { * // ... data to create a LostReason * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the LostReason we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__LostReasonClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of LostReasons. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LostReasonCountArgs} args - Arguments to filter LostReasons to count. * @example * // Count the number of LostReasons * const count = await prisma.lostReason.count({ * where: { * // ... the filter for the LostReasons 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 LostReason. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LostReasonAggregateArgs} 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 LostReason. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LostReasonGroupByArgs} 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 LostReasonGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: LostReasonGroupByArgs['orderBy'] } : { orderBy?: LostReasonGroupByArgs['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 ? GetLostReasonGroupByPayload : Prisma.PrismaPromise /** * Fields of the LostReason model */ readonly fields: LostReasonFieldRefs; } /** * The delegate class that acts as a "Promise-like" for LostReason. * 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__LostReasonClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" projekte = {}>(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 LostReason model */ export interface LostReasonFieldRefs { readonly id: Prisma.FieldRef<"LostReason", 'String'> readonly tenantId: Prisma.FieldRef<"LostReason", 'String'> readonly createdAt: Prisma.FieldRef<"LostReason", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"LostReason", 'DateTime'> readonly name: Prisma.FieldRef<"LostReason", 'String'> readonly beschreibung: Prisma.FieldRef<"LostReason", 'String'> readonly kategorie: Prisma.FieldRef<"LostReason", 'String'> readonly istVorlage: Prisma.FieldRef<"LostReason", 'Boolean'> readonly position: Prisma.FieldRef<"LostReason", 'Int'> readonly isDemoData: Prisma.FieldRef<"LostReason", 'Boolean'> readonly archivedAt: Prisma.FieldRef<"LostReason", 'DateTime'> } // Custom InputTypes /** * LostReason findUnique */ export type LostReasonFindUniqueArgs = { /** * Select specific fields to fetch from the LostReason */ select?: Prisma.LostReasonSelect | null /** * Omit specific fields from the LostReason */ omit?: Prisma.LostReasonOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LostReasonInclude | null /** * Filter, which LostReason to fetch. */ where: Prisma.LostReasonWhereUniqueInput } /** * LostReason findUniqueOrThrow */ export type LostReasonFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the LostReason */ select?: Prisma.LostReasonSelect | null /** * Omit specific fields from the LostReason */ omit?: Prisma.LostReasonOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LostReasonInclude | null /** * Filter, which LostReason to fetch. */ where: Prisma.LostReasonWhereUniqueInput } /** * LostReason findFirst */ export type LostReasonFindFirstArgs = { /** * Select specific fields to fetch from the LostReason */ select?: Prisma.LostReasonSelect | null /** * Omit specific fields from the LostReason */ omit?: Prisma.LostReasonOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LostReasonInclude | null /** * Filter, which LostReason to fetch. */ where?: Prisma.LostReasonWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LostReasons to fetch. */ orderBy?: Prisma.LostReasonOrderByWithRelationInput | Prisma.LostReasonOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LostReasons. */ cursor?: Prisma.LostReasonWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LostReasons 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` LostReasons. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LostReasons. */ distinct?: Prisma.LostReasonScalarFieldEnum | Prisma.LostReasonScalarFieldEnum[] } /** * LostReason findFirstOrThrow */ export type LostReasonFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the LostReason */ select?: Prisma.LostReasonSelect | null /** * Omit specific fields from the LostReason */ omit?: Prisma.LostReasonOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LostReasonInclude | null /** * Filter, which LostReason to fetch. */ where?: Prisma.LostReasonWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LostReasons to fetch. */ orderBy?: Prisma.LostReasonOrderByWithRelationInput | Prisma.LostReasonOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LostReasons. */ cursor?: Prisma.LostReasonWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LostReasons 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` LostReasons. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LostReasons. */ distinct?: Prisma.LostReasonScalarFieldEnum | Prisma.LostReasonScalarFieldEnum[] } /** * LostReason findMany */ export type LostReasonFindManyArgs = { /** * Select specific fields to fetch from the LostReason */ select?: Prisma.LostReasonSelect | null /** * Omit specific fields from the LostReason */ omit?: Prisma.LostReasonOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LostReasonInclude | null /** * Filter, which LostReasons to fetch. */ where?: Prisma.LostReasonWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LostReasons to fetch. */ orderBy?: Prisma.LostReasonOrderByWithRelationInput | Prisma.LostReasonOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing LostReasons. */ cursor?: Prisma.LostReasonWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LostReasons 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` LostReasons. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LostReasons. */ distinct?: Prisma.LostReasonScalarFieldEnum | Prisma.LostReasonScalarFieldEnum[] } /** * LostReason create */ export type LostReasonCreateArgs = { /** * Select specific fields to fetch from the LostReason */ select?: Prisma.LostReasonSelect | null /** * Omit specific fields from the LostReason */ omit?: Prisma.LostReasonOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LostReasonInclude | null /** * The data needed to create a LostReason. */ data: Prisma.XOR } /** * LostReason createMany */ export type LostReasonCreateManyArgs = { /** * The data used to create many LostReasons. */ data: Prisma.LostReasonCreateManyInput | Prisma.LostReasonCreateManyInput[] skipDuplicates?: boolean } /** * LostReason createManyAndReturn */ export type LostReasonCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the LostReason */ select?: Prisma.LostReasonSelectCreateManyAndReturn | null /** * Omit specific fields from the LostReason */ omit?: Prisma.LostReasonOmit | null /** * The data used to create many LostReasons. */ data: Prisma.LostReasonCreateManyInput | Prisma.LostReasonCreateManyInput[] skipDuplicates?: boolean } /** * LostReason update */ export type LostReasonUpdateArgs = { /** * Select specific fields to fetch from the LostReason */ select?: Prisma.LostReasonSelect | null /** * Omit specific fields from the LostReason */ omit?: Prisma.LostReasonOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LostReasonInclude | null /** * The data needed to update a LostReason. */ data: Prisma.XOR /** * Choose, which LostReason to update. */ where: Prisma.LostReasonWhereUniqueInput } /** * LostReason updateMany */ export type LostReasonUpdateManyArgs = { /** * The data used to update LostReasons. */ data: Prisma.XOR /** * Filter which LostReasons to update */ where?: Prisma.LostReasonWhereInput /** * Limit how many LostReasons to update. */ limit?: number } /** * LostReason updateManyAndReturn */ export type LostReasonUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the LostReason */ select?: Prisma.LostReasonSelectUpdateManyAndReturn | null /** * Omit specific fields from the LostReason */ omit?: Prisma.LostReasonOmit | null /** * The data used to update LostReasons. */ data: Prisma.XOR /** * Filter which LostReasons to update */ where?: Prisma.LostReasonWhereInput /** * Limit how many LostReasons to update. */ limit?: number } /** * LostReason upsert */ export type LostReasonUpsertArgs = { /** * Select specific fields to fetch from the LostReason */ select?: Prisma.LostReasonSelect | null /** * Omit specific fields from the LostReason */ omit?: Prisma.LostReasonOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LostReasonInclude | null /** * The filter to search for the LostReason to update in case it exists. */ where: Prisma.LostReasonWhereUniqueInput /** * In case the LostReason found by the `where` argument doesn't exist, create a new LostReason with this data. */ create: Prisma.XOR /** * In case the LostReason was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * LostReason delete */ export type LostReasonDeleteArgs = { /** * Select specific fields to fetch from the LostReason */ select?: Prisma.LostReasonSelect | null /** * Omit specific fields from the LostReason */ omit?: Prisma.LostReasonOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LostReasonInclude | null /** * Filter which LostReason to delete. */ where: Prisma.LostReasonWhereUniqueInput } /** * LostReason deleteMany */ export type LostReasonDeleteManyArgs = { /** * Filter which LostReasons to delete */ where?: Prisma.LostReasonWhereInput /** * Limit how many LostReasons to delete. */ limit?: number } /** * LostReason.projekte */ export type LostReason$projekteArgs = { /** * Select specific fields to fetch from the Projekt */ select?: Prisma.ProjektSelect | null /** * Omit specific fields from the Projekt */ omit?: Prisma.ProjektOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektInclude | null where?: Prisma.ProjektWhereInput orderBy?: Prisma.ProjektOrderByWithRelationInput | Prisma.ProjektOrderByWithRelationInput[] cursor?: Prisma.ProjektWhereUniqueInput take?: number skip?: number distinct?: Prisma.ProjektScalarFieldEnum | Prisma.ProjektScalarFieldEnum[] } /** * LostReason without action */ export type LostReasonDefaultArgs = { /** * Select specific fields to fetch from the LostReason */ select?: Prisma.LostReasonSelect | null /** * Omit specific fields from the LostReason */ omit?: Prisma.LostReasonOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LostReasonInclude | null }