1380 lines
54 KiB
TypeScript
1380 lines
54 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 `SampleCustomEntity` 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 SampleCustomEntity
|
|
*
|
|
*/
|
|
export type SampleCustomEntityModel = runtime.Types.Result.DefaultSelection<Prisma.$SampleCustomEntityPayload>
|
|
|
|
export type AggregateSampleCustomEntity = {
|
|
_count: SampleCustomEntityCountAggregateOutputType | null
|
|
_avg: SampleCustomEntityAvgAggregateOutputType | null
|
|
_sum: SampleCustomEntitySumAggregateOutputType | null
|
|
_min: SampleCustomEntityMinAggregateOutputType | null
|
|
_max: SampleCustomEntityMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SampleCustomEntityAvgAggregateOutputType = {
|
|
customNumber: runtime.Decimal | null
|
|
}
|
|
|
|
export type SampleCustomEntitySumAggregateOutputType = {
|
|
customNumber: runtime.Decimal | null
|
|
}
|
|
|
|
export type SampleCustomEntityMinAggregateOutputType = {
|
|
rowId: string | null
|
|
customText: string | null
|
|
customNumber: runtime.Decimal | null
|
|
customDate: Date | null
|
|
customBoolean: boolean | null
|
|
customSelect: string | null
|
|
}
|
|
|
|
export type SampleCustomEntityMaxAggregateOutputType = {
|
|
rowId: string | null
|
|
customText: string | null
|
|
customNumber: runtime.Decimal | null
|
|
customDate: Date | null
|
|
customBoolean: boolean | null
|
|
customSelect: string | null
|
|
}
|
|
|
|
export type SampleCustomEntityCountAggregateOutputType = {
|
|
rowId: number
|
|
customText: number
|
|
customNumber: number
|
|
customDate: number
|
|
customBoolean: number
|
|
customSelect: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SampleCustomEntityAvgAggregateInputType = {
|
|
customNumber?: true
|
|
}
|
|
|
|
export type SampleCustomEntitySumAggregateInputType = {
|
|
customNumber?: true
|
|
}
|
|
|
|
export type SampleCustomEntityMinAggregateInputType = {
|
|
rowId?: true
|
|
customText?: true
|
|
customNumber?: true
|
|
customDate?: true
|
|
customBoolean?: true
|
|
customSelect?: true
|
|
}
|
|
|
|
export type SampleCustomEntityMaxAggregateInputType = {
|
|
rowId?: true
|
|
customText?: true
|
|
customNumber?: true
|
|
customDate?: true
|
|
customBoolean?: true
|
|
customSelect?: true
|
|
}
|
|
|
|
export type SampleCustomEntityCountAggregateInputType = {
|
|
rowId?: true
|
|
customText?: true
|
|
customNumber?: true
|
|
customDate?: true
|
|
customBoolean?: true
|
|
customSelect?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SampleCustomEntityAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SampleCustomEntity to aggregate.
|
|
*/
|
|
where?: Prisma.SampleCustomEntityWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SampleCustomEntities to fetch.
|
|
*/
|
|
orderBy?: Prisma.SampleCustomEntityOrderByWithRelationInput | Prisma.SampleCustomEntityOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.SampleCustomEntityWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SampleCustomEntities 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` SampleCustomEntities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned SampleCustomEntities
|
|
**/
|
|
_count?: true | SampleCustomEntityCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: SampleCustomEntityAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: SampleCustomEntitySumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SampleCustomEntityMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SampleCustomEntityMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSampleCustomEntityAggregateType<T extends SampleCustomEntityAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSampleCustomEntity]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateSampleCustomEntity[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateSampleCustomEntity[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SampleCustomEntityGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SampleCustomEntityWhereInput
|
|
orderBy?: Prisma.SampleCustomEntityOrderByWithAggregationInput | Prisma.SampleCustomEntityOrderByWithAggregationInput[]
|
|
by: Prisma.SampleCustomEntityScalarFieldEnum[] | Prisma.SampleCustomEntityScalarFieldEnum
|
|
having?: Prisma.SampleCustomEntityScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SampleCustomEntityCountAggregateInputType | true
|
|
_avg?: SampleCustomEntityAvgAggregateInputType
|
|
_sum?: SampleCustomEntitySumAggregateInputType
|
|
_min?: SampleCustomEntityMinAggregateInputType
|
|
_max?: SampleCustomEntityMaxAggregateInputType
|
|
}
|
|
|
|
export type SampleCustomEntityGroupByOutputType = {
|
|
rowId: string
|
|
customText: string
|
|
customNumber: runtime.Decimal
|
|
customDate: Date
|
|
customBoolean: boolean
|
|
customSelect: string
|
|
_count: SampleCustomEntityCountAggregateOutputType | null
|
|
_avg: SampleCustomEntityAvgAggregateOutputType | null
|
|
_sum: SampleCustomEntitySumAggregateOutputType | null
|
|
_min: SampleCustomEntityMinAggregateOutputType | null
|
|
_max: SampleCustomEntityMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetSampleCustomEntityGroupByPayload<T extends SampleCustomEntityGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<SampleCustomEntityGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SampleCustomEntityGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], SampleCustomEntityGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], SampleCustomEntityGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type SampleCustomEntityWhereInput = {
|
|
AND?: Prisma.SampleCustomEntityWhereInput | Prisma.SampleCustomEntityWhereInput[]
|
|
OR?: Prisma.SampleCustomEntityWhereInput[]
|
|
NOT?: Prisma.SampleCustomEntityWhereInput | Prisma.SampleCustomEntityWhereInput[]
|
|
rowId?: Prisma.StringFilter<"SampleCustomEntity"> | string
|
|
customText?: Prisma.StringFilter<"SampleCustomEntity"> | string
|
|
customNumber?: Prisma.DecimalFilter<"SampleCustomEntity"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate?: Prisma.DateTimeFilter<"SampleCustomEntity"> | Date | string
|
|
customBoolean?: Prisma.BoolFilter<"SampleCustomEntity"> | boolean
|
|
customSelect?: Prisma.StringFilter<"SampleCustomEntity"> | string
|
|
row?: Prisma.XOR<Prisma.RowScalarRelationFilter, Prisma.RowWhereInput>
|
|
}
|
|
|
|
export type SampleCustomEntityOrderByWithRelationInput = {
|
|
rowId?: Prisma.SortOrder
|
|
customText?: Prisma.SortOrder
|
|
customNumber?: Prisma.SortOrder
|
|
customDate?: Prisma.SortOrder
|
|
customBoolean?: Prisma.SortOrder
|
|
customSelect?: Prisma.SortOrder
|
|
row?: Prisma.RowOrderByWithRelationInput
|
|
}
|
|
|
|
export type SampleCustomEntityWhereUniqueInput = Prisma.AtLeast<{
|
|
rowId?: string
|
|
AND?: Prisma.SampleCustomEntityWhereInput | Prisma.SampleCustomEntityWhereInput[]
|
|
OR?: Prisma.SampleCustomEntityWhereInput[]
|
|
NOT?: Prisma.SampleCustomEntityWhereInput | Prisma.SampleCustomEntityWhereInput[]
|
|
customText?: Prisma.StringFilter<"SampleCustomEntity"> | string
|
|
customNumber?: Prisma.DecimalFilter<"SampleCustomEntity"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate?: Prisma.DateTimeFilter<"SampleCustomEntity"> | Date | string
|
|
customBoolean?: Prisma.BoolFilter<"SampleCustomEntity"> | boolean
|
|
customSelect?: Prisma.StringFilter<"SampleCustomEntity"> | string
|
|
row?: Prisma.XOR<Prisma.RowScalarRelationFilter, Prisma.RowWhereInput>
|
|
}, "rowId">
|
|
|
|
export type SampleCustomEntityOrderByWithAggregationInput = {
|
|
rowId?: Prisma.SortOrder
|
|
customText?: Prisma.SortOrder
|
|
customNumber?: Prisma.SortOrder
|
|
customDate?: Prisma.SortOrder
|
|
customBoolean?: Prisma.SortOrder
|
|
customSelect?: Prisma.SortOrder
|
|
_count?: Prisma.SampleCustomEntityCountOrderByAggregateInput
|
|
_avg?: Prisma.SampleCustomEntityAvgOrderByAggregateInput
|
|
_max?: Prisma.SampleCustomEntityMaxOrderByAggregateInput
|
|
_min?: Prisma.SampleCustomEntityMinOrderByAggregateInput
|
|
_sum?: Prisma.SampleCustomEntitySumOrderByAggregateInput
|
|
}
|
|
|
|
export type SampleCustomEntityScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.SampleCustomEntityScalarWhereWithAggregatesInput | Prisma.SampleCustomEntityScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.SampleCustomEntityScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.SampleCustomEntityScalarWhereWithAggregatesInput | Prisma.SampleCustomEntityScalarWhereWithAggregatesInput[]
|
|
rowId?: Prisma.StringWithAggregatesFilter<"SampleCustomEntity"> | string
|
|
customText?: Prisma.StringWithAggregatesFilter<"SampleCustomEntity"> | string
|
|
customNumber?: Prisma.DecimalWithAggregatesFilter<"SampleCustomEntity"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate?: Prisma.DateTimeWithAggregatesFilter<"SampleCustomEntity"> | Date | string
|
|
customBoolean?: Prisma.BoolWithAggregatesFilter<"SampleCustomEntity"> | boolean
|
|
customSelect?: Prisma.StringWithAggregatesFilter<"SampleCustomEntity"> | string
|
|
}
|
|
|
|
export type SampleCustomEntityCreateInput = {
|
|
customText: string
|
|
customNumber: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate: Date | string
|
|
customBoolean: boolean
|
|
customSelect: string
|
|
row: Prisma.RowCreateNestedOneWithoutSampleCustomEntityInput
|
|
}
|
|
|
|
export type SampleCustomEntityUncheckedCreateInput = {
|
|
rowId: string
|
|
customText: string
|
|
customNumber: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate: Date | string
|
|
customBoolean: boolean
|
|
customSelect: string
|
|
}
|
|
|
|
export type SampleCustomEntityUpdateInput = {
|
|
customText?: Prisma.StringFieldUpdateOperationsInput | string
|
|
customNumber?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
customBoolean?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
customSelect?: Prisma.StringFieldUpdateOperationsInput | string
|
|
row?: Prisma.RowUpdateOneRequiredWithoutSampleCustomEntityNestedInput
|
|
}
|
|
|
|
export type SampleCustomEntityUncheckedUpdateInput = {
|
|
rowId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
customText?: Prisma.StringFieldUpdateOperationsInput | string
|
|
customNumber?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
customBoolean?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
customSelect?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SampleCustomEntityCreateManyInput = {
|
|
rowId: string
|
|
customText: string
|
|
customNumber: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate: Date | string
|
|
customBoolean: boolean
|
|
customSelect: string
|
|
}
|
|
|
|
export type SampleCustomEntityUpdateManyMutationInput = {
|
|
customText?: Prisma.StringFieldUpdateOperationsInput | string
|
|
customNumber?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
customBoolean?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
customSelect?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SampleCustomEntityUncheckedUpdateManyInput = {
|
|
rowId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
customText?: Prisma.StringFieldUpdateOperationsInput | string
|
|
customNumber?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
customBoolean?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
customSelect?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SampleCustomEntityCountOrderByAggregateInput = {
|
|
rowId?: Prisma.SortOrder
|
|
customText?: Prisma.SortOrder
|
|
customNumber?: Prisma.SortOrder
|
|
customDate?: Prisma.SortOrder
|
|
customBoolean?: Prisma.SortOrder
|
|
customSelect?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SampleCustomEntityAvgOrderByAggregateInput = {
|
|
customNumber?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SampleCustomEntityMaxOrderByAggregateInput = {
|
|
rowId?: Prisma.SortOrder
|
|
customText?: Prisma.SortOrder
|
|
customNumber?: Prisma.SortOrder
|
|
customDate?: Prisma.SortOrder
|
|
customBoolean?: Prisma.SortOrder
|
|
customSelect?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SampleCustomEntityMinOrderByAggregateInput = {
|
|
rowId?: Prisma.SortOrder
|
|
customText?: Prisma.SortOrder
|
|
customNumber?: Prisma.SortOrder
|
|
customDate?: Prisma.SortOrder
|
|
customBoolean?: Prisma.SortOrder
|
|
customSelect?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SampleCustomEntitySumOrderByAggregateInput = {
|
|
customNumber?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SampleCustomEntityNullableScalarRelationFilter = {
|
|
is?: Prisma.SampleCustomEntityWhereInput | null
|
|
isNot?: Prisma.SampleCustomEntityWhereInput | null
|
|
}
|
|
|
|
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 SampleCustomEntityCreateNestedOneWithoutRowInput = {
|
|
create?: Prisma.XOR<Prisma.SampleCustomEntityCreateWithoutRowInput, Prisma.SampleCustomEntityUncheckedCreateWithoutRowInput>
|
|
connectOrCreate?: Prisma.SampleCustomEntityCreateOrConnectWithoutRowInput
|
|
connect?: Prisma.SampleCustomEntityWhereUniqueInput
|
|
}
|
|
|
|
export type SampleCustomEntityUncheckedCreateNestedOneWithoutRowInput = {
|
|
create?: Prisma.XOR<Prisma.SampleCustomEntityCreateWithoutRowInput, Prisma.SampleCustomEntityUncheckedCreateWithoutRowInput>
|
|
connectOrCreate?: Prisma.SampleCustomEntityCreateOrConnectWithoutRowInput
|
|
connect?: Prisma.SampleCustomEntityWhereUniqueInput
|
|
}
|
|
|
|
export type SampleCustomEntityUpdateOneWithoutRowNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SampleCustomEntityCreateWithoutRowInput, Prisma.SampleCustomEntityUncheckedCreateWithoutRowInput>
|
|
connectOrCreate?: Prisma.SampleCustomEntityCreateOrConnectWithoutRowInput
|
|
upsert?: Prisma.SampleCustomEntityUpsertWithoutRowInput
|
|
disconnect?: Prisma.SampleCustomEntityWhereInput | boolean
|
|
delete?: Prisma.SampleCustomEntityWhereInput | boolean
|
|
connect?: Prisma.SampleCustomEntityWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.SampleCustomEntityUpdateToOneWithWhereWithoutRowInput, Prisma.SampleCustomEntityUpdateWithoutRowInput>, Prisma.SampleCustomEntityUncheckedUpdateWithoutRowInput>
|
|
}
|
|
|
|
export type SampleCustomEntityUncheckedUpdateOneWithoutRowNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SampleCustomEntityCreateWithoutRowInput, Prisma.SampleCustomEntityUncheckedCreateWithoutRowInput>
|
|
connectOrCreate?: Prisma.SampleCustomEntityCreateOrConnectWithoutRowInput
|
|
upsert?: Prisma.SampleCustomEntityUpsertWithoutRowInput
|
|
disconnect?: Prisma.SampleCustomEntityWhereInput | boolean
|
|
delete?: Prisma.SampleCustomEntityWhereInput | boolean
|
|
connect?: Prisma.SampleCustomEntityWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.SampleCustomEntityUpdateToOneWithWhereWithoutRowInput, Prisma.SampleCustomEntityUpdateWithoutRowInput>, Prisma.SampleCustomEntityUncheckedUpdateWithoutRowInput>
|
|
}
|
|
|
|
export type SampleCustomEntityCreateWithoutRowInput = {
|
|
customText: string
|
|
customNumber: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate: Date | string
|
|
customBoolean: boolean
|
|
customSelect: string
|
|
}
|
|
|
|
export type SampleCustomEntityUncheckedCreateWithoutRowInput = {
|
|
customText: string
|
|
customNumber: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate: Date | string
|
|
customBoolean: boolean
|
|
customSelect: string
|
|
}
|
|
|
|
export type SampleCustomEntityCreateOrConnectWithoutRowInput = {
|
|
where: Prisma.SampleCustomEntityWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SampleCustomEntityCreateWithoutRowInput, Prisma.SampleCustomEntityUncheckedCreateWithoutRowInput>
|
|
}
|
|
|
|
export type SampleCustomEntityUpsertWithoutRowInput = {
|
|
update: Prisma.XOR<Prisma.SampleCustomEntityUpdateWithoutRowInput, Prisma.SampleCustomEntityUncheckedUpdateWithoutRowInput>
|
|
create: Prisma.XOR<Prisma.SampleCustomEntityCreateWithoutRowInput, Prisma.SampleCustomEntityUncheckedCreateWithoutRowInput>
|
|
where?: Prisma.SampleCustomEntityWhereInput
|
|
}
|
|
|
|
export type SampleCustomEntityUpdateToOneWithWhereWithoutRowInput = {
|
|
where?: Prisma.SampleCustomEntityWhereInput
|
|
data: Prisma.XOR<Prisma.SampleCustomEntityUpdateWithoutRowInput, Prisma.SampleCustomEntityUncheckedUpdateWithoutRowInput>
|
|
}
|
|
|
|
export type SampleCustomEntityUpdateWithoutRowInput = {
|
|
customText?: Prisma.StringFieldUpdateOperationsInput | string
|
|
customNumber?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
customBoolean?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
customSelect?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SampleCustomEntityUncheckedUpdateWithoutRowInput = {
|
|
customText?: Prisma.StringFieldUpdateOperationsInput | string
|
|
customNumber?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
customDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
customBoolean?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
customSelect?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
|
|
export type SampleCustomEntitySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
rowId?: boolean
|
|
customText?: boolean
|
|
customNumber?: boolean
|
|
customDate?: boolean
|
|
customBoolean?: boolean
|
|
customSelect?: boolean
|
|
row?: boolean | Prisma.RowDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["sampleCustomEntity"]>
|
|
|
|
export type SampleCustomEntitySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
rowId?: boolean
|
|
customText?: boolean
|
|
customNumber?: boolean
|
|
customDate?: boolean
|
|
customBoolean?: boolean
|
|
customSelect?: boolean
|
|
row?: boolean | Prisma.RowDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["sampleCustomEntity"]>
|
|
|
|
export type SampleCustomEntitySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
rowId?: boolean
|
|
customText?: boolean
|
|
customNumber?: boolean
|
|
customDate?: boolean
|
|
customBoolean?: boolean
|
|
customSelect?: boolean
|
|
row?: boolean | Prisma.RowDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["sampleCustomEntity"]>
|
|
|
|
export type SampleCustomEntitySelectScalar = {
|
|
rowId?: boolean
|
|
customText?: boolean
|
|
customNumber?: boolean
|
|
customDate?: boolean
|
|
customBoolean?: boolean
|
|
customSelect?: boolean
|
|
}
|
|
|
|
export type SampleCustomEntityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"rowId" | "customText" | "customNumber" | "customDate" | "customBoolean" | "customSelect", ExtArgs["result"]["sampleCustomEntity"]>
|
|
export type SampleCustomEntityInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
row?: boolean | Prisma.RowDefaultArgs<ExtArgs>
|
|
}
|
|
export type SampleCustomEntityIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
row?: boolean | Prisma.RowDefaultArgs<ExtArgs>
|
|
}
|
|
export type SampleCustomEntityIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
row?: boolean | Prisma.RowDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SampleCustomEntityPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "SampleCustomEntity"
|
|
objects: {
|
|
row: Prisma.$RowPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
rowId: string
|
|
customText: string
|
|
customNumber: runtime.Decimal
|
|
customDate: Date
|
|
customBoolean: boolean
|
|
customSelect: string
|
|
}, ExtArgs["result"]["sampleCustomEntity"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type SampleCustomEntityGetPayload<S extends boolean | null | undefined | SampleCustomEntityDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SampleCustomEntityPayload, S>
|
|
|
|
export type SampleCustomEntityCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<SampleCustomEntityFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SampleCustomEntityCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SampleCustomEntityDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SampleCustomEntity'], meta: { name: 'SampleCustomEntity' } }
|
|
/**
|
|
* Find zero or one SampleCustomEntity that matches the filter.
|
|
* @param {SampleCustomEntityFindUniqueArgs} args - Arguments to find a SampleCustomEntity
|
|
* @example
|
|
* // Get one SampleCustomEntity
|
|
* const sampleCustomEntity = await prisma.sampleCustomEntity.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SampleCustomEntityFindUniqueArgs>(args: Prisma.SelectSubset<T, SampleCustomEntityFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SampleCustomEntityClient<runtime.Types.Result.GetResult<Prisma.$SampleCustomEntityPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one SampleCustomEntity that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SampleCustomEntityFindUniqueOrThrowArgs} args - Arguments to find a SampleCustomEntity
|
|
* @example
|
|
* // Get one SampleCustomEntity
|
|
* const sampleCustomEntity = await prisma.sampleCustomEntity.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SampleCustomEntityFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SampleCustomEntityFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SampleCustomEntityClient<runtime.Types.Result.GetResult<Prisma.$SampleCustomEntityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SampleCustomEntity 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 {SampleCustomEntityFindFirstArgs} args - Arguments to find a SampleCustomEntity
|
|
* @example
|
|
* // Get one SampleCustomEntity
|
|
* const sampleCustomEntity = await prisma.sampleCustomEntity.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SampleCustomEntityFindFirstArgs>(args?: Prisma.SelectSubset<T, SampleCustomEntityFindFirstArgs<ExtArgs>>): Prisma.Prisma__SampleCustomEntityClient<runtime.Types.Result.GetResult<Prisma.$SampleCustomEntityPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SampleCustomEntity 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 {SampleCustomEntityFindFirstOrThrowArgs} args - Arguments to find a SampleCustomEntity
|
|
* @example
|
|
* // Get one SampleCustomEntity
|
|
* const sampleCustomEntity = await prisma.sampleCustomEntity.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SampleCustomEntityFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SampleCustomEntityFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SampleCustomEntityClient<runtime.Types.Result.GetResult<Prisma.$SampleCustomEntityPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more SampleCustomEntities 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 {SampleCustomEntityFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all SampleCustomEntities
|
|
* const sampleCustomEntities = await prisma.sampleCustomEntity.findMany()
|
|
*
|
|
* // Get first 10 SampleCustomEntities
|
|
* const sampleCustomEntities = await prisma.sampleCustomEntity.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `rowId`
|
|
* const sampleCustomEntityWithRowIdOnly = await prisma.sampleCustomEntity.findMany({ select: { rowId: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SampleCustomEntityFindManyArgs>(args?: Prisma.SelectSubset<T, SampleCustomEntityFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SampleCustomEntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a SampleCustomEntity.
|
|
* @param {SampleCustomEntityCreateArgs} args - Arguments to create a SampleCustomEntity.
|
|
* @example
|
|
* // Create one SampleCustomEntity
|
|
* const SampleCustomEntity = await prisma.sampleCustomEntity.create({
|
|
* data: {
|
|
* // ... data to create a SampleCustomEntity
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SampleCustomEntityCreateArgs>(args: Prisma.SelectSubset<T, SampleCustomEntityCreateArgs<ExtArgs>>): Prisma.Prisma__SampleCustomEntityClient<runtime.Types.Result.GetResult<Prisma.$SampleCustomEntityPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many SampleCustomEntities.
|
|
* @param {SampleCustomEntityCreateManyArgs} args - Arguments to create many SampleCustomEntities.
|
|
* @example
|
|
* // Create many SampleCustomEntities
|
|
* const sampleCustomEntity = await prisma.sampleCustomEntity.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SampleCustomEntityCreateManyArgs>(args?: Prisma.SelectSubset<T, SampleCustomEntityCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many SampleCustomEntities and returns the data saved in the database.
|
|
* @param {SampleCustomEntityCreateManyAndReturnArgs} args - Arguments to create many SampleCustomEntities.
|
|
* @example
|
|
* // Create many SampleCustomEntities
|
|
* const sampleCustomEntity = await prisma.sampleCustomEntity.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many SampleCustomEntities and only return the `rowId`
|
|
* const sampleCustomEntityWithRowIdOnly = await prisma.sampleCustomEntity.createManyAndReturn({
|
|
* select: { rowId: 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 SampleCustomEntityCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SampleCustomEntityCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SampleCustomEntityPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a SampleCustomEntity.
|
|
* @param {SampleCustomEntityDeleteArgs} args - Arguments to delete one SampleCustomEntity.
|
|
* @example
|
|
* // Delete one SampleCustomEntity
|
|
* const SampleCustomEntity = await prisma.sampleCustomEntity.delete({
|
|
* where: {
|
|
* // ... filter to delete one SampleCustomEntity
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SampleCustomEntityDeleteArgs>(args: Prisma.SelectSubset<T, SampleCustomEntityDeleteArgs<ExtArgs>>): Prisma.Prisma__SampleCustomEntityClient<runtime.Types.Result.GetResult<Prisma.$SampleCustomEntityPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one SampleCustomEntity.
|
|
* @param {SampleCustomEntityUpdateArgs} args - Arguments to update one SampleCustomEntity.
|
|
* @example
|
|
* // Update one SampleCustomEntity
|
|
* const sampleCustomEntity = await prisma.sampleCustomEntity.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SampleCustomEntityUpdateArgs>(args: Prisma.SelectSubset<T, SampleCustomEntityUpdateArgs<ExtArgs>>): Prisma.Prisma__SampleCustomEntityClient<runtime.Types.Result.GetResult<Prisma.$SampleCustomEntityPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more SampleCustomEntities.
|
|
* @param {SampleCustomEntityDeleteManyArgs} args - Arguments to filter SampleCustomEntities to delete.
|
|
* @example
|
|
* // Delete a few SampleCustomEntities
|
|
* const { count } = await prisma.sampleCustomEntity.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SampleCustomEntityDeleteManyArgs>(args?: Prisma.SelectSubset<T, SampleCustomEntityDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SampleCustomEntities.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SampleCustomEntityUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many SampleCustomEntities
|
|
* const sampleCustomEntity = await prisma.sampleCustomEntity.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SampleCustomEntityUpdateManyArgs>(args: Prisma.SelectSubset<T, SampleCustomEntityUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SampleCustomEntities and returns the data updated in the database.
|
|
* @param {SampleCustomEntityUpdateManyAndReturnArgs} args - Arguments to update many SampleCustomEntities.
|
|
* @example
|
|
* // Update many SampleCustomEntities
|
|
* const sampleCustomEntity = await prisma.sampleCustomEntity.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more SampleCustomEntities and only return the `rowId`
|
|
* const sampleCustomEntityWithRowIdOnly = await prisma.sampleCustomEntity.updateManyAndReturn({
|
|
* select: { rowId: 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 SampleCustomEntityUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SampleCustomEntityUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SampleCustomEntityPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one SampleCustomEntity.
|
|
* @param {SampleCustomEntityUpsertArgs} args - Arguments to update or create a SampleCustomEntity.
|
|
* @example
|
|
* // Update or create a SampleCustomEntity
|
|
* const sampleCustomEntity = await prisma.sampleCustomEntity.upsert({
|
|
* create: {
|
|
* // ... data to create a SampleCustomEntity
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the SampleCustomEntity we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SampleCustomEntityUpsertArgs>(args: Prisma.SelectSubset<T, SampleCustomEntityUpsertArgs<ExtArgs>>): Prisma.Prisma__SampleCustomEntityClient<runtime.Types.Result.GetResult<Prisma.$SampleCustomEntityPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of SampleCustomEntities.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SampleCustomEntityCountArgs} args - Arguments to filter SampleCustomEntities to count.
|
|
* @example
|
|
* // Count the number of SampleCustomEntities
|
|
* const count = await prisma.sampleCustomEntity.count({
|
|
* where: {
|
|
* // ... the filter for the SampleCustomEntities we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SampleCustomEntityCountArgs>(
|
|
args?: Prisma.Subset<T, SampleCustomEntityCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], SampleCustomEntityCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a SampleCustomEntity.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SampleCustomEntityAggregateArgs} 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 SampleCustomEntityAggregateArgs>(args: Prisma.Subset<T, SampleCustomEntityAggregateArgs>): Prisma.PrismaPromise<GetSampleCustomEntityAggregateType<T>>
|
|
|
|
/**
|
|
* Group by SampleCustomEntity.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SampleCustomEntityGroupByArgs} 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 SampleCustomEntityGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: SampleCustomEntityGroupByArgs['orderBy'] }
|
|
: { orderBy?: SampleCustomEntityGroupByArgs['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, SampleCustomEntityGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSampleCustomEntityGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the SampleCustomEntity model
|
|
*/
|
|
readonly fields: SampleCustomEntityFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for SampleCustomEntity.
|
|
* 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__SampleCustomEntityClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
row<T extends Prisma.RowDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.RowDefaultArgs<ExtArgs>>): Prisma.Prisma__RowClient<runtime.Types.Result.GetResult<Prisma.$RowPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<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 SampleCustomEntity model
|
|
*/
|
|
export interface SampleCustomEntityFieldRefs {
|
|
readonly rowId: Prisma.FieldRef<"SampleCustomEntity", 'String'>
|
|
readonly customText: Prisma.FieldRef<"SampleCustomEntity", 'String'>
|
|
readonly customNumber: Prisma.FieldRef<"SampleCustomEntity", 'Decimal'>
|
|
readonly customDate: Prisma.FieldRef<"SampleCustomEntity", 'DateTime'>
|
|
readonly customBoolean: Prisma.FieldRef<"SampleCustomEntity", 'Boolean'>
|
|
readonly customSelect: Prisma.FieldRef<"SampleCustomEntity", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SampleCustomEntity findUnique
|
|
*/
|
|
export type SampleCustomEntityFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SampleCustomEntity
|
|
*/
|
|
select?: Prisma.SampleCustomEntitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SampleCustomEntity
|
|
*/
|
|
omit?: Prisma.SampleCustomEntityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SampleCustomEntityInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SampleCustomEntity to fetch.
|
|
*/
|
|
where: Prisma.SampleCustomEntityWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity findUniqueOrThrow
|
|
*/
|
|
export type SampleCustomEntityFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SampleCustomEntity
|
|
*/
|
|
select?: Prisma.SampleCustomEntitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SampleCustomEntity
|
|
*/
|
|
omit?: Prisma.SampleCustomEntityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SampleCustomEntityInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SampleCustomEntity to fetch.
|
|
*/
|
|
where: Prisma.SampleCustomEntityWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity findFirst
|
|
*/
|
|
export type SampleCustomEntityFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SampleCustomEntity
|
|
*/
|
|
select?: Prisma.SampleCustomEntitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SampleCustomEntity
|
|
*/
|
|
omit?: Prisma.SampleCustomEntityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SampleCustomEntityInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SampleCustomEntity to fetch.
|
|
*/
|
|
where?: Prisma.SampleCustomEntityWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SampleCustomEntities to fetch.
|
|
*/
|
|
orderBy?: Prisma.SampleCustomEntityOrderByWithRelationInput | Prisma.SampleCustomEntityOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SampleCustomEntities.
|
|
*/
|
|
cursor?: Prisma.SampleCustomEntityWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SampleCustomEntities 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` SampleCustomEntities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SampleCustomEntities.
|
|
*/
|
|
distinct?: Prisma.SampleCustomEntityScalarFieldEnum | Prisma.SampleCustomEntityScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity findFirstOrThrow
|
|
*/
|
|
export type SampleCustomEntityFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SampleCustomEntity
|
|
*/
|
|
select?: Prisma.SampleCustomEntitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SampleCustomEntity
|
|
*/
|
|
omit?: Prisma.SampleCustomEntityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SampleCustomEntityInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SampleCustomEntity to fetch.
|
|
*/
|
|
where?: Prisma.SampleCustomEntityWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SampleCustomEntities to fetch.
|
|
*/
|
|
orderBy?: Prisma.SampleCustomEntityOrderByWithRelationInput | Prisma.SampleCustomEntityOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SampleCustomEntities.
|
|
*/
|
|
cursor?: Prisma.SampleCustomEntityWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SampleCustomEntities 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` SampleCustomEntities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SampleCustomEntities.
|
|
*/
|
|
distinct?: Prisma.SampleCustomEntityScalarFieldEnum | Prisma.SampleCustomEntityScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity findMany
|
|
*/
|
|
export type SampleCustomEntityFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SampleCustomEntity
|
|
*/
|
|
select?: Prisma.SampleCustomEntitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SampleCustomEntity
|
|
*/
|
|
omit?: Prisma.SampleCustomEntityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SampleCustomEntityInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SampleCustomEntities to fetch.
|
|
*/
|
|
where?: Prisma.SampleCustomEntityWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SampleCustomEntities to fetch.
|
|
*/
|
|
orderBy?: Prisma.SampleCustomEntityOrderByWithRelationInput | Prisma.SampleCustomEntityOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing SampleCustomEntities.
|
|
*/
|
|
cursor?: Prisma.SampleCustomEntityWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SampleCustomEntities 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` SampleCustomEntities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SampleCustomEntities.
|
|
*/
|
|
distinct?: Prisma.SampleCustomEntityScalarFieldEnum | Prisma.SampleCustomEntityScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity create
|
|
*/
|
|
export type SampleCustomEntityCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SampleCustomEntity
|
|
*/
|
|
select?: Prisma.SampleCustomEntitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SampleCustomEntity
|
|
*/
|
|
omit?: Prisma.SampleCustomEntityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SampleCustomEntityInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a SampleCustomEntity.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SampleCustomEntityCreateInput, Prisma.SampleCustomEntityUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity createMany
|
|
*/
|
|
export type SampleCustomEntityCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many SampleCustomEntities.
|
|
*/
|
|
data: Prisma.SampleCustomEntityCreateManyInput | Prisma.SampleCustomEntityCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity createManyAndReturn
|
|
*/
|
|
export type SampleCustomEntityCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SampleCustomEntity
|
|
*/
|
|
select?: Prisma.SampleCustomEntitySelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SampleCustomEntity
|
|
*/
|
|
omit?: Prisma.SampleCustomEntityOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many SampleCustomEntities.
|
|
*/
|
|
data: Prisma.SampleCustomEntityCreateManyInput | Prisma.SampleCustomEntityCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SampleCustomEntityIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity update
|
|
*/
|
|
export type SampleCustomEntityUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SampleCustomEntity
|
|
*/
|
|
select?: Prisma.SampleCustomEntitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SampleCustomEntity
|
|
*/
|
|
omit?: Prisma.SampleCustomEntityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SampleCustomEntityInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a SampleCustomEntity.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SampleCustomEntityUpdateInput, Prisma.SampleCustomEntityUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which SampleCustomEntity to update.
|
|
*/
|
|
where: Prisma.SampleCustomEntityWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity updateMany
|
|
*/
|
|
export type SampleCustomEntityUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update SampleCustomEntities.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SampleCustomEntityUpdateManyMutationInput, Prisma.SampleCustomEntityUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SampleCustomEntities to update
|
|
*/
|
|
where?: Prisma.SampleCustomEntityWhereInput
|
|
/**
|
|
* Limit how many SampleCustomEntities to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity updateManyAndReturn
|
|
*/
|
|
export type SampleCustomEntityUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SampleCustomEntity
|
|
*/
|
|
select?: Prisma.SampleCustomEntitySelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SampleCustomEntity
|
|
*/
|
|
omit?: Prisma.SampleCustomEntityOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update SampleCustomEntities.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SampleCustomEntityUpdateManyMutationInput, Prisma.SampleCustomEntityUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SampleCustomEntities to update
|
|
*/
|
|
where?: Prisma.SampleCustomEntityWhereInput
|
|
/**
|
|
* Limit how many SampleCustomEntities to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SampleCustomEntityIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity upsert
|
|
*/
|
|
export type SampleCustomEntityUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SampleCustomEntity
|
|
*/
|
|
select?: Prisma.SampleCustomEntitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SampleCustomEntity
|
|
*/
|
|
omit?: Prisma.SampleCustomEntityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SampleCustomEntityInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the SampleCustomEntity to update in case it exists.
|
|
*/
|
|
where: Prisma.SampleCustomEntityWhereUniqueInput
|
|
/**
|
|
* In case the SampleCustomEntity found by the `where` argument doesn't exist, create a new SampleCustomEntity with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.SampleCustomEntityCreateInput, Prisma.SampleCustomEntityUncheckedCreateInput>
|
|
/**
|
|
* In case the SampleCustomEntity was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.SampleCustomEntityUpdateInput, Prisma.SampleCustomEntityUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity delete
|
|
*/
|
|
export type SampleCustomEntityDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SampleCustomEntity
|
|
*/
|
|
select?: Prisma.SampleCustomEntitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SampleCustomEntity
|
|
*/
|
|
omit?: Prisma.SampleCustomEntityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SampleCustomEntityInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which SampleCustomEntity to delete.
|
|
*/
|
|
where: Prisma.SampleCustomEntityWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity deleteMany
|
|
*/
|
|
export type SampleCustomEntityDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SampleCustomEntities to delete
|
|
*/
|
|
where?: Prisma.SampleCustomEntityWhereInput
|
|
/**
|
|
* Limit how many SampleCustomEntities to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SampleCustomEntity without action
|
|
*/
|
|
export type SampleCustomEntityDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SampleCustomEntity
|
|
*/
|
|
select?: Prisma.SampleCustomEntitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SampleCustomEntity
|
|
*/
|
|
omit?: Prisma.SampleCustomEntityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SampleCustomEntityInclude<ExtArgs> | null
|
|
}
|