1476 lines
52 KiB
TypeScript
1476 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 `LostReason` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model LostReason
|
|
*
|
|
*/
|
|
export type LostReasonModel = runtime.Types.Result.DefaultSelection<Prisma.$LostReasonPayload>
|
|
|
|
export type AggregateLostReason = {
|
|
_count: LostReasonCountAggregateOutputType | null
|
|
_avg: LostReasonAvgAggregateOutputType | null
|
|
_sum: LostReasonSumAggregateOutputType | null
|
|
_min: LostReasonMinAggregateOutputType | null
|
|
_max: LostReasonMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type LostReasonAvgAggregateOutputType = {
|
|
position: number | null
|
|
}
|
|
|
|
export type LostReasonSumAggregateOutputType = {
|
|
position: number | null
|
|
}
|
|
|
|
export type LostReasonMinAggregateOutputType = {
|
|
id: string | null
|
|
tenantId: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
name: string | null
|
|
position: number | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type LostReasonMaxAggregateOutputType = {
|
|
id: string | null
|
|
tenantId: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
name: string | null
|
|
position: number | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type LostReasonCountAggregateOutputType = {
|
|
id: number
|
|
tenantId: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
name: number
|
|
position: number
|
|
isDemoData: number
|
|
archivedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type LostReasonAvgAggregateInputType = {
|
|
position?: true
|
|
}
|
|
|
|
export type LostReasonSumAggregateInputType = {
|
|
position?: true
|
|
}
|
|
|
|
export type LostReasonMinAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
name?: true
|
|
position?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type LostReasonMaxAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
name?: true
|
|
position?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type LostReasonCountAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
name?: true
|
|
position?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type LostReasonAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which LostReason to aggregate.
|
|
*/
|
|
where?: Prisma.LostReasonWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of LostReasons to fetch.
|
|
*/
|
|
orderBy?: Prisma.LostReasonOrderByWithRelationInput | Prisma.LostReasonOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.LostReasonWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` LostReasons from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` LostReasons.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned LostReasons
|
|
**/
|
|
_count?: true | LostReasonCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: LostReasonAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: LostReasonSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: LostReasonMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: LostReasonMaxAggregateInputType
|
|
}
|
|
|
|
export type GetLostReasonAggregateType<T extends LostReasonAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateLostReason]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateLostReason[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateLostReason[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type LostReasonGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.LostReasonWhereInput
|
|
orderBy?: Prisma.LostReasonOrderByWithAggregationInput | Prisma.LostReasonOrderByWithAggregationInput[]
|
|
by: Prisma.LostReasonScalarFieldEnum[] | Prisma.LostReasonScalarFieldEnum
|
|
having?: Prisma.LostReasonScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: LostReasonCountAggregateInputType | true
|
|
_avg?: LostReasonAvgAggregateInputType
|
|
_sum?: LostReasonSumAggregateInputType
|
|
_min?: LostReasonMinAggregateInputType
|
|
_max?: LostReasonMaxAggregateInputType
|
|
}
|
|
|
|
export type LostReasonGroupByOutputType = {
|
|
id: string
|
|
tenantId: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
name: string
|
|
position: number
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
_count: LostReasonCountAggregateOutputType | null
|
|
_avg: LostReasonAvgAggregateOutputType | null
|
|
_sum: LostReasonSumAggregateOutputType | null
|
|
_min: LostReasonMinAggregateOutputType | null
|
|
_max: LostReasonMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetLostReasonGroupByPayload<T extends LostReasonGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<LostReasonGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof LostReasonGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], LostReasonGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], LostReasonGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type LostReasonWhereInput = {
|
|
AND?: Prisma.LostReasonWhereInput | Prisma.LostReasonWhereInput[]
|
|
OR?: Prisma.LostReasonWhereInput[]
|
|
NOT?: Prisma.LostReasonWhereInput | Prisma.LostReasonWhereInput[]
|
|
id?: Prisma.StringFilter<"LostReason"> | string
|
|
tenantId?: Prisma.StringFilter<"LostReason"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"LostReason"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"LostReason"> | Date | string
|
|
name?: Prisma.StringFilter<"LostReason"> | string
|
|
position?: Prisma.IntFilter<"LostReason"> | number
|
|
isDemoData?: Prisma.BoolFilter<"LostReason"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"LostReason"> | Date | string | null
|
|
projekte?: Prisma.ProjektListRelationFilter
|
|
}
|
|
|
|
export type LostReasonOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
position?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
projekte?: Prisma.ProjektOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type LostReasonWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
tenantId_name?: Prisma.LostReasonTenantIdNameCompoundUniqueInput
|
|
AND?: Prisma.LostReasonWhereInput | Prisma.LostReasonWhereInput[]
|
|
OR?: Prisma.LostReasonWhereInput[]
|
|
NOT?: Prisma.LostReasonWhereInput | Prisma.LostReasonWhereInput[]
|
|
tenantId?: Prisma.StringFilter<"LostReason"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"LostReason"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"LostReason"> | Date | string
|
|
name?: Prisma.StringFilter<"LostReason"> | string
|
|
position?: Prisma.IntFilter<"LostReason"> | number
|
|
isDemoData?: Prisma.BoolFilter<"LostReason"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"LostReason"> | Date | string | null
|
|
projekte?: Prisma.ProjektListRelationFilter
|
|
}, "id" | "tenantId_name">
|
|
|
|
export type LostReasonOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
position?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.LostReasonCountOrderByAggregateInput
|
|
_avg?: Prisma.LostReasonAvgOrderByAggregateInput
|
|
_max?: Prisma.LostReasonMaxOrderByAggregateInput
|
|
_min?: Prisma.LostReasonMinOrderByAggregateInput
|
|
_sum?: Prisma.LostReasonSumOrderByAggregateInput
|
|
}
|
|
|
|
export type LostReasonScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.LostReasonScalarWhereWithAggregatesInput | Prisma.LostReasonScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.LostReasonScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.LostReasonScalarWhereWithAggregatesInput | Prisma.LostReasonScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"LostReason"> | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"LostReason"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"LostReason"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"LostReason"> | Date | string
|
|
name?: Prisma.StringWithAggregatesFilter<"LostReason"> | string
|
|
position?: Prisma.IntWithAggregatesFilter<"LostReason"> | number
|
|
isDemoData?: Prisma.BoolWithAggregatesFilter<"LostReason"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"LostReason"> | Date | string | null
|
|
}
|
|
|
|
export type LostReasonCreateInput = {
|
|
id?: string
|
|
tenantId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
name: string
|
|
position?: number
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
projekte?: Prisma.ProjektCreateNestedManyWithoutLostReasonInput
|
|
}
|
|
|
|
export type LostReasonUncheckedCreateInput = {
|
|
id?: string
|
|
tenantId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
name: string
|
|
position?: number
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
projekte?: Prisma.ProjektUncheckedCreateNestedManyWithoutLostReasonInput
|
|
}
|
|
|
|
export type LostReasonUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
position?: Prisma.IntFieldUpdateOperationsInput | number
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
projekte?: Prisma.ProjektUpdateManyWithoutLostReasonNestedInput
|
|
}
|
|
|
|
export type LostReasonUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
position?: Prisma.IntFieldUpdateOperationsInput | number
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
projekte?: Prisma.ProjektUncheckedUpdateManyWithoutLostReasonNestedInput
|
|
}
|
|
|
|
export type LostReasonCreateManyInput = {
|
|
id?: string
|
|
tenantId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
name: string
|
|
position?: number
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type LostReasonUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
position?: Prisma.IntFieldUpdateOperationsInput | number
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type LostReasonUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
position?: Prisma.IntFieldUpdateOperationsInput | number
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type LostReasonTenantIdNameCompoundUniqueInput = {
|
|
tenantId: string
|
|
name: string
|
|
}
|
|
|
|
export type LostReasonCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
position?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type LostReasonAvgOrderByAggregateInput = {
|
|
position?: Prisma.SortOrder
|
|
}
|
|
|
|
export type LostReasonMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
position?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type LostReasonMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
position?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type LostReasonSumOrderByAggregateInput = {
|
|
position?: Prisma.SortOrder
|
|
}
|
|
|
|
export type LostReasonNullableScalarRelationFilter = {
|
|
is?: Prisma.LostReasonWhereInput | null
|
|
isNot?: Prisma.LostReasonWhereInput | null
|
|
}
|
|
|
|
export type LostReasonCreateNestedOneWithoutProjekteInput = {
|
|
create?: Prisma.XOR<Prisma.LostReasonCreateWithoutProjekteInput, Prisma.LostReasonUncheckedCreateWithoutProjekteInput>
|
|
connectOrCreate?: Prisma.LostReasonCreateOrConnectWithoutProjekteInput
|
|
connect?: Prisma.LostReasonWhereUniqueInput
|
|
}
|
|
|
|
export type LostReasonUpdateOneWithoutProjekteNestedInput = {
|
|
create?: Prisma.XOR<Prisma.LostReasonCreateWithoutProjekteInput, Prisma.LostReasonUncheckedCreateWithoutProjekteInput>
|
|
connectOrCreate?: Prisma.LostReasonCreateOrConnectWithoutProjekteInput
|
|
upsert?: Prisma.LostReasonUpsertWithoutProjekteInput
|
|
disconnect?: Prisma.LostReasonWhereInput | boolean
|
|
delete?: Prisma.LostReasonWhereInput | boolean
|
|
connect?: Prisma.LostReasonWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.LostReasonUpdateToOneWithWhereWithoutProjekteInput, Prisma.LostReasonUpdateWithoutProjekteInput>, Prisma.LostReasonUncheckedUpdateWithoutProjekteInput>
|
|
}
|
|
|
|
export type LostReasonCreateWithoutProjekteInput = {
|
|
id?: string
|
|
tenantId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
name: string
|
|
position?: number
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type LostReasonUncheckedCreateWithoutProjekteInput = {
|
|
id?: string
|
|
tenantId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
name: string
|
|
position?: number
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type LostReasonCreateOrConnectWithoutProjekteInput = {
|
|
where: Prisma.LostReasonWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.LostReasonCreateWithoutProjekteInput, Prisma.LostReasonUncheckedCreateWithoutProjekteInput>
|
|
}
|
|
|
|
export type LostReasonUpsertWithoutProjekteInput = {
|
|
update: Prisma.XOR<Prisma.LostReasonUpdateWithoutProjekteInput, Prisma.LostReasonUncheckedUpdateWithoutProjekteInput>
|
|
create: Prisma.XOR<Prisma.LostReasonCreateWithoutProjekteInput, Prisma.LostReasonUncheckedCreateWithoutProjekteInput>
|
|
where?: Prisma.LostReasonWhereInput
|
|
}
|
|
|
|
export type LostReasonUpdateToOneWithWhereWithoutProjekteInput = {
|
|
where?: Prisma.LostReasonWhereInput
|
|
data: Prisma.XOR<Prisma.LostReasonUpdateWithoutProjekteInput, Prisma.LostReasonUncheckedUpdateWithoutProjekteInput>
|
|
}
|
|
|
|
export type LostReasonUpdateWithoutProjekteInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
position?: Prisma.IntFieldUpdateOperationsInput | number
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type LostReasonUncheckedUpdateWithoutProjekteInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
position?: Prisma.IntFieldUpdateOperationsInput | number
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type LostReasonCountOutputType
|
|
*/
|
|
|
|
export type LostReasonCountOutputType = {
|
|
projekte: number
|
|
}
|
|
|
|
export type LostReasonCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
projekte?: boolean | LostReasonCountOutputTypeCountProjekteArgs
|
|
}
|
|
|
|
/**
|
|
* LostReasonCountOutputType without action
|
|
*/
|
|
export type LostReasonCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReasonCountOutputType
|
|
*/
|
|
select?: Prisma.LostReasonCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* LostReasonCountOutputType without action
|
|
*/
|
|
export type LostReasonCountOutputTypeCountProjekteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.ProjektWhereInput
|
|
}
|
|
|
|
|
|
export type LostReasonSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
name?: boolean
|
|
position?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
projekte?: boolean | Prisma.LostReason$projekteArgs<ExtArgs>
|
|
_count?: boolean | Prisma.LostReasonCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["lostReason"]>
|
|
|
|
export type LostReasonSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
name?: boolean
|
|
position?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["lostReason"]>
|
|
|
|
export type LostReasonSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
name?: boolean
|
|
position?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["lostReason"]>
|
|
|
|
export type LostReasonSelectScalar = {
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
name?: boolean
|
|
position?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}
|
|
|
|
export type LostReasonOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "createdAt" | "updatedAt" | "name" | "position" | "isDemoData" | "archivedAt", ExtArgs["result"]["lostReason"]>
|
|
export type LostReasonInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
projekte?: boolean | Prisma.LostReason$projekteArgs<ExtArgs>
|
|
_count?: boolean | Prisma.LostReasonCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type LostReasonIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type LostReasonIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $LostReasonPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "LostReason"
|
|
objects: {
|
|
projekte: Prisma.$ProjektPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
tenantId: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
name: string
|
|
position: number
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
}, ExtArgs["result"]["lostReason"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type LostReasonGetPayload<S extends boolean | null | undefined | LostReasonDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LostReasonPayload, S>
|
|
|
|
export type LostReasonCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<LostReasonFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: LostReasonCountAggregateInputType | true
|
|
}
|
|
|
|
export interface LostReasonDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LostReason'], meta: { name: 'LostReason' } }
|
|
/**
|
|
* Find zero or one LostReason that matches the filter.
|
|
* @param {LostReasonFindUniqueArgs} args - Arguments to find a LostReason
|
|
* @example
|
|
* // Get one LostReason
|
|
* const lostReason = await prisma.lostReason.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends LostReasonFindUniqueArgs>(args: Prisma.SelectSubset<T, LostReasonFindUniqueArgs<ExtArgs>>): Prisma.Prisma__LostReasonClient<runtime.Types.Result.GetResult<Prisma.$LostReasonPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one LostReason that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {LostReasonFindUniqueOrThrowArgs} args - Arguments to find a LostReason
|
|
* @example
|
|
* // Get one LostReason
|
|
* const lostReason = await prisma.lostReason.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends LostReasonFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, LostReasonFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__LostReasonClient<runtime.Types.Result.GetResult<Prisma.$LostReasonPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first LostReason that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LostReasonFindFirstArgs} args - Arguments to find a LostReason
|
|
* @example
|
|
* // Get one LostReason
|
|
* const lostReason = await prisma.lostReason.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends LostReasonFindFirstArgs>(args?: Prisma.SelectSubset<T, LostReasonFindFirstArgs<ExtArgs>>): Prisma.Prisma__LostReasonClient<runtime.Types.Result.GetResult<Prisma.$LostReasonPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first LostReason that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LostReasonFindFirstOrThrowArgs} args - Arguments to find a LostReason
|
|
* @example
|
|
* // Get one LostReason
|
|
* const lostReason = await prisma.lostReason.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends LostReasonFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, LostReasonFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__LostReasonClient<runtime.Types.Result.GetResult<Prisma.$LostReasonPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more LostReasons that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LostReasonFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all LostReasons
|
|
* const lostReasons = await prisma.lostReason.findMany()
|
|
*
|
|
* // Get first 10 LostReasons
|
|
* const lostReasons = await prisma.lostReason.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const lostReasonWithIdOnly = await prisma.lostReason.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends LostReasonFindManyArgs>(args?: Prisma.SelectSubset<T, LostReasonFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LostReasonPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a LostReason.
|
|
* @param {LostReasonCreateArgs} args - Arguments to create a LostReason.
|
|
* @example
|
|
* // Create one LostReason
|
|
* const LostReason = await prisma.lostReason.create({
|
|
* data: {
|
|
* // ... data to create a LostReason
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends LostReasonCreateArgs>(args: Prisma.SelectSubset<T, LostReasonCreateArgs<ExtArgs>>): Prisma.Prisma__LostReasonClient<runtime.Types.Result.GetResult<Prisma.$LostReasonPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many LostReasons.
|
|
* @param {LostReasonCreateManyArgs} args - Arguments to create many LostReasons.
|
|
* @example
|
|
* // Create many LostReasons
|
|
* const lostReason = await prisma.lostReason.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends LostReasonCreateManyArgs>(args?: Prisma.SelectSubset<T, LostReasonCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many LostReasons and returns the data saved in the database.
|
|
* @param {LostReasonCreateManyAndReturnArgs} args - Arguments to create many LostReasons.
|
|
* @example
|
|
* // Create many LostReasons
|
|
* const lostReason = await prisma.lostReason.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many LostReasons and only return the `id`
|
|
* const lostReasonWithIdOnly = await prisma.lostReason.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends LostReasonCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LostReasonCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LostReasonPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a LostReason.
|
|
* @param {LostReasonDeleteArgs} args - Arguments to delete one LostReason.
|
|
* @example
|
|
* // Delete one LostReason
|
|
* const LostReason = await prisma.lostReason.delete({
|
|
* where: {
|
|
* // ... filter to delete one LostReason
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends LostReasonDeleteArgs>(args: Prisma.SelectSubset<T, LostReasonDeleteArgs<ExtArgs>>): Prisma.Prisma__LostReasonClient<runtime.Types.Result.GetResult<Prisma.$LostReasonPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one LostReason.
|
|
* @param {LostReasonUpdateArgs} args - Arguments to update one LostReason.
|
|
* @example
|
|
* // Update one LostReason
|
|
* const lostReason = await prisma.lostReason.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends LostReasonUpdateArgs>(args: Prisma.SelectSubset<T, LostReasonUpdateArgs<ExtArgs>>): Prisma.Prisma__LostReasonClient<runtime.Types.Result.GetResult<Prisma.$LostReasonPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more LostReasons.
|
|
* @param {LostReasonDeleteManyArgs} args - Arguments to filter LostReasons to delete.
|
|
* @example
|
|
* // Delete a few LostReasons
|
|
* const { count } = await prisma.lostReason.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends LostReasonDeleteManyArgs>(args?: Prisma.SelectSubset<T, LostReasonDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more LostReasons.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LostReasonUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many LostReasons
|
|
* const lostReason = await prisma.lostReason.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends LostReasonUpdateManyArgs>(args: Prisma.SelectSubset<T, LostReasonUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more LostReasons and returns the data updated in the database.
|
|
* @param {LostReasonUpdateManyAndReturnArgs} args - Arguments to update many LostReasons.
|
|
* @example
|
|
* // Update many LostReasons
|
|
* const lostReason = await prisma.lostReason.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more LostReasons and only return the `id`
|
|
* const lostReasonWithIdOnly = await prisma.lostReason.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends LostReasonUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LostReasonUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LostReasonPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one LostReason.
|
|
* @param {LostReasonUpsertArgs} args - Arguments to update or create a LostReason.
|
|
* @example
|
|
* // Update or create a LostReason
|
|
* const lostReason = await prisma.lostReason.upsert({
|
|
* create: {
|
|
* // ... data to create a LostReason
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the LostReason we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends LostReasonUpsertArgs>(args: Prisma.SelectSubset<T, LostReasonUpsertArgs<ExtArgs>>): Prisma.Prisma__LostReasonClient<runtime.Types.Result.GetResult<Prisma.$LostReasonPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of LostReasons.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LostReasonCountArgs} args - Arguments to filter LostReasons to count.
|
|
* @example
|
|
* // Count the number of LostReasons
|
|
* const count = await prisma.lostReason.count({
|
|
* where: {
|
|
* // ... the filter for the LostReasons we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends LostReasonCountArgs>(
|
|
args?: Prisma.Subset<T, LostReasonCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], LostReasonCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a LostReason.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LostReasonAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends LostReasonAggregateArgs>(args: Prisma.Subset<T, LostReasonAggregateArgs>): Prisma.PrismaPromise<GetLostReasonAggregateType<T>>
|
|
|
|
/**
|
|
* Group by LostReason.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LostReasonGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends LostReasonGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: LostReasonGroupByArgs['orderBy'] }
|
|
: { orderBy?: LostReasonGroupByArgs['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, LostReasonGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLostReasonGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the LostReason model
|
|
*/
|
|
readonly fields: LostReasonFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for LostReason.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__LostReasonClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
projekte<T extends Prisma.LostReason$projekteArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LostReason$projekteArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjektPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<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 LostReason model
|
|
*/
|
|
export interface LostReasonFieldRefs {
|
|
readonly id: Prisma.FieldRef<"LostReason", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"LostReason", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"LostReason", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"LostReason", 'DateTime'>
|
|
readonly name: Prisma.FieldRef<"LostReason", 'String'>
|
|
readonly position: Prisma.FieldRef<"LostReason", 'Int'>
|
|
readonly isDemoData: Prisma.FieldRef<"LostReason", 'Boolean'>
|
|
readonly archivedAt: Prisma.FieldRef<"LostReason", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* LostReason findUnique
|
|
*/
|
|
export type LostReasonFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReason
|
|
*/
|
|
select?: Prisma.LostReasonSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LostReason
|
|
*/
|
|
omit?: Prisma.LostReasonOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LostReasonInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which LostReason to fetch.
|
|
*/
|
|
where: Prisma.LostReasonWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* LostReason findUniqueOrThrow
|
|
*/
|
|
export type LostReasonFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReason
|
|
*/
|
|
select?: Prisma.LostReasonSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LostReason
|
|
*/
|
|
omit?: Prisma.LostReasonOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LostReasonInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which LostReason to fetch.
|
|
*/
|
|
where: Prisma.LostReasonWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* LostReason findFirst
|
|
*/
|
|
export type LostReasonFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReason
|
|
*/
|
|
select?: Prisma.LostReasonSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LostReason
|
|
*/
|
|
omit?: Prisma.LostReasonOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LostReasonInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which LostReason to fetch.
|
|
*/
|
|
where?: Prisma.LostReasonWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of LostReasons to fetch.
|
|
*/
|
|
orderBy?: Prisma.LostReasonOrderByWithRelationInput | Prisma.LostReasonOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for LostReasons.
|
|
*/
|
|
cursor?: Prisma.LostReasonWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` LostReasons from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` LostReasons.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of LostReasons.
|
|
*/
|
|
distinct?: Prisma.LostReasonScalarFieldEnum | Prisma.LostReasonScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* LostReason findFirstOrThrow
|
|
*/
|
|
export type LostReasonFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReason
|
|
*/
|
|
select?: Prisma.LostReasonSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LostReason
|
|
*/
|
|
omit?: Prisma.LostReasonOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LostReasonInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which LostReason to fetch.
|
|
*/
|
|
where?: Prisma.LostReasonWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of LostReasons to fetch.
|
|
*/
|
|
orderBy?: Prisma.LostReasonOrderByWithRelationInput | Prisma.LostReasonOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for LostReasons.
|
|
*/
|
|
cursor?: Prisma.LostReasonWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` LostReasons from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` LostReasons.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of LostReasons.
|
|
*/
|
|
distinct?: Prisma.LostReasonScalarFieldEnum | Prisma.LostReasonScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* LostReason findMany
|
|
*/
|
|
export type LostReasonFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReason
|
|
*/
|
|
select?: Prisma.LostReasonSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LostReason
|
|
*/
|
|
omit?: Prisma.LostReasonOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LostReasonInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which LostReasons to fetch.
|
|
*/
|
|
where?: Prisma.LostReasonWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of LostReasons to fetch.
|
|
*/
|
|
orderBy?: Prisma.LostReasonOrderByWithRelationInput | Prisma.LostReasonOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing LostReasons.
|
|
*/
|
|
cursor?: Prisma.LostReasonWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` LostReasons from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` LostReasons.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of LostReasons.
|
|
*/
|
|
distinct?: Prisma.LostReasonScalarFieldEnum | Prisma.LostReasonScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* LostReason create
|
|
*/
|
|
export type LostReasonCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReason
|
|
*/
|
|
select?: Prisma.LostReasonSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LostReason
|
|
*/
|
|
omit?: Prisma.LostReasonOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LostReasonInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a LostReason.
|
|
*/
|
|
data: Prisma.XOR<Prisma.LostReasonCreateInput, Prisma.LostReasonUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* LostReason createMany
|
|
*/
|
|
export type LostReasonCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many LostReasons.
|
|
*/
|
|
data: Prisma.LostReasonCreateManyInput | Prisma.LostReasonCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* LostReason createManyAndReturn
|
|
*/
|
|
export type LostReasonCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReason
|
|
*/
|
|
select?: Prisma.LostReasonSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LostReason
|
|
*/
|
|
omit?: Prisma.LostReasonOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many LostReasons.
|
|
*/
|
|
data: Prisma.LostReasonCreateManyInput | Prisma.LostReasonCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* LostReason update
|
|
*/
|
|
export type LostReasonUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReason
|
|
*/
|
|
select?: Prisma.LostReasonSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LostReason
|
|
*/
|
|
omit?: Prisma.LostReasonOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LostReasonInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a LostReason.
|
|
*/
|
|
data: Prisma.XOR<Prisma.LostReasonUpdateInput, Prisma.LostReasonUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which LostReason to update.
|
|
*/
|
|
where: Prisma.LostReasonWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* LostReason updateMany
|
|
*/
|
|
export type LostReasonUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update LostReasons.
|
|
*/
|
|
data: Prisma.XOR<Prisma.LostReasonUpdateManyMutationInput, Prisma.LostReasonUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which LostReasons to update
|
|
*/
|
|
where?: Prisma.LostReasonWhereInput
|
|
/**
|
|
* Limit how many LostReasons to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* LostReason updateManyAndReturn
|
|
*/
|
|
export type LostReasonUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReason
|
|
*/
|
|
select?: Prisma.LostReasonSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LostReason
|
|
*/
|
|
omit?: Prisma.LostReasonOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update LostReasons.
|
|
*/
|
|
data: Prisma.XOR<Prisma.LostReasonUpdateManyMutationInput, Prisma.LostReasonUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which LostReasons to update
|
|
*/
|
|
where?: Prisma.LostReasonWhereInput
|
|
/**
|
|
* Limit how many LostReasons to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* LostReason upsert
|
|
*/
|
|
export type LostReasonUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReason
|
|
*/
|
|
select?: Prisma.LostReasonSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LostReason
|
|
*/
|
|
omit?: Prisma.LostReasonOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LostReasonInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the LostReason to update in case it exists.
|
|
*/
|
|
where: Prisma.LostReasonWhereUniqueInput
|
|
/**
|
|
* In case the LostReason found by the `where` argument doesn't exist, create a new LostReason with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.LostReasonCreateInput, Prisma.LostReasonUncheckedCreateInput>
|
|
/**
|
|
* In case the LostReason was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.LostReasonUpdateInput, Prisma.LostReasonUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* LostReason delete
|
|
*/
|
|
export type LostReasonDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReason
|
|
*/
|
|
select?: Prisma.LostReasonSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LostReason
|
|
*/
|
|
omit?: Prisma.LostReasonOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LostReasonInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which LostReason to delete.
|
|
*/
|
|
where: Prisma.LostReasonWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* LostReason deleteMany
|
|
*/
|
|
export type LostReasonDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which LostReasons to delete
|
|
*/
|
|
where?: Prisma.LostReasonWhereInput
|
|
/**
|
|
* Limit how many LostReasons to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* LostReason.projekte
|
|
*/
|
|
export type LostReason$projekteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Projekt
|
|
*/
|
|
select?: Prisma.ProjektSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Projekt
|
|
*/
|
|
omit?: Prisma.ProjektOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ProjektInclude<ExtArgs> | null
|
|
where?: Prisma.ProjektWhereInput
|
|
orderBy?: Prisma.ProjektOrderByWithRelationInput | Prisma.ProjektOrderByWithRelationInput[]
|
|
cursor?: Prisma.ProjektWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.ProjektScalarFieldEnum | Prisma.ProjektScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* LostReason without action
|
|
*/
|
|
export type LostReasonDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LostReason
|
|
*/
|
|
select?: Prisma.LostReasonSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LostReason
|
|
*/
|
|
omit?: Prisma.LostReasonOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LostReasonInclude<ExtArgs> | null
|
|
}
|