Files
T
2026-07-08 16:15:37 +02:00

1496 lines
52 KiB
TypeScript

/* !!! 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<Prisma.$RechnungPayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends RechnungAggregateArgs> = {
[P in keyof T & keyof AggregateRechnung]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateRechnung[P]>
: Prisma.GetScalarType<T[P], AggregateRechnung[P]>
}
export type RechnungGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends RechnungGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<RechnungGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof RechnungGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], RechnungGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], RechnungGroupByOutputType[P]>
}
>
>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<S extends boolean | null | undefined | RechnungDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RechnungPayload, S>
export type RechnungCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<RechnungFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: RechnungCountAggregateInputType | true
}
export interface RechnungDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends RechnungFindUniqueArgs>(args: Prisma.SelectSubset<T, RechnungFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RechnungClient<runtime.Types.Result.GetResult<Prisma.$RechnungPayload<ExtArgs>, 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<T extends RechnungFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RechnungFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RechnungClient<runtime.Types.Result.GetResult<Prisma.$RechnungPayload<ExtArgs>, 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<T extends RechnungFindFirstArgs>(args?: Prisma.SelectSubset<T, RechnungFindFirstArgs<ExtArgs>>): Prisma.Prisma__RechnungClient<runtime.Types.Result.GetResult<Prisma.$RechnungPayload<ExtArgs>, 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<T extends RechnungFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RechnungFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RechnungClient<runtime.Types.Result.GetResult<Prisma.$RechnungPayload<ExtArgs>, 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<T extends RechnungFindManyArgs>(args?: Prisma.SelectSubset<T, RechnungFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RechnungPayload<ExtArgs>, 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<T extends RechnungCreateArgs>(args: Prisma.SelectSubset<T, RechnungCreateArgs<ExtArgs>>): Prisma.Prisma__RechnungClient<runtime.Types.Result.GetResult<Prisma.$RechnungPayload<ExtArgs>, 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<T extends RechnungCreateManyArgs>(args?: Prisma.SelectSubset<T, RechnungCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends RechnungCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RechnungCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RechnungPayload<ExtArgs>, 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<T extends RechnungDeleteArgs>(args: Prisma.SelectSubset<T, RechnungDeleteArgs<ExtArgs>>): Prisma.Prisma__RechnungClient<runtime.Types.Result.GetResult<Prisma.$RechnungPayload<ExtArgs>, 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<T extends RechnungUpdateArgs>(args: Prisma.SelectSubset<T, RechnungUpdateArgs<ExtArgs>>): Prisma.Prisma__RechnungClient<runtime.Types.Result.GetResult<Prisma.$RechnungPayload<ExtArgs>, 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<T extends RechnungDeleteManyArgs>(args?: Prisma.SelectSubset<T, RechnungDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends RechnungUpdateManyArgs>(args: Prisma.SelectSubset<T, RechnungUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends RechnungUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RechnungUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RechnungPayload<ExtArgs>, 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<T extends RechnungUpsertArgs>(args: Prisma.SelectSubset<T, RechnungUpsertArgs<ExtArgs>>): Prisma.Prisma__RechnungClient<runtime.Types.Result.GetResult<Prisma.$RechnungPayload<ExtArgs>, 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<T extends RechnungCountArgs>(
args?: Prisma.Subset<T, RechnungCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], RechnungCountAggregateOutputType>
: 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<T extends RechnungAggregateArgs>(args: Prisma.Subset<T, RechnungAggregateArgs>): Prisma.PrismaPromise<GetRechnungAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: RechnungGroupByArgs['orderBy'] }
: { orderBy?: RechnungGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T, RechnungGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRechnungGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* 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<T>
}
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Rechnung
*/
select?: Prisma.RechnungSelect<ExtArgs> | null
/**
* Omit specific fields from the Rechnung
*/
omit?: Prisma.RechnungOmit<ExtArgs> | null
/**
* Filter, which Rechnung to fetch.
*/
where: Prisma.RechnungWhereUniqueInput
}
/**
* Rechnung findUniqueOrThrow
*/
export type RechnungFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Rechnung
*/
select?: Prisma.RechnungSelect<ExtArgs> | null
/**
* Omit specific fields from the Rechnung
*/
omit?: Prisma.RechnungOmit<ExtArgs> | null
/**
* Filter, which Rechnung to fetch.
*/
where: Prisma.RechnungWhereUniqueInput
}
/**
* Rechnung findFirst
*/
export type RechnungFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Rechnung
*/
select?: Prisma.RechnungSelect<ExtArgs> | null
/**
* Omit specific fields from the Rechnung
*/
omit?: Prisma.RechnungOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Rechnung
*/
select?: Prisma.RechnungSelect<ExtArgs> | null
/**
* Omit specific fields from the Rechnung
*/
omit?: Prisma.RechnungOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Rechnung
*/
select?: Prisma.RechnungSelect<ExtArgs> | null
/**
* Omit specific fields from the Rechnung
*/
omit?: Prisma.RechnungOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Rechnung
*/
select?: Prisma.RechnungSelect<ExtArgs> | null
/**
* Omit specific fields from the Rechnung
*/
omit?: Prisma.RechnungOmit<ExtArgs> | null
/**
* The data needed to create a Rechnung.
*/
data: Prisma.XOR<Prisma.RechnungCreateInput, Prisma.RechnungUncheckedCreateInput>
}
/**
* Rechnung createMany
*/
export type RechnungCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Rechnungs.
*/
data: Prisma.RechnungCreateManyInput | Prisma.RechnungCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Rechnung createManyAndReturn
*/
export type RechnungCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Rechnung
*/
select?: Prisma.RechnungSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Rechnung
*/
omit?: Prisma.RechnungOmit<ExtArgs> | null
/**
* The data used to create many Rechnungs.
*/
data: Prisma.RechnungCreateManyInput | Prisma.RechnungCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Rechnung update
*/
export type RechnungUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Rechnung
*/
select?: Prisma.RechnungSelect<ExtArgs> | null
/**
* Omit specific fields from the Rechnung
*/
omit?: Prisma.RechnungOmit<ExtArgs> | null
/**
* The data needed to update a Rechnung.
*/
data: Prisma.XOR<Prisma.RechnungUpdateInput, Prisma.RechnungUncheckedUpdateInput>
/**
* Choose, which Rechnung to update.
*/
where: Prisma.RechnungWhereUniqueInput
}
/**
* Rechnung updateMany
*/
export type RechnungUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Rechnungs.
*/
data: Prisma.XOR<Prisma.RechnungUpdateManyMutationInput, Prisma.RechnungUncheckedUpdateManyInput>
/**
* Filter which Rechnungs to update
*/
where?: Prisma.RechnungWhereInput
/**
* Limit how many Rechnungs to update.
*/
limit?: number
}
/**
* Rechnung updateManyAndReturn
*/
export type RechnungUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Rechnung
*/
select?: Prisma.RechnungSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Rechnung
*/
omit?: Prisma.RechnungOmit<ExtArgs> | null
/**
* The data used to update Rechnungs.
*/
data: Prisma.XOR<Prisma.RechnungUpdateManyMutationInput, Prisma.RechnungUncheckedUpdateManyInput>
/**
* Filter which Rechnungs to update
*/
where?: Prisma.RechnungWhereInput
/**
* Limit how many Rechnungs to update.
*/
limit?: number
}
/**
* Rechnung upsert
*/
export type RechnungUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Rechnung
*/
select?: Prisma.RechnungSelect<ExtArgs> | null
/**
* Omit specific fields from the Rechnung
*/
omit?: Prisma.RechnungOmit<ExtArgs> | 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<Prisma.RechnungCreateInput, Prisma.RechnungUncheckedCreateInput>
/**
* In case the Rechnung was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.RechnungUpdateInput, Prisma.RechnungUncheckedUpdateInput>
}
/**
* Rechnung delete
*/
export type RechnungDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Rechnung
*/
select?: Prisma.RechnungSelect<ExtArgs> | null
/**
* Omit specific fields from the Rechnung
*/
omit?: Prisma.RechnungOmit<ExtArgs> | null
/**
* Filter which Rechnung to delete.
*/
where: Prisma.RechnungWhereUniqueInput
}
/**
* Rechnung deleteMany
*/
export type RechnungDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Rechnungs to delete
*/
where?: Prisma.RechnungWhereInput
/**
* Limit how many Rechnungs to delete.
*/
limit?: number
}
/**
* Rechnung without action
*/
export type RechnungDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Rechnung
*/
select?: Prisma.RechnungSelect<ExtArgs> | null
/**
* Omit specific fields from the Rechnung
*/
omit?: Prisma.RechnungOmit<ExtArgs> | null
}