
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `TransactionItemPhoto` 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 TransactionItemPhoto
 * 
 */
export type TransactionItemPhotoModel = runtime.Types.Result.DefaultSelection<Prisma.$TransactionItemPhotoPayload>

export type AggregateTransactionItemPhoto = {
  _count: TransactionItemPhotoCountAggregateOutputType | null
  _avg: TransactionItemPhotoAvgAggregateOutputType | null
  _sum: TransactionItemPhotoSumAggregateOutputType | null
  _min: TransactionItemPhotoMinAggregateOutputType | null
  _max: TransactionItemPhotoMaxAggregateOutputType | null
}

export type TransactionItemPhotoAvgAggregateOutputType = {
  size: number | null
  order: number | null
}

export type TransactionItemPhotoSumAggregateOutputType = {
  size: number | null
  order: number | null
}

export type TransactionItemPhotoMinAggregateOutputType = {
  id: string | null
  itemId: string | null
  url: string | null
  filename: string | null
  mimetype: string | null
  size: number | null
  order: number | null
  createdAt: Date | null
}

export type TransactionItemPhotoMaxAggregateOutputType = {
  id: string | null
  itemId: string | null
  url: string | null
  filename: string | null
  mimetype: string | null
  size: number | null
  order: number | null
  createdAt: Date | null
}

export type TransactionItemPhotoCountAggregateOutputType = {
  id: number
  itemId: number
  url: number
  filename: number
  mimetype: number
  size: number
  order: number
  createdAt: number
  _all: number
}


export type TransactionItemPhotoAvgAggregateInputType = {
  size?: true
  order?: true
}

export type TransactionItemPhotoSumAggregateInputType = {
  size?: true
  order?: true
}

export type TransactionItemPhotoMinAggregateInputType = {
  id?: true
  itemId?: true
  url?: true
  filename?: true
  mimetype?: true
  size?: true
  order?: true
  createdAt?: true
}

export type TransactionItemPhotoMaxAggregateInputType = {
  id?: true
  itemId?: true
  url?: true
  filename?: true
  mimetype?: true
  size?: true
  order?: true
  createdAt?: true
}

export type TransactionItemPhotoCountAggregateInputType = {
  id?: true
  itemId?: true
  url?: true
  filename?: true
  mimetype?: true
  size?: true
  order?: true
  createdAt?: true
  _all?: true
}

export type TransactionItemPhotoAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which TransactionItemPhoto to aggregate.
   */
  where?: Prisma.TransactionItemPhotoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of TransactionItemPhotos to fetch.
   */
  orderBy?: Prisma.TransactionItemPhotoOrderByWithRelationInput | Prisma.TransactionItemPhotoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.TransactionItemPhotoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` TransactionItemPhotos 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` TransactionItemPhotos.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned TransactionItemPhotos
  **/
  _count?: true | TransactionItemPhotoCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: TransactionItemPhotoAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: TransactionItemPhotoSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: TransactionItemPhotoMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: TransactionItemPhotoMaxAggregateInputType
}

export type GetTransactionItemPhotoAggregateType<T extends TransactionItemPhotoAggregateArgs> = {
      [P in keyof T & keyof AggregateTransactionItemPhoto]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateTransactionItemPhoto[P]>
    : Prisma.GetScalarType<T[P], AggregateTransactionItemPhoto[P]>
}




export type TransactionItemPhotoGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.TransactionItemPhotoWhereInput
  orderBy?: Prisma.TransactionItemPhotoOrderByWithAggregationInput | Prisma.TransactionItemPhotoOrderByWithAggregationInput[]
  by: Prisma.TransactionItemPhotoScalarFieldEnum[] | Prisma.TransactionItemPhotoScalarFieldEnum
  having?: Prisma.TransactionItemPhotoScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: TransactionItemPhotoCountAggregateInputType | true
  _avg?: TransactionItemPhotoAvgAggregateInputType
  _sum?: TransactionItemPhotoSumAggregateInputType
  _min?: TransactionItemPhotoMinAggregateInputType
  _max?: TransactionItemPhotoMaxAggregateInputType
}

export type TransactionItemPhotoGroupByOutputType = {
  id: string
  itemId: string
  url: string
  filename: string
  mimetype: string
  size: number
  order: number
  createdAt: Date
  _count: TransactionItemPhotoCountAggregateOutputType | null
  _avg: TransactionItemPhotoAvgAggregateOutputType | null
  _sum: TransactionItemPhotoSumAggregateOutputType | null
  _min: TransactionItemPhotoMinAggregateOutputType | null
  _max: TransactionItemPhotoMaxAggregateOutputType | null
}

type GetTransactionItemPhotoGroupByPayload<T extends TransactionItemPhotoGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<TransactionItemPhotoGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof TransactionItemPhotoGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], TransactionItemPhotoGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], TransactionItemPhotoGroupByOutputType[P]>
      }
    >
  >



export type TransactionItemPhotoWhereInput = {
  AND?: Prisma.TransactionItemPhotoWhereInput | Prisma.TransactionItemPhotoWhereInput[]
  OR?: Prisma.TransactionItemPhotoWhereInput[]
  NOT?: Prisma.TransactionItemPhotoWhereInput | Prisma.TransactionItemPhotoWhereInput[]
  id?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  itemId?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  url?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  filename?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  mimetype?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  size?: Prisma.IntFilter<"TransactionItemPhoto"> | number
  order?: Prisma.IntFilter<"TransactionItemPhoto"> | number
  createdAt?: Prisma.DateTimeFilter<"TransactionItemPhoto"> | Date | string
  item?: Prisma.XOR<Prisma.TransactionItemScalarRelationFilter, Prisma.TransactionItemWhereInput>
}

export type TransactionItemPhotoOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  itemId?: Prisma.SortOrder
  url?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  item?: Prisma.TransactionItemOrderByWithRelationInput
}

export type TransactionItemPhotoWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.TransactionItemPhotoWhereInput | Prisma.TransactionItemPhotoWhereInput[]
  OR?: Prisma.TransactionItemPhotoWhereInput[]
  NOT?: Prisma.TransactionItemPhotoWhereInput | Prisma.TransactionItemPhotoWhereInput[]
  itemId?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  url?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  filename?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  mimetype?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  size?: Prisma.IntFilter<"TransactionItemPhoto"> | number
  order?: Prisma.IntFilter<"TransactionItemPhoto"> | number
  createdAt?: Prisma.DateTimeFilter<"TransactionItemPhoto"> | Date | string
  item?: Prisma.XOR<Prisma.TransactionItemScalarRelationFilter, Prisma.TransactionItemWhereInput>
}, "id">

export type TransactionItemPhotoOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  itemId?: Prisma.SortOrder
  url?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.TransactionItemPhotoCountOrderByAggregateInput
  _avg?: Prisma.TransactionItemPhotoAvgOrderByAggregateInput
  _max?: Prisma.TransactionItemPhotoMaxOrderByAggregateInput
  _min?: Prisma.TransactionItemPhotoMinOrderByAggregateInput
  _sum?: Prisma.TransactionItemPhotoSumOrderByAggregateInput
}

export type TransactionItemPhotoScalarWhereWithAggregatesInput = {
  AND?: Prisma.TransactionItemPhotoScalarWhereWithAggregatesInput | Prisma.TransactionItemPhotoScalarWhereWithAggregatesInput[]
  OR?: Prisma.TransactionItemPhotoScalarWhereWithAggregatesInput[]
  NOT?: Prisma.TransactionItemPhotoScalarWhereWithAggregatesInput | Prisma.TransactionItemPhotoScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"TransactionItemPhoto"> | string
  itemId?: Prisma.StringWithAggregatesFilter<"TransactionItemPhoto"> | string
  url?: Prisma.StringWithAggregatesFilter<"TransactionItemPhoto"> | string
  filename?: Prisma.StringWithAggregatesFilter<"TransactionItemPhoto"> | string
  mimetype?: Prisma.StringWithAggregatesFilter<"TransactionItemPhoto"> | string
  size?: Prisma.IntWithAggregatesFilter<"TransactionItemPhoto"> | number
  order?: Prisma.IntWithAggregatesFilter<"TransactionItemPhoto"> | number
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"TransactionItemPhoto"> | Date | string
}

export type TransactionItemPhotoCreateInput = {
  id?: string
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
  item: Prisma.TransactionItemCreateNestedOneWithoutImagesInput
}

export type TransactionItemPhotoUncheckedCreateInput = {
  id?: string
  itemId: string
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
}

export type TransactionItemPhotoUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  mimetype?: Prisma.StringFieldUpdateOperationsInput | string
  size?: Prisma.IntFieldUpdateOperationsInput | number
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  item?: Prisma.TransactionItemUpdateOneRequiredWithoutImagesNestedInput
}

export type TransactionItemPhotoUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  itemId?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  mimetype?: Prisma.StringFieldUpdateOperationsInput | string
  size?: Prisma.IntFieldUpdateOperationsInput | number
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TransactionItemPhotoCreateManyInput = {
  id?: string
  itemId: string
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
}

export type TransactionItemPhotoUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  mimetype?: Prisma.StringFieldUpdateOperationsInput | string
  size?: Prisma.IntFieldUpdateOperationsInput | number
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TransactionItemPhotoUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  itemId?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  mimetype?: Prisma.StringFieldUpdateOperationsInput | string
  size?: Prisma.IntFieldUpdateOperationsInput | number
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TransactionItemPhotoListRelationFilter = {
  every?: Prisma.TransactionItemPhotoWhereInput
  some?: Prisma.TransactionItemPhotoWhereInput
  none?: Prisma.TransactionItemPhotoWhereInput
}

export type TransactionItemPhotoOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type TransactionItemPhotoCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  itemId?: Prisma.SortOrder
  url?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type TransactionItemPhotoAvgOrderByAggregateInput = {
  size?: Prisma.SortOrder
  order?: Prisma.SortOrder
}

export type TransactionItemPhotoMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  itemId?: Prisma.SortOrder
  url?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type TransactionItemPhotoMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  itemId?: Prisma.SortOrder
  url?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type TransactionItemPhotoSumOrderByAggregateInput = {
  size?: Prisma.SortOrder
  order?: Prisma.SortOrder
}

export type TransactionItemPhotoCreateNestedManyWithoutItemInput = {
  create?: Prisma.XOR<Prisma.TransactionItemPhotoCreateWithoutItemInput, Prisma.TransactionItemPhotoUncheckedCreateWithoutItemInput> | Prisma.TransactionItemPhotoCreateWithoutItemInput[] | Prisma.TransactionItemPhotoUncheckedCreateWithoutItemInput[]
  connectOrCreate?: Prisma.TransactionItemPhotoCreateOrConnectWithoutItemInput | Prisma.TransactionItemPhotoCreateOrConnectWithoutItemInput[]
  createMany?: Prisma.TransactionItemPhotoCreateManyItemInputEnvelope
  connect?: Prisma.TransactionItemPhotoWhereUniqueInput | Prisma.TransactionItemPhotoWhereUniqueInput[]
}

export type TransactionItemPhotoUncheckedCreateNestedManyWithoutItemInput = {
  create?: Prisma.XOR<Prisma.TransactionItemPhotoCreateWithoutItemInput, Prisma.TransactionItemPhotoUncheckedCreateWithoutItemInput> | Prisma.TransactionItemPhotoCreateWithoutItemInput[] | Prisma.TransactionItemPhotoUncheckedCreateWithoutItemInput[]
  connectOrCreate?: Prisma.TransactionItemPhotoCreateOrConnectWithoutItemInput | Prisma.TransactionItemPhotoCreateOrConnectWithoutItemInput[]
  createMany?: Prisma.TransactionItemPhotoCreateManyItemInputEnvelope
  connect?: Prisma.TransactionItemPhotoWhereUniqueInput | Prisma.TransactionItemPhotoWhereUniqueInput[]
}

export type TransactionItemPhotoUpdateManyWithoutItemNestedInput = {
  create?: Prisma.XOR<Prisma.TransactionItemPhotoCreateWithoutItemInput, Prisma.TransactionItemPhotoUncheckedCreateWithoutItemInput> | Prisma.TransactionItemPhotoCreateWithoutItemInput[] | Prisma.TransactionItemPhotoUncheckedCreateWithoutItemInput[]
  connectOrCreate?: Prisma.TransactionItemPhotoCreateOrConnectWithoutItemInput | Prisma.TransactionItemPhotoCreateOrConnectWithoutItemInput[]
  upsert?: Prisma.TransactionItemPhotoUpsertWithWhereUniqueWithoutItemInput | Prisma.TransactionItemPhotoUpsertWithWhereUniqueWithoutItemInput[]
  createMany?: Prisma.TransactionItemPhotoCreateManyItemInputEnvelope
  set?: Prisma.TransactionItemPhotoWhereUniqueInput | Prisma.TransactionItemPhotoWhereUniqueInput[]
  disconnect?: Prisma.TransactionItemPhotoWhereUniqueInput | Prisma.TransactionItemPhotoWhereUniqueInput[]
  delete?: Prisma.TransactionItemPhotoWhereUniqueInput | Prisma.TransactionItemPhotoWhereUniqueInput[]
  connect?: Prisma.TransactionItemPhotoWhereUniqueInput | Prisma.TransactionItemPhotoWhereUniqueInput[]
  update?: Prisma.TransactionItemPhotoUpdateWithWhereUniqueWithoutItemInput | Prisma.TransactionItemPhotoUpdateWithWhereUniqueWithoutItemInput[]
  updateMany?: Prisma.TransactionItemPhotoUpdateManyWithWhereWithoutItemInput | Prisma.TransactionItemPhotoUpdateManyWithWhereWithoutItemInput[]
  deleteMany?: Prisma.TransactionItemPhotoScalarWhereInput | Prisma.TransactionItemPhotoScalarWhereInput[]
}

export type TransactionItemPhotoUncheckedUpdateManyWithoutItemNestedInput = {
  create?: Prisma.XOR<Prisma.TransactionItemPhotoCreateWithoutItemInput, Prisma.TransactionItemPhotoUncheckedCreateWithoutItemInput> | Prisma.TransactionItemPhotoCreateWithoutItemInput[] | Prisma.TransactionItemPhotoUncheckedCreateWithoutItemInput[]
  connectOrCreate?: Prisma.TransactionItemPhotoCreateOrConnectWithoutItemInput | Prisma.TransactionItemPhotoCreateOrConnectWithoutItemInput[]
  upsert?: Prisma.TransactionItemPhotoUpsertWithWhereUniqueWithoutItemInput | Prisma.TransactionItemPhotoUpsertWithWhereUniqueWithoutItemInput[]
  createMany?: Prisma.TransactionItemPhotoCreateManyItemInputEnvelope
  set?: Prisma.TransactionItemPhotoWhereUniqueInput | Prisma.TransactionItemPhotoWhereUniqueInput[]
  disconnect?: Prisma.TransactionItemPhotoWhereUniqueInput | Prisma.TransactionItemPhotoWhereUniqueInput[]
  delete?: Prisma.TransactionItemPhotoWhereUniqueInput | Prisma.TransactionItemPhotoWhereUniqueInput[]
  connect?: Prisma.TransactionItemPhotoWhereUniqueInput | Prisma.TransactionItemPhotoWhereUniqueInput[]
  update?: Prisma.TransactionItemPhotoUpdateWithWhereUniqueWithoutItemInput | Prisma.TransactionItemPhotoUpdateWithWhereUniqueWithoutItemInput[]
  updateMany?: Prisma.TransactionItemPhotoUpdateManyWithWhereWithoutItemInput | Prisma.TransactionItemPhotoUpdateManyWithWhereWithoutItemInput[]
  deleteMany?: Prisma.TransactionItemPhotoScalarWhereInput | Prisma.TransactionItemPhotoScalarWhereInput[]
}

export type TransactionItemPhotoCreateWithoutItemInput = {
  id?: string
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
}

export type TransactionItemPhotoUncheckedCreateWithoutItemInput = {
  id?: string
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
}

export type TransactionItemPhotoCreateOrConnectWithoutItemInput = {
  where: Prisma.TransactionItemPhotoWhereUniqueInput
  create: Prisma.XOR<Prisma.TransactionItemPhotoCreateWithoutItemInput, Prisma.TransactionItemPhotoUncheckedCreateWithoutItemInput>
}

export type TransactionItemPhotoCreateManyItemInputEnvelope = {
  data: Prisma.TransactionItemPhotoCreateManyItemInput | Prisma.TransactionItemPhotoCreateManyItemInput[]
  skipDuplicates?: boolean
}

export type TransactionItemPhotoUpsertWithWhereUniqueWithoutItemInput = {
  where: Prisma.TransactionItemPhotoWhereUniqueInput
  update: Prisma.XOR<Prisma.TransactionItemPhotoUpdateWithoutItemInput, Prisma.TransactionItemPhotoUncheckedUpdateWithoutItemInput>
  create: Prisma.XOR<Prisma.TransactionItemPhotoCreateWithoutItemInput, Prisma.TransactionItemPhotoUncheckedCreateWithoutItemInput>
}

export type TransactionItemPhotoUpdateWithWhereUniqueWithoutItemInput = {
  where: Prisma.TransactionItemPhotoWhereUniqueInput
  data: Prisma.XOR<Prisma.TransactionItemPhotoUpdateWithoutItemInput, Prisma.TransactionItemPhotoUncheckedUpdateWithoutItemInput>
}

export type TransactionItemPhotoUpdateManyWithWhereWithoutItemInput = {
  where: Prisma.TransactionItemPhotoScalarWhereInput
  data: Prisma.XOR<Prisma.TransactionItemPhotoUpdateManyMutationInput, Prisma.TransactionItemPhotoUncheckedUpdateManyWithoutItemInput>
}

export type TransactionItemPhotoScalarWhereInput = {
  AND?: Prisma.TransactionItemPhotoScalarWhereInput | Prisma.TransactionItemPhotoScalarWhereInput[]
  OR?: Prisma.TransactionItemPhotoScalarWhereInput[]
  NOT?: Prisma.TransactionItemPhotoScalarWhereInput | Prisma.TransactionItemPhotoScalarWhereInput[]
  id?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  itemId?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  url?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  filename?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  mimetype?: Prisma.StringFilter<"TransactionItemPhoto"> | string
  size?: Prisma.IntFilter<"TransactionItemPhoto"> | number
  order?: Prisma.IntFilter<"TransactionItemPhoto"> | number
  createdAt?: Prisma.DateTimeFilter<"TransactionItemPhoto"> | Date | string
}

export type TransactionItemPhotoCreateManyItemInput = {
  id?: string
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
}

export type TransactionItemPhotoUpdateWithoutItemInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  mimetype?: Prisma.StringFieldUpdateOperationsInput | string
  size?: Prisma.IntFieldUpdateOperationsInput | number
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TransactionItemPhotoUncheckedUpdateWithoutItemInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  mimetype?: Prisma.StringFieldUpdateOperationsInput | string
  size?: Prisma.IntFieldUpdateOperationsInput | number
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TransactionItemPhotoUncheckedUpdateManyWithoutItemInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  mimetype?: Prisma.StringFieldUpdateOperationsInput | string
  size?: Prisma.IntFieldUpdateOperationsInput | number
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type TransactionItemPhotoSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  itemId?: boolean
  url?: boolean
  filename?: boolean
  mimetype?: boolean
  size?: boolean
  order?: boolean
  createdAt?: boolean
  item?: boolean | Prisma.TransactionItemDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transactionItemPhoto"]>

export type TransactionItemPhotoSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  itemId?: boolean
  url?: boolean
  filename?: boolean
  mimetype?: boolean
  size?: boolean
  order?: boolean
  createdAt?: boolean
  item?: boolean | Prisma.TransactionItemDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transactionItemPhoto"]>

export type TransactionItemPhotoSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  itemId?: boolean
  url?: boolean
  filename?: boolean
  mimetype?: boolean
  size?: boolean
  order?: boolean
  createdAt?: boolean
  item?: boolean | Prisma.TransactionItemDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transactionItemPhoto"]>

export type TransactionItemPhotoSelectScalar = {
  id?: boolean
  itemId?: boolean
  url?: boolean
  filename?: boolean
  mimetype?: boolean
  size?: boolean
  order?: boolean
  createdAt?: boolean
}

export type TransactionItemPhotoOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "itemId" | "url" | "filename" | "mimetype" | "size" | "order" | "createdAt", ExtArgs["result"]["transactionItemPhoto"]>
export type TransactionItemPhotoInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  item?: boolean | Prisma.TransactionItemDefaultArgs<ExtArgs>
}
export type TransactionItemPhotoIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  item?: boolean | Prisma.TransactionItemDefaultArgs<ExtArgs>
}
export type TransactionItemPhotoIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  item?: boolean | Prisma.TransactionItemDefaultArgs<ExtArgs>
}

export type $TransactionItemPhotoPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "TransactionItemPhoto"
  objects: {
    item: Prisma.$TransactionItemPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    itemId: string
    url: string
    filename: string
    mimetype: string
    size: number
    order: number
    createdAt: Date
  }, ExtArgs["result"]["transactionItemPhoto"]>
  composites: {}
}

export type TransactionItemPhotoGetPayload<S extends boolean | null | undefined | TransactionItemPhotoDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TransactionItemPhotoPayload, S>

export type TransactionItemPhotoCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<TransactionItemPhotoFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: TransactionItemPhotoCountAggregateInputType | true
  }

export interface TransactionItemPhotoDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TransactionItemPhoto'], meta: { name: 'TransactionItemPhoto' } }
  /**
   * Find zero or one TransactionItemPhoto that matches the filter.
   * @param {TransactionItemPhotoFindUniqueArgs} args - Arguments to find a TransactionItemPhoto
   * @example
   * // Get one TransactionItemPhoto
   * const transactionItemPhoto = await prisma.transactionItemPhoto.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends TransactionItemPhotoFindUniqueArgs>(args: Prisma.SelectSubset<T, TransactionItemPhotoFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TransactionItemPhotoClient<runtime.Types.Result.GetResult<Prisma.$TransactionItemPhotoPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one TransactionItemPhoto that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {TransactionItemPhotoFindUniqueOrThrowArgs} args - Arguments to find a TransactionItemPhoto
   * @example
   * // Get one TransactionItemPhoto
   * const transactionItemPhoto = await prisma.transactionItemPhoto.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends TransactionItemPhotoFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TransactionItemPhotoFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TransactionItemPhotoClient<runtime.Types.Result.GetResult<Prisma.$TransactionItemPhotoPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first TransactionItemPhoto 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 {TransactionItemPhotoFindFirstArgs} args - Arguments to find a TransactionItemPhoto
   * @example
   * // Get one TransactionItemPhoto
   * const transactionItemPhoto = await prisma.transactionItemPhoto.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends TransactionItemPhotoFindFirstArgs>(args?: Prisma.SelectSubset<T, TransactionItemPhotoFindFirstArgs<ExtArgs>>): Prisma.Prisma__TransactionItemPhotoClient<runtime.Types.Result.GetResult<Prisma.$TransactionItemPhotoPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first TransactionItemPhoto 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 {TransactionItemPhotoFindFirstOrThrowArgs} args - Arguments to find a TransactionItemPhoto
   * @example
   * // Get one TransactionItemPhoto
   * const transactionItemPhoto = await prisma.transactionItemPhoto.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends TransactionItemPhotoFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TransactionItemPhotoFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TransactionItemPhotoClient<runtime.Types.Result.GetResult<Prisma.$TransactionItemPhotoPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more TransactionItemPhotos 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 {TransactionItemPhotoFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all TransactionItemPhotos
   * const transactionItemPhotos = await prisma.transactionItemPhoto.findMany()
   * 
   * // Get first 10 TransactionItemPhotos
   * const transactionItemPhotos = await prisma.transactionItemPhoto.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const transactionItemPhotoWithIdOnly = await prisma.transactionItemPhoto.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends TransactionItemPhotoFindManyArgs>(args?: Prisma.SelectSubset<T, TransactionItemPhotoFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TransactionItemPhotoPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a TransactionItemPhoto.
   * @param {TransactionItemPhotoCreateArgs} args - Arguments to create a TransactionItemPhoto.
   * @example
   * // Create one TransactionItemPhoto
   * const TransactionItemPhoto = await prisma.transactionItemPhoto.create({
   *   data: {
   *     // ... data to create a TransactionItemPhoto
   *   }
   * })
   * 
   */
  create<T extends TransactionItemPhotoCreateArgs>(args: Prisma.SelectSubset<T, TransactionItemPhotoCreateArgs<ExtArgs>>): Prisma.Prisma__TransactionItemPhotoClient<runtime.Types.Result.GetResult<Prisma.$TransactionItemPhotoPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many TransactionItemPhotos.
   * @param {TransactionItemPhotoCreateManyArgs} args - Arguments to create many TransactionItemPhotos.
   * @example
   * // Create many TransactionItemPhotos
   * const transactionItemPhoto = await prisma.transactionItemPhoto.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends TransactionItemPhotoCreateManyArgs>(args?: Prisma.SelectSubset<T, TransactionItemPhotoCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many TransactionItemPhotos and returns the data saved in the database.
   * @param {TransactionItemPhotoCreateManyAndReturnArgs} args - Arguments to create many TransactionItemPhotos.
   * @example
   * // Create many TransactionItemPhotos
   * const transactionItemPhoto = await prisma.transactionItemPhoto.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many TransactionItemPhotos and only return the `id`
   * const transactionItemPhotoWithIdOnly = await prisma.transactionItemPhoto.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 TransactionItemPhotoCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TransactionItemPhotoCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TransactionItemPhotoPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a TransactionItemPhoto.
   * @param {TransactionItemPhotoDeleteArgs} args - Arguments to delete one TransactionItemPhoto.
   * @example
   * // Delete one TransactionItemPhoto
   * const TransactionItemPhoto = await prisma.transactionItemPhoto.delete({
   *   where: {
   *     // ... filter to delete one TransactionItemPhoto
   *   }
   * })
   * 
   */
  delete<T extends TransactionItemPhotoDeleteArgs>(args: Prisma.SelectSubset<T, TransactionItemPhotoDeleteArgs<ExtArgs>>): Prisma.Prisma__TransactionItemPhotoClient<runtime.Types.Result.GetResult<Prisma.$TransactionItemPhotoPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one TransactionItemPhoto.
   * @param {TransactionItemPhotoUpdateArgs} args - Arguments to update one TransactionItemPhoto.
   * @example
   * // Update one TransactionItemPhoto
   * const transactionItemPhoto = await prisma.transactionItemPhoto.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends TransactionItemPhotoUpdateArgs>(args: Prisma.SelectSubset<T, TransactionItemPhotoUpdateArgs<ExtArgs>>): Prisma.Prisma__TransactionItemPhotoClient<runtime.Types.Result.GetResult<Prisma.$TransactionItemPhotoPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more TransactionItemPhotos.
   * @param {TransactionItemPhotoDeleteManyArgs} args - Arguments to filter TransactionItemPhotos to delete.
   * @example
   * // Delete a few TransactionItemPhotos
   * const { count } = await prisma.transactionItemPhoto.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends TransactionItemPhotoDeleteManyArgs>(args?: Prisma.SelectSubset<T, TransactionItemPhotoDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more TransactionItemPhotos.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {TransactionItemPhotoUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many TransactionItemPhotos
   * const transactionItemPhoto = await prisma.transactionItemPhoto.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends TransactionItemPhotoUpdateManyArgs>(args: Prisma.SelectSubset<T, TransactionItemPhotoUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more TransactionItemPhotos and returns the data updated in the database.
   * @param {TransactionItemPhotoUpdateManyAndReturnArgs} args - Arguments to update many TransactionItemPhotos.
   * @example
   * // Update many TransactionItemPhotos
   * const transactionItemPhoto = await prisma.transactionItemPhoto.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more TransactionItemPhotos and only return the `id`
   * const transactionItemPhotoWithIdOnly = await prisma.transactionItemPhoto.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 TransactionItemPhotoUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TransactionItemPhotoUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TransactionItemPhotoPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one TransactionItemPhoto.
   * @param {TransactionItemPhotoUpsertArgs} args - Arguments to update or create a TransactionItemPhoto.
   * @example
   * // Update or create a TransactionItemPhoto
   * const transactionItemPhoto = await prisma.transactionItemPhoto.upsert({
   *   create: {
   *     // ... data to create a TransactionItemPhoto
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the TransactionItemPhoto we want to update
   *   }
   * })
   */
  upsert<T extends TransactionItemPhotoUpsertArgs>(args: Prisma.SelectSubset<T, TransactionItemPhotoUpsertArgs<ExtArgs>>): Prisma.Prisma__TransactionItemPhotoClient<runtime.Types.Result.GetResult<Prisma.$TransactionItemPhotoPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of TransactionItemPhotos.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {TransactionItemPhotoCountArgs} args - Arguments to filter TransactionItemPhotos to count.
   * @example
   * // Count the number of TransactionItemPhotos
   * const count = await prisma.transactionItemPhoto.count({
   *   where: {
   *     // ... the filter for the TransactionItemPhotos we want to count
   *   }
   * })
  **/
  count<T extends TransactionItemPhotoCountArgs>(
    args?: Prisma.Subset<T, TransactionItemPhotoCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], TransactionItemPhotoCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a TransactionItemPhoto.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {TransactionItemPhotoAggregateArgs} 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 TransactionItemPhotoAggregateArgs>(args: Prisma.Subset<T, TransactionItemPhotoAggregateArgs>): Prisma.PrismaPromise<GetTransactionItemPhotoAggregateType<T>>

  /**
   * Group by TransactionItemPhoto.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {TransactionItemPhotoGroupByArgs} 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 TransactionItemPhotoGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: TransactionItemPhotoGroupByArgs['orderBy'] }
      : { orderBy?: TransactionItemPhotoGroupByArgs['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, TransactionItemPhotoGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTransactionItemPhotoGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the TransactionItemPhoto model
 */
readonly fields: TransactionItemPhotoFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for TransactionItemPhoto.
 * 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__TransactionItemPhotoClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  item<T extends Prisma.TransactionItemDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TransactionItemDefaultArgs<ExtArgs>>): Prisma.Prisma__TransactionItemClient<runtime.Types.Result.GetResult<Prisma.$TransactionItemPayload<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 TransactionItemPhoto model
 */
export interface TransactionItemPhotoFieldRefs {
  readonly id: Prisma.FieldRef<"TransactionItemPhoto", 'String'>
  readonly itemId: Prisma.FieldRef<"TransactionItemPhoto", 'String'>
  readonly url: Prisma.FieldRef<"TransactionItemPhoto", 'String'>
  readonly filename: Prisma.FieldRef<"TransactionItemPhoto", 'String'>
  readonly mimetype: Prisma.FieldRef<"TransactionItemPhoto", 'String'>
  readonly size: Prisma.FieldRef<"TransactionItemPhoto", 'Int'>
  readonly order: Prisma.FieldRef<"TransactionItemPhoto", 'Int'>
  readonly createdAt: Prisma.FieldRef<"TransactionItemPhoto", 'DateTime'>
}
    

// Custom InputTypes
/**
 * TransactionItemPhoto findUnique
 */
export type TransactionItemPhotoFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemPhoto
   */
  select?: Prisma.TransactionItemPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemPhoto
   */
  omit?: Prisma.TransactionItemPhotoOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemPhotoInclude<ExtArgs> | null
  /**
   * Filter, which TransactionItemPhoto to fetch.
   */
  where: Prisma.TransactionItemPhotoWhereUniqueInput
}

/**
 * TransactionItemPhoto findUniqueOrThrow
 */
export type TransactionItemPhotoFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemPhoto
   */
  select?: Prisma.TransactionItemPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemPhoto
   */
  omit?: Prisma.TransactionItemPhotoOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemPhotoInclude<ExtArgs> | null
  /**
   * Filter, which TransactionItemPhoto to fetch.
   */
  where: Prisma.TransactionItemPhotoWhereUniqueInput
}

/**
 * TransactionItemPhoto findFirst
 */
export type TransactionItemPhotoFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemPhoto
   */
  select?: Prisma.TransactionItemPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemPhoto
   */
  omit?: Prisma.TransactionItemPhotoOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemPhotoInclude<ExtArgs> | null
  /**
   * Filter, which TransactionItemPhoto to fetch.
   */
  where?: Prisma.TransactionItemPhotoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of TransactionItemPhotos to fetch.
   */
  orderBy?: Prisma.TransactionItemPhotoOrderByWithRelationInput | Prisma.TransactionItemPhotoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for TransactionItemPhotos.
   */
  cursor?: Prisma.TransactionItemPhotoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` TransactionItemPhotos 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` TransactionItemPhotos.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of TransactionItemPhotos.
   */
  distinct?: Prisma.TransactionItemPhotoScalarFieldEnum | Prisma.TransactionItemPhotoScalarFieldEnum[]
}

/**
 * TransactionItemPhoto findFirstOrThrow
 */
export type TransactionItemPhotoFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemPhoto
   */
  select?: Prisma.TransactionItemPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemPhoto
   */
  omit?: Prisma.TransactionItemPhotoOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemPhotoInclude<ExtArgs> | null
  /**
   * Filter, which TransactionItemPhoto to fetch.
   */
  where?: Prisma.TransactionItemPhotoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of TransactionItemPhotos to fetch.
   */
  orderBy?: Prisma.TransactionItemPhotoOrderByWithRelationInput | Prisma.TransactionItemPhotoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for TransactionItemPhotos.
   */
  cursor?: Prisma.TransactionItemPhotoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` TransactionItemPhotos 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` TransactionItemPhotos.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of TransactionItemPhotos.
   */
  distinct?: Prisma.TransactionItemPhotoScalarFieldEnum | Prisma.TransactionItemPhotoScalarFieldEnum[]
}

/**
 * TransactionItemPhoto findMany
 */
export type TransactionItemPhotoFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemPhoto
   */
  select?: Prisma.TransactionItemPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemPhoto
   */
  omit?: Prisma.TransactionItemPhotoOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemPhotoInclude<ExtArgs> | null
  /**
   * Filter, which TransactionItemPhotos to fetch.
   */
  where?: Prisma.TransactionItemPhotoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of TransactionItemPhotos to fetch.
   */
  orderBy?: Prisma.TransactionItemPhotoOrderByWithRelationInput | Prisma.TransactionItemPhotoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing TransactionItemPhotos.
   */
  cursor?: Prisma.TransactionItemPhotoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` TransactionItemPhotos 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` TransactionItemPhotos.
   */
  skip?: number
  distinct?: Prisma.TransactionItemPhotoScalarFieldEnum | Prisma.TransactionItemPhotoScalarFieldEnum[]
}

/**
 * TransactionItemPhoto create
 */
export type TransactionItemPhotoCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemPhoto
   */
  select?: Prisma.TransactionItemPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemPhoto
   */
  omit?: Prisma.TransactionItemPhotoOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemPhotoInclude<ExtArgs> | null
  /**
   * The data needed to create a TransactionItemPhoto.
   */
  data: Prisma.XOR<Prisma.TransactionItemPhotoCreateInput, Prisma.TransactionItemPhotoUncheckedCreateInput>
}

/**
 * TransactionItemPhoto createMany
 */
export type TransactionItemPhotoCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many TransactionItemPhotos.
   */
  data: Prisma.TransactionItemPhotoCreateManyInput | Prisma.TransactionItemPhotoCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * TransactionItemPhoto createManyAndReturn
 */
export type TransactionItemPhotoCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemPhoto
   */
  select?: Prisma.TransactionItemPhotoSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemPhoto
   */
  omit?: Prisma.TransactionItemPhotoOmit<ExtArgs> | null
  /**
   * The data used to create many TransactionItemPhotos.
   */
  data: Prisma.TransactionItemPhotoCreateManyInput | Prisma.TransactionItemPhotoCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemPhotoIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * TransactionItemPhoto update
 */
export type TransactionItemPhotoUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemPhoto
   */
  select?: Prisma.TransactionItemPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemPhoto
   */
  omit?: Prisma.TransactionItemPhotoOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemPhotoInclude<ExtArgs> | null
  /**
   * The data needed to update a TransactionItemPhoto.
   */
  data: Prisma.XOR<Prisma.TransactionItemPhotoUpdateInput, Prisma.TransactionItemPhotoUncheckedUpdateInput>
  /**
   * Choose, which TransactionItemPhoto to update.
   */
  where: Prisma.TransactionItemPhotoWhereUniqueInput
}

/**
 * TransactionItemPhoto updateMany
 */
export type TransactionItemPhotoUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update TransactionItemPhotos.
   */
  data: Prisma.XOR<Prisma.TransactionItemPhotoUpdateManyMutationInput, Prisma.TransactionItemPhotoUncheckedUpdateManyInput>
  /**
   * Filter which TransactionItemPhotos to update
   */
  where?: Prisma.TransactionItemPhotoWhereInput
  /**
   * Limit how many TransactionItemPhotos to update.
   */
  limit?: number
}

/**
 * TransactionItemPhoto updateManyAndReturn
 */
export type TransactionItemPhotoUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemPhoto
   */
  select?: Prisma.TransactionItemPhotoSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemPhoto
   */
  omit?: Prisma.TransactionItemPhotoOmit<ExtArgs> | null
  /**
   * The data used to update TransactionItemPhotos.
   */
  data: Prisma.XOR<Prisma.TransactionItemPhotoUpdateManyMutationInput, Prisma.TransactionItemPhotoUncheckedUpdateManyInput>
  /**
   * Filter which TransactionItemPhotos to update
   */
  where?: Prisma.TransactionItemPhotoWhereInput
  /**
   * Limit how many TransactionItemPhotos to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemPhotoIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * TransactionItemPhoto upsert
 */
export type TransactionItemPhotoUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemPhoto
   */
  select?: Prisma.TransactionItemPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemPhoto
   */
  omit?: Prisma.TransactionItemPhotoOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemPhotoInclude<ExtArgs> | null
  /**
   * The filter to search for the TransactionItemPhoto to update in case it exists.
   */
  where: Prisma.TransactionItemPhotoWhereUniqueInput
  /**
   * In case the TransactionItemPhoto found by the `where` argument doesn't exist, create a new TransactionItemPhoto with this data.
   */
  create: Prisma.XOR<Prisma.TransactionItemPhotoCreateInput, Prisma.TransactionItemPhotoUncheckedCreateInput>
  /**
   * In case the TransactionItemPhoto was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.TransactionItemPhotoUpdateInput, Prisma.TransactionItemPhotoUncheckedUpdateInput>
}

/**
 * TransactionItemPhoto delete
 */
export type TransactionItemPhotoDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemPhoto
   */
  select?: Prisma.TransactionItemPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemPhoto
   */
  omit?: Prisma.TransactionItemPhotoOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemPhotoInclude<ExtArgs> | null
  /**
   * Filter which TransactionItemPhoto to delete.
   */
  where: Prisma.TransactionItemPhotoWhereUniqueInput
}

/**
 * TransactionItemPhoto deleteMany
 */
export type TransactionItemPhotoDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which TransactionItemPhotos to delete
   */
  where?: Prisma.TransactionItemPhotoWhereInput
  /**
   * Limit how many TransactionItemPhotos to delete.
   */
  limit?: number
}

/**
 * TransactionItemPhoto without action
 */
export type TransactionItemPhotoDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemPhoto
   */
  select?: Prisma.TransactionItemPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemPhoto
   */
  omit?: Prisma.TransactionItemPhotoOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemPhotoInclude<ExtArgs> | null
}
