/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Adresse` 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 Adresse * A reusable postal address. v1 is DE-only (`land` defaults to "DE"). */ export type AdresseModel = runtime.Types.Result.DefaultSelection export type AggregateAdresse = { _count: AdresseCountAggregateOutputType | null _min: AdresseMinAggregateOutputType | null _max: AdresseMaxAggregateOutputType | null } export type AdresseMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null strasse: string | null hausnummer: string | null plz: string | null ort: string | null land: string | null } export type AdresseMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null strasse: string | null hausnummer: string | null plz: string | null ort: string | null land: string | null } export type AdresseCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number strasse: number hausnummer: number plz: number ort: number land: number _all: number } export type AdresseMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true strasse?: true hausnummer?: true plz?: true ort?: true land?: true } export type AdresseMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true strasse?: true hausnummer?: true plz?: true ort?: true land?: true } export type AdresseCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true strasse?: true hausnummer?: true plz?: true ort?: true land?: true _all?: true } export type AdresseAggregateArgs = { /** * Filter which Adresse to aggregate. */ where?: Prisma.AdresseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Adresses to fetch. */ orderBy?: Prisma.AdresseOrderByWithRelationInput | Prisma.AdresseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AdresseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Adresses 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` Adresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Adresses **/ _count?: true | AdresseCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AdresseMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AdresseMaxAggregateInputType } export type GetAdresseAggregateType = { [P in keyof T & keyof AggregateAdresse]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AdresseGroupByArgs = { where?: Prisma.AdresseWhereInput orderBy?: Prisma.AdresseOrderByWithAggregationInput | Prisma.AdresseOrderByWithAggregationInput[] by: Prisma.AdresseScalarFieldEnum[] | Prisma.AdresseScalarFieldEnum having?: Prisma.AdresseScalarWhereWithAggregatesInput take?: number skip?: number _count?: AdresseCountAggregateInputType | true _min?: AdresseMinAggregateInputType _max?: AdresseMaxAggregateInputType } export type AdresseGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string strasse: string | null hausnummer: string | null plz: string | null ort: string | null land: string _count: AdresseCountAggregateOutputType | null _min: AdresseMinAggregateOutputType | null _max: AdresseMaxAggregateOutputType | null } export type GetAdresseGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AdresseGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AdresseWhereInput = { AND?: Prisma.AdresseWhereInput | Prisma.AdresseWhereInput[] OR?: Prisma.AdresseWhereInput[] NOT?: Prisma.AdresseWhereInput | Prisma.AdresseWhereInput[] id?: Prisma.StringFilter<"Adresse"> | string createdAt?: Prisma.DateTimeFilter<"Adresse"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Adresse"> | Date | string tenantId?: Prisma.StringFilter<"Adresse"> | string strasse?: Prisma.StringNullableFilter<"Adresse"> | string | null hausnummer?: Prisma.StringNullableFilter<"Adresse"> | string | null plz?: Prisma.StringNullableFilter<"Adresse"> | string | null ort?: Prisma.StringNullableFilter<"Adresse"> | string | null land?: Prisma.StringFilter<"Adresse"> | string kontakte?: Prisma.KontaktListRelationFilter } export type AdresseOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder strasse?: Prisma.SortOrderInput | Prisma.SortOrder hausnummer?: Prisma.SortOrderInput | Prisma.SortOrder plz?: Prisma.SortOrderInput | Prisma.SortOrder ort?: Prisma.SortOrderInput | Prisma.SortOrder land?: Prisma.SortOrder kontakte?: Prisma.KontaktOrderByRelationAggregateInput } export type AdresseWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.AdresseWhereInput | Prisma.AdresseWhereInput[] OR?: Prisma.AdresseWhereInput[] NOT?: Prisma.AdresseWhereInput | Prisma.AdresseWhereInput[] createdAt?: Prisma.DateTimeFilter<"Adresse"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Adresse"> | Date | string tenantId?: Prisma.StringFilter<"Adresse"> | string strasse?: Prisma.StringNullableFilter<"Adresse"> | string | null hausnummer?: Prisma.StringNullableFilter<"Adresse"> | string | null plz?: Prisma.StringNullableFilter<"Adresse"> | string | null ort?: Prisma.StringNullableFilter<"Adresse"> | string | null land?: Prisma.StringFilter<"Adresse"> | string kontakte?: Prisma.KontaktListRelationFilter }, "id"> export type AdresseOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder strasse?: Prisma.SortOrderInput | Prisma.SortOrder hausnummer?: Prisma.SortOrderInput | Prisma.SortOrder plz?: Prisma.SortOrderInput | Prisma.SortOrder ort?: Prisma.SortOrderInput | Prisma.SortOrder land?: Prisma.SortOrder _count?: Prisma.AdresseCountOrderByAggregateInput _max?: Prisma.AdresseMaxOrderByAggregateInput _min?: Prisma.AdresseMinOrderByAggregateInput } export type AdresseScalarWhereWithAggregatesInput = { AND?: Prisma.AdresseScalarWhereWithAggregatesInput | Prisma.AdresseScalarWhereWithAggregatesInput[] OR?: Prisma.AdresseScalarWhereWithAggregatesInput[] NOT?: Prisma.AdresseScalarWhereWithAggregatesInput | Prisma.AdresseScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Adresse"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Adresse"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Adresse"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"Adresse"> | string strasse?: Prisma.StringNullableWithAggregatesFilter<"Adresse"> | string | null hausnummer?: Prisma.StringNullableWithAggregatesFilter<"Adresse"> | string | null plz?: Prisma.StringNullableWithAggregatesFilter<"Adresse"> | string | null ort?: Prisma.StringNullableWithAggregatesFilter<"Adresse"> | string | null land?: Prisma.StringWithAggregatesFilter<"Adresse"> | string } export type AdresseCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string strasse?: string | null hausnummer?: string | null plz?: string | null ort?: string | null land?: string kontakte?: Prisma.KontaktCreateNestedManyWithoutAdresseInput } export type AdresseUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string strasse?: string | null hausnummer?: string | null plz?: string | null ort?: string | null land?: string kontakte?: Prisma.KontaktUncheckedCreateNestedManyWithoutAdresseInput } export type AdresseUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string strasse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hausnummer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null plz?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null land?: Prisma.StringFieldUpdateOperationsInput | string kontakte?: Prisma.KontaktUpdateManyWithoutAdresseNestedInput } export type AdresseUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string strasse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hausnummer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null plz?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null land?: Prisma.StringFieldUpdateOperationsInput | string kontakte?: Prisma.KontaktUncheckedUpdateManyWithoutAdresseNestedInput } export type AdresseCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string strasse?: string | null hausnummer?: string | null plz?: string | null ort?: string | null land?: string } export type AdresseUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string strasse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hausnummer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null plz?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null land?: Prisma.StringFieldUpdateOperationsInput | string } export type AdresseUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string strasse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hausnummer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null plz?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null land?: Prisma.StringFieldUpdateOperationsInput | string } export type AdresseNullableScalarRelationFilter = { is?: Prisma.AdresseWhereInput | null isNot?: Prisma.AdresseWhereInput | null } export type AdresseCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder strasse?: Prisma.SortOrder hausnummer?: Prisma.SortOrder plz?: Prisma.SortOrder ort?: Prisma.SortOrder land?: Prisma.SortOrder } export type AdresseMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder strasse?: Prisma.SortOrder hausnummer?: Prisma.SortOrder plz?: Prisma.SortOrder ort?: Prisma.SortOrder land?: Prisma.SortOrder } export type AdresseMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder strasse?: Prisma.SortOrder hausnummer?: Prisma.SortOrder plz?: Prisma.SortOrder ort?: Prisma.SortOrder land?: Prisma.SortOrder } export type AdresseCreateNestedOneWithoutKontakteInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdresseCreateOrConnectWithoutKontakteInput connect?: Prisma.AdresseWhereUniqueInput } export type AdresseUpdateOneWithoutKontakteNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdresseCreateOrConnectWithoutKontakteInput upsert?: Prisma.AdresseUpsertWithoutKontakteInput disconnect?: Prisma.AdresseWhereInput | boolean delete?: Prisma.AdresseWhereInput | boolean connect?: Prisma.AdresseWhereUniqueInput update?: Prisma.XOR, Prisma.AdresseUncheckedUpdateWithoutKontakteInput> } export type AdresseCreateWithoutKontakteInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string strasse?: string | null hausnummer?: string | null plz?: string | null ort?: string | null land?: string } export type AdresseUncheckedCreateWithoutKontakteInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string strasse?: string | null hausnummer?: string | null plz?: string | null ort?: string | null land?: string } export type AdresseCreateOrConnectWithoutKontakteInput = { where: Prisma.AdresseWhereUniqueInput create: Prisma.XOR } export type AdresseUpsertWithoutKontakteInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AdresseWhereInput } export type AdresseUpdateToOneWithWhereWithoutKontakteInput = { where?: Prisma.AdresseWhereInput data: Prisma.XOR } export type AdresseUpdateWithoutKontakteInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string strasse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hausnummer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null plz?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null land?: Prisma.StringFieldUpdateOperationsInput | string } export type AdresseUncheckedUpdateWithoutKontakteInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string strasse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hausnummer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null plz?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null land?: Prisma.StringFieldUpdateOperationsInput | string } /** * Count Type AdresseCountOutputType */ export type AdresseCountOutputType = { kontakte: number } export type AdresseCountOutputTypeSelect = { kontakte?: boolean | AdresseCountOutputTypeCountKontakteArgs } /** * AdresseCountOutputType without action */ export type AdresseCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AdresseCountOutputType */ select?: Prisma.AdresseCountOutputTypeSelect | null } /** * AdresseCountOutputType without action */ export type AdresseCountOutputTypeCountKontakteArgs = { where?: Prisma.KontaktWhereInput } export type AdresseSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean strasse?: boolean hausnummer?: boolean plz?: boolean ort?: boolean land?: boolean kontakte?: boolean | Prisma.Adresse$kontakteArgs _count?: boolean | Prisma.AdresseCountOutputTypeDefaultArgs }, ExtArgs["result"]["adresse"]> export type AdresseSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean strasse?: boolean hausnummer?: boolean plz?: boolean ort?: boolean land?: boolean }, ExtArgs["result"]["adresse"]> export type AdresseSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean strasse?: boolean hausnummer?: boolean plz?: boolean ort?: boolean land?: boolean }, ExtArgs["result"]["adresse"]> export type AdresseSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean strasse?: boolean hausnummer?: boolean plz?: boolean ort?: boolean land?: boolean } export type AdresseOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "strasse" | "hausnummer" | "plz" | "ort" | "land", ExtArgs["result"]["adresse"]> export type AdresseInclude = { kontakte?: boolean | Prisma.Adresse$kontakteArgs _count?: boolean | Prisma.AdresseCountOutputTypeDefaultArgs } export type AdresseIncludeCreateManyAndReturn = {} export type AdresseIncludeUpdateManyAndReturn = {} export type $AdressePayload = { name: "Adresse" objects: { kontakte: Prisma.$KontaktPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string strasse: string | null hausnummer: string | null plz: string | null ort: string | null land: string }, ExtArgs["result"]["adresse"]> composites: {} } export type AdresseGetPayload = runtime.Types.Result.GetResult export type AdresseCountArgs = Omit & { select?: AdresseCountAggregateInputType | true } export interface AdresseDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Adresse'], meta: { name: 'Adresse' } } /** * Find zero or one Adresse that matches the filter. * @param {AdresseFindUniqueArgs} args - Arguments to find a Adresse * @example * // Get one Adresse * const adresse = await prisma.adresse.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AdresseClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Adresse that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AdresseFindUniqueOrThrowArgs} args - Arguments to find a Adresse * @example * // Get one Adresse * const adresse = await prisma.adresse.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AdresseClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Adresse 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 {AdresseFindFirstArgs} args - Arguments to find a Adresse * @example * // Get one Adresse * const adresse = await prisma.adresse.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AdresseClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Adresse 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 {AdresseFindFirstOrThrowArgs} args - Arguments to find a Adresse * @example * // Get one Adresse * const adresse = await prisma.adresse.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AdresseClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Adresses 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 {AdresseFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Adresses * const adresses = await prisma.adresse.findMany() * * // Get first 10 Adresses * const adresses = await prisma.adresse.findMany({ take: 10 }) * * // Only select the `id` * const adresseWithIdOnly = await prisma.adresse.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Adresse. * @param {AdresseCreateArgs} args - Arguments to create a Adresse. * @example * // Create one Adresse * const Adresse = await prisma.adresse.create({ * data: { * // ... data to create a Adresse * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AdresseClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Adresses. * @param {AdresseCreateManyArgs} args - Arguments to create many Adresses. * @example * // Create many Adresses * const adresse = await prisma.adresse.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Adresses and returns the data saved in the database. * @param {AdresseCreateManyAndReturnArgs} args - Arguments to create many Adresses. * @example * // Create many Adresses * const adresse = await prisma.adresse.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Adresses and only return the `id` * const adresseWithIdOnly = await prisma.adresse.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 Adresse. * @param {AdresseDeleteArgs} args - Arguments to delete one Adresse. * @example * // Delete one Adresse * const Adresse = await prisma.adresse.delete({ * where: { * // ... filter to delete one Adresse * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AdresseClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Adresse. * @param {AdresseUpdateArgs} args - Arguments to update one Adresse. * @example * // Update one Adresse * const adresse = await prisma.adresse.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AdresseClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Adresses. * @param {AdresseDeleteManyArgs} args - Arguments to filter Adresses to delete. * @example * // Delete a few Adresses * const { count } = await prisma.adresse.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Adresses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdresseUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Adresses * const adresse = await prisma.adresse.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Adresses and returns the data updated in the database. * @param {AdresseUpdateManyAndReturnArgs} args - Arguments to update many Adresses. * @example * // Update many Adresses * const adresse = await prisma.adresse.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Adresses and only return the `id` * const adresseWithIdOnly = await prisma.adresse.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 Adresse. * @param {AdresseUpsertArgs} args - Arguments to update or create a Adresse. * @example * // Update or create a Adresse * const adresse = await prisma.adresse.upsert({ * create: { * // ... data to create a Adresse * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Adresse we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AdresseClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Adresses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdresseCountArgs} args - Arguments to filter Adresses to count. * @example * // Count the number of Adresses * const count = await prisma.adresse.count({ * where: { * // ... the filter for the Adresses 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 Adresse. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdresseAggregateArgs} 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 Adresse. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdresseGroupByArgs} 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 AdresseGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AdresseGroupByArgs['orderBy'] } : { orderBy?: AdresseGroupByArgs['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 ? GetAdresseGroupByPayload : Prisma.PrismaPromise /** * Fields of the Adresse model */ readonly fields: AdresseFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Adresse. * 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__AdresseClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" kontakte = {}>(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 Adresse model */ export interface AdresseFieldRefs { readonly id: Prisma.FieldRef<"Adresse", 'String'> readonly createdAt: Prisma.FieldRef<"Adresse", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Adresse", 'DateTime'> readonly tenantId: Prisma.FieldRef<"Adresse", 'String'> readonly strasse: Prisma.FieldRef<"Adresse", 'String'> readonly hausnummer: Prisma.FieldRef<"Adresse", 'String'> readonly plz: Prisma.FieldRef<"Adresse", 'String'> readonly ort: Prisma.FieldRef<"Adresse", 'String'> readonly land: Prisma.FieldRef<"Adresse", 'String'> } // Custom InputTypes /** * Adresse findUnique */ export type AdresseFindUniqueArgs = { /** * Select specific fields to fetch from the Adresse */ select?: Prisma.AdresseSelect | null /** * Omit specific fields from the Adresse */ omit?: Prisma.AdresseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdresseInclude | null /** * Filter, which Adresse to fetch. */ where: Prisma.AdresseWhereUniqueInput } /** * Adresse findUniqueOrThrow */ export type AdresseFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Adresse */ select?: Prisma.AdresseSelect | null /** * Omit specific fields from the Adresse */ omit?: Prisma.AdresseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdresseInclude | null /** * Filter, which Adresse to fetch. */ where: Prisma.AdresseWhereUniqueInput } /** * Adresse findFirst */ export type AdresseFindFirstArgs = { /** * Select specific fields to fetch from the Adresse */ select?: Prisma.AdresseSelect | null /** * Omit specific fields from the Adresse */ omit?: Prisma.AdresseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdresseInclude | null /** * Filter, which Adresse to fetch. */ where?: Prisma.AdresseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Adresses to fetch. */ orderBy?: Prisma.AdresseOrderByWithRelationInput | Prisma.AdresseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Adresses. */ cursor?: Prisma.AdresseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Adresses 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` Adresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Adresses. */ distinct?: Prisma.AdresseScalarFieldEnum | Prisma.AdresseScalarFieldEnum[] } /** * Adresse findFirstOrThrow */ export type AdresseFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Adresse */ select?: Prisma.AdresseSelect | null /** * Omit specific fields from the Adresse */ omit?: Prisma.AdresseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdresseInclude | null /** * Filter, which Adresse to fetch. */ where?: Prisma.AdresseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Adresses to fetch. */ orderBy?: Prisma.AdresseOrderByWithRelationInput | Prisma.AdresseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Adresses. */ cursor?: Prisma.AdresseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Adresses 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` Adresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Adresses. */ distinct?: Prisma.AdresseScalarFieldEnum | Prisma.AdresseScalarFieldEnum[] } /** * Adresse findMany */ export type AdresseFindManyArgs = { /** * Select specific fields to fetch from the Adresse */ select?: Prisma.AdresseSelect | null /** * Omit specific fields from the Adresse */ omit?: Prisma.AdresseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdresseInclude | null /** * Filter, which Adresses to fetch. */ where?: Prisma.AdresseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Adresses to fetch. */ orderBy?: Prisma.AdresseOrderByWithRelationInput | Prisma.AdresseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Adresses. */ cursor?: Prisma.AdresseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Adresses 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` Adresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Adresses. */ distinct?: Prisma.AdresseScalarFieldEnum | Prisma.AdresseScalarFieldEnum[] } /** * Adresse create */ export type AdresseCreateArgs = { /** * Select specific fields to fetch from the Adresse */ select?: Prisma.AdresseSelect | null /** * Omit specific fields from the Adresse */ omit?: Prisma.AdresseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdresseInclude | null /** * The data needed to create a Adresse. */ data: Prisma.XOR } /** * Adresse createMany */ export type AdresseCreateManyArgs = { /** * The data used to create many Adresses. */ data: Prisma.AdresseCreateManyInput | Prisma.AdresseCreateManyInput[] skipDuplicates?: boolean } /** * Adresse createManyAndReturn */ export type AdresseCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Adresse */ select?: Prisma.AdresseSelectCreateManyAndReturn | null /** * Omit specific fields from the Adresse */ omit?: Prisma.AdresseOmit | null /** * The data used to create many Adresses. */ data: Prisma.AdresseCreateManyInput | Prisma.AdresseCreateManyInput[] skipDuplicates?: boolean } /** * Adresse update */ export type AdresseUpdateArgs = { /** * Select specific fields to fetch from the Adresse */ select?: Prisma.AdresseSelect | null /** * Omit specific fields from the Adresse */ omit?: Prisma.AdresseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdresseInclude | null /** * The data needed to update a Adresse. */ data: Prisma.XOR /** * Choose, which Adresse to update. */ where: Prisma.AdresseWhereUniqueInput } /** * Adresse updateMany */ export type AdresseUpdateManyArgs = { /** * The data used to update Adresses. */ data: Prisma.XOR /** * Filter which Adresses to update */ where?: Prisma.AdresseWhereInput /** * Limit how many Adresses to update. */ limit?: number } /** * Adresse updateManyAndReturn */ export type AdresseUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Adresse */ select?: Prisma.AdresseSelectUpdateManyAndReturn | null /** * Omit specific fields from the Adresse */ omit?: Prisma.AdresseOmit | null /** * The data used to update Adresses. */ data: Prisma.XOR /** * Filter which Adresses to update */ where?: Prisma.AdresseWhereInput /** * Limit how many Adresses to update. */ limit?: number } /** * Adresse upsert */ export type AdresseUpsertArgs = { /** * Select specific fields to fetch from the Adresse */ select?: Prisma.AdresseSelect | null /** * Omit specific fields from the Adresse */ omit?: Prisma.AdresseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdresseInclude | null /** * The filter to search for the Adresse to update in case it exists. */ where: Prisma.AdresseWhereUniqueInput /** * In case the Adresse found by the `where` argument doesn't exist, create a new Adresse with this data. */ create: Prisma.XOR /** * In case the Adresse was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Adresse delete */ export type AdresseDeleteArgs = { /** * Select specific fields to fetch from the Adresse */ select?: Prisma.AdresseSelect | null /** * Omit specific fields from the Adresse */ omit?: Prisma.AdresseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdresseInclude | null /** * Filter which Adresse to delete. */ where: Prisma.AdresseWhereUniqueInput } /** * Adresse deleteMany */ export type AdresseDeleteManyArgs = { /** * Filter which Adresses to delete */ where?: Prisma.AdresseWhereInput /** * Limit how many Adresses to delete. */ limit?: number } /** * Adresse.kontakte */ export type Adresse$kontakteArgs = { /** * Select specific fields to fetch from the Kontakt */ select?: Prisma.KontaktSelect | null /** * Omit specific fields from the Kontakt */ omit?: Prisma.KontaktOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktInclude | null where?: Prisma.KontaktWhereInput orderBy?: Prisma.KontaktOrderByWithRelationInput | Prisma.KontaktOrderByWithRelationInput[] cursor?: Prisma.KontaktWhereUniqueInput take?: number skip?: number distinct?: Prisma.KontaktScalarFieldEnum | Prisma.KontaktScalarFieldEnum[] } /** * Adresse without action */ export type AdresseDefaultArgs = { /** * Select specific fields to fetch from the Adresse */ select?: Prisma.AdresseSelect | null /** * Omit specific fields from the Adresse */ omit?: Prisma.AdresseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdresseInclude | null }