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

export type AggregateTransactionItemDoc = {
  _count: TransactionItemDocCountAggregateOutputType | null
  _avg: TransactionItemDocAvgAggregateOutputType | null
  _sum: TransactionItemDocSumAggregateOutputType | null
  _min: TransactionItemDocMinAggregateOutputType | null
  _max: TransactionItemDocMaxAggregateOutputType | null
}

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

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

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

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

export type TransactionItemDocCountAggregateOutputType = {
  id: number
  transactionItemId: number
  type: number
  url: number
  filename: number
  mimetype: number
  size: number
  order: number
  createdAt: number
  _all: number
}


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

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

export type TransactionItemDocMinAggregateInputType = {
  id?: true
  transactionItemId?: true
  type?: true
  url?: true
  filename?: true
  mimetype?: true
  size?: true
  order?: true
  createdAt?: true
}

export type TransactionItemDocMaxAggregateInputType = {
  id?: true
  transactionItemId?: true
  type?: true
  url?: true
  filename?: true
  mimetype?: true
  size?: true
  order?: true
  createdAt?: true
}

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

export type TransactionItemDocAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which TransactionItemDoc to aggregate.
   */
  where?: Prisma.TransactionItemDocWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of TransactionItemDocs to fetch.
   */
  orderBy?: Prisma.TransactionItemDocOrderByWithRelationInput | Prisma.TransactionItemDocOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.TransactionItemDocWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` TransactionItemDocs 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` TransactionItemDocs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned TransactionItemDocs
  **/
  _count?: true | TransactionItemDocCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: TransactionItemDocAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: TransactionItemDocSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: TransactionItemDocMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: TransactionItemDocMaxAggregateInputType
}

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




export type TransactionItemDocGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.TransactionItemDocWhereInput
  orderBy?: Prisma.TransactionItemDocOrderByWithAggregationInput | Prisma.TransactionItemDocOrderByWithAggregationInput[]
  by: Prisma.TransactionItemDocScalarFieldEnum[] | Prisma.TransactionItemDocScalarFieldEnum
  having?: Prisma.TransactionItemDocScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: TransactionItemDocCountAggregateInputType | true
  _avg?: TransactionItemDocAvgAggregateInputType
  _sum?: TransactionItemDocSumAggregateInputType
  _min?: TransactionItemDocMinAggregateInputType
  _max?: TransactionItemDocMaxAggregateInputType
}

export type TransactionItemDocGroupByOutputType = {
  id: string
  transactionItemId: string
  type: string
  url: string
  filename: string
  mimetype: string
  size: number
  order: number
  createdAt: Date
  _count: TransactionItemDocCountAggregateOutputType | null
  _avg: TransactionItemDocAvgAggregateOutputType | null
  _sum: TransactionItemDocSumAggregateOutputType | null
  _min: TransactionItemDocMinAggregateOutputType | null
  _max: TransactionItemDocMaxAggregateOutputType | null
}

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



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

export type TransactionItemDocOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  transactionItemId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  url?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  transactionItem?: Prisma.TransactionItemOrderByWithRelationInput
}

export type TransactionItemDocWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.TransactionItemDocWhereInput | Prisma.TransactionItemDocWhereInput[]
  OR?: Prisma.TransactionItemDocWhereInput[]
  NOT?: Prisma.TransactionItemDocWhereInput | Prisma.TransactionItemDocWhereInput[]
  transactionItemId?: Prisma.StringFilter<"TransactionItemDoc"> | string
  type?: Prisma.StringFilter<"TransactionItemDoc"> | string
  url?: Prisma.StringFilter<"TransactionItemDoc"> | string
  filename?: Prisma.StringFilter<"TransactionItemDoc"> | string
  mimetype?: Prisma.StringFilter<"TransactionItemDoc"> | string
  size?: Prisma.IntFilter<"TransactionItemDoc"> | number
  order?: Prisma.IntFilter<"TransactionItemDoc"> | number
  createdAt?: Prisma.DateTimeFilter<"TransactionItemDoc"> | Date | string
  transactionItem?: Prisma.XOR<Prisma.TransactionItemScalarRelationFilter, Prisma.TransactionItemWhereInput>
}, "id">

export type TransactionItemDocOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  transactionItemId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  url?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.TransactionItemDocCountOrderByAggregateInput
  _avg?: Prisma.TransactionItemDocAvgOrderByAggregateInput
  _max?: Prisma.TransactionItemDocMaxOrderByAggregateInput
  _min?: Prisma.TransactionItemDocMinOrderByAggregateInput
  _sum?: Prisma.TransactionItemDocSumOrderByAggregateInput
}

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

export type TransactionItemDocCreateInput = {
  id?: string
  type: string
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
  transactionItem: Prisma.TransactionItemCreateNestedOneWithoutDocsInput
}

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

export type TransactionItemDocUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: 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
  transactionItem?: Prisma.TransactionItemUpdateOneRequiredWithoutDocsNestedInput
}

export type TransactionItemDocUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  transactionItemId?: Prisma.StringFieldUpdateOperationsInput | string
  type?: 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 TransactionItemDocCreateManyInput = {
  id?: string
  transactionItemId: string
  type: string
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
}

export type TransactionItemDocUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: 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 TransactionItemDocUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  transactionItemId?: Prisma.StringFieldUpdateOperationsInput | string
  type?: 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 TransactionItemDocListRelationFilter = {
  every?: Prisma.TransactionItemDocWhereInput
  some?: Prisma.TransactionItemDocWhereInput
  none?: Prisma.TransactionItemDocWhereInput
}

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

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

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

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

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

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

export type TransactionItemDocCreateNestedManyWithoutTransactionItemInput = {
  create?: Prisma.XOR<Prisma.TransactionItemDocCreateWithoutTransactionItemInput, Prisma.TransactionItemDocUncheckedCreateWithoutTransactionItemInput> | Prisma.TransactionItemDocCreateWithoutTransactionItemInput[] | Prisma.TransactionItemDocUncheckedCreateWithoutTransactionItemInput[]
  connectOrCreate?: Prisma.TransactionItemDocCreateOrConnectWithoutTransactionItemInput | Prisma.TransactionItemDocCreateOrConnectWithoutTransactionItemInput[]
  createMany?: Prisma.TransactionItemDocCreateManyTransactionItemInputEnvelope
  connect?: Prisma.TransactionItemDocWhereUniqueInput | Prisma.TransactionItemDocWhereUniqueInput[]
}

export type TransactionItemDocUncheckedCreateNestedManyWithoutTransactionItemInput = {
  create?: Prisma.XOR<Prisma.TransactionItemDocCreateWithoutTransactionItemInput, Prisma.TransactionItemDocUncheckedCreateWithoutTransactionItemInput> | Prisma.TransactionItemDocCreateWithoutTransactionItemInput[] | Prisma.TransactionItemDocUncheckedCreateWithoutTransactionItemInput[]
  connectOrCreate?: Prisma.TransactionItemDocCreateOrConnectWithoutTransactionItemInput | Prisma.TransactionItemDocCreateOrConnectWithoutTransactionItemInput[]
  createMany?: Prisma.TransactionItemDocCreateManyTransactionItemInputEnvelope
  connect?: Prisma.TransactionItemDocWhereUniqueInput | Prisma.TransactionItemDocWhereUniqueInput[]
}

export type TransactionItemDocUpdateManyWithoutTransactionItemNestedInput = {
  create?: Prisma.XOR<Prisma.TransactionItemDocCreateWithoutTransactionItemInput, Prisma.TransactionItemDocUncheckedCreateWithoutTransactionItemInput> | Prisma.TransactionItemDocCreateWithoutTransactionItemInput[] | Prisma.TransactionItemDocUncheckedCreateWithoutTransactionItemInput[]
  connectOrCreate?: Prisma.TransactionItemDocCreateOrConnectWithoutTransactionItemInput | Prisma.TransactionItemDocCreateOrConnectWithoutTransactionItemInput[]
  upsert?: Prisma.TransactionItemDocUpsertWithWhereUniqueWithoutTransactionItemInput | Prisma.TransactionItemDocUpsertWithWhereUniqueWithoutTransactionItemInput[]
  createMany?: Prisma.TransactionItemDocCreateManyTransactionItemInputEnvelope
  set?: Prisma.TransactionItemDocWhereUniqueInput | Prisma.TransactionItemDocWhereUniqueInput[]
  disconnect?: Prisma.TransactionItemDocWhereUniqueInput | Prisma.TransactionItemDocWhereUniqueInput[]
  delete?: Prisma.TransactionItemDocWhereUniqueInput | Prisma.TransactionItemDocWhereUniqueInput[]
  connect?: Prisma.TransactionItemDocWhereUniqueInput | Prisma.TransactionItemDocWhereUniqueInput[]
  update?: Prisma.TransactionItemDocUpdateWithWhereUniqueWithoutTransactionItemInput | Prisma.TransactionItemDocUpdateWithWhereUniqueWithoutTransactionItemInput[]
  updateMany?: Prisma.TransactionItemDocUpdateManyWithWhereWithoutTransactionItemInput | Prisma.TransactionItemDocUpdateManyWithWhereWithoutTransactionItemInput[]
  deleteMany?: Prisma.TransactionItemDocScalarWhereInput | Prisma.TransactionItemDocScalarWhereInput[]
}

export type TransactionItemDocUncheckedUpdateManyWithoutTransactionItemNestedInput = {
  create?: Prisma.XOR<Prisma.TransactionItemDocCreateWithoutTransactionItemInput, Prisma.TransactionItemDocUncheckedCreateWithoutTransactionItemInput> | Prisma.TransactionItemDocCreateWithoutTransactionItemInput[] | Prisma.TransactionItemDocUncheckedCreateWithoutTransactionItemInput[]
  connectOrCreate?: Prisma.TransactionItemDocCreateOrConnectWithoutTransactionItemInput | Prisma.TransactionItemDocCreateOrConnectWithoutTransactionItemInput[]
  upsert?: Prisma.TransactionItemDocUpsertWithWhereUniqueWithoutTransactionItemInput | Prisma.TransactionItemDocUpsertWithWhereUniqueWithoutTransactionItemInput[]
  createMany?: Prisma.TransactionItemDocCreateManyTransactionItemInputEnvelope
  set?: Prisma.TransactionItemDocWhereUniqueInput | Prisma.TransactionItemDocWhereUniqueInput[]
  disconnect?: Prisma.TransactionItemDocWhereUniqueInput | Prisma.TransactionItemDocWhereUniqueInput[]
  delete?: Prisma.TransactionItemDocWhereUniqueInput | Prisma.TransactionItemDocWhereUniqueInput[]
  connect?: Prisma.TransactionItemDocWhereUniqueInput | Prisma.TransactionItemDocWhereUniqueInput[]
  update?: Prisma.TransactionItemDocUpdateWithWhereUniqueWithoutTransactionItemInput | Prisma.TransactionItemDocUpdateWithWhereUniqueWithoutTransactionItemInput[]
  updateMany?: Prisma.TransactionItemDocUpdateManyWithWhereWithoutTransactionItemInput | Prisma.TransactionItemDocUpdateManyWithWhereWithoutTransactionItemInput[]
  deleteMany?: Prisma.TransactionItemDocScalarWhereInput | Prisma.TransactionItemDocScalarWhereInput[]
}

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

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

export type TransactionItemDocCreateOrConnectWithoutTransactionItemInput = {
  where: Prisma.TransactionItemDocWhereUniqueInput
  create: Prisma.XOR<Prisma.TransactionItemDocCreateWithoutTransactionItemInput, Prisma.TransactionItemDocUncheckedCreateWithoutTransactionItemInput>
}

export type TransactionItemDocCreateManyTransactionItemInputEnvelope = {
  data: Prisma.TransactionItemDocCreateManyTransactionItemInput | Prisma.TransactionItemDocCreateManyTransactionItemInput[]
  skipDuplicates?: boolean
}

export type TransactionItemDocUpsertWithWhereUniqueWithoutTransactionItemInput = {
  where: Prisma.TransactionItemDocWhereUniqueInput
  update: Prisma.XOR<Prisma.TransactionItemDocUpdateWithoutTransactionItemInput, Prisma.TransactionItemDocUncheckedUpdateWithoutTransactionItemInput>
  create: Prisma.XOR<Prisma.TransactionItemDocCreateWithoutTransactionItemInput, Prisma.TransactionItemDocUncheckedCreateWithoutTransactionItemInput>
}

export type TransactionItemDocUpdateWithWhereUniqueWithoutTransactionItemInput = {
  where: Prisma.TransactionItemDocWhereUniqueInput
  data: Prisma.XOR<Prisma.TransactionItemDocUpdateWithoutTransactionItemInput, Prisma.TransactionItemDocUncheckedUpdateWithoutTransactionItemInput>
}

export type TransactionItemDocUpdateManyWithWhereWithoutTransactionItemInput = {
  where: Prisma.TransactionItemDocScalarWhereInput
  data: Prisma.XOR<Prisma.TransactionItemDocUpdateManyMutationInput, Prisma.TransactionItemDocUncheckedUpdateManyWithoutTransactionItemInput>
}

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

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

export type TransactionItemDocUpdateWithoutTransactionItemInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: 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 TransactionItemDocUncheckedUpdateWithoutTransactionItemInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: 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 TransactionItemDocUncheckedUpdateManyWithoutTransactionItemInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: 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 TransactionItemDocSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  transactionItemId?: boolean
  type?: boolean
  url?: boolean
  filename?: boolean
  mimetype?: boolean
  size?: boolean
  order?: boolean
  createdAt?: boolean
  transactionItem?: boolean | Prisma.TransactionItemDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transactionItemDoc"]>

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

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

export type TransactionItemDocSelectScalar = {
  id?: boolean
  transactionItemId?: boolean
  type?: boolean
  url?: boolean
  filename?: boolean
  mimetype?: boolean
  size?: boolean
  order?: boolean
  createdAt?: boolean
}

export type TransactionItemDocOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "transactionItemId" | "type" | "url" | "filename" | "mimetype" | "size" | "order" | "createdAt", ExtArgs["result"]["transactionItemDoc"]>
export type TransactionItemDocInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  transactionItem?: boolean | Prisma.TransactionItemDefaultArgs<ExtArgs>
}
export type TransactionItemDocIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  transactionItem?: boolean | Prisma.TransactionItemDefaultArgs<ExtArgs>
}
export type TransactionItemDocIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  transactionItem?: boolean | Prisma.TransactionItemDefaultArgs<ExtArgs>
}

export type $TransactionItemDocPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "TransactionItemDoc"
  objects: {
    transactionItem: Prisma.$TransactionItemPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    transactionItemId: string
    type: string
    url: string
    filename: string
    mimetype: string
    size: number
    order: number
    createdAt: Date
  }, ExtArgs["result"]["transactionItemDoc"]>
  composites: {}
}

export type TransactionItemDocGetPayload<S extends boolean | null | undefined | TransactionItemDocDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TransactionItemDocPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for TransactionItemDoc.
 * 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__TransactionItemDocClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  transactionItem<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 TransactionItemDoc model
 */
export interface TransactionItemDocFieldRefs {
  readonly id: Prisma.FieldRef<"TransactionItemDoc", 'String'>
  readonly transactionItemId: Prisma.FieldRef<"TransactionItemDoc", 'String'>
  readonly type: Prisma.FieldRef<"TransactionItemDoc", 'String'>
  readonly url: Prisma.FieldRef<"TransactionItemDoc", 'String'>
  readonly filename: Prisma.FieldRef<"TransactionItemDoc", 'String'>
  readonly mimetype: Prisma.FieldRef<"TransactionItemDoc", 'String'>
  readonly size: Prisma.FieldRef<"TransactionItemDoc", 'Int'>
  readonly order: Prisma.FieldRef<"TransactionItemDoc", 'Int'>
  readonly createdAt: Prisma.FieldRef<"TransactionItemDoc", 'DateTime'>
}
    

// Custom InputTypes
/**
 * TransactionItemDoc findUnique
 */
export type TransactionItemDocFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemDoc
   */
  select?: Prisma.TransactionItemDocSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemDoc
   */
  omit?: Prisma.TransactionItemDocOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemDocInclude<ExtArgs> | null
  /**
   * Filter, which TransactionItemDoc to fetch.
   */
  where: Prisma.TransactionItemDocWhereUniqueInput
}

/**
 * TransactionItemDoc findUniqueOrThrow
 */
export type TransactionItemDocFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemDoc
   */
  select?: Prisma.TransactionItemDocSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemDoc
   */
  omit?: Prisma.TransactionItemDocOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemDocInclude<ExtArgs> | null
  /**
   * Filter, which TransactionItemDoc to fetch.
   */
  where: Prisma.TransactionItemDocWhereUniqueInput
}

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

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

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

/**
 * TransactionItemDoc create
 */
export type TransactionItemDocCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemDoc
   */
  select?: Prisma.TransactionItemDocSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemDoc
   */
  omit?: Prisma.TransactionItemDocOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemDocInclude<ExtArgs> | null
  /**
   * The data needed to create a TransactionItemDoc.
   */
  data: Prisma.XOR<Prisma.TransactionItemDocCreateInput, Prisma.TransactionItemDocUncheckedCreateInput>
}

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

/**
 * TransactionItemDoc createManyAndReturn
 */
export type TransactionItemDocCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemDoc
   */
  select?: Prisma.TransactionItemDocSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemDoc
   */
  omit?: Prisma.TransactionItemDocOmit<ExtArgs> | null
  /**
   * The data used to create many TransactionItemDocs.
   */
  data: Prisma.TransactionItemDocCreateManyInput | Prisma.TransactionItemDocCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemDocIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * TransactionItemDoc update
 */
export type TransactionItemDocUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemDoc
   */
  select?: Prisma.TransactionItemDocSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemDoc
   */
  omit?: Prisma.TransactionItemDocOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemDocInclude<ExtArgs> | null
  /**
   * The data needed to update a TransactionItemDoc.
   */
  data: Prisma.XOR<Prisma.TransactionItemDocUpdateInput, Prisma.TransactionItemDocUncheckedUpdateInput>
  /**
   * Choose, which TransactionItemDoc to update.
   */
  where: Prisma.TransactionItemDocWhereUniqueInput
}

/**
 * TransactionItemDoc updateMany
 */
export type TransactionItemDocUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update TransactionItemDocs.
   */
  data: Prisma.XOR<Prisma.TransactionItemDocUpdateManyMutationInput, Prisma.TransactionItemDocUncheckedUpdateManyInput>
  /**
   * Filter which TransactionItemDocs to update
   */
  where?: Prisma.TransactionItemDocWhereInput
  /**
   * Limit how many TransactionItemDocs to update.
   */
  limit?: number
}

/**
 * TransactionItemDoc updateManyAndReturn
 */
export type TransactionItemDocUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemDoc
   */
  select?: Prisma.TransactionItemDocSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemDoc
   */
  omit?: Prisma.TransactionItemDocOmit<ExtArgs> | null
  /**
   * The data used to update TransactionItemDocs.
   */
  data: Prisma.XOR<Prisma.TransactionItemDocUpdateManyMutationInput, Prisma.TransactionItemDocUncheckedUpdateManyInput>
  /**
   * Filter which TransactionItemDocs to update
   */
  where?: Prisma.TransactionItemDocWhereInput
  /**
   * Limit how many TransactionItemDocs to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemDocIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * TransactionItemDoc upsert
 */
export type TransactionItemDocUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemDoc
   */
  select?: Prisma.TransactionItemDocSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemDoc
   */
  omit?: Prisma.TransactionItemDocOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemDocInclude<ExtArgs> | null
  /**
   * The filter to search for the TransactionItemDoc to update in case it exists.
   */
  where: Prisma.TransactionItemDocWhereUniqueInput
  /**
   * In case the TransactionItemDoc found by the `where` argument doesn't exist, create a new TransactionItemDoc with this data.
   */
  create: Prisma.XOR<Prisma.TransactionItemDocCreateInput, Prisma.TransactionItemDocUncheckedCreateInput>
  /**
   * In case the TransactionItemDoc was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.TransactionItemDocUpdateInput, Prisma.TransactionItemDocUncheckedUpdateInput>
}

/**
 * TransactionItemDoc delete
 */
export type TransactionItemDocDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionItemDoc
   */
  select?: Prisma.TransactionItemDocSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionItemDoc
   */
  omit?: Prisma.TransactionItemDocOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionItemDocInclude<ExtArgs> | null
  /**
   * Filter which TransactionItemDoc to delete.
   */
  where: Prisma.TransactionItemDocWhereUniqueInput
}

/**
 * TransactionItemDoc deleteMany
 */
export type TransactionItemDocDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which TransactionItemDocs to delete
   */
  where?: Prisma.TransactionItemDocWhereInput
  /**
   * Limit how many TransactionItemDocs to delete.
   */
  limit?: number
}

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