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

export type AggregateTransactionSnapshot = {
  _count: TransactionSnapshotCountAggregateOutputType | null
  _avg: TransactionSnapshotAvgAggregateOutputType | null
  _sum: TransactionSnapshotSumAggregateOutputType | null
  _min: TransactionSnapshotMinAggregateOutputType | null
  _max: TransactionSnapshotMaxAggregateOutputType | null
}

export type TransactionSnapshotAvgAggregateOutputType = {
  totalNetWeight: runtime.Decimal | null
  totalAmount: runtime.Decimal | null
}

export type TransactionSnapshotSumAggregateOutputType = {
  totalNetWeight: runtime.Decimal | null
  totalAmount: runtime.Decimal | null
}

export type TransactionSnapshotMinAggregateOutputType = {
  id: string | null
  transactionId: string | null
  totalNetWeight: runtime.Decimal | null
  totalAmount: runtime.Decimal | null
  createdAt: Date | null
}

export type TransactionSnapshotMaxAggregateOutputType = {
  id: string | null
  transactionId: string | null
  totalNetWeight: runtime.Decimal | null
  totalAmount: runtime.Decimal | null
  createdAt: Date | null
}

export type TransactionSnapshotCountAggregateOutputType = {
  id: number
  transactionId: number
  totalNetWeight: number
  totalAmount: number
  snapshotData: number
  createdAt: number
  _all: number
}


export type TransactionSnapshotAvgAggregateInputType = {
  totalNetWeight?: true
  totalAmount?: true
}

export type TransactionSnapshotSumAggregateInputType = {
  totalNetWeight?: true
  totalAmount?: true
}

export type TransactionSnapshotMinAggregateInputType = {
  id?: true
  transactionId?: true
  totalNetWeight?: true
  totalAmount?: true
  createdAt?: true
}

export type TransactionSnapshotMaxAggregateInputType = {
  id?: true
  transactionId?: true
  totalNetWeight?: true
  totalAmount?: true
  createdAt?: true
}

export type TransactionSnapshotCountAggregateInputType = {
  id?: true
  transactionId?: true
  totalNetWeight?: true
  totalAmount?: true
  snapshotData?: true
  createdAt?: true
  _all?: true
}

export type TransactionSnapshotAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which TransactionSnapshot to aggregate.
   */
  where?: Prisma.TransactionSnapshotWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of TransactionSnapshots to fetch.
   */
  orderBy?: Prisma.TransactionSnapshotOrderByWithRelationInput | Prisma.TransactionSnapshotOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.TransactionSnapshotWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` TransactionSnapshots 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` TransactionSnapshots.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned TransactionSnapshots
  **/
  _count?: true | TransactionSnapshotCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: TransactionSnapshotAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: TransactionSnapshotSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: TransactionSnapshotMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: TransactionSnapshotMaxAggregateInputType
}

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




export type TransactionSnapshotGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.TransactionSnapshotWhereInput
  orderBy?: Prisma.TransactionSnapshotOrderByWithAggregationInput | Prisma.TransactionSnapshotOrderByWithAggregationInput[]
  by: Prisma.TransactionSnapshotScalarFieldEnum[] | Prisma.TransactionSnapshotScalarFieldEnum
  having?: Prisma.TransactionSnapshotScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: TransactionSnapshotCountAggregateInputType | true
  _avg?: TransactionSnapshotAvgAggregateInputType
  _sum?: TransactionSnapshotSumAggregateInputType
  _min?: TransactionSnapshotMinAggregateInputType
  _max?: TransactionSnapshotMaxAggregateInputType
}

export type TransactionSnapshotGroupByOutputType = {
  id: string
  transactionId: string
  totalNetWeight: runtime.Decimal
  totalAmount: runtime.Decimal
  snapshotData: runtime.JsonValue
  createdAt: Date
  _count: TransactionSnapshotCountAggregateOutputType | null
  _avg: TransactionSnapshotAvgAggregateOutputType | null
  _sum: TransactionSnapshotSumAggregateOutputType | null
  _min: TransactionSnapshotMinAggregateOutputType | null
  _max: TransactionSnapshotMaxAggregateOutputType | null
}

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



export type TransactionSnapshotWhereInput = {
  AND?: Prisma.TransactionSnapshotWhereInput | Prisma.TransactionSnapshotWhereInput[]
  OR?: Prisma.TransactionSnapshotWhereInput[]
  NOT?: Prisma.TransactionSnapshotWhereInput | Prisma.TransactionSnapshotWhereInput[]
  id?: Prisma.StringFilter<"TransactionSnapshot"> | string
  transactionId?: Prisma.StringFilter<"TransactionSnapshot"> | string
  totalNetWeight?: Prisma.DecimalFilter<"TransactionSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount?: Prisma.DecimalFilter<"TransactionSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData?: Prisma.JsonFilter<"TransactionSnapshot">
  createdAt?: Prisma.DateTimeFilter<"TransactionSnapshot"> | Date | string
  transaction?: Prisma.XOR<Prisma.TransactionScalarRelationFilter, Prisma.TransactionWhereInput>
}

export type TransactionSnapshotOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  transactionId?: Prisma.SortOrder
  totalNetWeight?: Prisma.SortOrder
  totalAmount?: Prisma.SortOrder
  snapshotData?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  transaction?: Prisma.TransactionOrderByWithRelationInput
}

export type TransactionSnapshotWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.TransactionSnapshotWhereInput | Prisma.TransactionSnapshotWhereInput[]
  OR?: Prisma.TransactionSnapshotWhereInput[]
  NOT?: Prisma.TransactionSnapshotWhereInput | Prisma.TransactionSnapshotWhereInput[]
  transactionId?: Prisma.StringFilter<"TransactionSnapshot"> | string
  totalNetWeight?: Prisma.DecimalFilter<"TransactionSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount?: Prisma.DecimalFilter<"TransactionSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData?: Prisma.JsonFilter<"TransactionSnapshot">
  createdAt?: Prisma.DateTimeFilter<"TransactionSnapshot"> | Date | string
  transaction?: Prisma.XOR<Prisma.TransactionScalarRelationFilter, Prisma.TransactionWhereInput>
}, "id">

export type TransactionSnapshotOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  transactionId?: Prisma.SortOrder
  totalNetWeight?: Prisma.SortOrder
  totalAmount?: Prisma.SortOrder
  snapshotData?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.TransactionSnapshotCountOrderByAggregateInput
  _avg?: Prisma.TransactionSnapshotAvgOrderByAggregateInput
  _max?: Prisma.TransactionSnapshotMaxOrderByAggregateInput
  _min?: Prisma.TransactionSnapshotMinOrderByAggregateInput
  _sum?: Prisma.TransactionSnapshotSumOrderByAggregateInput
}

export type TransactionSnapshotScalarWhereWithAggregatesInput = {
  AND?: Prisma.TransactionSnapshotScalarWhereWithAggregatesInput | Prisma.TransactionSnapshotScalarWhereWithAggregatesInput[]
  OR?: Prisma.TransactionSnapshotScalarWhereWithAggregatesInput[]
  NOT?: Prisma.TransactionSnapshotScalarWhereWithAggregatesInput | Prisma.TransactionSnapshotScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"TransactionSnapshot"> | string
  transactionId?: Prisma.StringWithAggregatesFilter<"TransactionSnapshot"> | string
  totalNetWeight?: Prisma.DecimalWithAggregatesFilter<"TransactionSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount?: Prisma.DecimalWithAggregatesFilter<"TransactionSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData?: Prisma.JsonWithAggregatesFilter<"TransactionSnapshot">
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"TransactionSnapshot"> | Date | string
}

export type TransactionSnapshotCreateInput = {
  id?: string
  totalNetWeight: runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  transaction: Prisma.TransactionCreateNestedOneWithoutSnapshotsInput
}

export type TransactionSnapshotUncheckedCreateInput = {
  id?: string
  transactionId: string
  totalNetWeight: runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type TransactionSnapshotUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  totalNetWeight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  transaction?: Prisma.TransactionUpdateOneRequiredWithoutSnapshotsNestedInput
}

export type TransactionSnapshotUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  transactionId?: Prisma.StringFieldUpdateOperationsInput | string
  totalNetWeight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TransactionSnapshotCreateManyInput = {
  id?: string
  transactionId: string
  totalNetWeight: runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type TransactionSnapshotUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  totalNetWeight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TransactionSnapshotUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  transactionId?: Prisma.StringFieldUpdateOperationsInput | string
  totalNetWeight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TransactionSnapshotListRelationFilter = {
  every?: Prisma.TransactionSnapshotWhereInput
  some?: Prisma.TransactionSnapshotWhereInput
  none?: Prisma.TransactionSnapshotWhereInput
}

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

export type TransactionSnapshotCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  transactionId?: Prisma.SortOrder
  totalNetWeight?: Prisma.SortOrder
  totalAmount?: Prisma.SortOrder
  snapshotData?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type TransactionSnapshotAvgOrderByAggregateInput = {
  totalNetWeight?: Prisma.SortOrder
  totalAmount?: Prisma.SortOrder
}

export type TransactionSnapshotMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  transactionId?: Prisma.SortOrder
  totalNetWeight?: Prisma.SortOrder
  totalAmount?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type TransactionSnapshotMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  transactionId?: Prisma.SortOrder
  totalNetWeight?: Prisma.SortOrder
  totalAmount?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type TransactionSnapshotSumOrderByAggregateInput = {
  totalNetWeight?: Prisma.SortOrder
  totalAmount?: Prisma.SortOrder
}

export type TransactionSnapshotCreateNestedManyWithoutTransactionInput = {
  create?: Prisma.XOR<Prisma.TransactionSnapshotCreateWithoutTransactionInput, Prisma.TransactionSnapshotUncheckedCreateWithoutTransactionInput> | Prisma.TransactionSnapshotCreateWithoutTransactionInput[] | Prisma.TransactionSnapshotUncheckedCreateWithoutTransactionInput[]
  connectOrCreate?: Prisma.TransactionSnapshotCreateOrConnectWithoutTransactionInput | Prisma.TransactionSnapshotCreateOrConnectWithoutTransactionInput[]
  createMany?: Prisma.TransactionSnapshotCreateManyTransactionInputEnvelope
  connect?: Prisma.TransactionSnapshotWhereUniqueInput | Prisma.TransactionSnapshotWhereUniqueInput[]
}

export type TransactionSnapshotUncheckedCreateNestedManyWithoutTransactionInput = {
  create?: Prisma.XOR<Prisma.TransactionSnapshotCreateWithoutTransactionInput, Prisma.TransactionSnapshotUncheckedCreateWithoutTransactionInput> | Prisma.TransactionSnapshotCreateWithoutTransactionInput[] | Prisma.TransactionSnapshotUncheckedCreateWithoutTransactionInput[]
  connectOrCreate?: Prisma.TransactionSnapshotCreateOrConnectWithoutTransactionInput | Prisma.TransactionSnapshotCreateOrConnectWithoutTransactionInput[]
  createMany?: Prisma.TransactionSnapshotCreateManyTransactionInputEnvelope
  connect?: Prisma.TransactionSnapshotWhereUniqueInput | Prisma.TransactionSnapshotWhereUniqueInput[]
}

export type TransactionSnapshotUpdateManyWithoutTransactionNestedInput = {
  create?: Prisma.XOR<Prisma.TransactionSnapshotCreateWithoutTransactionInput, Prisma.TransactionSnapshotUncheckedCreateWithoutTransactionInput> | Prisma.TransactionSnapshotCreateWithoutTransactionInput[] | Prisma.TransactionSnapshotUncheckedCreateWithoutTransactionInput[]
  connectOrCreate?: Prisma.TransactionSnapshotCreateOrConnectWithoutTransactionInput | Prisma.TransactionSnapshotCreateOrConnectWithoutTransactionInput[]
  upsert?: Prisma.TransactionSnapshotUpsertWithWhereUniqueWithoutTransactionInput | Prisma.TransactionSnapshotUpsertWithWhereUniqueWithoutTransactionInput[]
  createMany?: Prisma.TransactionSnapshotCreateManyTransactionInputEnvelope
  set?: Prisma.TransactionSnapshotWhereUniqueInput | Prisma.TransactionSnapshotWhereUniqueInput[]
  disconnect?: Prisma.TransactionSnapshotWhereUniqueInput | Prisma.TransactionSnapshotWhereUniqueInput[]
  delete?: Prisma.TransactionSnapshotWhereUniqueInput | Prisma.TransactionSnapshotWhereUniqueInput[]
  connect?: Prisma.TransactionSnapshotWhereUniqueInput | Prisma.TransactionSnapshotWhereUniqueInput[]
  update?: Prisma.TransactionSnapshotUpdateWithWhereUniqueWithoutTransactionInput | Prisma.TransactionSnapshotUpdateWithWhereUniqueWithoutTransactionInput[]
  updateMany?: Prisma.TransactionSnapshotUpdateManyWithWhereWithoutTransactionInput | Prisma.TransactionSnapshotUpdateManyWithWhereWithoutTransactionInput[]
  deleteMany?: Prisma.TransactionSnapshotScalarWhereInput | Prisma.TransactionSnapshotScalarWhereInput[]
}

export type TransactionSnapshotUncheckedUpdateManyWithoutTransactionNestedInput = {
  create?: Prisma.XOR<Prisma.TransactionSnapshotCreateWithoutTransactionInput, Prisma.TransactionSnapshotUncheckedCreateWithoutTransactionInput> | Prisma.TransactionSnapshotCreateWithoutTransactionInput[] | Prisma.TransactionSnapshotUncheckedCreateWithoutTransactionInput[]
  connectOrCreate?: Prisma.TransactionSnapshotCreateOrConnectWithoutTransactionInput | Prisma.TransactionSnapshotCreateOrConnectWithoutTransactionInput[]
  upsert?: Prisma.TransactionSnapshotUpsertWithWhereUniqueWithoutTransactionInput | Prisma.TransactionSnapshotUpsertWithWhereUniqueWithoutTransactionInput[]
  createMany?: Prisma.TransactionSnapshotCreateManyTransactionInputEnvelope
  set?: Prisma.TransactionSnapshotWhereUniqueInput | Prisma.TransactionSnapshotWhereUniqueInput[]
  disconnect?: Prisma.TransactionSnapshotWhereUniqueInput | Prisma.TransactionSnapshotWhereUniqueInput[]
  delete?: Prisma.TransactionSnapshotWhereUniqueInput | Prisma.TransactionSnapshotWhereUniqueInput[]
  connect?: Prisma.TransactionSnapshotWhereUniqueInput | Prisma.TransactionSnapshotWhereUniqueInput[]
  update?: Prisma.TransactionSnapshotUpdateWithWhereUniqueWithoutTransactionInput | Prisma.TransactionSnapshotUpdateWithWhereUniqueWithoutTransactionInput[]
  updateMany?: Prisma.TransactionSnapshotUpdateManyWithWhereWithoutTransactionInput | Prisma.TransactionSnapshotUpdateManyWithWhereWithoutTransactionInput[]
  deleteMany?: Prisma.TransactionSnapshotScalarWhereInput | Prisma.TransactionSnapshotScalarWhereInput[]
}

export type TransactionSnapshotCreateWithoutTransactionInput = {
  id?: string
  totalNetWeight: runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type TransactionSnapshotUncheckedCreateWithoutTransactionInput = {
  id?: string
  totalNetWeight: runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type TransactionSnapshotCreateOrConnectWithoutTransactionInput = {
  where: Prisma.TransactionSnapshotWhereUniqueInput
  create: Prisma.XOR<Prisma.TransactionSnapshotCreateWithoutTransactionInput, Prisma.TransactionSnapshotUncheckedCreateWithoutTransactionInput>
}

export type TransactionSnapshotCreateManyTransactionInputEnvelope = {
  data: Prisma.TransactionSnapshotCreateManyTransactionInput | Prisma.TransactionSnapshotCreateManyTransactionInput[]
  skipDuplicates?: boolean
}

export type TransactionSnapshotUpsertWithWhereUniqueWithoutTransactionInput = {
  where: Prisma.TransactionSnapshotWhereUniqueInput
  update: Prisma.XOR<Prisma.TransactionSnapshotUpdateWithoutTransactionInput, Prisma.TransactionSnapshotUncheckedUpdateWithoutTransactionInput>
  create: Prisma.XOR<Prisma.TransactionSnapshotCreateWithoutTransactionInput, Prisma.TransactionSnapshotUncheckedCreateWithoutTransactionInput>
}

export type TransactionSnapshotUpdateWithWhereUniqueWithoutTransactionInput = {
  where: Prisma.TransactionSnapshotWhereUniqueInput
  data: Prisma.XOR<Prisma.TransactionSnapshotUpdateWithoutTransactionInput, Prisma.TransactionSnapshotUncheckedUpdateWithoutTransactionInput>
}

export type TransactionSnapshotUpdateManyWithWhereWithoutTransactionInput = {
  where: Prisma.TransactionSnapshotScalarWhereInput
  data: Prisma.XOR<Prisma.TransactionSnapshotUpdateManyMutationInput, Prisma.TransactionSnapshotUncheckedUpdateManyWithoutTransactionInput>
}

export type TransactionSnapshotScalarWhereInput = {
  AND?: Prisma.TransactionSnapshotScalarWhereInput | Prisma.TransactionSnapshotScalarWhereInput[]
  OR?: Prisma.TransactionSnapshotScalarWhereInput[]
  NOT?: Prisma.TransactionSnapshotScalarWhereInput | Prisma.TransactionSnapshotScalarWhereInput[]
  id?: Prisma.StringFilter<"TransactionSnapshot"> | string
  transactionId?: Prisma.StringFilter<"TransactionSnapshot"> | string
  totalNetWeight?: Prisma.DecimalFilter<"TransactionSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount?: Prisma.DecimalFilter<"TransactionSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData?: Prisma.JsonFilter<"TransactionSnapshot">
  createdAt?: Prisma.DateTimeFilter<"TransactionSnapshot"> | Date | string
}

export type TransactionSnapshotCreateManyTransactionInput = {
  id?: string
  totalNetWeight: runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type TransactionSnapshotUpdateWithoutTransactionInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  totalNetWeight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TransactionSnapshotUncheckedUpdateWithoutTransactionInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  totalNetWeight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TransactionSnapshotUncheckedUpdateManyWithoutTransactionInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  totalNetWeight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
  snapshotData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type TransactionSnapshotSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  transactionId?: boolean
  totalNetWeight?: boolean
  totalAmount?: boolean
  snapshotData?: boolean
  createdAt?: boolean
  transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transactionSnapshot"]>

export type TransactionSnapshotSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  transactionId?: boolean
  totalNetWeight?: boolean
  totalAmount?: boolean
  snapshotData?: boolean
  createdAt?: boolean
  transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transactionSnapshot"]>

export type TransactionSnapshotSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  transactionId?: boolean
  totalNetWeight?: boolean
  totalAmount?: boolean
  snapshotData?: boolean
  createdAt?: boolean
  transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transactionSnapshot"]>

export type TransactionSnapshotSelectScalar = {
  id?: boolean
  transactionId?: boolean
  totalNetWeight?: boolean
  totalAmount?: boolean
  snapshotData?: boolean
  createdAt?: boolean
}

export type TransactionSnapshotOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "transactionId" | "totalNetWeight" | "totalAmount" | "snapshotData" | "createdAt", ExtArgs["result"]["transactionSnapshot"]>
export type TransactionSnapshotInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>
}
export type TransactionSnapshotIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>
}
export type TransactionSnapshotIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>
}

export type $TransactionSnapshotPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "TransactionSnapshot"
  objects: {
    transaction: Prisma.$TransactionPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    transactionId: string
    totalNetWeight: runtime.Decimal
    totalAmount: runtime.Decimal
    snapshotData: runtime.JsonValue
    createdAt: Date
  }, ExtArgs["result"]["transactionSnapshot"]>
  composites: {}
}

export type TransactionSnapshotGetPayload<S extends boolean | null | undefined | TransactionSnapshotDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TransactionSnapshotPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for TransactionSnapshot.
 * 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__TransactionSnapshotClient<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 TransactionSnapshot model
 */
export interface TransactionSnapshotFieldRefs {
  readonly id: Prisma.FieldRef<"TransactionSnapshot", 'String'>
  readonly transactionId: Prisma.FieldRef<"TransactionSnapshot", 'String'>
  readonly totalNetWeight: Prisma.FieldRef<"TransactionSnapshot", 'Decimal'>
  readonly totalAmount: Prisma.FieldRef<"TransactionSnapshot", 'Decimal'>
  readonly snapshotData: Prisma.FieldRef<"TransactionSnapshot", 'Json'>
  readonly createdAt: Prisma.FieldRef<"TransactionSnapshot", 'DateTime'>
}
    

// Custom InputTypes
/**
 * TransactionSnapshot findUnique
 */
export type TransactionSnapshotFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionSnapshot
   */
  select?: Prisma.TransactionSnapshotSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionSnapshot
   */
  omit?: Prisma.TransactionSnapshotOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionSnapshotInclude<ExtArgs> | null
  /**
   * Filter, which TransactionSnapshot to fetch.
   */
  where: Prisma.TransactionSnapshotWhereUniqueInput
}

/**
 * TransactionSnapshot findUniqueOrThrow
 */
export type TransactionSnapshotFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionSnapshot
   */
  select?: Prisma.TransactionSnapshotSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionSnapshot
   */
  omit?: Prisma.TransactionSnapshotOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionSnapshotInclude<ExtArgs> | null
  /**
   * Filter, which TransactionSnapshot to fetch.
   */
  where: Prisma.TransactionSnapshotWhereUniqueInput
}

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

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

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

/**
 * TransactionSnapshot create
 */
export type TransactionSnapshotCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionSnapshot
   */
  select?: Prisma.TransactionSnapshotSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionSnapshot
   */
  omit?: Prisma.TransactionSnapshotOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionSnapshotInclude<ExtArgs> | null
  /**
   * The data needed to create a TransactionSnapshot.
   */
  data: Prisma.XOR<Prisma.TransactionSnapshotCreateInput, Prisma.TransactionSnapshotUncheckedCreateInput>
}

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

/**
 * TransactionSnapshot createManyAndReturn
 */
export type TransactionSnapshotCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionSnapshot
   */
  select?: Prisma.TransactionSnapshotSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionSnapshot
   */
  omit?: Prisma.TransactionSnapshotOmit<ExtArgs> | null
  /**
   * The data used to create many TransactionSnapshots.
   */
  data: Prisma.TransactionSnapshotCreateManyInput | Prisma.TransactionSnapshotCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionSnapshotIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * TransactionSnapshot update
 */
export type TransactionSnapshotUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionSnapshot
   */
  select?: Prisma.TransactionSnapshotSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionSnapshot
   */
  omit?: Prisma.TransactionSnapshotOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionSnapshotInclude<ExtArgs> | null
  /**
   * The data needed to update a TransactionSnapshot.
   */
  data: Prisma.XOR<Prisma.TransactionSnapshotUpdateInput, Prisma.TransactionSnapshotUncheckedUpdateInput>
  /**
   * Choose, which TransactionSnapshot to update.
   */
  where: Prisma.TransactionSnapshotWhereUniqueInput
}

/**
 * TransactionSnapshot updateMany
 */
export type TransactionSnapshotUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update TransactionSnapshots.
   */
  data: Prisma.XOR<Prisma.TransactionSnapshotUpdateManyMutationInput, Prisma.TransactionSnapshotUncheckedUpdateManyInput>
  /**
   * Filter which TransactionSnapshots to update
   */
  where?: Prisma.TransactionSnapshotWhereInput
  /**
   * Limit how many TransactionSnapshots to update.
   */
  limit?: number
}

/**
 * TransactionSnapshot updateManyAndReturn
 */
export type TransactionSnapshotUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionSnapshot
   */
  select?: Prisma.TransactionSnapshotSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionSnapshot
   */
  omit?: Prisma.TransactionSnapshotOmit<ExtArgs> | null
  /**
   * The data used to update TransactionSnapshots.
   */
  data: Prisma.XOR<Prisma.TransactionSnapshotUpdateManyMutationInput, Prisma.TransactionSnapshotUncheckedUpdateManyInput>
  /**
   * Filter which TransactionSnapshots to update
   */
  where?: Prisma.TransactionSnapshotWhereInput
  /**
   * Limit how many TransactionSnapshots to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionSnapshotIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * TransactionSnapshot upsert
 */
export type TransactionSnapshotUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionSnapshot
   */
  select?: Prisma.TransactionSnapshotSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionSnapshot
   */
  omit?: Prisma.TransactionSnapshotOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionSnapshotInclude<ExtArgs> | null
  /**
   * The filter to search for the TransactionSnapshot to update in case it exists.
   */
  where: Prisma.TransactionSnapshotWhereUniqueInput
  /**
   * In case the TransactionSnapshot found by the `where` argument doesn't exist, create a new TransactionSnapshot with this data.
   */
  create: Prisma.XOR<Prisma.TransactionSnapshotCreateInput, Prisma.TransactionSnapshotUncheckedCreateInput>
  /**
   * In case the TransactionSnapshot was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.TransactionSnapshotUpdateInput, Prisma.TransactionSnapshotUncheckedUpdateInput>
}

/**
 * TransactionSnapshot delete
 */
export type TransactionSnapshotDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TransactionSnapshot
   */
  select?: Prisma.TransactionSnapshotSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TransactionSnapshot
   */
  omit?: Prisma.TransactionSnapshotOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TransactionSnapshotInclude<ExtArgs> | null
  /**
   * Filter which TransactionSnapshot to delete.
   */
  where: Prisma.TransactionSnapshotWhereUniqueInput
}

/**
 * TransactionSnapshot deleteMany
 */
export type TransactionSnapshotDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which TransactionSnapshots to delete
   */
  where?: Prisma.TransactionSnapshotWhereInput
  /**
   * Limit how many TransactionSnapshots to delete.
   */
  limit?: number
}

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