targo-backend/prisma/generated/postgres/models/AttachmentVariants.ts

1515 lines
60 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 `AttachmentVariants` 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"
import type * as Prisma from "../internal/prismaNamespace"
/**
* Model AttachmentVariants
*
*/
export type AttachmentVariantsModel = runtime.Types.Result.DefaultSelection<Prisma.$AttachmentVariantsPayload>
export type AggregateAttachmentVariants = {
_count: AttachmentVariantsCountAggregateOutputType | null
_avg: AttachmentVariantsAvgAggregateOutputType | null
_sum: AttachmentVariantsSumAggregateOutputType | null
_min: AttachmentVariantsMinAggregateOutputType | null
_max: AttachmentVariantsMaxAggregateOutputType | null
}
export type AttachmentVariantsAvgAggregateOutputType = {
id: number | null
attachment_id: number | null
bytes: number | null
width: number | null
height: number | null
}
export type AttachmentVariantsSumAggregateOutputType = {
id: number | null
attachment_id: number | null
bytes: number | null
width: number | null
height: number | null
}
export type AttachmentVariantsMinAggregateOutputType = {
id: number | null
attachment_id: number | null
variant: string | null
bytes: number | null
width: number | null
height: number | null
created_at: Date | null
path: string | null
}
export type AttachmentVariantsMaxAggregateOutputType = {
id: number | null
attachment_id: number | null
variant: string | null
bytes: number | null
width: number | null
height: number | null
created_at: Date | null
path: string | null
}
export type AttachmentVariantsCountAggregateOutputType = {
id: number
attachment_id: number
variant: number
bytes: number
width: number
height: number
created_at: number
path: number
_all: number
}
export type AttachmentVariantsAvgAggregateInputType = {
id?: true
attachment_id?: true
bytes?: true
width?: true
height?: true
}
export type AttachmentVariantsSumAggregateInputType = {
id?: true
attachment_id?: true
bytes?: true
width?: true
height?: true
}
export type AttachmentVariantsMinAggregateInputType = {
id?: true
attachment_id?: true
variant?: true
bytes?: true
width?: true
height?: true
created_at?: true
path?: true
}
export type AttachmentVariantsMaxAggregateInputType = {
id?: true
attachment_id?: true
variant?: true
bytes?: true
width?: true
height?: true
created_at?: true
path?: true
}
export type AttachmentVariantsCountAggregateInputType = {
id?: true
attachment_id?: true
variant?: true
bytes?: true
width?: true
height?: true
created_at?: true
path?: true
_all?: true
}
export type AttachmentVariantsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AttachmentVariants to aggregate.
*/
where?: Prisma.AttachmentVariantsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AttachmentVariants to fetch.
*/
orderBy?: Prisma.AttachmentVariantsOrderByWithRelationInput | Prisma.AttachmentVariantsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.AttachmentVariantsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AttachmentVariants 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` AttachmentVariants.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned AttachmentVariants
**/
_count?: true | AttachmentVariantsCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: AttachmentVariantsAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: AttachmentVariantsSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AttachmentVariantsMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AttachmentVariantsMaxAggregateInputType
}
export type GetAttachmentVariantsAggregateType<T extends AttachmentVariantsAggregateArgs> = {
[P in keyof T & keyof AggregateAttachmentVariants]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAttachmentVariants[P]>
: Prisma.GetScalarType<T[P], AggregateAttachmentVariants[P]>
}
export type AttachmentVariantsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AttachmentVariantsWhereInput
orderBy?: Prisma.AttachmentVariantsOrderByWithAggregationInput | Prisma.AttachmentVariantsOrderByWithAggregationInput[]
by: Prisma.AttachmentVariantsScalarFieldEnum[] | Prisma.AttachmentVariantsScalarFieldEnum
having?: Prisma.AttachmentVariantsScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AttachmentVariantsCountAggregateInputType | true
_avg?: AttachmentVariantsAvgAggregateInputType
_sum?: AttachmentVariantsSumAggregateInputType
_min?: AttachmentVariantsMinAggregateInputType
_max?: AttachmentVariantsMaxAggregateInputType
}
export type AttachmentVariantsGroupByOutputType = {
id: number
attachment_id: number
variant: string
bytes: number
width: number | null
height: number | null
created_at: Date
path: string
_count: AttachmentVariantsCountAggregateOutputType | null
_avg: AttachmentVariantsAvgAggregateOutputType | null
_sum: AttachmentVariantsSumAggregateOutputType | null
_min: AttachmentVariantsMinAggregateOutputType | null
_max: AttachmentVariantsMaxAggregateOutputType | null
}
type GetAttachmentVariantsGroupByPayload<T extends AttachmentVariantsGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AttachmentVariantsGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AttachmentVariantsGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AttachmentVariantsGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AttachmentVariantsGroupByOutputType[P]>
}
>
>
export type AttachmentVariantsWhereInput = {
AND?: Prisma.AttachmentVariantsWhereInput | Prisma.AttachmentVariantsWhereInput[]
OR?: Prisma.AttachmentVariantsWhereInput[]
NOT?: Prisma.AttachmentVariantsWhereInput | Prisma.AttachmentVariantsWhereInput[]
id?: Prisma.IntFilter<"AttachmentVariants"> | number
attachment_id?: Prisma.IntFilter<"AttachmentVariants"> | number
variant?: Prisma.StringFilter<"AttachmentVariants"> | string
bytes?: Prisma.IntFilter<"AttachmentVariants"> | number
width?: Prisma.IntNullableFilter<"AttachmentVariants"> | number | null
height?: Prisma.IntNullableFilter<"AttachmentVariants"> | number | null
created_at?: Prisma.DateTimeFilter<"AttachmentVariants"> | Date | string
path?: Prisma.StringFilter<"AttachmentVariants"> | string
attachment?: Prisma.XOR<Prisma.AttachmentsScalarRelationFilter, Prisma.AttachmentsWhereInput>
}
export type AttachmentVariantsOrderByWithRelationInput = {
id?: Prisma.SortOrder
attachment_id?: Prisma.SortOrder
variant?: Prisma.SortOrder
bytes?: Prisma.SortOrder
width?: Prisma.SortOrderInput | Prisma.SortOrder
height?: Prisma.SortOrderInput | Prisma.SortOrder
created_at?: Prisma.SortOrder
path?: Prisma.SortOrder
attachment?: Prisma.AttachmentsOrderByWithRelationInput
}
export type AttachmentVariantsWhereUniqueInput = Prisma.AtLeast<{
id?: number
attachment_id_variant?: Prisma.AttachmentVariantsAttachment_idVariantCompoundUniqueInput
AND?: Prisma.AttachmentVariantsWhereInput | Prisma.AttachmentVariantsWhereInput[]
OR?: Prisma.AttachmentVariantsWhereInput[]
NOT?: Prisma.AttachmentVariantsWhereInput | Prisma.AttachmentVariantsWhereInput[]
attachment_id?: Prisma.IntFilter<"AttachmentVariants"> | number
variant?: Prisma.StringFilter<"AttachmentVariants"> | string
bytes?: Prisma.IntFilter<"AttachmentVariants"> | number
width?: Prisma.IntNullableFilter<"AttachmentVariants"> | number | null
height?: Prisma.IntNullableFilter<"AttachmentVariants"> | number | null
created_at?: Prisma.DateTimeFilter<"AttachmentVariants"> | Date | string
path?: Prisma.StringFilter<"AttachmentVariants"> | string
attachment?: Prisma.XOR<Prisma.AttachmentsScalarRelationFilter, Prisma.AttachmentsWhereInput>
}, "id" | "attachment_id_variant">
export type AttachmentVariantsOrderByWithAggregationInput = {
id?: Prisma.SortOrder
attachment_id?: Prisma.SortOrder
variant?: Prisma.SortOrder
bytes?: Prisma.SortOrder
width?: Prisma.SortOrderInput | Prisma.SortOrder
height?: Prisma.SortOrderInput | Prisma.SortOrder
created_at?: Prisma.SortOrder
path?: Prisma.SortOrder
_count?: Prisma.AttachmentVariantsCountOrderByAggregateInput
_avg?: Prisma.AttachmentVariantsAvgOrderByAggregateInput
_max?: Prisma.AttachmentVariantsMaxOrderByAggregateInput
_min?: Prisma.AttachmentVariantsMinOrderByAggregateInput
_sum?: Prisma.AttachmentVariantsSumOrderByAggregateInput
}
export type AttachmentVariantsScalarWhereWithAggregatesInput = {
AND?: Prisma.AttachmentVariantsScalarWhereWithAggregatesInput | Prisma.AttachmentVariantsScalarWhereWithAggregatesInput[]
OR?: Prisma.AttachmentVariantsScalarWhereWithAggregatesInput[]
NOT?: Prisma.AttachmentVariantsScalarWhereWithAggregatesInput | Prisma.AttachmentVariantsScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"AttachmentVariants"> | number
attachment_id?: Prisma.IntWithAggregatesFilter<"AttachmentVariants"> | number
variant?: Prisma.StringWithAggregatesFilter<"AttachmentVariants"> | string
bytes?: Prisma.IntWithAggregatesFilter<"AttachmentVariants"> | number
width?: Prisma.IntNullableWithAggregatesFilter<"AttachmentVariants"> | number | null
height?: Prisma.IntNullableWithAggregatesFilter<"AttachmentVariants"> | number | null
created_at?: Prisma.DateTimeWithAggregatesFilter<"AttachmentVariants"> | Date | string
path?: Prisma.StringWithAggregatesFilter<"AttachmentVariants"> | string
}
export type AttachmentVariantsCreateInput = {
variant: string
bytes: number
width?: number | null
height?: number | null
created_at?: Date | string
path: string
attachment: Prisma.AttachmentsCreateNestedOneWithoutAttachmentVariantsInput
}
export type AttachmentVariantsUncheckedCreateInput = {
id?: number
attachment_id: number
variant: string
bytes: number
width?: number | null
height?: number | null
created_at?: Date | string
path: string
}
export type AttachmentVariantsUpdateInput = {
variant?: Prisma.StringFieldUpdateOperationsInput | string
bytes?: Prisma.IntFieldUpdateOperationsInput | number
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
path?: Prisma.StringFieldUpdateOperationsInput | string
attachment?: Prisma.AttachmentsUpdateOneRequiredWithoutAttachmentVariantsNestedInput
}
export type AttachmentVariantsUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
attachment_id?: Prisma.IntFieldUpdateOperationsInput | number
variant?: Prisma.StringFieldUpdateOperationsInput | string
bytes?: Prisma.IntFieldUpdateOperationsInput | number
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
path?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AttachmentVariantsCreateManyInput = {
id?: number
attachment_id: number
variant: string
bytes: number
width?: number | null
height?: number | null
created_at?: Date | string
path: string
}
export type AttachmentVariantsUpdateManyMutationInput = {
variant?: Prisma.StringFieldUpdateOperationsInput | string
bytes?: Prisma.IntFieldUpdateOperationsInput | number
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
path?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AttachmentVariantsUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
attachment_id?: Prisma.IntFieldUpdateOperationsInput | number
variant?: Prisma.StringFieldUpdateOperationsInput | string
bytes?: Prisma.IntFieldUpdateOperationsInput | number
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
path?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AttachmentVariantsListRelationFilter = {
every?: Prisma.AttachmentVariantsWhereInput
some?: Prisma.AttachmentVariantsWhereInput
none?: Prisma.AttachmentVariantsWhereInput
}
export type AttachmentVariantsOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type AttachmentVariantsAttachment_idVariantCompoundUniqueInput = {
attachment_id: number
variant: string
}
export type AttachmentVariantsCountOrderByAggregateInput = {
id?: Prisma.SortOrder
attachment_id?: Prisma.SortOrder
variant?: Prisma.SortOrder
bytes?: Prisma.SortOrder
width?: Prisma.SortOrder
height?: Prisma.SortOrder
created_at?: Prisma.SortOrder
path?: Prisma.SortOrder
}
export type AttachmentVariantsAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
attachment_id?: Prisma.SortOrder
bytes?: Prisma.SortOrder
width?: Prisma.SortOrder
height?: Prisma.SortOrder
}
export type AttachmentVariantsMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
attachment_id?: Prisma.SortOrder
variant?: Prisma.SortOrder
bytes?: Prisma.SortOrder
width?: Prisma.SortOrder
height?: Prisma.SortOrder
created_at?: Prisma.SortOrder
path?: Prisma.SortOrder
}
export type AttachmentVariantsMinOrderByAggregateInput = {
id?: Prisma.SortOrder
attachment_id?: Prisma.SortOrder
variant?: Prisma.SortOrder
bytes?: Prisma.SortOrder
width?: Prisma.SortOrder
height?: Prisma.SortOrder
created_at?: Prisma.SortOrder
path?: Prisma.SortOrder
}
export type AttachmentVariantsSumOrderByAggregateInput = {
id?: Prisma.SortOrder
attachment_id?: Prisma.SortOrder
bytes?: Prisma.SortOrder
width?: Prisma.SortOrder
height?: Prisma.SortOrder
}
export type AttachmentVariantsCreateNestedManyWithoutAttachmentInput = {
create?: Prisma.XOR<Prisma.AttachmentVariantsCreateWithoutAttachmentInput, Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput> | Prisma.AttachmentVariantsCreateWithoutAttachmentInput[] | Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput[]
connectOrCreate?: Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput | Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput[]
createMany?: Prisma.AttachmentVariantsCreateManyAttachmentInputEnvelope
connect?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[]
}
export type AttachmentVariantsUncheckedCreateNestedManyWithoutAttachmentInput = {
create?: Prisma.XOR<Prisma.AttachmentVariantsCreateWithoutAttachmentInput, Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput> | Prisma.AttachmentVariantsCreateWithoutAttachmentInput[] | Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput[]
connectOrCreate?: Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput | Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput[]
createMany?: Prisma.AttachmentVariantsCreateManyAttachmentInputEnvelope
connect?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[]
}
export type AttachmentVariantsUpdateManyWithoutAttachmentNestedInput = {
create?: Prisma.XOR<Prisma.AttachmentVariantsCreateWithoutAttachmentInput, Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput> | Prisma.AttachmentVariantsCreateWithoutAttachmentInput[] | Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput[]
connectOrCreate?: Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput | Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput[]
upsert?: Prisma.AttachmentVariantsUpsertWithWhereUniqueWithoutAttachmentInput | Prisma.AttachmentVariantsUpsertWithWhereUniqueWithoutAttachmentInput[]
createMany?: Prisma.AttachmentVariantsCreateManyAttachmentInputEnvelope
set?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[]
disconnect?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[]
delete?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[]
connect?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[]
update?: Prisma.AttachmentVariantsUpdateWithWhereUniqueWithoutAttachmentInput | Prisma.AttachmentVariantsUpdateWithWhereUniqueWithoutAttachmentInput[]
updateMany?: Prisma.AttachmentVariantsUpdateManyWithWhereWithoutAttachmentInput | Prisma.AttachmentVariantsUpdateManyWithWhereWithoutAttachmentInput[]
deleteMany?: Prisma.AttachmentVariantsScalarWhereInput | Prisma.AttachmentVariantsScalarWhereInput[]
}
export type AttachmentVariantsUncheckedUpdateManyWithoutAttachmentNestedInput = {
create?: Prisma.XOR<Prisma.AttachmentVariantsCreateWithoutAttachmentInput, Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput> | Prisma.AttachmentVariantsCreateWithoutAttachmentInput[] | Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput[]
connectOrCreate?: Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput | Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput[]
upsert?: Prisma.AttachmentVariantsUpsertWithWhereUniqueWithoutAttachmentInput | Prisma.AttachmentVariantsUpsertWithWhereUniqueWithoutAttachmentInput[]
createMany?: Prisma.AttachmentVariantsCreateManyAttachmentInputEnvelope
set?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[]
disconnect?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[]
delete?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[]
connect?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[]
update?: Prisma.AttachmentVariantsUpdateWithWhereUniqueWithoutAttachmentInput | Prisma.AttachmentVariantsUpdateWithWhereUniqueWithoutAttachmentInput[]
updateMany?: Prisma.AttachmentVariantsUpdateManyWithWhereWithoutAttachmentInput | Prisma.AttachmentVariantsUpdateManyWithWhereWithoutAttachmentInput[]
deleteMany?: Prisma.AttachmentVariantsScalarWhereInput | Prisma.AttachmentVariantsScalarWhereInput[]
}
export type AttachmentVariantsCreateWithoutAttachmentInput = {
variant: string
bytes: number
width?: number | null
height?: number | null
created_at?: Date | string
path: string
}
export type AttachmentVariantsUncheckedCreateWithoutAttachmentInput = {
id?: number
variant: string
bytes: number
width?: number | null
height?: number | null
created_at?: Date | string
path: string
}
export type AttachmentVariantsCreateOrConnectWithoutAttachmentInput = {
where: Prisma.AttachmentVariantsWhereUniqueInput
create: Prisma.XOR<Prisma.AttachmentVariantsCreateWithoutAttachmentInput, Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput>
}
export type AttachmentVariantsCreateManyAttachmentInputEnvelope = {
data: Prisma.AttachmentVariantsCreateManyAttachmentInput | Prisma.AttachmentVariantsCreateManyAttachmentInput[]
skipDuplicates?: boolean
}
export type AttachmentVariantsUpsertWithWhereUniqueWithoutAttachmentInput = {
where: Prisma.AttachmentVariantsWhereUniqueInput
update: Prisma.XOR<Prisma.AttachmentVariantsUpdateWithoutAttachmentInput, Prisma.AttachmentVariantsUncheckedUpdateWithoutAttachmentInput>
create: Prisma.XOR<Prisma.AttachmentVariantsCreateWithoutAttachmentInput, Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput>
}
export type AttachmentVariantsUpdateWithWhereUniqueWithoutAttachmentInput = {
where: Prisma.AttachmentVariantsWhereUniqueInput
data: Prisma.XOR<Prisma.AttachmentVariantsUpdateWithoutAttachmentInput, Prisma.AttachmentVariantsUncheckedUpdateWithoutAttachmentInput>
}
export type AttachmentVariantsUpdateManyWithWhereWithoutAttachmentInput = {
where: Prisma.AttachmentVariantsScalarWhereInput
data: Prisma.XOR<Prisma.AttachmentVariantsUpdateManyMutationInput, Prisma.AttachmentVariantsUncheckedUpdateManyWithoutAttachmentInput>
}
export type AttachmentVariantsScalarWhereInput = {
AND?: Prisma.AttachmentVariantsScalarWhereInput | Prisma.AttachmentVariantsScalarWhereInput[]
OR?: Prisma.AttachmentVariantsScalarWhereInput[]
NOT?: Prisma.AttachmentVariantsScalarWhereInput | Prisma.AttachmentVariantsScalarWhereInput[]
id?: Prisma.IntFilter<"AttachmentVariants"> | number
attachment_id?: Prisma.IntFilter<"AttachmentVariants"> | number
variant?: Prisma.StringFilter<"AttachmentVariants"> | string
bytes?: Prisma.IntFilter<"AttachmentVariants"> | number
width?: Prisma.IntNullableFilter<"AttachmentVariants"> | number | null
height?: Prisma.IntNullableFilter<"AttachmentVariants"> | number | null
created_at?: Prisma.DateTimeFilter<"AttachmentVariants"> | Date | string
path?: Prisma.StringFilter<"AttachmentVariants"> | string
}
export type AttachmentVariantsCreateManyAttachmentInput = {
id?: number
variant: string
bytes: number
width?: number | null
height?: number | null
created_at?: Date | string
path: string
}
export type AttachmentVariantsUpdateWithoutAttachmentInput = {
variant?: Prisma.StringFieldUpdateOperationsInput | string
bytes?: Prisma.IntFieldUpdateOperationsInput | number
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
path?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AttachmentVariantsUncheckedUpdateWithoutAttachmentInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
variant?: Prisma.StringFieldUpdateOperationsInput | string
bytes?: Prisma.IntFieldUpdateOperationsInput | number
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
path?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AttachmentVariantsUncheckedUpdateManyWithoutAttachmentInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
variant?: Prisma.StringFieldUpdateOperationsInput | string
bytes?: Prisma.IntFieldUpdateOperationsInput | number
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
path?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AttachmentVariantsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
attachment_id?: boolean
variant?: boolean
bytes?: boolean
width?: boolean
height?: boolean
created_at?: boolean
path?: boolean
attachment?: boolean | Prisma.AttachmentsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["attachmentVariants"]>
export type AttachmentVariantsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
attachment_id?: boolean
variant?: boolean
bytes?: boolean
width?: boolean
height?: boolean
created_at?: boolean
path?: boolean
attachment?: boolean | Prisma.AttachmentsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["attachmentVariants"]>
export type AttachmentVariantsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
attachment_id?: boolean
variant?: boolean
bytes?: boolean
width?: boolean
height?: boolean
created_at?: boolean
path?: boolean
attachment?: boolean | Prisma.AttachmentsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["attachmentVariants"]>
export type AttachmentVariantsSelectScalar = {
id?: boolean
attachment_id?: boolean
variant?: boolean
bytes?: boolean
width?: boolean
height?: boolean
created_at?: boolean
path?: boolean
}
export type AttachmentVariantsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "attachment_id" | "variant" | "bytes" | "width" | "height" | "created_at" | "path", ExtArgs["result"]["attachmentVariants"]>
export type AttachmentVariantsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
attachment?: boolean | Prisma.AttachmentsDefaultArgs<ExtArgs>
}
export type AttachmentVariantsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
attachment?: boolean | Prisma.AttachmentsDefaultArgs<ExtArgs>
}
export type AttachmentVariantsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
attachment?: boolean | Prisma.AttachmentsDefaultArgs<ExtArgs>
}
export type $AttachmentVariantsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AttachmentVariants"
objects: {
attachment: Prisma.$AttachmentsPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
attachment_id: number
variant: string
bytes: number
width: number | null
height: number | null
created_at: Date
path: string
}, ExtArgs["result"]["attachmentVariants"]>
composites: {}
}
export type AttachmentVariantsGetPayload<S extends boolean | null | undefined | AttachmentVariantsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AttachmentVariantsPayload, S>
export type AttachmentVariantsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AttachmentVariantsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AttachmentVariantsCountAggregateInputType | true
}
export interface AttachmentVariantsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AttachmentVariants'], meta: { name: 'AttachmentVariants' } }
/**
* Find zero or one AttachmentVariants that matches the filter.
* @param {AttachmentVariantsFindUniqueArgs} args - Arguments to find a AttachmentVariants
* @example
* // Get one AttachmentVariants
* const attachmentVariants = await prisma.attachmentVariants.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AttachmentVariantsFindUniqueArgs>(args: Prisma.SelectSubset<T, AttachmentVariantsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AttachmentVariantsClient<runtime.Types.Result.GetResult<Prisma.$AttachmentVariantsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one AttachmentVariants that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AttachmentVariantsFindUniqueOrThrowArgs} args - Arguments to find a AttachmentVariants
* @example
* // Get one AttachmentVariants
* const attachmentVariants = await prisma.attachmentVariants.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AttachmentVariantsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AttachmentVariantsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AttachmentVariantsClient<runtime.Types.Result.GetResult<Prisma.$AttachmentVariantsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first AttachmentVariants 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 {AttachmentVariantsFindFirstArgs} args - Arguments to find a AttachmentVariants
* @example
* // Get one AttachmentVariants
* const attachmentVariants = await prisma.attachmentVariants.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AttachmentVariantsFindFirstArgs>(args?: Prisma.SelectSubset<T, AttachmentVariantsFindFirstArgs<ExtArgs>>): Prisma.Prisma__AttachmentVariantsClient<runtime.Types.Result.GetResult<Prisma.$AttachmentVariantsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first AttachmentVariants 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 {AttachmentVariantsFindFirstOrThrowArgs} args - Arguments to find a AttachmentVariants
* @example
* // Get one AttachmentVariants
* const attachmentVariants = await prisma.attachmentVariants.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AttachmentVariantsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AttachmentVariantsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AttachmentVariantsClient<runtime.Types.Result.GetResult<Prisma.$AttachmentVariantsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more AttachmentVariants 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 {AttachmentVariantsFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all AttachmentVariants
* const attachmentVariants = await prisma.attachmentVariants.findMany()
*
* // Get first 10 AttachmentVariants
* const attachmentVariants = await prisma.attachmentVariants.findMany({ take: 10 })
*
* // Only select the `id`
* const attachmentVariantsWithIdOnly = await prisma.attachmentVariants.findMany({ select: { id: true } })
*
*/
findMany<T extends AttachmentVariantsFindManyArgs>(args?: Prisma.SelectSubset<T, AttachmentVariantsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AttachmentVariantsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a AttachmentVariants.
* @param {AttachmentVariantsCreateArgs} args - Arguments to create a AttachmentVariants.
* @example
* // Create one AttachmentVariants
* const AttachmentVariants = await prisma.attachmentVariants.create({
* data: {
* // ... data to create a AttachmentVariants
* }
* })
*
*/
create<T extends AttachmentVariantsCreateArgs>(args: Prisma.SelectSubset<T, AttachmentVariantsCreateArgs<ExtArgs>>): Prisma.Prisma__AttachmentVariantsClient<runtime.Types.Result.GetResult<Prisma.$AttachmentVariantsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many AttachmentVariants.
* @param {AttachmentVariantsCreateManyArgs} args - Arguments to create many AttachmentVariants.
* @example
* // Create many AttachmentVariants
* const attachmentVariants = await prisma.attachmentVariants.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AttachmentVariantsCreateManyArgs>(args?: Prisma.SelectSubset<T, AttachmentVariantsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many AttachmentVariants and returns the data saved in the database.
* @param {AttachmentVariantsCreateManyAndReturnArgs} args - Arguments to create many AttachmentVariants.
* @example
* // Create many AttachmentVariants
* const attachmentVariants = await prisma.attachmentVariants.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many AttachmentVariants and only return the `id`
* const attachmentVariantsWithIdOnly = await prisma.attachmentVariants.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 AttachmentVariantsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AttachmentVariantsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AttachmentVariantsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a AttachmentVariants.
* @param {AttachmentVariantsDeleteArgs} args - Arguments to delete one AttachmentVariants.
* @example
* // Delete one AttachmentVariants
* const AttachmentVariants = await prisma.attachmentVariants.delete({
* where: {
* // ... filter to delete one AttachmentVariants
* }
* })
*
*/
delete<T extends AttachmentVariantsDeleteArgs>(args: Prisma.SelectSubset<T, AttachmentVariantsDeleteArgs<ExtArgs>>): Prisma.Prisma__AttachmentVariantsClient<runtime.Types.Result.GetResult<Prisma.$AttachmentVariantsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one AttachmentVariants.
* @param {AttachmentVariantsUpdateArgs} args - Arguments to update one AttachmentVariants.
* @example
* // Update one AttachmentVariants
* const attachmentVariants = await prisma.attachmentVariants.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AttachmentVariantsUpdateArgs>(args: Prisma.SelectSubset<T, AttachmentVariantsUpdateArgs<ExtArgs>>): Prisma.Prisma__AttachmentVariantsClient<runtime.Types.Result.GetResult<Prisma.$AttachmentVariantsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more AttachmentVariants.
* @param {AttachmentVariantsDeleteManyArgs} args - Arguments to filter AttachmentVariants to delete.
* @example
* // Delete a few AttachmentVariants
* const { count } = await prisma.attachmentVariants.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AttachmentVariantsDeleteManyArgs>(args?: Prisma.SelectSubset<T, AttachmentVariantsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AttachmentVariants.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AttachmentVariantsUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many AttachmentVariants
* const attachmentVariants = await prisma.attachmentVariants.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AttachmentVariantsUpdateManyArgs>(args: Prisma.SelectSubset<T, AttachmentVariantsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AttachmentVariants and returns the data updated in the database.
* @param {AttachmentVariantsUpdateManyAndReturnArgs} args - Arguments to update many AttachmentVariants.
* @example
* // Update many AttachmentVariants
* const attachmentVariants = await prisma.attachmentVariants.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more AttachmentVariants and only return the `id`
* const attachmentVariantsWithIdOnly = await prisma.attachmentVariants.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 AttachmentVariantsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AttachmentVariantsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AttachmentVariantsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one AttachmentVariants.
* @param {AttachmentVariantsUpsertArgs} args - Arguments to update or create a AttachmentVariants.
* @example
* // Update or create a AttachmentVariants
* const attachmentVariants = await prisma.attachmentVariants.upsert({
* create: {
* // ... data to create a AttachmentVariants
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the AttachmentVariants we want to update
* }
* })
*/
upsert<T extends AttachmentVariantsUpsertArgs>(args: Prisma.SelectSubset<T, AttachmentVariantsUpsertArgs<ExtArgs>>): Prisma.Prisma__AttachmentVariantsClient<runtime.Types.Result.GetResult<Prisma.$AttachmentVariantsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of AttachmentVariants.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AttachmentVariantsCountArgs} args - Arguments to filter AttachmentVariants to count.
* @example
* // Count the number of AttachmentVariants
* const count = await prisma.attachmentVariants.count({
* where: {
* // ... the filter for the AttachmentVariants we want to count
* }
* })
**/
count<T extends AttachmentVariantsCountArgs>(
args?: Prisma.Subset<T, AttachmentVariantsCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AttachmentVariantsCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a AttachmentVariants.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AttachmentVariantsAggregateArgs} 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 AttachmentVariantsAggregateArgs>(args: Prisma.Subset<T, AttachmentVariantsAggregateArgs>): Prisma.PrismaPromise<GetAttachmentVariantsAggregateType<T>>
/**
* Group by AttachmentVariants.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AttachmentVariantsGroupByArgs} 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 AttachmentVariantsGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AttachmentVariantsGroupByArgs['orderBy'] }
: { orderBy?: AttachmentVariantsGroupByArgs['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, AttachmentVariantsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAttachmentVariantsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the AttachmentVariants model
*/
readonly fields: AttachmentVariantsFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for AttachmentVariants.
* 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__AttachmentVariantsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
attachment<T extends Prisma.AttachmentsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AttachmentsDefaultArgs<ExtArgs>>): Prisma.Prisma__AttachmentsClient<runtime.Types.Result.GetResult<Prisma.$AttachmentsPayload<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 AttachmentVariants model
*/
export interface AttachmentVariantsFieldRefs {
readonly id: Prisma.FieldRef<"AttachmentVariants", 'Int'>
readonly attachment_id: Prisma.FieldRef<"AttachmentVariants", 'Int'>
readonly variant: Prisma.FieldRef<"AttachmentVariants", 'String'>
readonly bytes: Prisma.FieldRef<"AttachmentVariants", 'Int'>
readonly width: Prisma.FieldRef<"AttachmentVariants", 'Int'>
readonly height: Prisma.FieldRef<"AttachmentVariants", 'Int'>
readonly created_at: Prisma.FieldRef<"AttachmentVariants", 'DateTime'>
readonly path: Prisma.FieldRef<"AttachmentVariants", 'String'>
}
// Custom InputTypes
/**
* AttachmentVariants findUnique
*/
export type AttachmentVariantsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AttachmentVariants
*/
select?: Prisma.AttachmentVariantsSelect<ExtArgs> | null
/**
* Omit specific fields from the AttachmentVariants
*/
omit?: Prisma.AttachmentVariantsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentVariantsInclude<ExtArgs> | null
/**
* Filter, which AttachmentVariants to fetch.
*/
where: Prisma.AttachmentVariantsWhereUniqueInput
}
/**
* AttachmentVariants findUniqueOrThrow
*/
export type AttachmentVariantsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AttachmentVariants
*/
select?: Prisma.AttachmentVariantsSelect<ExtArgs> | null
/**
* Omit specific fields from the AttachmentVariants
*/
omit?: Prisma.AttachmentVariantsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentVariantsInclude<ExtArgs> | null
/**
* Filter, which AttachmentVariants to fetch.
*/
where: Prisma.AttachmentVariantsWhereUniqueInput
}
/**
* AttachmentVariants findFirst
*/
export type AttachmentVariantsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AttachmentVariants
*/
select?: Prisma.AttachmentVariantsSelect<ExtArgs> | null
/**
* Omit specific fields from the AttachmentVariants
*/
omit?: Prisma.AttachmentVariantsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentVariantsInclude<ExtArgs> | null
/**
* Filter, which AttachmentVariants to fetch.
*/
where?: Prisma.AttachmentVariantsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AttachmentVariants to fetch.
*/
orderBy?: Prisma.AttachmentVariantsOrderByWithRelationInput | Prisma.AttachmentVariantsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AttachmentVariants.
*/
cursor?: Prisma.AttachmentVariantsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AttachmentVariants 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` AttachmentVariants.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AttachmentVariants.
*/
distinct?: Prisma.AttachmentVariantsScalarFieldEnum | Prisma.AttachmentVariantsScalarFieldEnum[]
}
/**
* AttachmentVariants findFirstOrThrow
*/
export type AttachmentVariantsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AttachmentVariants
*/
select?: Prisma.AttachmentVariantsSelect<ExtArgs> | null
/**
* Omit specific fields from the AttachmentVariants
*/
omit?: Prisma.AttachmentVariantsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentVariantsInclude<ExtArgs> | null
/**
* Filter, which AttachmentVariants to fetch.
*/
where?: Prisma.AttachmentVariantsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AttachmentVariants to fetch.
*/
orderBy?: Prisma.AttachmentVariantsOrderByWithRelationInput | Prisma.AttachmentVariantsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AttachmentVariants.
*/
cursor?: Prisma.AttachmentVariantsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AttachmentVariants 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` AttachmentVariants.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AttachmentVariants.
*/
distinct?: Prisma.AttachmentVariantsScalarFieldEnum | Prisma.AttachmentVariantsScalarFieldEnum[]
}
/**
* AttachmentVariants findMany
*/
export type AttachmentVariantsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AttachmentVariants
*/
select?: Prisma.AttachmentVariantsSelect<ExtArgs> | null
/**
* Omit specific fields from the AttachmentVariants
*/
omit?: Prisma.AttachmentVariantsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentVariantsInclude<ExtArgs> | null
/**
* Filter, which AttachmentVariants to fetch.
*/
where?: Prisma.AttachmentVariantsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AttachmentVariants to fetch.
*/
orderBy?: Prisma.AttachmentVariantsOrderByWithRelationInput | Prisma.AttachmentVariantsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing AttachmentVariants.
*/
cursor?: Prisma.AttachmentVariantsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AttachmentVariants 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` AttachmentVariants.
*/
skip?: number
distinct?: Prisma.AttachmentVariantsScalarFieldEnum | Prisma.AttachmentVariantsScalarFieldEnum[]
}
/**
* AttachmentVariants create
*/
export type AttachmentVariantsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AttachmentVariants
*/
select?: Prisma.AttachmentVariantsSelect<ExtArgs> | null
/**
* Omit specific fields from the AttachmentVariants
*/
omit?: Prisma.AttachmentVariantsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentVariantsInclude<ExtArgs> | null
/**
* The data needed to create a AttachmentVariants.
*/
data: Prisma.XOR<Prisma.AttachmentVariantsCreateInput, Prisma.AttachmentVariantsUncheckedCreateInput>
}
/**
* AttachmentVariants createMany
*/
export type AttachmentVariantsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many AttachmentVariants.
*/
data: Prisma.AttachmentVariantsCreateManyInput | Prisma.AttachmentVariantsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AttachmentVariants createManyAndReturn
*/
export type AttachmentVariantsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AttachmentVariants
*/
select?: Prisma.AttachmentVariantsSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AttachmentVariants
*/
omit?: Prisma.AttachmentVariantsOmit<ExtArgs> | null
/**
* The data used to create many AttachmentVariants.
*/
data: Prisma.AttachmentVariantsCreateManyInput | Prisma.AttachmentVariantsCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentVariantsIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* AttachmentVariants update
*/
export type AttachmentVariantsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AttachmentVariants
*/
select?: Prisma.AttachmentVariantsSelect<ExtArgs> | null
/**
* Omit specific fields from the AttachmentVariants
*/
omit?: Prisma.AttachmentVariantsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentVariantsInclude<ExtArgs> | null
/**
* The data needed to update a AttachmentVariants.
*/
data: Prisma.XOR<Prisma.AttachmentVariantsUpdateInput, Prisma.AttachmentVariantsUncheckedUpdateInput>
/**
* Choose, which AttachmentVariants to update.
*/
where: Prisma.AttachmentVariantsWhereUniqueInput
}
/**
* AttachmentVariants updateMany
*/
export type AttachmentVariantsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update AttachmentVariants.
*/
data: Prisma.XOR<Prisma.AttachmentVariantsUpdateManyMutationInput, Prisma.AttachmentVariantsUncheckedUpdateManyInput>
/**
* Filter which AttachmentVariants to update
*/
where?: Prisma.AttachmentVariantsWhereInput
/**
* Limit how many AttachmentVariants to update.
*/
limit?: number
}
/**
* AttachmentVariants updateManyAndReturn
*/
export type AttachmentVariantsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AttachmentVariants
*/
select?: Prisma.AttachmentVariantsSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AttachmentVariants
*/
omit?: Prisma.AttachmentVariantsOmit<ExtArgs> | null
/**
* The data used to update AttachmentVariants.
*/
data: Prisma.XOR<Prisma.AttachmentVariantsUpdateManyMutationInput, Prisma.AttachmentVariantsUncheckedUpdateManyInput>
/**
* Filter which AttachmentVariants to update
*/
where?: Prisma.AttachmentVariantsWhereInput
/**
* Limit how many AttachmentVariants to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentVariantsIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* AttachmentVariants upsert
*/
export type AttachmentVariantsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AttachmentVariants
*/
select?: Prisma.AttachmentVariantsSelect<ExtArgs> | null
/**
* Omit specific fields from the AttachmentVariants
*/
omit?: Prisma.AttachmentVariantsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentVariantsInclude<ExtArgs> | null
/**
* The filter to search for the AttachmentVariants to update in case it exists.
*/
where: Prisma.AttachmentVariantsWhereUniqueInput
/**
* In case the AttachmentVariants found by the `where` argument doesn't exist, create a new AttachmentVariants with this data.
*/
create: Prisma.XOR<Prisma.AttachmentVariantsCreateInput, Prisma.AttachmentVariantsUncheckedCreateInput>
/**
* In case the AttachmentVariants was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AttachmentVariantsUpdateInput, Prisma.AttachmentVariantsUncheckedUpdateInput>
}
/**
* AttachmentVariants delete
*/
export type AttachmentVariantsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AttachmentVariants
*/
select?: Prisma.AttachmentVariantsSelect<ExtArgs> | null
/**
* Omit specific fields from the AttachmentVariants
*/
omit?: Prisma.AttachmentVariantsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentVariantsInclude<ExtArgs> | null
/**
* Filter which AttachmentVariants to delete.
*/
where: Prisma.AttachmentVariantsWhereUniqueInput
}
/**
* AttachmentVariants deleteMany
*/
export type AttachmentVariantsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AttachmentVariants to delete
*/
where?: Prisma.AttachmentVariantsWhereInput
/**
* Limit how many AttachmentVariants to delete.
*/
limit?: number
}
/**
* AttachmentVariants without action
*/
export type AttachmentVariantsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AttachmentVariants
*/
select?: Prisma.AttachmentVariantsSelect<ExtArgs> | null
/**
* Omit specific fields from the AttachmentVariants
*/
omit?: Prisma.AttachmentVariantsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentVariantsInclude<ExtArgs> | null
}