/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `ProjektAdressDetail` 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 ProjektAdressDetail * The per-slot extras the S02 address group asks for on top of the shared * `Adresse`. Deliberately NOT columns on `Adresse`: that is a shared CRM entity * which contacts reuse, so a project's "Zahlungsziel" or "Zufahrt" would leak * into every contact address. One row per project and slot. */ export type ProjektAdressDetailModel = runtime.Types.Result.DefaultSelection export type AggregateProjektAdressDetail = { _count: ProjektAdressDetailCountAggregateOutputType | null _min: ProjektAdressDetailMinAggregateOutputType | null _max: ProjektAdressDetailMaxAggregateOutputType | null } export type ProjektAdressDetailMinAggregateOutputType = { id: string | null tenantId: string | null createdAt: Date | null updatedAt: Date | null projektId: string | null slot: $Enums.ProjektAdressSlot | null bauabschnitt: string | null zufahrt: string | null koordinaten: string | null empfaenger: string | null zahlungsziel: string | null rechnungsEmail: string | null postErwuenscht: boolean | null telefon: string | null ansprechpartnerVorOrt: string | null notizen: string | null } export type ProjektAdressDetailMaxAggregateOutputType = { id: string | null tenantId: string | null createdAt: Date | null updatedAt: Date | null projektId: string | null slot: $Enums.ProjektAdressSlot | null bauabschnitt: string | null zufahrt: string | null koordinaten: string | null empfaenger: string | null zahlungsziel: string | null rechnungsEmail: string | null postErwuenscht: boolean | null telefon: string | null ansprechpartnerVorOrt: string | null notizen: string | null } export type ProjektAdressDetailCountAggregateOutputType = { id: number tenantId: number createdAt: number updatedAt: number projektId: number slot: number bauabschnitt: number zufahrt: number koordinaten: number empfaenger: number zahlungsziel: number rechnungsEmail: number postErwuenscht: number telefon: number ansprechpartnerVorOrt: number notizen: number _all: number } export type ProjektAdressDetailMinAggregateInputType = { id?: true tenantId?: true createdAt?: true updatedAt?: true projektId?: true slot?: true bauabschnitt?: true zufahrt?: true koordinaten?: true empfaenger?: true zahlungsziel?: true rechnungsEmail?: true postErwuenscht?: true telefon?: true ansprechpartnerVorOrt?: true notizen?: true } export type ProjektAdressDetailMaxAggregateInputType = { id?: true tenantId?: true createdAt?: true updatedAt?: true projektId?: true slot?: true bauabschnitt?: true zufahrt?: true koordinaten?: true empfaenger?: true zahlungsziel?: true rechnungsEmail?: true postErwuenscht?: true telefon?: true ansprechpartnerVorOrt?: true notizen?: true } export type ProjektAdressDetailCountAggregateInputType = { id?: true tenantId?: true createdAt?: true updatedAt?: true projektId?: true slot?: true bauabschnitt?: true zufahrt?: true koordinaten?: true empfaenger?: true zahlungsziel?: true rechnungsEmail?: true postErwuenscht?: true telefon?: true ansprechpartnerVorOrt?: true notizen?: true _all?: true } export type ProjektAdressDetailAggregateArgs = { /** * Filter which ProjektAdressDetail to aggregate. */ where?: Prisma.ProjektAdressDetailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProjektAdressDetails to fetch. */ orderBy?: Prisma.ProjektAdressDetailOrderByWithRelationInput | Prisma.ProjektAdressDetailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ProjektAdressDetailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProjektAdressDetails 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` ProjektAdressDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ProjektAdressDetails **/ _count?: true | ProjektAdressDetailCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ProjektAdressDetailMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ProjektAdressDetailMaxAggregateInputType } export type GetProjektAdressDetailAggregateType = { [P in keyof T & keyof AggregateProjektAdressDetail]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ProjektAdressDetailGroupByArgs = { where?: Prisma.ProjektAdressDetailWhereInput orderBy?: Prisma.ProjektAdressDetailOrderByWithAggregationInput | Prisma.ProjektAdressDetailOrderByWithAggregationInput[] by: Prisma.ProjektAdressDetailScalarFieldEnum[] | Prisma.ProjektAdressDetailScalarFieldEnum having?: Prisma.ProjektAdressDetailScalarWhereWithAggregatesInput take?: number skip?: number _count?: ProjektAdressDetailCountAggregateInputType | true _min?: ProjektAdressDetailMinAggregateInputType _max?: ProjektAdressDetailMaxAggregateInputType } export type ProjektAdressDetailGroupByOutputType = { id: string tenantId: string createdAt: Date updatedAt: Date projektId: string slot: $Enums.ProjektAdressSlot bauabschnitt: string | null zufahrt: string | null koordinaten: string | null empfaenger: string | null zahlungsziel: string | null rechnungsEmail: string | null postErwuenscht: boolean telefon: string | null ansprechpartnerVorOrt: string | null notizen: string | null _count: ProjektAdressDetailCountAggregateOutputType | null _min: ProjektAdressDetailMinAggregateOutputType | null _max: ProjektAdressDetailMaxAggregateOutputType | null } export type GetProjektAdressDetailGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ProjektAdressDetailGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ProjektAdressDetailWhereInput = { AND?: Prisma.ProjektAdressDetailWhereInput | Prisma.ProjektAdressDetailWhereInput[] OR?: Prisma.ProjektAdressDetailWhereInput[] NOT?: Prisma.ProjektAdressDetailWhereInput | Prisma.ProjektAdressDetailWhereInput[] id?: Prisma.StringFilter<"ProjektAdressDetail"> | string tenantId?: Prisma.StringFilter<"ProjektAdressDetail"> | string createdAt?: Prisma.DateTimeFilter<"ProjektAdressDetail"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ProjektAdressDetail"> | Date | string projektId?: Prisma.StringFilter<"ProjektAdressDetail"> | string slot?: Prisma.EnumProjektAdressSlotFilter<"ProjektAdressDetail"> | $Enums.ProjektAdressSlot bauabschnitt?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null zufahrt?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null koordinaten?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null empfaenger?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null zahlungsziel?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null rechnungsEmail?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null postErwuenscht?: Prisma.BoolFilter<"ProjektAdressDetail"> | boolean telefon?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null ansprechpartnerVorOrt?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null notizen?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null projekt?: Prisma.XOR } export type ProjektAdressDetailOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder projektId?: Prisma.SortOrder slot?: Prisma.SortOrder bauabschnitt?: Prisma.SortOrderInput | Prisma.SortOrder zufahrt?: Prisma.SortOrderInput | Prisma.SortOrder koordinaten?: Prisma.SortOrderInput | Prisma.SortOrder empfaenger?: Prisma.SortOrderInput | Prisma.SortOrder zahlungsziel?: Prisma.SortOrderInput | Prisma.SortOrder rechnungsEmail?: Prisma.SortOrderInput | Prisma.SortOrder postErwuenscht?: Prisma.SortOrder telefon?: Prisma.SortOrderInput | Prisma.SortOrder ansprechpartnerVorOrt?: Prisma.SortOrderInput | Prisma.SortOrder notizen?: Prisma.SortOrderInput | Prisma.SortOrder projekt?: Prisma.ProjektOrderByWithRelationInput } export type ProjektAdressDetailWhereUniqueInput = Prisma.AtLeast<{ id?: string projektId_slot?: Prisma.ProjektAdressDetailProjektIdSlotCompoundUniqueInput AND?: Prisma.ProjektAdressDetailWhereInput | Prisma.ProjektAdressDetailWhereInput[] OR?: Prisma.ProjektAdressDetailWhereInput[] NOT?: Prisma.ProjektAdressDetailWhereInput | Prisma.ProjektAdressDetailWhereInput[] tenantId?: Prisma.StringFilter<"ProjektAdressDetail"> | string createdAt?: Prisma.DateTimeFilter<"ProjektAdressDetail"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ProjektAdressDetail"> | Date | string projektId?: Prisma.StringFilter<"ProjektAdressDetail"> | string slot?: Prisma.EnumProjektAdressSlotFilter<"ProjektAdressDetail"> | $Enums.ProjektAdressSlot bauabschnitt?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null zufahrt?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null koordinaten?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null empfaenger?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null zahlungsziel?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null rechnungsEmail?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null postErwuenscht?: Prisma.BoolFilter<"ProjektAdressDetail"> | boolean telefon?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null ansprechpartnerVorOrt?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null notizen?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null projekt?: Prisma.XOR }, "id" | "projektId_slot"> export type ProjektAdressDetailOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder projektId?: Prisma.SortOrder slot?: Prisma.SortOrder bauabschnitt?: Prisma.SortOrderInput | Prisma.SortOrder zufahrt?: Prisma.SortOrderInput | Prisma.SortOrder koordinaten?: Prisma.SortOrderInput | Prisma.SortOrder empfaenger?: Prisma.SortOrderInput | Prisma.SortOrder zahlungsziel?: Prisma.SortOrderInput | Prisma.SortOrder rechnungsEmail?: Prisma.SortOrderInput | Prisma.SortOrder postErwuenscht?: Prisma.SortOrder telefon?: Prisma.SortOrderInput | Prisma.SortOrder ansprechpartnerVorOrt?: Prisma.SortOrderInput | Prisma.SortOrder notizen?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.ProjektAdressDetailCountOrderByAggregateInput _max?: Prisma.ProjektAdressDetailMaxOrderByAggregateInput _min?: Prisma.ProjektAdressDetailMinOrderByAggregateInput } export type ProjektAdressDetailScalarWhereWithAggregatesInput = { AND?: Prisma.ProjektAdressDetailScalarWhereWithAggregatesInput | Prisma.ProjektAdressDetailScalarWhereWithAggregatesInput[] OR?: Prisma.ProjektAdressDetailScalarWhereWithAggregatesInput[] NOT?: Prisma.ProjektAdressDetailScalarWhereWithAggregatesInput | Prisma.ProjektAdressDetailScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"ProjektAdressDetail"> | string tenantId?: Prisma.StringWithAggregatesFilter<"ProjektAdressDetail"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"ProjektAdressDetail"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ProjektAdressDetail"> | Date | string projektId?: Prisma.StringWithAggregatesFilter<"ProjektAdressDetail"> | string slot?: Prisma.EnumProjektAdressSlotWithAggregatesFilter<"ProjektAdressDetail"> | $Enums.ProjektAdressSlot bauabschnitt?: Prisma.StringNullableWithAggregatesFilter<"ProjektAdressDetail"> | string | null zufahrt?: Prisma.StringNullableWithAggregatesFilter<"ProjektAdressDetail"> | string | null koordinaten?: Prisma.StringNullableWithAggregatesFilter<"ProjektAdressDetail"> | string | null empfaenger?: Prisma.StringNullableWithAggregatesFilter<"ProjektAdressDetail"> | string | null zahlungsziel?: Prisma.StringNullableWithAggregatesFilter<"ProjektAdressDetail"> | string | null rechnungsEmail?: Prisma.StringNullableWithAggregatesFilter<"ProjektAdressDetail"> | string | null postErwuenscht?: Prisma.BoolWithAggregatesFilter<"ProjektAdressDetail"> | boolean telefon?: Prisma.StringNullableWithAggregatesFilter<"ProjektAdressDetail"> | string | null ansprechpartnerVorOrt?: Prisma.StringNullableWithAggregatesFilter<"ProjektAdressDetail"> | string | null notizen?: Prisma.StringNullableWithAggregatesFilter<"ProjektAdressDetail"> | string | null } export type ProjektAdressDetailCreateInput = { id?: string tenantId: string createdAt?: Date | string updatedAt?: Date | string slot: $Enums.ProjektAdressSlot bauabschnitt?: string | null zufahrt?: string | null koordinaten?: string | null empfaenger?: string | null zahlungsziel?: string | null rechnungsEmail?: string | null postErwuenscht?: boolean telefon?: string | null ansprechpartnerVorOrt?: string | null notizen?: string | null projekt: Prisma.ProjektCreateNestedOneWithoutAdressDetailsInput } export type ProjektAdressDetailUncheckedCreateInput = { id?: string tenantId: string createdAt?: Date | string updatedAt?: Date | string projektId: string slot: $Enums.ProjektAdressSlot bauabschnitt?: string | null zufahrt?: string | null koordinaten?: string | null empfaenger?: string | null zahlungsziel?: string | null rechnungsEmail?: string | null postErwuenscht?: boolean telefon?: string | null ansprechpartnerVorOrt?: string | null notizen?: string | null } export type ProjektAdressDetailUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string slot?: Prisma.EnumProjektAdressSlotFieldUpdateOperationsInput | $Enums.ProjektAdressSlot bauabschnitt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zufahrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null koordinaten?: Prisma.NullableStringFieldUpdateOperationsInput | string | null empfaenger?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zahlungsziel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rechnungsEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null postErwuenscht?: Prisma.BoolFieldUpdateOperationsInput | boolean telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ansprechpartnerVorOrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notizen?: Prisma.NullableStringFieldUpdateOperationsInput | string | null projekt?: Prisma.ProjektUpdateOneRequiredWithoutAdressDetailsNestedInput } export type ProjektAdressDetailUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string projektId?: Prisma.StringFieldUpdateOperationsInput | string slot?: Prisma.EnumProjektAdressSlotFieldUpdateOperationsInput | $Enums.ProjektAdressSlot bauabschnitt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zufahrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null koordinaten?: Prisma.NullableStringFieldUpdateOperationsInput | string | null empfaenger?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zahlungsziel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rechnungsEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null postErwuenscht?: Prisma.BoolFieldUpdateOperationsInput | boolean telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ansprechpartnerVorOrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notizen?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ProjektAdressDetailCreateManyInput = { id?: string tenantId: string createdAt?: Date | string updatedAt?: Date | string projektId: string slot: $Enums.ProjektAdressSlot bauabschnitt?: string | null zufahrt?: string | null koordinaten?: string | null empfaenger?: string | null zahlungsziel?: string | null rechnungsEmail?: string | null postErwuenscht?: boolean telefon?: string | null ansprechpartnerVorOrt?: string | null notizen?: string | null } export type ProjektAdressDetailUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string slot?: Prisma.EnumProjektAdressSlotFieldUpdateOperationsInput | $Enums.ProjektAdressSlot bauabschnitt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zufahrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null koordinaten?: Prisma.NullableStringFieldUpdateOperationsInput | string | null empfaenger?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zahlungsziel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rechnungsEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null postErwuenscht?: Prisma.BoolFieldUpdateOperationsInput | boolean telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ansprechpartnerVorOrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notizen?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ProjektAdressDetailUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string projektId?: Prisma.StringFieldUpdateOperationsInput | string slot?: Prisma.EnumProjektAdressSlotFieldUpdateOperationsInput | $Enums.ProjektAdressSlot bauabschnitt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zufahrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null koordinaten?: Prisma.NullableStringFieldUpdateOperationsInput | string | null empfaenger?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zahlungsziel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rechnungsEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null postErwuenscht?: Prisma.BoolFieldUpdateOperationsInput | boolean telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ansprechpartnerVorOrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notizen?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ProjektAdressDetailListRelationFilter = { every?: Prisma.ProjektAdressDetailWhereInput some?: Prisma.ProjektAdressDetailWhereInput none?: Prisma.ProjektAdressDetailWhereInput } export type ProjektAdressDetailOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type ProjektAdressDetailProjektIdSlotCompoundUniqueInput = { projektId: string slot: $Enums.ProjektAdressSlot } export type ProjektAdressDetailCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder projektId?: Prisma.SortOrder slot?: Prisma.SortOrder bauabschnitt?: Prisma.SortOrder zufahrt?: Prisma.SortOrder koordinaten?: Prisma.SortOrder empfaenger?: Prisma.SortOrder zahlungsziel?: Prisma.SortOrder rechnungsEmail?: Prisma.SortOrder postErwuenscht?: Prisma.SortOrder telefon?: Prisma.SortOrder ansprechpartnerVorOrt?: Prisma.SortOrder notizen?: Prisma.SortOrder } export type ProjektAdressDetailMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder projektId?: Prisma.SortOrder slot?: Prisma.SortOrder bauabschnitt?: Prisma.SortOrder zufahrt?: Prisma.SortOrder koordinaten?: Prisma.SortOrder empfaenger?: Prisma.SortOrder zahlungsziel?: Prisma.SortOrder rechnungsEmail?: Prisma.SortOrder postErwuenscht?: Prisma.SortOrder telefon?: Prisma.SortOrder ansprechpartnerVorOrt?: Prisma.SortOrder notizen?: Prisma.SortOrder } export type ProjektAdressDetailMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder projektId?: Prisma.SortOrder slot?: Prisma.SortOrder bauabschnitt?: Prisma.SortOrder zufahrt?: Prisma.SortOrder koordinaten?: Prisma.SortOrder empfaenger?: Prisma.SortOrder zahlungsziel?: Prisma.SortOrder rechnungsEmail?: Prisma.SortOrder postErwuenscht?: Prisma.SortOrder telefon?: Prisma.SortOrder ansprechpartnerVorOrt?: Prisma.SortOrder notizen?: Prisma.SortOrder } export type ProjektAdressDetailCreateNestedManyWithoutProjektInput = { create?: Prisma.XOR | Prisma.ProjektAdressDetailCreateWithoutProjektInput[] | Prisma.ProjektAdressDetailUncheckedCreateWithoutProjektInput[] connectOrCreate?: Prisma.ProjektAdressDetailCreateOrConnectWithoutProjektInput | Prisma.ProjektAdressDetailCreateOrConnectWithoutProjektInput[] createMany?: Prisma.ProjektAdressDetailCreateManyProjektInputEnvelope connect?: Prisma.ProjektAdressDetailWhereUniqueInput | Prisma.ProjektAdressDetailWhereUniqueInput[] } export type ProjektAdressDetailUncheckedCreateNestedManyWithoutProjektInput = { create?: Prisma.XOR | Prisma.ProjektAdressDetailCreateWithoutProjektInput[] | Prisma.ProjektAdressDetailUncheckedCreateWithoutProjektInput[] connectOrCreate?: Prisma.ProjektAdressDetailCreateOrConnectWithoutProjektInput | Prisma.ProjektAdressDetailCreateOrConnectWithoutProjektInput[] createMany?: Prisma.ProjektAdressDetailCreateManyProjektInputEnvelope connect?: Prisma.ProjektAdressDetailWhereUniqueInput | Prisma.ProjektAdressDetailWhereUniqueInput[] } export type ProjektAdressDetailUpdateManyWithoutProjektNestedInput = { create?: Prisma.XOR | Prisma.ProjektAdressDetailCreateWithoutProjektInput[] | Prisma.ProjektAdressDetailUncheckedCreateWithoutProjektInput[] connectOrCreate?: Prisma.ProjektAdressDetailCreateOrConnectWithoutProjektInput | Prisma.ProjektAdressDetailCreateOrConnectWithoutProjektInput[] upsert?: Prisma.ProjektAdressDetailUpsertWithWhereUniqueWithoutProjektInput | Prisma.ProjektAdressDetailUpsertWithWhereUniqueWithoutProjektInput[] createMany?: Prisma.ProjektAdressDetailCreateManyProjektInputEnvelope set?: Prisma.ProjektAdressDetailWhereUniqueInput | Prisma.ProjektAdressDetailWhereUniqueInput[] disconnect?: Prisma.ProjektAdressDetailWhereUniqueInput | Prisma.ProjektAdressDetailWhereUniqueInput[] delete?: Prisma.ProjektAdressDetailWhereUniqueInput | Prisma.ProjektAdressDetailWhereUniqueInput[] connect?: Prisma.ProjektAdressDetailWhereUniqueInput | Prisma.ProjektAdressDetailWhereUniqueInput[] update?: Prisma.ProjektAdressDetailUpdateWithWhereUniqueWithoutProjektInput | Prisma.ProjektAdressDetailUpdateWithWhereUniqueWithoutProjektInput[] updateMany?: Prisma.ProjektAdressDetailUpdateManyWithWhereWithoutProjektInput | Prisma.ProjektAdressDetailUpdateManyWithWhereWithoutProjektInput[] deleteMany?: Prisma.ProjektAdressDetailScalarWhereInput | Prisma.ProjektAdressDetailScalarWhereInput[] } export type ProjektAdressDetailUncheckedUpdateManyWithoutProjektNestedInput = { create?: Prisma.XOR | Prisma.ProjektAdressDetailCreateWithoutProjektInput[] | Prisma.ProjektAdressDetailUncheckedCreateWithoutProjektInput[] connectOrCreate?: Prisma.ProjektAdressDetailCreateOrConnectWithoutProjektInput | Prisma.ProjektAdressDetailCreateOrConnectWithoutProjektInput[] upsert?: Prisma.ProjektAdressDetailUpsertWithWhereUniqueWithoutProjektInput | Prisma.ProjektAdressDetailUpsertWithWhereUniqueWithoutProjektInput[] createMany?: Prisma.ProjektAdressDetailCreateManyProjektInputEnvelope set?: Prisma.ProjektAdressDetailWhereUniqueInput | Prisma.ProjektAdressDetailWhereUniqueInput[] disconnect?: Prisma.ProjektAdressDetailWhereUniqueInput | Prisma.ProjektAdressDetailWhereUniqueInput[] delete?: Prisma.ProjektAdressDetailWhereUniqueInput | Prisma.ProjektAdressDetailWhereUniqueInput[] connect?: Prisma.ProjektAdressDetailWhereUniqueInput | Prisma.ProjektAdressDetailWhereUniqueInput[] update?: Prisma.ProjektAdressDetailUpdateWithWhereUniqueWithoutProjektInput | Prisma.ProjektAdressDetailUpdateWithWhereUniqueWithoutProjektInput[] updateMany?: Prisma.ProjektAdressDetailUpdateManyWithWhereWithoutProjektInput | Prisma.ProjektAdressDetailUpdateManyWithWhereWithoutProjektInput[] deleteMany?: Prisma.ProjektAdressDetailScalarWhereInput | Prisma.ProjektAdressDetailScalarWhereInput[] } export type EnumProjektAdressSlotFieldUpdateOperationsInput = { set?: $Enums.ProjektAdressSlot } export type ProjektAdressDetailCreateWithoutProjektInput = { id?: string tenantId: string createdAt?: Date | string updatedAt?: Date | string slot: $Enums.ProjektAdressSlot bauabschnitt?: string | null zufahrt?: string | null koordinaten?: string | null empfaenger?: string | null zahlungsziel?: string | null rechnungsEmail?: string | null postErwuenscht?: boolean telefon?: string | null ansprechpartnerVorOrt?: string | null notizen?: string | null } export type ProjektAdressDetailUncheckedCreateWithoutProjektInput = { id?: string tenantId: string createdAt?: Date | string updatedAt?: Date | string slot: $Enums.ProjektAdressSlot bauabschnitt?: string | null zufahrt?: string | null koordinaten?: string | null empfaenger?: string | null zahlungsziel?: string | null rechnungsEmail?: string | null postErwuenscht?: boolean telefon?: string | null ansprechpartnerVorOrt?: string | null notizen?: string | null } export type ProjektAdressDetailCreateOrConnectWithoutProjektInput = { where: Prisma.ProjektAdressDetailWhereUniqueInput create: Prisma.XOR } export type ProjektAdressDetailCreateManyProjektInputEnvelope = { data: Prisma.ProjektAdressDetailCreateManyProjektInput | Prisma.ProjektAdressDetailCreateManyProjektInput[] skipDuplicates?: boolean } export type ProjektAdressDetailUpsertWithWhereUniqueWithoutProjektInput = { where: Prisma.ProjektAdressDetailWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ProjektAdressDetailUpdateWithWhereUniqueWithoutProjektInput = { where: Prisma.ProjektAdressDetailWhereUniqueInput data: Prisma.XOR } export type ProjektAdressDetailUpdateManyWithWhereWithoutProjektInput = { where: Prisma.ProjektAdressDetailScalarWhereInput data: Prisma.XOR } export type ProjektAdressDetailScalarWhereInput = { AND?: Prisma.ProjektAdressDetailScalarWhereInput | Prisma.ProjektAdressDetailScalarWhereInput[] OR?: Prisma.ProjektAdressDetailScalarWhereInput[] NOT?: Prisma.ProjektAdressDetailScalarWhereInput | Prisma.ProjektAdressDetailScalarWhereInput[] id?: Prisma.StringFilter<"ProjektAdressDetail"> | string tenantId?: Prisma.StringFilter<"ProjektAdressDetail"> | string createdAt?: Prisma.DateTimeFilter<"ProjektAdressDetail"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ProjektAdressDetail"> | Date | string projektId?: Prisma.StringFilter<"ProjektAdressDetail"> | string slot?: Prisma.EnumProjektAdressSlotFilter<"ProjektAdressDetail"> | $Enums.ProjektAdressSlot bauabschnitt?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null zufahrt?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null koordinaten?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null empfaenger?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null zahlungsziel?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null rechnungsEmail?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null postErwuenscht?: Prisma.BoolFilter<"ProjektAdressDetail"> | boolean telefon?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null ansprechpartnerVorOrt?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null notizen?: Prisma.StringNullableFilter<"ProjektAdressDetail"> | string | null } export type ProjektAdressDetailCreateManyProjektInput = { id?: string tenantId: string createdAt?: Date | string updatedAt?: Date | string slot: $Enums.ProjektAdressSlot bauabschnitt?: string | null zufahrt?: string | null koordinaten?: string | null empfaenger?: string | null zahlungsziel?: string | null rechnungsEmail?: string | null postErwuenscht?: boolean telefon?: string | null ansprechpartnerVorOrt?: string | null notizen?: string | null } export type ProjektAdressDetailUpdateWithoutProjektInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string slot?: Prisma.EnumProjektAdressSlotFieldUpdateOperationsInput | $Enums.ProjektAdressSlot bauabschnitt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zufahrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null koordinaten?: Prisma.NullableStringFieldUpdateOperationsInput | string | null empfaenger?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zahlungsziel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rechnungsEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null postErwuenscht?: Prisma.BoolFieldUpdateOperationsInput | boolean telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ansprechpartnerVorOrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notizen?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ProjektAdressDetailUncheckedUpdateWithoutProjektInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string slot?: Prisma.EnumProjektAdressSlotFieldUpdateOperationsInput | $Enums.ProjektAdressSlot bauabschnitt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zufahrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null koordinaten?: Prisma.NullableStringFieldUpdateOperationsInput | string | null empfaenger?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zahlungsziel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rechnungsEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null postErwuenscht?: Prisma.BoolFieldUpdateOperationsInput | boolean telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ansprechpartnerVorOrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notizen?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ProjektAdressDetailUncheckedUpdateManyWithoutProjektInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string slot?: Prisma.EnumProjektAdressSlotFieldUpdateOperationsInput | $Enums.ProjektAdressSlot bauabschnitt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zufahrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null koordinaten?: Prisma.NullableStringFieldUpdateOperationsInput | string | null empfaenger?: Prisma.NullableStringFieldUpdateOperationsInput | string | null zahlungsziel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rechnungsEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null postErwuenscht?: Prisma.BoolFieldUpdateOperationsInput | boolean telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ansprechpartnerVorOrt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notizen?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ProjektAdressDetailSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean createdAt?: boolean updatedAt?: boolean projektId?: boolean slot?: boolean bauabschnitt?: boolean zufahrt?: boolean koordinaten?: boolean empfaenger?: boolean zahlungsziel?: boolean rechnungsEmail?: boolean postErwuenscht?: boolean telefon?: boolean ansprechpartnerVorOrt?: boolean notizen?: boolean projekt?: boolean | Prisma.ProjektDefaultArgs }, ExtArgs["result"]["projektAdressDetail"]> export type ProjektAdressDetailSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean createdAt?: boolean updatedAt?: boolean projektId?: boolean slot?: boolean bauabschnitt?: boolean zufahrt?: boolean koordinaten?: boolean empfaenger?: boolean zahlungsziel?: boolean rechnungsEmail?: boolean postErwuenscht?: boolean telefon?: boolean ansprechpartnerVorOrt?: boolean notizen?: boolean projekt?: boolean | Prisma.ProjektDefaultArgs }, ExtArgs["result"]["projektAdressDetail"]> export type ProjektAdressDetailSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean createdAt?: boolean updatedAt?: boolean projektId?: boolean slot?: boolean bauabschnitt?: boolean zufahrt?: boolean koordinaten?: boolean empfaenger?: boolean zahlungsziel?: boolean rechnungsEmail?: boolean postErwuenscht?: boolean telefon?: boolean ansprechpartnerVorOrt?: boolean notizen?: boolean projekt?: boolean | Prisma.ProjektDefaultArgs }, ExtArgs["result"]["projektAdressDetail"]> export type ProjektAdressDetailSelectScalar = { id?: boolean tenantId?: boolean createdAt?: boolean updatedAt?: boolean projektId?: boolean slot?: boolean bauabschnitt?: boolean zufahrt?: boolean koordinaten?: boolean empfaenger?: boolean zahlungsziel?: boolean rechnungsEmail?: boolean postErwuenscht?: boolean telefon?: boolean ansprechpartnerVorOrt?: boolean notizen?: boolean } export type ProjektAdressDetailOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "createdAt" | "updatedAt" | "projektId" | "slot" | "bauabschnitt" | "zufahrt" | "koordinaten" | "empfaenger" | "zahlungsziel" | "rechnungsEmail" | "postErwuenscht" | "telefon" | "ansprechpartnerVorOrt" | "notizen", ExtArgs["result"]["projektAdressDetail"]> export type ProjektAdressDetailInclude = { projekt?: boolean | Prisma.ProjektDefaultArgs } export type ProjektAdressDetailIncludeCreateManyAndReturn = { projekt?: boolean | Prisma.ProjektDefaultArgs } export type ProjektAdressDetailIncludeUpdateManyAndReturn = { projekt?: boolean | Prisma.ProjektDefaultArgs } export type $ProjektAdressDetailPayload = { name: "ProjektAdressDetail" objects: { projekt: Prisma.$ProjektPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string createdAt: Date updatedAt: Date projektId: string slot: $Enums.ProjektAdressSlot /** * Slot "projekt": where on the site the work happens and how to get there. */ bauabschnitt: string | null zufahrt: string | null koordinaten: string | null /** * Slot "rechnung": who receives the invoice, on what terms, and where the * invoice itself is sent. Separate from `Projekt.email`, which is the * operational contact address of the project. */ empfaenger: string | null zahlungsziel: string | null rechnungsEmail: string | null /** * Slot "bauherr": whether the building owner wants postal mail, and who to * reach on site. The owner is often not the CRM contact carrying the project. */ postErwuenscht: boolean telefon: string | null ansprechpartnerVorOrt: string | null /** * Free text, one per slot. The content is slot-specific — delivery * constraints at the site, payment remarks on the invoice address — so it * cannot live on the shared `Adresse` any more than the fields above. */ notizen: string | null }, ExtArgs["result"]["projektAdressDetail"]> composites: {} } export type ProjektAdressDetailGetPayload = runtime.Types.Result.GetResult export type ProjektAdressDetailCountArgs = Omit & { select?: ProjektAdressDetailCountAggregateInputType | true } export interface ProjektAdressDetailDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ProjektAdressDetail'], meta: { name: 'ProjektAdressDetail' } } /** * Find zero or one ProjektAdressDetail that matches the filter. * @param {ProjektAdressDetailFindUniqueArgs} args - Arguments to find a ProjektAdressDetail * @example * // Get one ProjektAdressDetail * const projektAdressDetail = await prisma.projektAdressDetail.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ProjektAdressDetailClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ProjektAdressDetail that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ProjektAdressDetailFindUniqueOrThrowArgs} args - Arguments to find a ProjektAdressDetail * @example * // Get one ProjektAdressDetail * const projektAdressDetail = await prisma.projektAdressDetail.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ProjektAdressDetailClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ProjektAdressDetail 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 {ProjektAdressDetailFindFirstArgs} args - Arguments to find a ProjektAdressDetail * @example * // Get one ProjektAdressDetail * const projektAdressDetail = await prisma.projektAdressDetail.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjektAdressDetailClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ProjektAdressDetail 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 {ProjektAdressDetailFindFirstOrThrowArgs} args - Arguments to find a ProjektAdressDetail * @example * // Get one ProjektAdressDetail * const projektAdressDetail = await prisma.projektAdressDetail.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjektAdressDetailClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ProjektAdressDetails 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 {ProjektAdressDetailFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ProjektAdressDetails * const projektAdressDetails = await prisma.projektAdressDetail.findMany() * * // Get first 10 ProjektAdressDetails * const projektAdressDetails = await prisma.projektAdressDetail.findMany({ take: 10 }) * * // Only select the `id` * const projektAdressDetailWithIdOnly = await prisma.projektAdressDetail.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a ProjektAdressDetail. * @param {ProjektAdressDetailCreateArgs} args - Arguments to create a ProjektAdressDetail. * @example * // Create one ProjektAdressDetail * const ProjektAdressDetail = await prisma.projektAdressDetail.create({ * data: { * // ... data to create a ProjektAdressDetail * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ProjektAdressDetailClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ProjektAdressDetails. * @param {ProjektAdressDetailCreateManyArgs} args - Arguments to create many ProjektAdressDetails. * @example * // Create many ProjektAdressDetails * const projektAdressDetail = await prisma.projektAdressDetail.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many ProjektAdressDetails and returns the data saved in the database. * @param {ProjektAdressDetailCreateManyAndReturnArgs} args - Arguments to create many ProjektAdressDetails. * @example * // Create many ProjektAdressDetails * const projektAdressDetail = await prisma.projektAdressDetail.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ProjektAdressDetails and only return the `id` * const projektAdressDetailWithIdOnly = await prisma.projektAdressDetail.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 ProjektAdressDetail. * @param {ProjektAdressDetailDeleteArgs} args - Arguments to delete one ProjektAdressDetail. * @example * // Delete one ProjektAdressDetail * const ProjektAdressDetail = await prisma.projektAdressDetail.delete({ * where: { * // ... filter to delete one ProjektAdressDetail * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ProjektAdressDetailClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ProjektAdressDetail. * @param {ProjektAdressDetailUpdateArgs} args - Arguments to update one ProjektAdressDetail. * @example * // Update one ProjektAdressDetail * const projektAdressDetail = await prisma.projektAdressDetail.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ProjektAdressDetailClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ProjektAdressDetails. * @param {ProjektAdressDetailDeleteManyArgs} args - Arguments to filter ProjektAdressDetails to delete. * @example * // Delete a few ProjektAdressDetails * const { count } = await prisma.projektAdressDetail.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProjektAdressDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjektAdressDetailUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ProjektAdressDetails * const projektAdressDetail = await prisma.projektAdressDetail.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProjektAdressDetails and returns the data updated in the database. * @param {ProjektAdressDetailUpdateManyAndReturnArgs} args - Arguments to update many ProjektAdressDetails. * @example * // Update many ProjektAdressDetails * const projektAdressDetail = await prisma.projektAdressDetail.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ProjektAdressDetails and only return the `id` * const projektAdressDetailWithIdOnly = await prisma.projektAdressDetail.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 ProjektAdressDetail. * @param {ProjektAdressDetailUpsertArgs} args - Arguments to update or create a ProjektAdressDetail. * @example * // Update or create a ProjektAdressDetail * const projektAdressDetail = await prisma.projektAdressDetail.upsert({ * create: { * // ... data to create a ProjektAdressDetail * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ProjektAdressDetail we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ProjektAdressDetailClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ProjektAdressDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjektAdressDetailCountArgs} args - Arguments to filter ProjektAdressDetails to count. * @example * // Count the number of ProjektAdressDetails * const count = await prisma.projektAdressDetail.count({ * where: { * // ... the filter for the ProjektAdressDetails 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 ProjektAdressDetail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjektAdressDetailAggregateArgs} 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 ProjektAdressDetail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjektAdressDetailGroupByArgs} 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 ProjektAdressDetailGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ProjektAdressDetailGroupByArgs['orderBy'] } : { orderBy?: ProjektAdressDetailGroupByArgs['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 ? GetProjektAdressDetailGroupByPayload : Prisma.PrismaPromise /** * Fields of the ProjektAdressDetail model */ readonly fields: ProjektAdressDetailFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ProjektAdressDetail. * 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__ProjektAdressDetailClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" projekt = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProjektClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(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 ProjektAdressDetail model */ export interface ProjektAdressDetailFieldRefs { readonly id: Prisma.FieldRef<"ProjektAdressDetail", 'String'> readonly tenantId: Prisma.FieldRef<"ProjektAdressDetail", 'String'> readonly createdAt: Prisma.FieldRef<"ProjektAdressDetail", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"ProjektAdressDetail", 'DateTime'> readonly projektId: Prisma.FieldRef<"ProjektAdressDetail", 'String'> readonly slot: Prisma.FieldRef<"ProjektAdressDetail", 'ProjektAdressSlot'> readonly bauabschnitt: Prisma.FieldRef<"ProjektAdressDetail", 'String'> readonly zufahrt: Prisma.FieldRef<"ProjektAdressDetail", 'String'> readonly koordinaten: Prisma.FieldRef<"ProjektAdressDetail", 'String'> readonly empfaenger: Prisma.FieldRef<"ProjektAdressDetail", 'String'> readonly zahlungsziel: Prisma.FieldRef<"ProjektAdressDetail", 'String'> readonly rechnungsEmail: Prisma.FieldRef<"ProjektAdressDetail", 'String'> readonly postErwuenscht: Prisma.FieldRef<"ProjektAdressDetail", 'Boolean'> readonly telefon: Prisma.FieldRef<"ProjektAdressDetail", 'String'> readonly ansprechpartnerVorOrt: Prisma.FieldRef<"ProjektAdressDetail", 'String'> readonly notizen: Prisma.FieldRef<"ProjektAdressDetail", 'String'> } // Custom InputTypes /** * ProjektAdressDetail findUnique */ export type ProjektAdressDetailFindUniqueArgs = { /** * Select specific fields to fetch from the ProjektAdressDetail */ select?: Prisma.ProjektAdressDetailSelect | null /** * Omit specific fields from the ProjektAdressDetail */ omit?: Prisma.ProjektAdressDetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektAdressDetailInclude | null /** * Filter, which ProjektAdressDetail to fetch. */ where: Prisma.ProjektAdressDetailWhereUniqueInput } /** * ProjektAdressDetail findUniqueOrThrow */ export type ProjektAdressDetailFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ProjektAdressDetail */ select?: Prisma.ProjektAdressDetailSelect | null /** * Omit specific fields from the ProjektAdressDetail */ omit?: Prisma.ProjektAdressDetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektAdressDetailInclude | null /** * Filter, which ProjektAdressDetail to fetch. */ where: Prisma.ProjektAdressDetailWhereUniqueInput } /** * ProjektAdressDetail findFirst */ export type ProjektAdressDetailFindFirstArgs = { /** * Select specific fields to fetch from the ProjektAdressDetail */ select?: Prisma.ProjektAdressDetailSelect | null /** * Omit specific fields from the ProjektAdressDetail */ omit?: Prisma.ProjektAdressDetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektAdressDetailInclude | null /** * Filter, which ProjektAdressDetail to fetch. */ where?: Prisma.ProjektAdressDetailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProjektAdressDetails to fetch. */ orderBy?: Prisma.ProjektAdressDetailOrderByWithRelationInput | Prisma.ProjektAdressDetailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProjektAdressDetails. */ cursor?: Prisma.ProjektAdressDetailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProjektAdressDetails 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` ProjektAdressDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProjektAdressDetails. */ distinct?: Prisma.ProjektAdressDetailScalarFieldEnum | Prisma.ProjektAdressDetailScalarFieldEnum[] } /** * ProjektAdressDetail findFirstOrThrow */ export type ProjektAdressDetailFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ProjektAdressDetail */ select?: Prisma.ProjektAdressDetailSelect | null /** * Omit specific fields from the ProjektAdressDetail */ omit?: Prisma.ProjektAdressDetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektAdressDetailInclude | null /** * Filter, which ProjektAdressDetail to fetch. */ where?: Prisma.ProjektAdressDetailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProjektAdressDetails to fetch. */ orderBy?: Prisma.ProjektAdressDetailOrderByWithRelationInput | Prisma.ProjektAdressDetailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProjektAdressDetails. */ cursor?: Prisma.ProjektAdressDetailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProjektAdressDetails 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` ProjektAdressDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProjektAdressDetails. */ distinct?: Prisma.ProjektAdressDetailScalarFieldEnum | Prisma.ProjektAdressDetailScalarFieldEnum[] } /** * ProjektAdressDetail findMany */ export type ProjektAdressDetailFindManyArgs = { /** * Select specific fields to fetch from the ProjektAdressDetail */ select?: Prisma.ProjektAdressDetailSelect | null /** * Omit specific fields from the ProjektAdressDetail */ omit?: Prisma.ProjektAdressDetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektAdressDetailInclude | null /** * Filter, which ProjektAdressDetails to fetch. */ where?: Prisma.ProjektAdressDetailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProjektAdressDetails to fetch. */ orderBy?: Prisma.ProjektAdressDetailOrderByWithRelationInput | Prisma.ProjektAdressDetailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ProjektAdressDetails. */ cursor?: Prisma.ProjektAdressDetailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProjektAdressDetails 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` ProjektAdressDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProjektAdressDetails. */ distinct?: Prisma.ProjektAdressDetailScalarFieldEnum | Prisma.ProjektAdressDetailScalarFieldEnum[] } /** * ProjektAdressDetail create */ export type ProjektAdressDetailCreateArgs = { /** * Select specific fields to fetch from the ProjektAdressDetail */ select?: Prisma.ProjektAdressDetailSelect | null /** * Omit specific fields from the ProjektAdressDetail */ omit?: Prisma.ProjektAdressDetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektAdressDetailInclude | null /** * The data needed to create a ProjektAdressDetail. */ data: Prisma.XOR } /** * ProjektAdressDetail createMany */ export type ProjektAdressDetailCreateManyArgs = { /** * The data used to create many ProjektAdressDetails. */ data: Prisma.ProjektAdressDetailCreateManyInput | Prisma.ProjektAdressDetailCreateManyInput[] skipDuplicates?: boolean } /** * ProjektAdressDetail createManyAndReturn */ export type ProjektAdressDetailCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ProjektAdressDetail */ select?: Prisma.ProjektAdressDetailSelectCreateManyAndReturn | null /** * Omit specific fields from the ProjektAdressDetail */ omit?: Prisma.ProjektAdressDetailOmit | null /** * The data used to create many ProjektAdressDetails. */ data: Prisma.ProjektAdressDetailCreateManyInput | Prisma.ProjektAdressDetailCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektAdressDetailIncludeCreateManyAndReturn | null } /** * ProjektAdressDetail update */ export type ProjektAdressDetailUpdateArgs = { /** * Select specific fields to fetch from the ProjektAdressDetail */ select?: Prisma.ProjektAdressDetailSelect | null /** * Omit specific fields from the ProjektAdressDetail */ omit?: Prisma.ProjektAdressDetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektAdressDetailInclude | null /** * The data needed to update a ProjektAdressDetail. */ data: Prisma.XOR /** * Choose, which ProjektAdressDetail to update. */ where: Prisma.ProjektAdressDetailWhereUniqueInput } /** * ProjektAdressDetail updateMany */ export type ProjektAdressDetailUpdateManyArgs = { /** * The data used to update ProjektAdressDetails. */ data: Prisma.XOR /** * Filter which ProjektAdressDetails to update */ where?: Prisma.ProjektAdressDetailWhereInput /** * Limit how many ProjektAdressDetails to update. */ limit?: number } /** * ProjektAdressDetail updateManyAndReturn */ export type ProjektAdressDetailUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ProjektAdressDetail */ select?: Prisma.ProjektAdressDetailSelectUpdateManyAndReturn | null /** * Omit specific fields from the ProjektAdressDetail */ omit?: Prisma.ProjektAdressDetailOmit | null /** * The data used to update ProjektAdressDetails. */ data: Prisma.XOR /** * Filter which ProjektAdressDetails to update */ where?: Prisma.ProjektAdressDetailWhereInput /** * Limit how many ProjektAdressDetails to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektAdressDetailIncludeUpdateManyAndReturn | null } /** * ProjektAdressDetail upsert */ export type ProjektAdressDetailUpsertArgs = { /** * Select specific fields to fetch from the ProjektAdressDetail */ select?: Prisma.ProjektAdressDetailSelect | null /** * Omit specific fields from the ProjektAdressDetail */ omit?: Prisma.ProjektAdressDetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektAdressDetailInclude | null /** * The filter to search for the ProjektAdressDetail to update in case it exists. */ where: Prisma.ProjektAdressDetailWhereUniqueInput /** * In case the ProjektAdressDetail found by the `where` argument doesn't exist, create a new ProjektAdressDetail with this data. */ create: Prisma.XOR /** * In case the ProjektAdressDetail was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ProjektAdressDetail delete */ export type ProjektAdressDetailDeleteArgs = { /** * Select specific fields to fetch from the ProjektAdressDetail */ select?: Prisma.ProjektAdressDetailSelect | null /** * Omit specific fields from the ProjektAdressDetail */ omit?: Prisma.ProjektAdressDetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektAdressDetailInclude | null /** * Filter which ProjektAdressDetail to delete. */ where: Prisma.ProjektAdressDetailWhereUniqueInput } /** * ProjektAdressDetail deleteMany */ export type ProjektAdressDetailDeleteManyArgs = { /** * Filter which ProjektAdressDetails to delete */ where?: Prisma.ProjektAdressDetailWhereInput /** * Limit how many ProjektAdressDetails to delete. */ limit?: number } /** * ProjektAdressDetail without action */ export type ProjektAdressDetailDefaultArgs = { /** * Select specific fields to fetch from the ProjektAdressDetail */ select?: Prisma.ProjektAdressDetailSelect | null /** * Omit specific fields from the ProjektAdressDetail */ omit?: Prisma.ProjektAdressDetailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjektAdressDetailInclude | null }