/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Rechnung` 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 Rechnung * */ export type RechnungModel = runtime.Types.Result.DefaultSelection export type AggregateRechnung = { _count: RechnungCountAggregateOutputType | null _avg: RechnungAvgAggregateOutputType | null _sum: RechnungSumAggregateOutputType | null _min: RechnungMinAggregateOutputType | null _max: RechnungMaxAggregateOutputType | null } export type RechnungAvgAggregateOutputType = { betrag: runtime.Decimal | null } export type RechnungSumAggregateOutputType = { betrag: runtime.Decimal | null } export type RechnungMinAggregateOutputType = { id: string | null tenantId: string | null projektId: string | null createdByUserId: string | null rechnungsnummer: string | null betrag: runtime.Decimal | null status: $Enums.RechnungStatus | null datum: Date | null faelligAm: Date | null dateiId: string | null quelle: $Enums.RechnungQuelle | null isDemoData: boolean | null createdAt: Date | null updatedAt: Date | null archivedAt: Date | null } export type RechnungMaxAggregateOutputType = { id: string | null tenantId: string | null projektId: string | null createdByUserId: string | null rechnungsnummer: string | null betrag: runtime.Decimal | null status: $Enums.RechnungStatus | null datum: Date | null faelligAm: Date | null dateiId: string | null quelle: $Enums.RechnungQuelle | null isDemoData: boolean | null createdAt: Date | null updatedAt: Date | null archivedAt: Date | null } export type RechnungCountAggregateOutputType = { id: number tenantId: number projektId: number createdByUserId: number rechnungsnummer: number betrag: number status: number datum: number faelligAm: number dateiId: number quelle: number isDemoData: number createdAt: number updatedAt: number archivedAt: number _all: number } export type RechnungAvgAggregateInputType = { betrag?: true } export type RechnungSumAggregateInputType = { betrag?: true } export type RechnungMinAggregateInputType = { id?: true tenantId?: true projektId?: true createdByUserId?: true rechnungsnummer?: true betrag?: true status?: true datum?: true faelligAm?: true dateiId?: true quelle?: true isDemoData?: true createdAt?: true updatedAt?: true archivedAt?: true } export type RechnungMaxAggregateInputType = { id?: true tenantId?: true projektId?: true createdByUserId?: true rechnungsnummer?: true betrag?: true status?: true datum?: true faelligAm?: true dateiId?: true quelle?: true isDemoData?: true createdAt?: true updatedAt?: true archivedAt?: true } export type RechnungCountAggregateInputType = { id?: true tenantId?: true projektId?: true createdByUserId?: true rechnungsnummer?: true betrag?: true status?: true datum?: true faelligAm?: true dateiId?: true quelle?: true isDemoData?: true createdAt?: true updatedAt?: true archivedAt?: true _all?: true } export type RechnungAggregateArgs = { /** * Filter which Rechnung to aggregate. */ where?: Prisma.RechnungWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Rechnungs to fetch. */ orderBy?: Prisma.RechnungOrderByWithRelationInput | Prisma.RechnungOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.RechnungWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Rechnungs 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` Rechnungs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Rechnungs **/ _count?: true | RechnungCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: RechnungAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: RechnungSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: RechnungMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: RechnungMaxAggregateInputType } export type GetRechnungAggregateType = { [P in keyof T & keyof AggregateRechnung]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type RechnungGroupByArgs = { where?: Prisma.RechnungWhereInput orderBy?: Prisma.RechnungOrderByWithAggregationInput | Prisma.RechnungOrderByWithAggregationInput[] by: Prisma.RechnungScalarFieldEnum[] | Prisma.RechnungScalarFieldEnum having?: Prisma.RechnungScalarWhereWithAggregatesInput take?: number skip?: number _count?: RechnungCountAggregateInputType | true _avg?: RechnungAvgAggregateInputType _sum?: RechnungSumAggregateInputType _min?: RechnungMinAggregateInputType _max?: RechnungMaxAggregateInputType } export type RechnungGroupByOutputType = { id: string tenantId: string projektId: string createdByUserId: string | null rechnungsnummer: string betrag: runtime.Decimal status: $Enums.RechnungStatus datum: Date faelligAm: Date | null dateiId: string | null quelle: $Enums.RechnungQuelle isDemoData: boolean createdAt: Date updatedAt: Date archivedAt: Date | null _count: RechnungCountAggregateOutputType | null _avg: RechnungAvgAggregateOutputType | null _sum: RechnungSumAggregateOutputType | null _min: RechnungMinAggregateOutputType | null _max: RechnungMaxAggregateOutputType | null } export type GetRechnungGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof RechnungGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type RechnungWhereInput = { AND?: Prisma.RechnungWhereInput | Prisma.RechnungWhereInput[] OR?: Prisma.RechnungWhereInput[] NOT?: Prisma.RechnungWhereInput | Prisma.RechnungWhereInput[] id?: Prisma.StringFilter<"Rechnung"> | string tenantId?: Prisma.StringFilter<"Rechnung"> | string projektId?: Prisma.StringFilter<"Rechnung"> | string createdByUserId?: Prisma.StringNullableFilter<"Rechnung"> | string | null rechnungsnummer?: Prisma.StringFilter<"Rechnung"> | string betrag?: Prisma.DecimalFilter<"Rechnung"> | runtime.Decimal | runtime.DecimalJsLike | number | string status?: Prisma.EnumRechnungStatusFilter<"Rechnung"> | $Enums.RechnungStatus datum?: Prisma.DateTimeFilter<"Rechnung"> | Date | string faelligAm?: Prisma.DateTimeNullableFilter<"Rechnung"> | Date | string | null dateiId?: Prisma.StringNullableFilter<"Rechnung"> | string | null quelle?: Prisma.EnumRechnungQuelleFilter<"Rechnung"> | $Enums.RechnungQuelle isDemoData?: Prisma.BoolFilter<"Rechnung"> | boolean createdAt?: Prisma.DateTimeFilter<"Rechnung"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Rechnung"> | Date | string archivedAt?: Prisma.DateTimeNullableFilter<"Rechnung"> | Date | string | null } export type RechnungOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder projektId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder rechnungsnummer?: Prisma.SortOrder betrag?: Prisma.SortOrder status?: Prisma.SortOrder datum?: Prisma.SortOrder faelligAm?: Prisma.SortOrderInput | Prisma.SortOrder dateiId?: Prisma.SortOrderInput | Prisma.SortOrder quelle?: Prisma.SortOrder isDemoData?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder } export type RechnungWhereUniqueInput = Prisma.AtLeast<{ id?: string tenantId_rechnungsnummer?: Prisma.RechnungTenantIdRechnungsnummerCompoundUniqueInput AND?: Prisma.RechnungWhereInput | Prisma.RechnungWhereInput[] OR?: Prisma.RechnungWhereInput[] NOT?: Prisma.RechnungWhereInput | Prisma.RechnungWhereInput[] tenantId?: Prisma.StringFilter<"Rechnung"> | string projektId?: Prisma.StringFilter<"Rechnung"> | string createdByUserId?: Prisma.StringNullableFilter<"Rechnung"> | string | null rechnungsnummer?: Prisma.StringFilter<"Rechnung"> | string betrag?: Prisma.DecimalFilter<"Rechnung"> | runtime.Decimal | runtime.DecimalJsLike | number | string status?: Prisma.EnumRechnungStatusFilter<"Rechnung"> | $Enums.RechnungStatus datum?: Prisma.DateTimeFilter<"Rechnung"> | Date | string faelligAm?: Prisma.DateTimeNullableFilter<"Rechnung"> | Date | string | null dateiId?: Prisma.StringNullableFilter<"Rechnung"> | string | null quelle?: Prisma.EnumRechnungQuelleFilter<"Rechnung"> | $Enums.RechnungQuelle isDemoData?: Prisma.BoolFilter<"Rechnung"> | boolean createdAt?: Prisma.DateTimeFilter<"Rechnung"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Rechnung"> | Date | string archivedAt?: Prisma.DateTimeNullableFilter<"Rechnung"> | Date | string | null }, "id" | "tenantId_rechnungsnummer"> export type RechnungOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder projektId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder rechnungsnummer?: Prisma.SortOrder betrag?: Prisma.SortOrder status?: Prisma.SortOrder datum?: Prisma.SortOrder faelligAm?: Prisma.SortOrderInput | Prisma.SortOrder dateiId?: Prisma.SortOrderInput | Prisma.SortOrder quelle?: Prisma.SortOrder isDemoData?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.RechnungCountOrderByAggregateInput _avg?: Prisma.RechnungAvgOrderByAggregateInput _max?: Prisma.RechnungMaxOrderByAggregateInput _min?: Prisma.RechnungMinOrderByAggregateInput _sum?: Prisma.RechnungSumOrderByAggregateInput } export type RechnungScalarWhereWithAggregatesInput = { AND?: Prisma.RechnungScalarWhereWithAggregatesInput | Prisma.RechnungScalarWhereWithAggregatesInput[] OR?: Prisma.RechnungScalarWhereWithAggregatesInput[] NOT?: Prisma.RechnungScalarWhereWithAggregatesInput | Prisma.RechnungScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Rechnung"> | string tenantId?: Prisma.StringWithAggregatesFilter<"Rechnung"> | string projektId?: Prisma.StringWithAggregatesFilter<"Rechnung"> | string createdByUserId?: Prisma.StringNullableWithAggregatesFilter<"Rechnung"> | string | null rechnungsnummer?: Prisma.StringWithAggregatesFilter<"Rechnung"> | string betrag?: Prisma.DecimalWithAggregatesFilter<"Rechnung"> | runtime.Decimal | runtime.DecimalJsLike | number | string status?: Prisma.EnumRechnungStatusWithAggregatesFilter<"Rechnung"> | $Enums.RechnungStatus datum?: Prisma.DateTimeWithAggregatesFilter<"Rechnung"> | Date | string faelligAm?: Prisma.DateTimeNullableWithAggregatesFilter<"Rechnung"> | Date | string | null dateiId?: Prisma.StringNullableWithAggregatesFilter<"Rechnung"> | string | null quelle?: Prisma.EnumRechnungQuelleWithAggregatesFilter<"Rechnung"> | $Enums.RechnungQuelle isDemoData?: Prisma.BoolWithAggregatesFilter<"Rechnung"> | boolean createdAt?: Prisma.DateTimeWithAggregatesFilter<"Rechnung"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Rechnung"> | Date | string archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Rechnung"> | Date | string | null } export type RechnungCreateInput = { id?: string tenantId: string projektId: string createdByUserId?: string | null rechnungsnummer: string betrag: runtime.Decimal | runtime.DecimalJsLike | number | string status?: $Enums.RechnungStatus datum?: Date | string faelligAm?: Date | string | null dateiId?: string | null quelle?: $Enums.RechnungQuelle isDemoData?: boolean createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null } export type RechnungUncheckedCreateInput = { id?: string tenantId: string projektId: string createdByUserId?: string | null rechnungsnummer: string betrag: runtime.Decimal | runtime.DecimalJsLike | number | string status?: $Enums.RechnungStatus datum?: Date | string faelligAm?: Date | string | null dateiId?: string | null quelle?: $Enums.RechnungQuelle isDemoData?: boolean createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null } export type RechnungUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string projektId?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rechnungsnummer?: Prisma.StringFieldUpdateOperationsInput | string betrag?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string status?: Prisma.EnumRechnungStatusFieldUpdateOperationsInput | $Enums.RechnungStatus datum?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string faelligAm?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateiId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null quelle?: Prisma.EnumRechnungQuelleFieldUpdateOperationsInput | $Enums.RechnungQuelle isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type RechnungUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string projektId?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rechnungsnummer?: Prisma.StringFieldUpdateOperationsInput | string betrag?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string status?: Prisma.EnumRechnungStatusFieldUpdateOperationsInput | $Enums.RechnungStatus datum?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string faelligAm?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateiId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null quelle?: Prisma.EnumRechnungQuelleFieldUpdateOperationsInput | $Enums.RechnungQuelle isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type RechnungCreateManyInput = { id?: string tenantId: string projektId: string createdByUserId?: string | null rechnungsnummer: string betrag: runtime.Decimal | runtime.DecimalJsLike | number | string status?: $Enums.RechnungStatus datum?: Date | string faelligAm?: Date | string | null dateiId?: string | null quelle?: $Enums.RechnungQuelle isDemoData?: boolean createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null } export type RechnungUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string projektId?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rechnungsnummer?: Prisma.StringFieldUpdateOperationsInput | string betrag?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string status?: Prisma.EnumRechnungStatusFieldUpdateOperationsInput | $Enums.RechnungStatus datum?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string faelligAm?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateiId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null quelle?: Prisma.EnumRechnungQuelleFieldUpdateOperationsInput | $Enums.RechnungQuelle isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type RechnungUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string projektId?: Prisma.StringFieldUpdateOperationsInput | string createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rechnungsnummer?: Prisma.StringFieldUpdateOperationsInput | string betrag?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string status?: Prisma.EnumRechnungStatusFieldUpdateOperationsInput | $Enums.RechnungStatus datum?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string faelligAm?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null dateiId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null quelle?: Prisma.EnumRechnungQuelleFieldUpdateOperationsInput | $Enums.RechnungQuelle isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type RechnungTenantIdRechnungsnummerCompoundUniqueInput = { tenantId: string rechnungsnummer: string } export type RechnungCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder projektId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder rechnungsnummer?: Prisma.SortOrder betrag?: Prisma.SortOrder status?: Prisma.SortOrder datum?: Prisma.SortOrder faelligAm?: Prisma.SortOrder dateiId?: Prisma.SortOrder quelle?: Prisma.SortOrder isDemoData?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type RechnungAvgOrderByAggregateInput = { betrag?: Prisma.SortOrder } export type RechnungMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder projektId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder rechnungsnummer?: Prisma.SortOrder betrag?: Prisma.SortOrder status?: Prisma.SortOrder datum?: Prisma.SortOrder faelligAm?: Prisma.SortOrder dateiId?: Prisma.SortOrder quelle?: Prisma.SortOrder isDemoData?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type RechnungMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder projektId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder rechnungsnummer?: Prisma.SortOrder betrag?: Prisma.SortOrder status?: Prisma.SortOrder datum?: Prisma.SortOrder faelligAm?: Prisma.SortOrder dateiId?: Prisma.SortOrder quelle?: Prisma.SortOrder isDemoData?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type RechnungSumOrderByAggregateInput = { betrag?: Prisma.SortOrder } export type DecimalFieldUpdateOperationsInput = { set?: runtime.Decimal | runtime.DecimalJsLike | number | string increment?: runtime.Decimal | runtime.DecimalJsLike | number | string decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string divide?: runtime.Decimal | runtime.DecimalJsLike | number | string } export type EnumRechnungStatusFieldUpdateOperationsInput = { set?: $Enums.RechnungStatus } export type EnumRechnungQuelleFieldUpdateOperationsInput = { set?: $Enums.RechnungQuelle } export type RechnungSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean projektId?: boolean createdByUserId?: boolean rechnungsnummer?: boolean betrag?: boolean status?: boolean datum?: boolean faelligAm?: boolean dateiId?: boolean quelle?: boolean isDemoData?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean }, ExtArgs["result"]["rechnung"]> export type RechnungSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean projektId?: boolean createdByUserId?: boolean rechnungsnummer?: boolean betrag?: boolean status?: boolean datum?: boolean faelligAm?: boolean dateiId?: boolean quelle?: boolean isDemoData?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean }, ExtArgs["result"]["rechnung"]> export type RechnungSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean projektId?: boolean createdByUserId?: boolean rechnungsnummer?: boolean betrag?: boolean status?: boolean datum?: boolean faelligAm?: boolean dateiId?: boolean quelle?: boolean isDemoData?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean }, ExtArgs["result"]["rechnung"]> export type RechnungSelectScalar = { id?: boolean tenantId?: boolean projektId?: boolean createdByUserId?: boolean rechnungsnummer?: boolean betrag?: boolean status?: boolean datum?: boolean faelligAm?: boolean dateiId?: boolean quelle?: boolean isDemoData?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean } export type RechnungOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "projektId" | "createdByUserId" | "rechnungsnummer" | "betrag" | "status" | "datum" | "faelligAm" | "dateiId" | "quelle" | "isDemoData" | "createdAt" | "updatedAt" | "archivedAt", ExtArgs["result"]["rechnung"]> export type $RechnungPayload = { name: "Rechnung" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string projektId: string createdByUserId: string | null rechnungsnummer: string betrag: runtime.Decimal status: $Enums.RechnungStatus datum: Date faelligAm: Date | null dateiId: string | null quelle: $Enums.RechnungQuelle isDemoData: boolean createdAt: Date updatedAt: Date archivedAt: Date | null }, ExtArgs["result"]["rechnung"]> composites: {} } export type RechnungGetPayload = runtime.Types.Result.GetResult export type RechnungCountArgs = Omit & { select?: RechnungCountAggregateInputType | true } export interface RechnungDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Rechnung'], meta: { name: 'Rechnung' } } /** * Find zero or one Rechnung that matches the filter. * @param {RechnungFindUniqueArgs} args - Arguments to find a Rechnung * @example * // Get one Rechnung * const rechnung = await prisma.rechnung.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__RechnungClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Rechnung that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {RechnungFindUniqueOrThrowArgs} args - Arguments to find a Rechnung * @example * // Get one Rechnung * const rechnung = await prisma.rechnung.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__RechnungClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Rechnung 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 {RechnungFindFirstArgs} args - Arguments to find a Rechnung * @example * // Get one Rechnung * const rechnung = await prisma.rechnung.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__RechnungClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Rechnung 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 {RechnungFindFirstOrThrowArgs} args - Arguments to find a Rechnung * @example * // Get one Rechnung * const rechnung = await prisma.rechnung.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__RechnungClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Rechnungs 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 {RechnungFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Rechnungs * const rechnungs = await prisma.rechnung.findMany() * * // Get first 10 Rechnungs * const rechnungs = await prisma.rechnung.findMany({ take: 10 }) * * // Only select the `id` * const rechnungWithIdOnly = await prisma.rechnung.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Rechnung. * @param {RechnungCreateArgs} args - Arguments to create a Rechnung. * @example * // Create one Rechnung * const Rechnung = await prisma.rechnung.create({ * data: { * // ... data to create a Rechnung * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__RechnungClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Rechnungs. * @param {RechnungCreateManyArgs} args - Arguments to create many Rechnungs. * @example * // Create many Rechnungs * const rechnung = await prisma.rechnung.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Rechnungs and returns the data saved in the database. * @param {RechnungCreateManyAndReturnArgs} args - Arguments to create many Rechnungs. * @example * // Create many Rechnungs * const rechnung = await prisma.rechnung.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Rechnungs and only return the `id` * const rechnungWithIdOnly = await prisma.rechnung.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 Rechnung. * @param {RechnungDeleteArgs} args - Arguments to delete one Rechnung. * @example * // Delete one Rechnung * const Rechnung = await prisma.rechnung.delete({ * where: { * // ... filter to delete one Rechnung * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__RechnungClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Rechnung. * @param {RechnungUpdateArgs} args - Arguments to update one Rechnung. * @example * // Update one Rechnung * const rechnung = await prisma.rechnung.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__RechnungClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Rechnungs. * @param {RechnungDeleteManyArgs} args - Arguments to filter Rechnungs to delete. * @example * // Delete a few Rechnungs * const { count } = await prisma.rechnung.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Rechnungs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RechnungUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Rechnungs * const rechnung = await prisma.rechnung.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Rechnungs and returns the data updated in the database. * @param {RechnungUpdateManyAndReturnArgs} args - Arguments to update many Rechnungs. * @example * // Update many Rechnungs * const rechnung = await prisma.rechnung.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Rechnungs and only return the `id` * const rechnungWithIdOnly = await prisma.rechnung.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 Rechnung. * @param {RechnungUpsertArgs} args - Arguments to update or create a Rechnung. * @example * // Update or create a Rechnung * const rechnung = await prisma.rechnung.upsert({ * create: { * // ... data to create a Rechnung * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Rechnung we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__RechnungClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Rechnungs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RechnungCountArgs} args - Arguments to filter Rechnungs to count. * @example * // Count the number of Rechnungs * const count = await prisma.rechnung.count({ * where: { * // ... the filter for the Rechnungs 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 Rechnung. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RechnungAggregateArgs} 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 Rechnung. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RechnungGroupByArgs} 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 RechnungGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: RechnungGroupByArgs['orderBy'] } : { orderBy?: RechnungGroupByArgs['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 ? GetRechnungGroupByPayload : Prisma.PrismaPromise /** * Fields of the Rechnung model */ readonly fields: RechnungFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Rechnung. * 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__RechnungClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * 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 Rechnung model */ export interface RechnungFieldRefs { readonly id: Prisma.FieldRef<"Rechnung", 'String'> readonly tenantId: Prisma.FieldRef<"Rechnung", 'String'> readonly projektId: Prisma.FieldRef<"Rechnung", 'String'> readonly createdByUserId: Prisma.FieldRef<"Rechnung", 'String'> readonly rechnungsnummer: Prisma.FieldRef<"Rechnung", 'String'> readonly betrag: Prisma.FieldRef<"Rechnung", 'Decimal'> readonly status: Prisma.FieldRef<"Rechnung", 'RechnungStatus'> readonly datum: Prisma.FieldRef<"Rechnung", 'DateTime'> readonly faelligAm: Prisma.FieldRef<"Rechnung", 'DateTime'> readonly dateiId: Prisma.FieldRef<"Rechnung", 'String'> readonly quelle: Prisma.FieldRef<"Rechnung", 'RechnungQuelle'> readonly isDemoData: Prisma.FieldRef<"Rechnung", 'Boolean'> readonly createdAt: Prisma.FieldRef<"Rechnung", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Rechnung", 'DateTime'> readonly archivedAt: Prisma.FieldRef<"Rechnung", 'DateTime'> } // Custom InputTypes /** * Rechnung findUnique */ export type RechnungFindUniqueArgs = { /** * Select specific fields to fetch from the Rechnung */ select?: Prisma.RechnungSelect | null /** * Omit specific fields from the Rechnung */ omit?: Prisma.RechnungOmit | null /** * Filter, which Rechnung to fetch. */ where: Prisma.RechnungWhereUniqueInput } /** * Rechnung findUniqueOrThrow */ export type RechnungFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Rechnung */ select?: Prisma.RechnungSelect | null /** * Omit specific fields from the Rechnung */ omit?: Prisma.RechnungOmit | null /** * Filter, which Rechnung to fetch. */ where: Prisma.RechnungWhereUniqueInput } /** * Rechnung findFirst */ export type RechnungFindFirstArgs = { /** * Select specific fields to fetch from the Rechnung */ select?: Prisma.RechnungSelect | null /** * Omit specific fields from the Rechnung */ omit?: Prisma.RechnungOmit | null /** * Filter, which Rechnung to fetch. */ where?: Prisma.RechnungWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Rechnungs to fetch. */ orderBy?: Prisma.RechnungOrderByWithRelationInput | Prisma.RechnungOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Rechnungs. */ cursor?: Prisma.RechnungWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Rechnungs 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` Rechnungs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Rechnungs. */ distinct?: Prisma.RechnungScalarFieldEnum | Prisma.RechnungScalarFieldEnum[] } /** * Rechnung findFirstOrThrow */ export type RechnungFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Rechnung */ select?: Prisma.RechnungSelect | null /** * Omit specific fields from the Rechnung */ omit?: Prisma.RechnungOmit | null /** * Filter, which Rechnung to fetch. */ where?: Prisma.RechnungWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Rechnungs to fetch. */ orderBy?: Prisma.RechnungOrderByWithRelationInput | Prisma.RechnungOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Rechnungs. */ cursor?: Prisma.RechnungWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Rechnungs 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` Rechnungs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Rechnungs. */ distinct?: Prisma.RechnungScalarFieldEnum | Prisma.RechnungScalarFieldEnum[] } /** * Rechnung findMany */ export type RechnungFindManyArgs = { /** * Select specific fields to fetch from the Rechnung */ select?: Prisma.RechnungSelect | null /** * Omit specific fields from the Rechnung */ omit?: Prisma.RechnungOmit | null /** * Filter, which Rechnungs to fetch. */ where?: Prisma.RechnungWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Rechnungs to fetch. */ orderBy?: Prisma.RechnungOrderByWithRelationInput | Prisma.RechnungOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Rechnungs. */ cursor?: Prisma.RechnungWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Rechnungs 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` Rechnungs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Rechnungs. */ distinct?: Prisma.RechnungScalarFieldEnum | Prisma.RechnungScalarFieldEnum[] } /** * Rechnung create */ export type RechnungCreateArgs = { /** * Select specific fields to fetch from the Rechnung */ select?: Prisma.RechnungSelect | null /** * Omit specific fields from the Rechnung */ omit?: Prisma.RechnungOmit | null /** * The data needed to create a Rechnung. */ data: Prisma.XOR } /** * Rechnung createMany */ export type RechnungCreateManyArgs = { /** * The data used to create many Rechnungs. */ data: Prisma.RechnungCreateManyInput | Prisma.RechnungCreateManyInput[] skipDuplicates?: boolean } /** * Rechnung createManyAndReturn */ export type RechnungCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Rechnung */ select?: Prisma.RechnungSelectCreateManyAndReturn | null /** * Omit specific fields from the Rechnung */ omit?: Prisma.RechnungOmit | null /** * The data used to create many Rechnungs. */ data: Prisma.RechnungCreateManyInput | Prisma.RechnungCreateManyInput[] skipDuplicates?: boolean } /** * Rechnung update */ export type RechnungUpdateArgs = { /** * Select specific fields to fetch from the Rechnung */ select?: Prisma.RechnungSelect | null /** * Omit specific fields from the Rechnung */ omit?: Prisma.RechnungOmit | null /** * The data needed to update a Rechnung. */ data: Prisma.XOR /** * Choose, which Rechnung to update. */ where: Prisma.RechnungWhereUniqueInput } /** * Rechnung updateMany */ export type RechnungUpdateManyArgs = { /** * The data used to update Rechnungs. */ data: Prisma.XOR /** * Filter which Rechnungs to update */ where?: Prisma.RechnungWhereInput /** * Limit how many Rechnungs to update. */ limit?: number } /** * Rechnung updateManyAndReturn */ export type RechnungUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Rechnung */ select?: Prisma.RechnungSelectUpdateManyAndReturn | null /** * Omit specific fields from the Rechnung */ omit?: Prisma.RechnungOmit | null /** * The data used to update Rechnungs. */ data: Prisma.XOR /** * Filter which Rechnungs to update */ where?: Prisma.RechnungWhereInput /** * Limit how many Rechnungs to update. */ limit?: number } /** * Rechnung upsert */ export type RechnungUpsertArgs = { /** * Select specific fields to fetch from the Rechnung */ select?: Prisma.RechnungSelect | null /** * Omit specific fields from the Rechnung */ omit?: Prisma.RechnungOmit | null /** * The filter to search for the Rechnung to update in case it exists. */ where: Prisma.RechnungWhereUniqueInput /** * In case the Rechnung found by the `where` argument doesn't exist, create a new Rechnung with this data. */ create: Prisma.XOR /** * In case the Rechnung was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Rechnung delete */ export type RechnungDeleteArgs = { /** * Select specific fields to fetch from the Rechnung */ select?: Prisma.RechnungSelect | null /** * Omit specific fields from the Rechnung */ omit?: Prisma.RechnungOmit | null /** * Filter which Rechnung to delete. */ where: Prisma.RechnungWhereUniqueInput } /** * Rechnung deleteMany */ export type RechnungDeleteManyArgs = { /** * Filter which Rechnungs to delete */ where?: Prisma.RechnungWhereInput /** * Limit how many Rechnungs to delete. */ limit?: number } /** * Rechnung without action */ export type RechnungDefaultArgs = { /** * Select specific fields to fetch from the Rechnung */ select?: Prisma.RechnungSelect | null /** * Omit specific fields from the Rechnung */ omit?: Prisma.RechnungOmit | null }