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

export type AggregateTransactionDoc = {
  _count: TransactionDocCountAggregateOutputType | null
  _avg: TransactionDocAvgAggregateOutputType | null
  _sum: TransactionDocSumAggregateOutputType | null
  _min: TransactionDocMinAggregateOutputType | null
  _max: TransactionDocMaxAggregateOutputType | null
}

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

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

export type TransactionDocMinAggregateOutputType = {
  id: string | null
  transactionId: string | null
  type: $Enums.TransactionDocType | null
  url: string | null
  filename: string | null
  mimetype: string | null
  size: number | null
  order: number | null
  createdAt: Date | null
}

export type TransactionDocMaxAggregateOutputType = {
  id: string | null
  transactionId: string | null
  type: $Enums.TransactionDocType | null
  url: string | null
  filename: string | null
  mimetype: string | null
  size: number | null
  order: number | null
  createdAt: Date | null
}

export type TransactionDocCountAggregateOutputType = {
  id: number
  transactionId: number
  type: number
  url: number
  filename: number
  mimetype: number
  size: number
  order: number
  createdAt: number
  _all: number
}


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

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

export type TransactionDocMinAggregateInputType = {
  id?: true
  transactionId?: true
  type?: true
  url?: true
  filename?: true
  mimetype?: true
  size?: true
  order?: true
  createdAt?: true
}

export type TransactionDocMaxAggregateInputType = {
  id?: true
  transactionId?: true
  type?: true
  url?: true
  filename?: true
  mimetype?: true
  size?: true
  order?: true
  createdAt?: true
}

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

export type TransactionDocAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which TransactionDoc to aggregate.
   */
  where?: Prisma.TransactionDocWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of TransactionDocs to fetch.
   */
  orderBy?: Prisma.TransactionDocOrderByWithRelationInput | Prisma.TransactionDocOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.TransactionDocWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` TransactionDocs 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` TransactionDocs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned TransactionDocs
  **/
  _count?: true | TransactionDocCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: TransactionDocAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: TransactionDocSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: TransactionDocMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: TransactionDocMaxAggregateInputType
}

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




export type TransactionDocGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.TransactionDocWhereInput
  orderBy?: Prisma.TransactionDocOrderByWithAggregationInput | Prisma.TransactionDocOrderByWithAggregationInput[]
  by: Prisma.TransactionDocScalarFieldEnum[] | Prisma.TransactionDocScalarFieldEnum
  having?: Prisma.TransactionDocScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: TransactionDocCountAggregateInputType | true
  _avg?: TransactionDocAvgAggregateInputType
  _sum?: TransactionDocSumAggregateInputType
  _min?: TransactionDocMinAggregateInputType
  _max?: TransactionDocMaxAggregateInputType
}

export type TransactionDocGroupByOutputType = {
  id: string
  transactionId: string
  type: $Enums.TransactionDocType
  url: string
  filename: string
  mimetype: string
  size: number
  order: number
  createdAt: Date
  _count: TransactionDocCountAggregateOutputType | null
  _avg: TransactionDocAvgAggregateOutputType | null
  _sum: TransactionDocSumAggregateOutputType | null
  _min: TransactionDocMinAggregateOutputType | null
  _max: TransactionDocMaxAggregateOutputType | null
}

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



export type TransactionDocWhereInput = {
  AND?: Prisma.TransactionDocWhereInput | Prisma.TransactionDocWhereInput[]
  OR?: Prisma.TransactionDocWhereInput[]
  NOT?: Prisma.TransactionDocWhereInput | Prisma.TransactionDocWhereInput[]
  id?: Prisma.UuidFilter<"TransactionDoc"> | string
  transactionId?: Prisma.StringFilter<"TransactionDoc"> | string
  type?: Prisma.EnumTransactionDocTypeFilter<"TransactionDoc"> | $Enums.TransactionDocType
  url?: Prisma.StringFilter<"TransactionDoc"> | string
  filename?: Prisma.StringFilter<"TransactionDoc"> | string
  mimetype?: Prisma.StringFilter<"TransactionDoc"> | string
  size?: Prisma.IntFilter<"TransactionDoc"> | number
  order?: Prisma.IntFilter<"TransactionDoc"> | number
  createdAt?: Prisma.DateTimeFilter<"TransactionDoc"> | Date | string
  transaction?: Prisma.XOR<Prisma.TransactionScalarRelationFilter, Prisma.TransactionWhereInput>
}

export type TransactionDocOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  transactionId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  url?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  transaction?: Prisma.TransactionOrderByWithRelationInput
}

export type TransactionDocWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.TransactionDocWhereInput | Prisma.TransactionDocWhereInput[]
  OR?: Prisma.TransactionDocWhereInput[]
  NOT?: Prisma.TransactionDocWhereInput | Prisma.TransactionDocWhereInput[]
  transactionId?: Prisma.StringFilter<"TransactionDoc"> | string
  type?: Prisma.EnumTransactionDocTypeFilter<"TransactionDoc"> | $Enums.TransactionDocType
  url?: Prisma.StringFilter<"TransactionDoc"> | string
  filename?: Prisma.StringFilter<"TransactionDoc"> | string
  mimetype?: Prisma.StringFilter<"TransactionDoc"> | string
  size?: Prisma.IntFilter<"TransactionDoc"> | number
  order?: Prisma.IntFilter<"TransactionDoc"> | number
  createdAt?: Prisma.DateTimeFilter<"TransactionDoc"> | Date | string
  transaction?: Prisma.XOR<Prisma.TransactionScalarRelationFilter, Prisma.TransactionWhereInput>
}, "id">

export type TransactionDocOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  transactionId?: 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.TransactionDocCountOrderByAggregateInput
  _avg?: Prisma.TransactionDocAvgOrderByAggregateInput
  _max?: Prisma.TransactionDocMaxOrderByAggregateInput
  _min?: Prisma.TransactionDocMinOrderByAggregateInput
  _sum?: Prisma.TransactionDocSumOrderByAggregateInput
}

export type TransactionDocScalarWhereWithAggregatesInput = {
  AND?: Prisma.TransactionDocScalarWhereWithAggregatesInput | Prisma.TransactionDocScalarWhereWithAggregatesInput[]
  OR?: Prisma.TransactionDocScalarWhereWithAggregatesInput[]
  NOT?: Prisma.TransactionDocScalarWhereWithAggregatesInput | Prisma.TransactionDocScalarWhereWithAggregatesInput[]
  id?: Prisma.UuidWithAggregatesFilter<"TransactionDoc"> | string
  transactionId?: Prisma.StringWithAggregatesFilter<"TransactionDoc"> | string
  type?: Prisma.EnumTransactionDocTypeWithAggregatesFilter<"TransactionDoc"> | $Enums.TransactionDocType
  url?: Prisma.StringWithAggregatesFilter<"TransactionDoc"> | string
  filename?: Prisma.StringWithAggregatesFilter<"TransactionDoc"> | string
  mimetype?: Prisma.StringWithAggregatesFilter<"TransactionDoc"> | string
  size?: Prisma.IntWithAggregatesFilter<"TransactionDoc"> | number
  order?: Prisma.IntWithAggregatesFilter<"TransactionDoc"> | number
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"TransactionDoc"> | Date | string
}

export type TransactionDocCreateInput = {
  id?: string
  type: $Enums.TransactionDocType
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
  transaction: Prisma.TransactionCreateNestedOneWithoutDocsInput
}

export type TransactionDocUncheckedCreateInput = {
  id?: string
  transactionId: string
  type: $Enums.TransactionDocType
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
}

export type TransactionDocUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTransactionDocTypeFieldUpdateOperationsInput | $Enums.TransactionDocType
  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
  transaction?: Prisma.TransactionUpdateOneRequiredWithoutDocsNestedInput
}

export type TransactionDocUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  transactionId?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTransactionDocTypeFieldUpdateOperationsInput | $Enums.TransactionDocType
  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 TransactionDocCreateManyInput = {
  id?: string
  transactionId: string
  type: $Enums.TransactionDocType
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
}

export type TransactionDocUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTransactionDocTypeFieldUpdateOperationsInput | $Enums.TransactionDocType
  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 TransactionDocUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  transactionId?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTransactionDocTypeFieldUpdateOperationsInput | $Enums.TransactionDocType
  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 TransactionDocListRelationFilter = {
  every?: Prisma.TransactionDocWhereInput
  some?: Prisma.TransactionDocWhereInput
  none?: Prisma.TransactionDocWhereInput
}

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

export type TransactionDocCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  transactionId?: 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 TransactionDocAvgOrderByAggregateInput = {
  size?: Prisma.SortOrder
  order?: Prisma.SortOrder
}

export type TransactionDocMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  transactionId?: 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 TransactionDocMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  transactionId?: 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 TransactionDocSumOrderByAggregateInput = {
  size?: Prisma.SortOrder
  order?: Prisma.SortOrder
}

export type TransactionDocCreateNestedManyWithoutTransactionInput = {
  create?: Prisma.XOR<Prisma.TransactionDocCreateWithoutTransactionInput, Prisma.TransactionDocUncheckedCreateWithoutTransactionInput> | Prisma.TransactionDocCreateWithoutTransactionInput[] | Prisma.TransactionDocUncheckedCreateWithoutTransactionInput[]
  connectOrCreate?: Prisma.TransactionDocCreateOrConnectWithoutTransactionInput | Prisma.TransactionDocCreateOrConnectWithoutTransactionInput[]
  createMany?: Prisma.TransactionDocCreateManyTransactionInputEnvelope
  connect?: Prisma.TransactionDocWhereUniqueInput | Prisma.TransactionDocWhereUniqueInput[]
}

export type TransactionDocUncheckedCreateNestedManyWithoutTransactionInput = {
  create?: Prisma.XOR<Prisma.TransactionDocCreateWithoutTransactionInput, Prisma.TransactionDocUncheckedCreateWithoutTransactionInput> | Prisma.TransactionDocCreateWithoutTransactionInput[] | Prisma.TransactionDocUncheckedCreateWithoutTransactionInput[]
  connectOrCreate?: Prisma.TransactionDocCreateOrConnectWithoutTransactionInput | Prisma.TransactionDocCreateOrConnectWithoutTransactionInput[]
  createMany?: Prisma.TransactionDocCreateManyTransactionInputEnvelope
  connect?: Prisma.TransactionDocWhereUniqueInput | Prisma.TransactionDocWhereUniqueInput[]
}

export type TransactionDocUpdateManyWithoutTransactionNestedInput = {
  create?: Prisma.XOR<Prisma.TransactionDocCreateWithoutTransactionInput, Prisma.TransactionDocUncheckedCreateWithoutTransactionInput> | Prisma.TransactionDocCreateWithoutTransactionInput[] | Prisma.TransactionDocUncheckedCreateWithoutTransactionInput[]
  connectOrCreate?: Prisma.TransactionDocCreateOrConnectWithoutTransactionInput | Prisma.TransactionDocCreateOrConnectWithoutTransactionInput[]
  upsert?: Prisma.TransactionDocUpsertWithWhereUniqueWithoutTransactionInput | Prisma.TransactionDocUpsertWithWhereUniqueWithoutTransactionInput[]
  createMany?: Prisma.TransactionDocCreateManyTransactionInputEnvelope
  set?: Prisma.TransactionDocWhereUniqueInput | Prisma.TransactionDocWhereUniqueInput[]
  disconnect?: Prisma.TransactionDocWhereUniqueInput | Prisma.TransactionDocWhereUniqueInput[]
  delete?: Prisma.TransactionDocWhereUniqueInput | Prisma.TransactionDocWhereUniqueInput[]
  connect?: Prisma.TransactionDocWhereUniqueInput | Prisma.TransactionDocWhereUniqueInput[]
  update?: Prisma.TransactionDocUpdateWithWhereUniqueWithoutTransactionInput | Prisma.TransactionDocUpdateWithWhereUniqueWithoutTransactionInput[]
  updateMany?: Prisma.TransactionDocUpdateManyWithWhereWithoutTransactionInput | Prisma.TransactionDocUpdateManyWithWhereWithoutTransactionInput[]
  deleteMany?: Prisma.TransactionDocScalarWhereInput | Prisma.TransactionDocScalarWhereInput[]
}

export type TransactionDocUncheckedUpdateManyWithoutTransactionNestedInput = {
  create?: Prisma.XOR<Prisma.TransactionDocCreateWithoutTransactionInput, Prisma.TransactionDocUncheckedCreateWithoutTransactionInput> | Prisma.TransactionDocCreateWithoutTransactionInput[] | Prisma.TransactionDocUncheckedCreateWithoutTransactionInput[]
  connectOrCreate?: Prisma.TransactionDocCreateOrConnectWithoutTransactionInput | Prisma.TransactionDocCreateOrConnectWithoutTransactionInput[]
  upsert?: Prisma.TransactionDocUpsertWithWhereUniqueWithoutTransactionInput | Prisma.TransactionDocUpsertWithWhereUniqueWithoutTransactionInput[]
  createMany?: Prisma.TransactionDocCreateManyTransactionInputEnvelope
  set?: Prisma.TransactionDocWhereUniqueInput | Prisma.TransactionDocWhereUniqueInput[]
  disconnect?: Prisma.TransactionDocWhereUniqueInput | Prisma.TransactionDocWhereUniqueInput[]
  delete?: Prisma.TransactionDocWhereUniqueInput | Prisma.TransactionDocWhereUniqueInput[]
  connect?: Prisma.TransactionDocWhereUniqueInput | Prisma.TransactionDocWhereUniqueInput[]
  update?: Prisma.TransactionDocUpdateWithWhereUniqueWithoutTransactionInput | Prisma.TransactionDocUpdateWithWhereUniqueWithoutTransactionInput[]
  updateMany?: Prisma.TransactionDocUpdateManyWithWhereWithoutTransactionInput | Prisma.TransactionDocUpdateManyWithWhereWithoutTransactionInput[]
  deleteMany?: Prisma.TransactionDocScalarWhereInput | Prisma.TransactionDocScalarWhereInput[]
}

export type EnumTransactionDocTypeFieldUpdateOperationsInput = {
  set?: $Enums.TransactionDocType
}

export type TransactionDocCreateWithoutTransactionInput = {
  id?: string
  type: $Enums.TransactionDocType
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
}

export type TransactionDocUncheckedCreateWithoutTransactionInput = {
  id?: string
  type: $Enums.TransactionDocType
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
}

export type TransactionDocCreateOrConnectWithoutTransactionInput = {
  where: Prisma.TransactionDocWhereUniqueInput
  create: Prisma.XOR<Prisma.TransactionDocCreateWithoutTransactionInput, Prisma.TransactionDocUncheckedCreateWithoutTransactionInput>
}

export type TransactionDocCreateManyTransactionInputEnvelope = {
  data: Prisma.TransactionDocCreateManyTransactionInput | Prisma.TransactionDocCreateManyTransactionInput[]
  skipDuplicates?: boolean
}

export type TransactionDocUpsertWithWhereUniqueWithoutTransactionInput = {
  where: Prisma.TransactionDocWhereUniqueInput
  update: Prisma.XOR<Prisma.TransactionDocUpdateWithoutTransactionInput, Prisma.TransactionDocUncheckedUpdateWithoutTransactionInput>
  create: Prisma.XOR<Prisma.TransactionDocCreateWithoutTransactionInput, Prisma.TransactionDocUncheckedCreateWithoutTransactionInput>
}

export type TransactionDocUpdateWithWhereUniqueWithoutTransactionInput = {
  where: Prisma.TransactionDocWhereUniqueInput
  data: Prisma.XOR<Prisma.TransactionDocUpdateWithoutTransactionInput, Prisma.TransactionDocUncheckedUpdateWithoutTransactionInput>
}

export type TransactionDocUpdateManyWithWhereWithoutTransactionInput = {
  where: Prisma.TransactionDocScalarWhereInput
  data: Prisma.XOR<Prisma.TransactionDocUpdateManyMutationInput, Prisma.TransactionDocUncheckedUpdateManyWithoutTransactionInput>
}

export type TransactionDocScalarWhereInput = {
  AND?: Prisma.TransactionDocScalarWhereInput | Prisma.TransactionDocScalarWhereInput[]
  OR?: Prisma.TransactionDocScalarWhereInput[]
  NOT?: Prisma.TransactionDocScalarWhereInput | Prisma.TransactionDocScalarWhereInput[]
  id?: Prisma.UuidFilter<"TransactionDoc"> | string
  transactionId?: Prisma.StringFilter<"TransactionDoc"> | string
  type?: Prisma.EnumTransactionDocTypeFilter<"TransactionDoc"> | $Enums.TransactionDocType
  url?: Prisma.StringFilter<"TransactionDoc"> | string
  filename?: Prisma.StringFilter<"TransactionDoc"> | string
  mimetype?: Prisma.StringFilter<"TransactionDoc"> | string
  size?: Prisma.IntFilter<"TransactionDoc"> | number
  order?: Prisma.IntFilter<"TransactionDoc"> | number
  createdAt?: Prisma.DateTimeFilter<"TransactionDoc"> | Date | string
}

export type TransactionDocCreateManyTransactionInput = {
  id?: string
  type: $Enums.TransactionDocType
  url: string
  filename: string
  mimetype: string
  size: number
  order?: number
  createdAt?: Date | string
}

export type TransactionDocUpdateWithoutTransactionInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTransactionDocTypeFieldUpdateOperationsInput | $Enums.TransactionDocType
  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 TransactionDocUncheckedUpdateWithoutTransactionInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTransactionDocTypeFieldUpdateOperationsInput | $Enums.TransactionDocType
  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 TransactionDocUncheckedUpdateManyWithoutTransactionInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTransactionDocTypeFieldUpdateOperationsInput | $Enums.TransactionDocType
  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 TransactionDocSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  transactionId?: boolean
  type?: boolean
  url?: boolean
  filename?: boolean
  mimetype?: boolean
  size?: boolean
  order?: boolean
  createdAt?: boolean
  transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transactionDoc"]>

export type TransactionDocSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  transactionId?: boolean
  type?: boolean
  url?: boolean
  filename?: boolean
  mimetype?: boolean
  size?: boolean
  order?: boolean
  createdAt?: boolean
  transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transactionDoc"]>

export type TransactionDocSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  transactionId?: boolean
  type?: boolean
  url?: boolean
  filename?: boolean
  mimetype?: boolean
  size?: boolean
  order?: boolean
  createdAt?: boolean
  transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transactionDoc"]>

export type TransactionDocSelectScalar = {
  id?: boolean
  transactionId?: boolean
  type?: boolean
  url?: boolean
  filename?: boolean
  mimetype?: boolean
  size?: boolean
  order?: boolean
  createdAt?: boolean
}

export type TransactionDocOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "transactionId" | "type" | "url" | "filename" | "mimetype" | "size" | "order" | "createdAt", ExtArgs["result"]["transactionDoc"]>
export type TransactionDocInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>
}
export type TransactionDocIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>
}
export type TransactionDocIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>
}

export type $TransactionDocPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "TransactionDoc"
  objects: {
    transaction: Prisma.$TransactionPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    transactionId: string
    type: $Enums.TransactionDocType
    url: string
    filename: string
    mimetype: string
    size: number
    order: number
    createdAt: Date
  }, ExtArgs["result"]["transactionDoc"]>
  composites: {}
}

export type TransactionDocGetPayload<S extends boolean | null | undefined | TransactionDocDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TransactionDocPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for TransactionDoc.
 * 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__TransactionDocClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  transaction<T extends Prisma.TransactionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TransactionDefaultArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<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 TransactionDoc model
 */
export interface TransactionDocFieldRefs {
  readonly id: Prisma.FieldRef<"TransactionDoc", 'String'>
  readonly transactionId: Prisma.FieldRef<"TransactionDoc", 'String'>
  readonly type: Prisma.FieldRef<"TransactionDoc", 'TransactionDocType'>
  readonly url: Prisma.FieldRef<"TransactionDoc", 'String'>
  readonly filename: Prisma.FieldRef<"TransactionDoc", 'String'>
  readonly mimetype: Prisma.FieldRef<"TransactionDoc", 'String'>
  readonly size: Prisma.FieldRef<"TransactionDoc", 'Int'>
  readonly order: Prisma.FieldRef<"TransactionDoc", 'Int'>
  readonly createdAt: Prisma.FieldRef<"TransactionDoc", 'DateTime'>
}
    

// Custom InputTypes
/**
 * TransactionDoc findUnique
 */
export type TransactionDocFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionDoc
   */
  select?: Prisma.TransactionDocSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionDoc
   */
  omit?: Prisma.TransactionDocOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionDocInclude<ExtArgs> | null
  /**
   * Filter, which TransactionDoc to fetch.
   */
  where: Prisma.TransactionDocWhereUniqueInput
}

/**
 * TransactionDoc findUniqueOrThrow
 */
export type TransactionDocFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionDoc
   */
  select?: Prisma.TransactionDocSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionDoc
   */
  omit?: Prisma.TransactionDocOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionDocInclude<ExtArgs> | null
  /**
   * Filter, which TransactionDoc to fetch.
   */
  where: Prisma.TransactionDocWhereUniqueInput
}

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

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

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

/**
 * TransactionDoc create
 */
export type TransactionDocCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionDoc
   */
  select?: Prisma.TransactionDocSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionDoc
   */
  omit?: Prisma.TransactionDocOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionDocInclude<ExtArgs> | null
  /**
   * The data needed to create a TransactionDoc.
   */
  data: Prisma.XOR<Prisma.TransactionDocCreateInput, Prisma.TransactionDocUncheckedCreateInput>
}

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

/**
 * TransactionDoc createManyAndReturn
 */
export type TransactionDocCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionDoc
   */
  select?: Prisma.TransactionDocSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionDoc
   */
  omit?: Prisma.TransactionDocOmit<ExtArgs> | null
  /**
   * The data used to create many TransactionDocs.
   */
  data: Prisma.TransactionDocCreateManyInput | Prisma.TransactionDocCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionDocIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * TransactionDoc update
 */
export type TransactionDocUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionDoc
   */
  select?: Prisma.TransactionDocSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionDoc
   */
  omit?: Prisma.TransactionDocOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionDocInclude<ExtArgs> | null
  /**
   * The data needed to update a TransactionDoc.
   */
  data: Prisma.XOR<Prisma.TransactionDocUpdateInput, Prisma.TransactionDocUncheckedUpdateInput>
  /**
   * Choose, which TransactionDoc to update.
   */
  where: Prisma.TransactionDocWhereUniqueInput
}

/**
 * TransactionDoc updateMany
 */
export type TransactionDocUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update TransactionDocs.
   */
  data: Prisma.XOR<Prisma.TransactionDocUpdateManyMutationInput, Prisma.TransactionDocUncheckedUpdateManyInput>
  /**
   * Filter which TransactionDocs to update
   */
  where?: Prisma.TransactionDocWhereInput
  /**
   * Limit how many TransactionDocs to update.
   */
  limit?: number
}

/**
 * TransactionDoc updateManyAndReturn
 */
export type TransactionDocUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionDoc
   */
  select?: Prisma.TransactionDocSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionDoc
   */
  omit?: Prisma.TransactionDocOmit<ExtArgs> | null
  /**
   * The data used to update TransactionDocs.
   */
  data: Prisma.XOR<Prisma.TransactionDocUpdateManyMutationInput, Prisma.TransactionDocUncheckedUpdateManyInput>
  /**
   * Filter which TransactionDocs to update
   */
  where?: Prisma.TransactionDocWhereInput
  /**
   * Limit how many TransactionDocs to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionDocIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * TransactionDoc upsert
 */
export type TransactionDocUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionDoc
   */
  select?: Prisma.TransactionDocSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionDoc
   */
  omit?: Prisma.TransactionDocOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionDocInclude<ExtArgs> | null
  /**
   * The filter to search for the TransactionDoc to update in case it exists.
   */
  where: Prisma.TransactionDocWhereUniqueInput
  /**
   * In case the TransactionDoc found by the `where` argument doesn't exist, create a new TransactionDoc with this data.
   */
  create: Prisma.XOR<Prisma.TransactionDocCreateInput, Prisma.TransactionDocUncheckedCreateInput>
  /**
   * In case the TransactionDoc was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.TransactionDocUpdateInput, Prisma.TransactionDocUncheckedUpdateInput>
}

/**
 * TransactionDoc delete
 */
export type TransactionDocDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionDoc
   */
  select?: Prisma.TransactionDocSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionDoc
   */
  omit?: Prisma.TransactionDocOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionDocInclude<ExtArgs> | null
  /**
   * Filter which TransactionDoc to delete.
   */
  where: Prisma.TransactionDocWhereUniqueInput
}

/**
 * TransactionDoc deleteMany
 */
export type TransactionDocDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which TransactionDocs to delete
   */
  where?: Prisma.TransactionDocWhereInput
  /**
   * Limit how many TransactionDocs to delete.
   */
  limit?: number
}

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